diff --git a/frontend/src/App.vue b/frontend/src/App.vue
index e11e03d3d..f9cc4216f 100755
--- a/frontend/src/App.vue
+++ b/frontend/src/App.vue
@@ -32,6 +32,13 @@ export default {
components: {
ParticlesBg,
},
+ data() {
+ return {
+ session_id: null,
+ email: '',
+ language: 'en',
+ }
+ },
created() {
//console.log('xx', $cookies.get('gdd_lang'))
//console.log('%cWillkommen bei Gradido %cgreen text', 'font-weight:bold', 'color: green')
diff --git a/frontend/src/routes/routes.js b/frontend/src/routes/routes.js
index 887c23655..ecb3e7bba 100755
--- a/frontend/src/routes/routes.js
+++ b/frontend/src/routes/routes.js
@@ -2,7 +2,7 @@ import DashboardLayout from '@/views/Layout/DashboardLayout.vue'
import AuthLayoutGDD from '@/views/Layout/AuthLayout_gdd.vue'
import AuthLayout from '@/views/Layout/AuthLayout.vue'
-// import NotFound from '@/views/NotFoundPage.vue'
+import NotFound from '@/views/NotFoundPage.vue'
const routes = [
{
@@ -31,6 +31,11 @@ const routes = [
name: 'Explorer',
component: () => import('../views/Pages/Explorer.vue'),
},
+ {
+ path: '/icons',
+ name: 'Icons',
+ component: () => import('../views/Icons.vue'),
+ },
],
},
{
@@ -63,10 +68,9 @@ const routes = [
},
],
},
- ,
{
- path: '/',
- redirect: 'AdminOverview',
+ path: '/admin',
+ redirect: 'admin',
component: AuthLayout,
children: [
{
@@ -79,6 +83,7 @@ const routes = [
},
],
},
+ { path: '*', component: NotFound },
]
export default routes
diff --git a/frontend/src/routes/starterRouter.js b/frontend/src/routes/starterRouter.js
deleted file mode 100644
index 15cf360a9..000000000
--- a/frontend/src/routes/starterRouter.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import Vue from 'vue'
-import Router from 'vue-router'
-import DashboardLayout from '../views/Starter/SampleLayout.vue'
-import Starter from '../views/Starter/SamplePage.vue'
-
-Vue.use(Router)
-
-export default new Router({
- routes: [
- {
- path: '/',
- name: 'home',
- redirect: '/dashboard',
- component: DashboardLayout,
- children: [
- {
- path: 'dashboard',
- name: 'dashboard',
- components: { default: Starter },
- },
- ],
- },
- ],
- scrollBehavior: (to, from, savedPosition) => {
- if (savedPosition) {
- return savedPosition
- }
- if (to.hash) {
- return { selector: to.hash }
- }
- return { x: 0, y: 0 }
- },
-})
diff --git a/frontend/src/store/store.js b/frontend/src/store/store.js
index 4c5b190fa..cc65ad353 100644
--- a/frontend/src/store/store.js
+++ b/frontend/src/store/store.js
@@ -13,22 +13,11 @@ export const store = new Vuex.Store({
sizeDE: 'normal',
sizeGB: 'big',
loginfail: false,
- row_form: true,
- row_check: false,
- row_thx: false,
user: {
name: '',
balance: 0,
balance_gdt: 0,
},
- ajaxCreateData: {
- session_id: '',
- email: '',
- amount: 0,
- target_date: '',
- memo: '',
- auto_sign: true,
- },
transactions: [],
modals: false,
optionAxios: {
@@ -142,27 +131,6 @@ export const store = new Vuex.Store({
$cookies.remove('gdd_lang')
router.push('/Login')
},
- ajaxCreate: async ({ dispatch, state }) => {
- //console.log('action: ajaxCreate')
-
- state.ajaxCreateData.amount = state.ajaxCreateData.amount * 10000
-
- const result = await communityAPI.send(
- state.session_id,
- state.ajaxCreateData.email,
- state.ajaxCreateData.amount,
- state.ajaxCreateData.memo,
- )
- console.log(result)
-
- if (result.success) {
- console.log('send success')
- } else {
- console.log('send error')
- }
- return result
-
- },
ajaxListTransactions: async ({ commit, dispatch, state }) => {
// console.log('action: ajaxListTransactions', state.session_id)
// const result = await communityAPI.transactions(state.session_id)
diff --git a/frontend/src/views/GoogleMaps.vue b/frontend/src/views/GoogleMaps.vue
deleted file mode 100755
index 10302622d..000000000
--- a/frontend/src/views/GoogleMaps.vue
+++ /dev/null
@@ -1,169 +0,0 @@
-
-
GRADIDO
-Wallet
- -Anmelden
- -neues Mitglied anlegen
- -