Skip to content
Snippets Groups Projects
Commit 01b8ef76 authored by heikkkk's avatar heikkkk
Browse files

refactor: change names

parent 91e71aa4
No related branches found
No related tags found
1 merge request!76Refactor/folder structure
This commit is part of merge request !76. Comments created here will be created in the context of that merge request.
...@@ -3,7 +3,6 @@ import { createRouter, createWebHistory } from 'vue-router'; ...@@ -3,7 +3,6 @@ import { createRouter, createWebHistory } from 'vue-router';
import LoginView from '../views/Authentication/LoginView.vue'; import LoginView from '../views/Authentication/LoginView.vue';
import { useUserInfoStore } from '@/stores/UserStore'; import { useUserInfoStore } from '@/stores/UserStore';
import UserProfileView from "@/views/User/UserProfileView.vue"; import UserProfileView from "@/views/User/UserProfileView.vue";
import SignUp from '@/components/SignUp/SignUp.vue'
import UpdateUserView from "@/views/UpdateUser/UpdateUserView.vue"; import UpdateUserView from "@/views/UpdateUser/UpdateUserView.vue";
import RedirectView from '@/views/RedirectView.vue'; import RedirectView from '@/views/RedirectView.vue';
...@@ -29,11 +28,6 @@ const routes = [ ...@@ -29,11 +28,6 @@ const routes = [
name: 'leaderboard', name: 'leaderboard',
component: () => import('@/views/LeaderboardView.vue'), component: () => import('@/views/LeaderboardView.vue'),
}, },
{
path: 'test',
name: 'test',
component: () => import('@/views/TestView.vue'),
},
{ {
path: 'profile', path: 'profile',
name: 'profile', name: 'profile',
...@@ -47,32 +41,32 @@ const routes = [ ...@@ -47,32 +41,32 @@ const routes = [
{ {
path: '/settings', path: '/settings',
name: 'settings', name: 'settings',
component: () => import('@/views/SettingsView.vue'), component: () => import('@/views/Settings/SettingsView.vue'),
children: [ children: [
{ {
path: '/settings/account', path: '/settings/account',
name: 'account', name: 'account',
component: () => import('@/views/Settings/SettingsAccountView.vue'), component: () => import('@/components/Settings/SettingsAccount.vue'),
}, },
{ {
path: '/settings/profile', path: '/settings/profile',
name: 'profilesettings', name: 'profilesettings',
component: () => import('@/views/Settings/SettingsProfileView.vue'), component: () => import('@/components/Settings/SettingsProfile.vue'),
}, },
{ {
path: '/settings/security', path: '/settings/security',
name: 'security', name: 'security',
component: () => import('@/views/Settings/SettingsSecurityView.vue'), component: () => import('@/components/Settings/SettingsSecurity.vue'),
}, },
{ {
path: '/settings/notification', path: '/settings/notification',
name: 'notification', name: 'notification',
component: () => import('@/views/Settings/SettingsNotificationView.vue'), component: () => import('@/components/Settings/SettingsNotification.vue'),
}, },
{ {
path: '/settings/bank', path: '/settings/bank',
name: 'bank', name: 'bank',
component: () => import('@/views/Settings/SettingsBankView.vue'), component: () => import('@/components/Settings/SettingsBank.vue'),
}, },
] ]
}, },
...@@ -118,12 +112,6 @@ const routes = [ ...@@ -118,12 +112,6 @@ const routes = [
name: 'add-friend', name: 'add-friend',
component: () => import('@/views/User/UserAddFriend.vue'), component: () => import('@/views/User/UserAddFriend.vue'),
}, },
{
path: 'admin',
name: 'admin',
component: () => import('@/views/TestView.vue'),
meta: { requiresAdmin: true },
},
{ {
path: 'unauthorized', path: 'unauthorized',
name: 'unauthorized', name: 'unauthorized',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment