diff --git a/test_hub/__init__.py b/test_hub/__init__.py deleted file mode 100644 index 4f78c4172ff4e8fcb361705fd7223cbd7d09cce9..0000000000000000000000000000000000000000 --- a/test_hub/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -from sams_hub import SAMSHub - -hub = SAMSHub(__name__) \ No newline at end of file diff --git a/test_hub/config/config.yaml b/test_hub/config/config.yaml deleted file mode 100644 index cedca4eb7d0b13e3f5162730a7945e288abb1fc6..0000000000000000000000000000000000000000 --- a/test_hub/config/config.yaml +++ /dev/null @@ -1,4 +0,0 @@ -DEBUG: true -jinja2_strict_undefined: true -#samsHUB: -# module_base_path: /modules/ # default \ No newline at end of file diff --git a/test_hub/config/modules.yaml b/test_hub/config/modules.yaml deleted file mode 100644 index 9026aee8525dd846759bcb3e7153f28b6cda3316..0000000000000000000000000000000000000000 --- a/test_hub/config/modules.yaml +++ /dev/null @@ -1 +0,0 @@ -- hallo_module \ No newline at end of file diff --git a/test_hub/modules/hallo_module/__init__.py b/test_hub/modules/hallo_module/__init__.py deleted file mode 100644 index d9384d84e4671f5c9f4d12296f6975926842614e..0000000000000000000000000000000000000000 --- a/test_hub/modules/hallo_module/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -from flask_microservices import Router -from . import urls -#from samsHUB.functions import get_enabled_modules - -print(views.hallo_module) diff --git a/test_hub/modules/hallo_module/languages/de.yaml b/test_hub/modules/hallo_module/languages/de.yaml deleted file mode 100644 index 2bf8e11a289d6696d3721f0b488aa108bea46c40..0000000000000000000000000000000000000000 --- a/test_hub/modules/hallo_module/languages/de.yaml +++ /dev/null @@ -1,11 +0,0 @@ -module_title: &module_title Hallo Modul -module_name: *module_title -hallo module: >- - Hallo Modul! -beschreibung: >- - Eine Beshreibung zu was auch immer das 'hallo module' macht. -teststring: Ein Teststring -subview_description: >- - Dies ist ein Subview des Hallo Moduls. Das Modul kann vile weitere Subviews - haben, aber dieses ist bietet die Möglichkeit über ein Menü im SAMShub - erreichbar zu sein. \ No newline at end of file diff --git a/test_hub/modules/hallo_module/languages/en.yaml b/test_hub/modules/hallo_module/languages/en.yaml deleted file mode 100644 index 183dfa168cf1134c5f8e368e22aafcbcecee77f4..0000000000000000000000000000000000000000 --- a/test_hub/modules/hallo_module/languages/en.yaml +++ /dev/null @@ -1,13 +0,0 @@ -module_title: &module_title Hello Module -module_name: *module_title -hallo module: >- - Hello Module! -beschreibung: >- - This is the description of what ever this 'hello module' does. -teststring: A Teststring -subview_title: Subview -subview_name: Subentry -subviews_description: >- - This is a Subview of the 'hello module'. The Module may use much more subviews, - but this one is potentialy reachable in a menu of the SAMAShub. -home_string: Start \ No newline at end of file diff --git a/test_hub/modules/hallo_module/manifest.yaml b/test_hub/modules/hallo_module/manifest.yaml deleted file mode 100644 index 9d6bd4a074ebb340479068bd983a5b182bb03727..0000000000000000000000000000000000000000 --- a/test_hub/modules/hallo_module/manifest.yaml +++ /dev/null @@ -1,13 +0,0 @@ -default_language: en -views: - - url: &hallo-module - function: views.hallo_module -menu: - - url: *hallo-module - name_string: module_title - submenu: - - url: /modules/hallo-module/subview - name_string: subview_name - subviews: - - url: / - name_string: home_string diff --git a/test_hub/modules/hallo_module/templates/hallo_module.html b/test_hub/modules/hallo_module/templates/hallo_module.html deleted file mode 100644 index d615d8ae827842f3e30af76ea80a7d78b0c76f55..0000000000000000000000000000000000000000 --- a/test_hub/modules/hallo_module/templates/hallo_module.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "base-struct.html" %} -{% block title %}Index{% endblock %} -{% block head %} {{ super() }} {% endblock %} -{% block content %} - <h1> {{ mod_lang['hallo module'] }}</h1> - <p> {{ mod_lang['beschreibung'] }}</p> -{% endblock %} -{% block header %}samsHUB {{ mod_lang['teststring'] }} {% endblock %} \ No newline at end of file diff --git a/test_hub/modules/hallo_module/templates/subview.html b/test_hub/modules/hallo_module/templates/subview.html deleted file mode 100644 index 5fc6dd156cfea254c265de4f69d8b5d6e6bafef3..0000000000000000000000000000000000000000 --- a/test_hub/modules/hallo_module/templates/subview.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "base-struct.html" %} -{% block title %}Index{% endblock %} -{% block head %} {{ super() }} {% endblock %} -{% block content %} - <h1> {{ mod_lang['hallo module'] }} - {{ mod_lang['subview_title'] }}</h1> - <p> {{ mod_lang['subview_description'] }}</p> -{% endblock %} -{% block header %}samsHUB {{ mod_lang['teststring'] }} {% endblock %} \ No newline at end of file diff --git a/test_hub/modules/hallo_module/urls.py b/test_hub/modules/hallo_module/urls.py deleted file mode 100644 index 73a3142234cb47a650b249d4ddbbe6bba014fcd3..0000000000000000000000000000000000000000 --- a/test_hub/modules/hallo_module/urls.py +++ /dev/null @@ -1,9 +0,0 @@ -from flask_microservices import url -from . import views - -urlpatterns = [ - url('/modules/hallo-module', view_func=views.hallo_module, name='hallo_module') - , url( - '/modules/hallo-module/subview', view_func=views.subview - , name='hallo_module_subview') -] \ No newline at end of file diff --git a/test_hub/modules/hallo_module/views.py b/test_hub/modules/hallo_module/views.py deleted file mode 100644 index 2cc678abc3beec9e5ef16388830e7cb4ebd3d85a..0000000000000000000000000000000000000000 --- a/test_hub/modules/hallo_module/views.py +++ /dev/null @@ -1,6 +0,0 @@ -from flask import render_template - -def hallo_module(): - return render_template('hallo_module.html') -def subview(): - return render_template('subview.html') \ No newline at end of file diff --git a/test_hub/templates/.gitkeep b/test_hub/templates/.gitkeep deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/test_hub/templates/base-struct.html b/test_hub/templates/base-struct.html deleted file mode 100644 index f35722e641dc9e84c2c14d69c51abd5e984dac29..0000000000000000000000000000000000000000 --- a/test_hub/templates/base-struct.html +++ /dev/null @@ -1,28 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - {% block head %} - <title>samsHub - {% block title %}{% endblock title %}</title> - <link rel="stylesheet" href="/static/style.css" /> - {% endblock head %} -</head> -<body> - <div id="header">{% block header %}{% endblock %}</div> - <div id="global_app_menu"> - <ul> - {% for entry in menu_list recursive%} - <li><a href='{{ entry.url }}'>{{ entry.name }}</a></li> - {% if entry.subentries %} - <ul class="submenu">{{ loop(entry.subentries) }}</ul> - {% endif %} - {% endfor %} - </ul> - </div> - <div id="content">{% block content %}{% endblock %}</div> - <div id="footer"> - {% block footer %} - © Copyright 2008 by <a href="http://domain.invalid/">you</a>. - {% endblock %} - </div> -</body> -</html> \ No newline at end of file diff --git a/test_hub/templates/home.html b/test_hub/templates/home.html deleted file mode 100644 index 6107666674f652ca6178a73e871cbb10c1781d27..0000000000000000000000000000000000000000 --- a/test_hub/templates/home.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "base-struct.html" %} -{% block title %}Index{% endblock %} -{% block head %} {{ super() }} {% endblock %} -{% block content %} - <h1>Home</h1> - <p>samsHub Startseite: {{ hub_lang['home_wellcome_message']|safe }}</p> -{% endblock %} -{% block header %}samsHUB -{% endblock %} \ No newline at end of file diff --git a/test_hub/templates/login.html b/test_hub/templates/login.html deleted file mode 100644 index 640db25d282b6d0432b18bd50d009652403c6dc4..0000000000000000000000000000000000000000 --- a/test_hub/templates/login.html +++ /dev/null @@ -1,44 +0,0 @@ -{% extends "base-struct.html" %} -{% block content %} -<div class="hold-transition login-page" style="padding-bottom: 1px;"> - <div class="login-box"> - <div class="login-logo" style="font-size: 32px; padding-top: 20px;"> - {{ hub_lang['zid_long'] | safe }} - </div> - <!-- /.login-logo --> - <div class="login-box-body"> - <form action="/login" method="post"> - <div class="form-group has-feedback"> - <input name="username" type="username" class="form-control" - placeholder="{{hub_lang['username']}}"> - <span class="fa fa-user form-control-feedback"></span> - </div> - <div class="form-group has-feedback"> - <input name="password" type="password" class="form-control" - placeholder="{{hub_lang['password']}}"> - <span class="fa fa-lock form-control-feedback"></span> - </div> - <div class="row"> - <div class="col-xs-8"> - <div class="checkbox icheck"> - <label> - <input type="checkbox"> Remember me - </label> - </div> - </div> - <!-- /.col --> - <div class="col-xs-4"> - <button type="submit" class="btn btn-primary btn-block btn-flat"> - Sign in</button> - </div> - <!-- /.col --> - </div> - </form> - - </div> - <!-- /.login-box-body --> - </div> - <!-- /.login-box --> -</div> - -{% endblock %}