mirror of
https://github.com/silenty4ng/k5web
synced 2025-04-10 18:48:50 +00:00
Clean up unused code
This commit is contained in:
parent
bf7bf23454
commit
7e20df4b8f
7 changed files with 0 additions and 237 deletions
src/router
|
@ -15,14 +15,6 @@ const router = createRouter({
|
||||||
path: '/',
|
path: '/',
|
||||||
redirect: 'chirp/base',
|
redirect: 'chirp/base',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: '/login',
|
|
||||||
name: 'login',
|
|
||||||
component: () => import('@/views/login/index.vue'),
|
|
||||||
meta: {
|
|
||||||
requiresAuth: false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
...appRoutes,
|
...appRoutes,
|
||||||
REDIRECT_MAIN,
|
REDIRECT_MAIN,
|
||||||
SATLOC,
|
SATLOC,
|
||||||
|
|
|
@ -1,48 +0,0 @@
|
||||||
import { DEFAULT_LAYOUT } from '../base';
|
|
||||||
import { AppRouteRecordRaw } from '../types';
|
|
||||||
|
|
||||||
const EXCEPTION: AppRouteRecordRaw = {
|
|
||||||
path: '/exception',
|
|
||||||
name: 'exception',
|
|
||||||
component: DEFAULT_LAYOUT,
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.exception',
|
|
||||||
requiresAuth: true,
|
|
||||||
icon: 'icon-exclamation-circle',
|
|
||||||
order: 6,
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: '403',
|
|
||||||
name: '403',
|
|
||||||
component: () => import('@/views/exception/403/index.vue'),
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.exception.403',
|
|
||||||
requiresAuth: true,
|
|
||||||
roles: ['*'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '404',
|
|
||||||
name: '404',
|
|
||||||
component: () => import('@/views/exception/404/index.vue'),
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.exception.404',
|
|
||||||
requiresAuth: true,
|
|
||||||
roles: ['*'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '500',
|
|
||||||
name: '500',
|
|
||||||
component: () => import('@/views/exception/500/index.vue'),
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.exception.500',
|
|
||||||
requiresAuth: true,
|
|
||||||
roles: ['*'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|
||||||
// export default EXCEPTION;
|
|
|
@ -1,38 +0,0 @@
|
||||||
import { DEFAULT_LAYOUT } from '../base';
|
|
||||||
import { AppRouteRecordRaw } from '../types';
|
|
||||||
|
|
||||||
const FORM: AppRouteRecordRaw = {
|
|
||||||
path: '/form',
|
|
||||||
name: 'form',
|
|
||||||
component: DEFAULT_LAYOUT,
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.form',
|
|
||||||
icon: 'icon-settings',
|
|
||||||
requiresAuth: true,
|
|
||||||
order: 3,
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: 'step',
|
|
||||||
name: 'Step',
|
|
||||||
component: () => import('@/views/form/step/index.vue'),
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.form.step',
|
|
||||||
requiresAuth: true,
|
|
||||||
roles: ['*'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'group',
|
|
||||||
name: 'Group',
|
|
||||||
component: () => import('@/views/form/group/index.vue'),
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.form.group',
|
|
||||||
requiresAuth: true,
|
|
||||||
roles: ['*'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|
||||||
// export default FORM;
|
|
|
@ -1,28 +0,0 @@
|
||||||
import { DEFAULT_LAYOUT } from '../base';
|
|
||||||
import { AppRouteRecordRaw } from '../types';
|
|
||||||
|
|
||||||
const PROFILE: AppRouteRecordRaw = {
|
|
||||||
path: '/profile',
|
|
||||||
name: 'profile',
|
|
||||||
component: DEFAULT_LAYOUT,
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.profile',
|
|
||||||
requiresAuth: true,
|
|
||||||
icon: 'icon-file',
|
|
||||||
order: 4,
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: 'basic',
|
|
||||||
name: 'Basic',
|
|
||||||
component: () => import('@/views/profile/basic/index.vue'),
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.profile.basic',
|
|
||||||
requiresAuth: true,
|
|
||||||
roles: ['*'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|
||||||
// export default PROFILE;
|
|
|
@ -1,38 +0,0 @@
|
||||||
import { DEFAULT_LAYOUT } from '../base';
|
|
||||||
import { AppRouteRecordRaw } from '../types';
|
|
||||||
|
|
||||||
const RESULT: AppRouteRecordRaw = {
|
|
||||||
path: '/result',
|
|
||||||
name: 'result',
|
|
||||||
component: DEFAULT_LAYOUT,
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.result',
|
|
||||||
icon: 'icon-check-circle',
|
|
||||||
requiresAuth: true,
|
|
||||||
order: 5,
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: 'success',
|
|
||||||
name: 'Success',
|
|
||||||
component: () => import('@/views/result/success/index.vue'),
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.result.success',
|
|
||||||
requiresAuth: true,
|
|
||||||
roles: ['*'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'error',
|
|
||||||
name: 'Error',
|
|
||||||
component: () => import('@/views/result/error/index.vue'),
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.result.error',
|
|
||||||
requiresAuth: true,
|
|
||||||
roles: ['admin'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|
||||||
// export default RESULT;
|
|
|
@ -1,38 +0,0 @@
|
||||||
import { DEFAULT_LAYOUT } from '../base';
|
|
||||||
import { AppRouteRecordRaw } from '../types';
|
|
||||||
|
|
||||||
const USER: AppRouteRecordRaw = {
|
|
||||||
path: '/user',
|
|
||||||
name: 'user',
|
|
||||||
component: DEFAULT_LAYOUT,
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.user',
|
|
||||||
icon: 'icon-user',
|
|
||||||
requiresAuth: true,
|
|
||||||
order: 7,
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: 'info',
|
|
||||||
name: 'Info',
|
|
||||||
component: () => import('@/views/user/info/index.vue'),
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.user.info',
|
|
||||||
requiresAuth: true,
|
|
||||||
roles: ['*'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'setting',
|
|
||||||
name: 'Setting',
|
|
||||||
component: () => import('@/views/user/setting/index.vue'),
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.user.setting',
|
|
||||||
requiresAuth: true,
|
|
||||||
roles: ['*'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|
||||||
// export default USER;
|
|
|
@ -1,39 +0,0 @@
|
||||||
import { DEFAULT_LAYOUT } from '../base';
|
|
||||||
import { AppRouteRecordRaw } from '../types';
|
|
||||||
|
|
||||||
const VISUALIZATION: AppRouteRecordRaw = {
|
|
||||||
path: '/visualization',
|
|
||||||
name: 'visualization',
|
|
||||||
component: DEFAULT_LAYOUT,
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.visualization',
|
|
||||||
requiresAuth: true,
|
|
||||||
icon: 'icon-apps',
|
|
||||||
order: 1,
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: 'data-analysis',
|
|
||||||
name: 'DataAnalysis',
|
|
||||||
component: () => import('@/views/visualization/data-analysis/index.vue'),
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.visualization.dataAnalysis',
|
|
||||||
requiresAuth: true,
|
|
||||||
roles: ['*'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: 'multi-dimension-data-analysis',
|
|
||||||
name: 'MultiDimensionDataAnalysis',
|
|
||||||
component: () =>
|
|
||||||
import('@/views/visualization/multi-dimension-data-analysis/index.vue'),
|
|
||||||
meta: {
|
|
||||||
locale: 'menu.visualization.multiDimensionDataAnalysis',
|
|
||||||
requiresAuth: true,
|
|
||||||
roles: ['*'],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|
||||||
// export default VISUALIZATION;
|
|
Loading…
Add table
Reference in a new issue