mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-29 14:46:41 +08:00
feat(release): 网盘需要的路由和基本文件实现
This commit is contained in:
parent
b42db2ad9e
commit
2953fa8676
@ -164,7 +164,14 @@ const local: App.I18n.Schema = {
|
|||||||
500: 'Server Error',
|
500: 'Server Error',
|
||||||
'iframe-page': 'Iframe',
|
'iframe-page': 'Iframe',
|
||||||
home: 'Home',
|
home: 'Home',
|
||||||
pan: 'My Files'
|
pan: 'My Files',
|
||||||
|
share: 'Share',
|
||||||
|
share_me: 'Share to Me',
|
||||||
|
share_group: 'Share to Group',
|
||||||
|
share_public: 'Share to Public',
|
||||||
|
favorite: 'Favorite',
|
||||||
|
recently: 'Recently Visited',
|
||||||
|
recycle: 'Recycle Bin'
|
||||||
},
|
},
|
||||||
page: {
|
page: {
|
||||||
login: {
|
login: {
|
||||||
|
@ -164,7 +164,14 @@ const local: App.I18n.Schema = {
|
|||||||
500: '服务器错误',
|
500: '服务器错误',
|
||||||
'iframe-page': '外链页面',
|
'iframe-page': '外链页面',
|
||||||
home: '首页',
|
home: '首页',
|
||||||
pan: '我的文件'
|
pan: '我的文件',
|
||||||
|
share: '共享文件',
|
||||||
|
share_me: '共享给我的',
|
||||||
|
share_group: '群组共享',
|
||||||
|
share_public: '公开共享',
|
||||||
|
favorite: '我的收藏',
|
||||||
|
recently: '最近访问',
|
||||||
|
recycle: '回收站'
|
||||||
},
|
},
|
||||||
page: {
|
page: {
|
||||||
login: {
|
login: {
|
||||||
|
@ -20,6 +20,12 @@ export const views: Record<LastLevelRouteKey, RouteComponent | (() => Promise<Ro
|
|||||||
500: () => import("@/views/_builtin/500/index.vue"),
|
500: () => import("@/views/_builtin/500/index.vue"),
|
||||||
"iframe-page": () => import("@/views/_builtin/iframe-page/[url].vue"),
|
"iframe-page": () => import("@/views/_builtin/iframe-page/[url].vue"),
|
||||||
login: () => import("@/views/_builtin/login/index.vue"),
|
login: () => import("@/views/_builtin/login/index.vue"),
|
||||||
|
favorite: () => import("@/views/favorite/index.vue"),
|
||||||
home: () => import("@/views/home/index.vue"),
|
home: () => import("@/views/home/index.vue"),
|
||||||
pan: () => import("@/views/pan/index.vue"),
|
pan: () => import("@/views/pan/index.vue"),
|
||||||
|
recently: () => import("@/views/recently/index.vue"),
|
||||||
|
recycle: () => import("@/views/recycle/index.vue"),
|
||||||
|
share_group: () => import("@/views/share/group/index.vue"),
|
||||||
|
share_me: () => import("@/views/share/me/index.vue"),
|
||||||
|
share_public: () => import("@/views/share/public/index.vue"),
|
||||||
};
|
};
|
||||||
|
@ -39,6 +39,18 @@ export const generatedRoutes: GeneratedRoute[] = [
|
|||||||
hideInMenu: true
|
hideInMenu: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'favorite',
|
||||||
|
path: '/favorite',
|
||||||
|
component: 'layout.base$view.favorite',
|
||||||
|
meta: {
|
||||||
|
title: 'favorite',
|
||||||
|
i18nKey: 'route.favorite',
|
||||||
|
order: 3,
|
||||||
|
icon: 'clarity:favorite-line',
|
||||||
|
pageType: 'pan'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'home',
|
name: 'home',
|
||||||
path: '/home',
|
path: '/home',
|
||||||
@ -83,8 +95,80 @@ export const generatedRoutes: GeneratedRoute[] = [
|
|||||||
meta: {
|
meta: {
|
||||||
title: 'pan',
|
title: 'pan',
|
||||||
i18nKey: 'route.pan',
|
i18nKey: 'route.pan',
|
||||||
icon: 'lineicons:folder',
|
order: 1,
|
||||||
|
icon: 'carbon:folder',
|
||||||
pageType: 'pan'
|
pageType: 'pan'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'recently',
|
||||||
|
path: '/recently',
|
||||||
|
component: 'layout.base$view.recently',
|
||||||
|
meta: {
|
||||||
|
title: 'recently',
|
||||||
|
i18nKey: 'route.recently',
|
||||||
|
order: 4,
|
||||||
|
icon: 'carbon:recently-viewed',
|
||||||
|
pageType: 'pan'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'recycle',
|
||||||
|
path: '/recycle',
|
||||||
|
component: 'layout.base$view.recycle',
|
||||||
|
meta: {
|
||||||
|
title: 'recycle',
|
||||||
|
i18nKey: 'route.recycle',
|
||||||
|
order: 5,
|
||||||
|
icon: 'carbon:recycle',
|
||||||
|
pageType: 'pan'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'share',
|
||||||
|
path: '/share',
|
||||||
|
component: 'layout.base',
|
||||||
|
meta: {
|
||||||
|
title: 'share',
|
||||||
|
i18nKey: 'route.share',
|
||||||
|
order: 2,
|
||||||
|
icon: 'carbon:share',
|
||||||
|
pageType: 'pan'
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
name: 'share_group',
|
||||||
|
path: '/share/group',
|
||||||
|
component: 'view.share_group',
|
||||||
|
meta: {
|
||||||
|
title: 'share_group',
|
||||||
|
i18nKey: 'route.share_group',
|
||||||
|
order: 2,
|
||||||
|
icon: 'carbon:group'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'share_me',
|
||||||
|
path: '/share/me',
|
||||||
|
component: 'view.share_me',
|
||||||
|
meta: {
|
||||||
|
title: 'share_me',
|
||||||
|
i18nKey: 'route.share_me',
|
||||||
|
order: 1,
|
||||||
|
icon: 'streamline:information-desk-customer'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'share_public',
|
||||||
|
path: '/share/public',
|
||||||
|
component: 'view.share_public',
|
||||||
|
meta: {
|
||||||
|
title: 'share_public',
|
||||||
|
i18nKey: 'route.share_public',
|
||||||
|
order: 3,
|
||||||
|
icon: 'carbon:network-public'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -166,10 +166,17 @@ const routeMap: RouteMap = {
|
|||||||
"403": "/403",
|
"403": "/403",
|
||||||
"404": "/404",
|
"404": "/404",
|
||||||
"500": "/500",
|
"500": "/500",
|
||||||
|
"favorite": "/favorite",
|
||||||
"home": "/home",
|
"home": "/home",
|
||||||
"iframe-page": "/iframe-page/:url",
|
"iframe-page": "/iframe-page/:url",
|
||||||
"login": "/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?",
|
"login": "/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?",
|
||||||
"pan": "/pan"
|
"pan": "/pan",
|
||||||
|
"recently": "/recently",
|
||||||
|
"recycle": "/recycle",
|
||||||
|
"share": "/share",
|
||||||
|
"share_group": "/share/group",
|
||||||
|
"share_me": "/share/me",
|
||||||
|
"share_public": "/share/public"
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
17
src/typings/elegant-router.d.ts
vendored
17
src/typings/elegant-router.d.ts
vendored
@ -20,10 +20,17 @@ declare module "@elegant-router/types" {
|
|||||||
"403": "/403";
|
"403": "/403";
|
||||||
"404": "/404";
|
"404": "/404";
|
||||||
"500": "/500";
|
"500": "/500";
|
||||||
|
"favorite": "/favorite";
|
||||||
"home": "/home";
|
"home": "/home";
|
||||||
"iframe-page": "/iframe-page/:url";
|
"iframe-page": "/iframe-page/:url";
|
||||||
"login": "/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?";
|
"login": "/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?";
|
||||||
"pan": "/pan";
|
"pan": "/pan";
|
||||||
|
"recently": "/recently";
|
||||||
|
"recycle": "/recycle";
|
||||||
|
"share": "/share";
|
||||||
|
"share_group": "/share/group";
|
||||||
|
"share_me": "/share/me";
|
||||||
|
"share_public": "/share/public";
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -58,10 +65,14 @@ declare module "@elegant-router/types" {
|
|||||||
| "403"
|
| "403"
|
||||||
| "404"
|
| "404"
|
||||||
| "500"
|
| "500"
|
||||||
|
| "favorite"
|
||||||
| "home"
|
| "home"
|
||||||
| "iframe-page"
|
| "iframe-page"
|
||||||
| "login"
|
| "login"
|
||||||
| "pan"
|
| "pan"
|
||||||
|
| "recently"
|
||||||
|
| "recycle"
|
||||||
|
| "share"
|
||||||
>;
|
>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -83,8 +94,14 @@ declare module "@elegant-router/types" {
|
|||||||
| "500"
|
| "500"
|
||||||
| "iframe-page"
|
| "iframe-page"
|
||||||
| "login"
|
| "login"
|
||||||
|
| "favorite"
|
||||||
| "home"
|
| "home"
|
||||||
| "pan"
|
| "pan"
|
||||||
|
| "recently"
|
||||||
|
| "recycle"
|
||||||
|
| "share_group"
|
||||||
|
| "share_me"
|
||||||
|
| "share_public"
|
||||||
>;
|
>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
7
src/views/favorite/index.vue
Normal file
7
src/views/favorite/index.vue
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<script setup lang="ts"></script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div>网盘收藏夹</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped></style>
|
7
src/views/recently/index.vue
Normal file
7
src/views/recently/index.vue
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<script setup lang="ts"></script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div>最近访问</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped></style>
|
7
src/views/recycle/index.vue
Normal file
7
src/views/recycle/index.vue
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<script setup lang="ts"></script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div>网盘回收站</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped></style>
|
7
src/views/share/group/index.vue
Normal file
7
src/views/share/group/index.vue
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<script setup lang="ts"></script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div>群组共享</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped></style>
|
7
src/views/share/me/index.vue
Normal file
7
src/views/share/me/index.vue
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<script setup lang="ts"></script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div>共享给我的</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped></style>
|
7
src/views/share/public/index.vue
Normal file
7
src/views/share/public/index.vue
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<script setup lang="ts"></script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div>公共文件夹</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped></style>
|
Loading…
Reference in New Issue
Block a user