diff --git a/src/boot/plugins.ts b/src/boot/plugins.ts
index f8b8d26..8725881 100644
--- a/src/boot/plugins.ts
+++ b/src/boot/plugins.ts
@@ -9,7 +9,7 @@ const config = {
// Do not change required Modules !!
requiredModules: ['User'],
// here you can import plugins.
- loadModules: []
+ loadModules: ['Balance']
};
// do not change anything here !!
diff --git a/src/plugins/balance/pages/Add.vue b/src/plugins/balance/pages/Add.vue
new file mode 100644
index 0000000..76a3a3a
--- /dev/null
+++ b/src/plugins/balance/pages/Add.vue
@@ -0,0 +1,12 @@
+
+
+ Add works
+
+
+
+
diff --git a/src/plugins/balance/pages/MainPage.vue b/src/plugins/balance/pages/MainPage.vue
new file mode 100644
index 0000000..5669371
--- /dev/null
+++ b/src/plugins/balance/pages/MainPage.vue
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/plugins/balance/plugin.ts b/src/plugins/balance/plugin.ts
new file mode 100644
index 0000000..cb5dd38
--- /dev/null
+++ b/src/plugins/balance/plugin.ts
@@ -0,0 +1,13 @@
+import {Module} from 'vuex';
+import {StateInterface} from "src/store";
+import mainRoutes from "./routes"
+import { FG_Plugin } from 'src/plugins';
+
+const plugin: FG_Plugin.Plugin = {
+ name: 'Balance',
+ mainRoutes,
+ requiredModules: ['User'],
+ version: '0.0.1',
+}
+
+export default plugin;
diff --git a/src/plugins/balance/routes/index.ts b/src/plugins/balance/routes/index.ts
new file mode 100644
index 0000000..2014716
--- /dev/null
+++ b/src/plugins/balance/routes/index.ts
@@ -0,0 +1,43 @@
+import {FG_Plugin} from 'src/plugins';
+
+const permissions = {
+// Show own and others balance
+ SHOW: "balance_show",
+ SHOW_OTHER: "balance_show_others",
+// Credit balance
+ ADD: "balance_add",
+// Debit balance
+ SUB: "balance_sub",
+// Send from to other
+ SEND: "balance_send",
+// Send from other to another
+ SEND_OTHER: "balance_send_others",
+// Can set limit for users
+ SET_LIMIT: "balance_set_limit",
+//Allow sending / sub while exceeding the set limit
+ EXCEED_LIMIT: "balance_exceed_limit"
+}
+
+const mainRoutes: FG_Plugin.PluginRouteConfig[] = [
+ {
+ title: 'Gerücht',
+ icon: 'mdi-cash-100',
+ path: 'balance',
+ name: 'balance',
+ component: () => import('../pages/MainPage.vue'),
+ meta: {permissions: ['user']},
+ children: [
+ {
+ title: 'Anschreiben',
+ icon: 'mdi-cash-100',
+ path: 'balance-add',
+ name: 'balance-add',
+ shortcut: true,
+ meta: {permissions: [permissions.ADD, permissions.SHOW]},
+ component: () => import('../pages/Add.vue')
+ }
+ ]
+ }
+]
+
+export default mainRoutes