CHANGE reflect recent changes in liberouter-gui
diff --git a/api/__init__.py b/backend/__init__.py
similarity index 100%
rename from api/__init__.py
rename to backend/__init__.py
diff --git a/api/config.ini b/backend/config.ini
similarity index 100%
rename from api/config.ini
rename to backend/config.ini
diff --git a/api/connections.py b/backend/connections.py
similarity index 100%
rename from api/connections.py
rename to backend/connections.py
diff --git a/api/devices.py b/backend/devices.py
similarity index 100%
rename from api/devices.py
rename to backend/devices.py
diff --git a/api/error.py b/backend/error.py
similarity index 100%
rename from api/error.py
rename to backend/error.py
diff --git a/api/inventory.py b/backend/inventory.py
similarity index 90%
rename from api/inventory.py
rename to backend/inventory.py
index dba1a41..3bb0d23 100644
--- a/api/inventory.py
+++ b/backend/inventory.py
@@ -11,7 +11,7 @@
from .error import NetopeerException
-INVENTORY = config.modules['netopeer']['usersdata_path']
+INVENTORY = config['netopeer'].get('usersdata_path', './')
def inventory_check(path):
try:
diff --git a/api/schemas.py b/backend/schemas.py
similarity index 100%
rename from api/schemas.py
rename to backend/schemas.py
diff --git a/config.json b/config.json
new file mode 100644
index 0000000..3737762
--- /dev/null
+++ b/config.json
@@ -0,0 +1,8 @@
+{
+ "module": {
+ "file": "netopeer.module.ts",
+ "class" : "NetopeerModule",
+ "frontend" : "frontend",
+ "backend" : "backend"
+ }
+}
diff --git a/www/config/config.component.css b/frontend/config/config.component.css
similarity index 100%
rename from www/config/config.component.css
rename to frontend/config/config.component.css
diff --git a/www/config/config.component.html b/frontend/config/config.component.html
similarity index 100%
rename from www/config/config.component.html
rename to frontend/config/config.component.html
diff --git a/www/config/config.component.ts b/frontend/config/config.component.ts
similarity index 100%
rename from www/config/config.component.ts
rename to frontend/config/config.component.ts
diff --git a/www/config/session.ts b/frontend/config/session.ts
similarity index 100%
rename from www/config/session.ts
rename to frontend/config/session.ts
diff --git a/www/config/sessions.service.ts b/frontend/config/sessions.service.ts
similarity index 100%
rename from www/config/sessions.service.ts
rename to frontend/config/sessions.service.ts
diff --git a/www/dashboard.component.html b/frontend/dashboard.component.html
similarity index 100%
rename from www/dashboard.component.html
rename to frontend/dashboard.component.html
diff --git a/www/dashboard.component.ts b/frontend/dashboard.component.ts
similarity index 100%
rename from www/dashboard.component.ts
rename to frontend/dashboard.component.ts
diff --git a/www/inventory/device.ts b/frontend/inventory/device.ts
similarity index 100%
rename from www/inventory/device.ts
rename to frontend/inventory/device.ts
diff --git a/www/inventory/devices.component.html b/frontend/inventory/devices.component.html
similarity index 100%
rename from www/inventory/devices.component.html
rename to frontend/inventory/devices.component.html
diff --git a/www/inventory/devices.component.ts b/frontend/inventory/devices.component.ts
similarity index 100%
rename from www/inventory/devices.component.ts
rename to frontend/inventory/devices.component.ts
diff --git a/www/inventory/devices.service.ts b/frontend/inventory/devices.service.ts
similarity index 100%
rename from www/inventory/devices.service.ts
rename to frontend/inventory/devices.service.ts
diff --git a/www/inventory/inventory.component.css b/frontend/inventory/inventory.component.css
similarity index 100%
rename from www/inventory/inventory.component.css
rename to frontend/inventory/inventory.component.css
diff --git a/www/inventory/inventory.component.html b/frontend/inventory/inventory.component.html
similarity index 100%
rename from www/inventory/inventory.component.html
rename to frontend/inventory/inventory.component.html
diff --git a/www/inventory/inventory.component.ts b/frontend/inventory/inventory.component.ts
similarity index 100%
rename from www/inventory/inventory.component.ts
rename to frontend/inventory/inventory.component.ts
diff --git a/www/inventory/schema.ts b/frontend/inventory/schema.ts
similarity index 100%
rename from www/inventory/schema.ts
rename to frontend/inventory/schema.ts
diff --git a/www/inventory/schemas.component.html b/frontend/inventory/schemas.component.html
similarity index 100%
rename from www/inventory/schemas.component.html
rename to frontend/inventory/schemas.component.html
diff --git a/www/inventory/schemas.component.ts b/frontend/inventory/schemas.component.ts
similarity index 100%
rename from www/inventory/schemas.component.ts
rename to frontend/inventory/schemas.component.ts
diff --git a/www/inventory/schemas.service.ts b/frontend/inventory/schemas.service.ts
similarity index 100%
rename from www/inventory/schemas.service.ts
rename to frontend/inventory/schemas.service.ts
diff --git a/www/monitoring/monitoring.component.html b/frontend/monitoring/monitoring.component.html
similarity index 100%
rename from www/monitoring/monitoring.component.html
rename to frontend/monitoring/monitoring.component.html
diff --git a/www/monitoring/monitoring.component.ts b/frontend/monitoring/monitoring.component.ts
similarity index 100%
rename from www/monitoring/monitoring.component.ts
rename to frontend/monitoring/monitoring.component.ts
diff --git a/www/netopeer.component.html b/frontend/netopeer.component.html
similarity index 100%
rename from www/netopeer.component.html
rename to frontend/netopeer.component.html
diff --git a/www/netopeer.component.ts b/frontend/netopeer.component.ts
similarity index 100%
rename from www/netopeer.component.ts
rename to frontend/netopeer.component.ts
diff --git a/www/netopeer.css b/frontend/netopeer.css
similarity index 100%
rename from www/netopeer.css
rename to frontend/netopeer.css
diff --git a/www/netopeer.module.ts b/frontend/netopeer.module.ts
similarity index 96%
rename from www/netopeer.module.ts
rename to frontend/netopeer.module.ts
index 7d87877..b97e9b6 100644
--- a/www/netopeer.module.ts
+++ b/frontend/netopeer.module.ts
@@ -19,7 +19,7 @@
import { MonitoringComponent } from './monitoring/monitoring.component';
import { PluginsComponent } from './plugins/plugins.component';
-import { SessionsService } from 'app/modules/netopeer/config/sessions.service'
+import { SessionsService } from './config/sessions.service'
const routes: Routes = [
diff --git a/www/plugins/plugins.component.html b/frontend/plugins/plugins.component.html
similarity index 100%
rename from www/plugins/plugins.component.html
rename to frontend/plugins/plugins.component.html
diff --git a/www/plugins/plugins.component.ts b/frontend/plugins/plugins.component.ts
similarity index 100%
rename from www/plugins/plugins.component.ts
rename to frontend/plugins/plugins.component.ts
diff --git a/www/yang/yang.component.html b/frontend/yang/yang.component.html
similarity index 100%
rename from www/yang/yang.component.html
rename to frontend/yang/yang.component.html
diff --git a/www/yang/yang.component.ts b/frontend/yang/yang.component.ts
similarity index 100%
rename from www/yang/yang.component.ts
rename to frontend/yang/yang.component.ts