This is an automated email from the ASF dual-hosted git repository. liubao pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/servicecomb-fence.git
commit 55902dec43e6021f06d09aa618228f4b86582413 Author: liubao <[email protected]> AuthorDate: Thu Aug 15 20:24:08 2024 +0800 remove unused pages --- admin-website/src/main/web/src/locale/en-US.ts | 7 --- admin-website/src/main/web/src/locale/zh-CN.ts | 7 --- .../web/src/router/routes/modules/exception.ts | 53 ---------------------- .../src/main/web/src/views/exception/403/index.vue | 18 -------- .../web/src/views/exception/403/locale/en-US.ts | 8 ---- .../web/src/views/exception/403/locale/zh-CN.ts | 6 --- .../src/main/web/src/views/exception/404/index.vue | 18 -------- .../web/src/views/exception/404/locale/en-US.ts | 8 ---- .../web/src/views/exception/404/locale/zh-CN.ts | 7 --- .../src/main/web/src/views/exception/500/index.vue | 18 -------- .../web/src/views/exception/500/locale/en-US.ts | 7 --- .../web/src/views/exception/500/locale/zh-CN.ts | 6 --- .../src/main/web/src/views/exception/index.vue | 5 -- 13 files changed, 168 deletions(-) diff --git a/admin-website/src/main/web/src/locale/en-US.ts b/admin-website/src/main/web/src/locale/en-US.ts index 93559fa..db75a69 100644 --- a/admin-website/src/main/web/src/locale/en-US.ts +++ b/admin-website/src/main/web/src/locale/en-US.ts @@ -6,10 +6,6 @@ import localeDetailForm from '@/views/profile/detail/locale/en-US'; import localeSuccess from '@/views/result/success/locale/en-US'; import localeError from '@/views/result/error/locale/en-US'; -import locale403 from '@/views/exception/403/locale/en-US'; -import locale404 from '@/views/exception/404/locale/en-US'; -import locale500 from '@/views/exception/500/locale/en-US'; - import localeUserInfo from '@/views/user/info/locale/en-US'; import localeUserSetting from '@/views/user/setting/locale/en-US'; @@ -45,9 +41,6 @@ export default { ...localeLogin, ...localeSuccess, ...localeError, - ...locale403, - ...locale404, - ...locale500, ...localeUserInfo, ...localeUserSetting, ...localeDetailForm, diff --git a/admin-website/src/main/web/src/locale/zh-CN.ts b/admin-website/src/main/web/src/locale/zh-CN.ts index 8a1e4c9..c17fdeb 100644 --- a/admin-website/src/main/web/src/locale/zh-CN.ts +++ b/admin-website/src/main/web/src/locale/zh-CN.ts @@ -6,10 +6,6 @@ import localeDetailForm from '@/views/profile/detail/locale/zh-CN'; import localeSuccess from '@/views/result/success/locale/zh-CN'; import localeError from '@/views/result/error/locale/zh-CN'; -import locale403 from '@/views/exception/403/locale/zh-CN'; -import locale404 from '@/views/exception/404/locale/zh-CN'; -import locale500 from '@/views/exception/500/locale/zh-CN'; - import localeUserInfo from '@/views/user/info/locale/zh-CN'; import localeUserSetting from '@/views/user/setting/locale/zh-CN'; @@ -45,9 +41,6 @@ export default { ...localeLogin, ...localeSuccess, ...localeError, - ...locale403, - ...locale404, - ...locale500, ...localeUserInfo, ...localeUserSetting, ...localeDetailForm, diff --git a/admin-website/src/main/web/src/router/routes/modules/exception.ts b/admin-website/src/main/web/src/router/routes/modules/exception.ts deleted file mode 100644 index 1ad4965..0000000 --- a/admin-website/src/main/web/src/router/routes/modules/exception.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { RoleType } from '@/types/roleType'; - -export default { - path: 'exception', - name: 'Exception', - id: 'Exception', - label: 'Exception', - component: () => import('@/views/exception/index.vue'), - meta: { - locale: 'menu.exception', - requiresAuth: true, - order: 6, - roles: [RoleType.admin, RoleType.user], - }, - children: [ - { - path: '403', - name: '403', - id: '403', - label: '403', - component: () => import('@/views/exception/403/index.vue'), - meta: { - locale: 'menu.exception.403', - requiresAuth: true, - roles: [RoleType.admin], - }, - }, - { - path: '404', - name: '404', - id: '404', - label: '404', - component: () => import('@/views/exception/404/index.vue'), - meta: { - locale: 'menu.exception.404', - requiresAuth: true, - roles: [RoleType.admin, RoleType.user], - }, - }, - { - path: '500', - name: '500', - id: '500', - label: '500', - component: () => import('@/views/exception/500/index.vue'), - meta: { - locale: 'menu.exception.500', - requiresAuth: true, - roles: [RoleType.admin, RoleType.user], - }, - }, - ], -}; diff --git a/admin-website/src/main/web/src/views/exception/403/index.vue b/admin-website/src/main/web/src/views/exception/403/index.vue deleted file mode 100644 index fa0bfd8..0000000 --- a/admin-website/src/main/web/src/views/exception/403/index.vue +++ /dev/null @@ -1,18 +0,0 @@ -<template> - <div class="container"> - <Breadcrumb :items="['menu.exception', 'menu.exception.403']" /> - <div class="content"> - <div class="content-main"> - <img src="@/assets/images/403.png" alt="403" class="image" /> - <h3 class="tip">{{ $t('exception.result.403.description') }}</h3> - <span>{{ $t('exception.result.permissions.403') }}</span> - </div> - </div> - </div> -</template> - -<script lang="ts" setup></script> - -<style scoped lang="less"> - @import '@/assets/style/exception.less'; /* 引入公共样式 */ -</style> diff --git a/admin-website/src/main/web/src/views/exception/403/locale/en-US.ts b/admin-website/src/main/web/src/views/exception/403/locale/en-US.ts deleted file mode 100644 index f4f6077..0000000 --- a/admin-website/src/main/web/src/views/exception/403/locale/en-US.ts +++ /dev/null @@ -1,8 +0,0 @@ -export default { - 'menu.exception.403': '403', - 'exception.result.403.description': - 'Access to this resource on the server is denied.', - 'exception.result.403.back': 'Back', - 'exception.result.permissions.403': - 'Contact the administrator to apply for the permission.。', -}; diff --git a/admin-website/src/main/web/src/views/exception/403/locale/zh-CN.ts b/admin-website/src/main/web/src/views/exception/403/locale/zh-CN.ts deleted file mode 100644 index 7e040d0..0000000 --- a/admin-website/src/main/web/src/views/exception/403/locale/zh-CN.ts +++ /dev/null @@ -1,6 +0,0 @@ -export default { - 'menu.exception.403': '403', - 'exception.result.403.description': '对不起,您没有访问该资源的权限', - 'exception.result.403.back': '返回', - 'exception.result.permissions.403': '请联系管理员,申请权限。', -}; diff --git a/admin-website/src/main/web/src/views/exception/404/index.vue b/admin-website/src/main/web/src/views/exception/404/index.vue deleted file mode 100644 index fd93c87..0000000 --- a/admin-website/src/main/web/src/views/exception/404/index.vue +++ /dev/null @@ -1,18 +0,0 @@ -<template> - <div class="container"> - <Breadcrumb :items="['menu.exception', 'menu.exception.404']" /> - <div class="content"> - <div class="content-main"> - <img src="@/assets/images/404.png" alt="404" class="image" /> - <h3 class="tip">{{ $t('exception.result.404.description') }}</h3> - <span>{{ $t('exception.result.permissions.404') }}</span> - </div> - </div> - </div> -</template> - -<script lang="ts" setup></script> - -<style scoped lang="less"> - @import '@/assets/style/exception.less'; /* 引入公共样式 */ -</style> diff --git a/admin-website/src/main/web/src/views/exception/404/locale/en-US.ts b/admin-website/src/main/web/src/views/exception/404/locale/en-US.ts deleted file mode 100644 index a47433d..0000000 --- a/admin-website/src/main/web/src/views/exception/404/locale/en-US.ts +++ /dev/null @@ -1,8 +0,0 @@ -export default { - 'menu.exception.404': '404', - 'exception.result.404.description': 'Whoops, this page is gone.', - 'exception.result.404.retry': 'Retry', - 'exception.result.404.back': 'Back', - 'exception.result.permissions.404': - 'Check the network connection and try to refresh the page.', -}; diff --git a/admin-website/src/main/web/src/views/exception/404/locale/zh-CN.ts b/admin-website/src/main/web/src/views/exception/404/locale/zh-CN.ts deleted file mode 100644 index 283bbfb..0000000 --- a/admin-website/src/main/web/src/views/exception/404/locale/zh-CN.ts +++ /dev/null @@ -1,7 +0,0 @@ -export default { - 'menu.exception.404': '404', - 'exception.result.404.description': '抱歉,页面不见了~', - 'exception.result.404.retry': '重试', - 'exception.result.404.back': '返回', - 'exception.result.permissions.404': '请查看网络连接情况,尝试刷新页面', -}; diff --git a/admin-website/src/main/web/src/views/exception/500/index.vue b/admin-website/src/main/web/src/views/exception/500/index.vue deleted file mode 100644 index 68b223d..0000000 --- a/admin-website/src/main/web/src/views/exception/500/index.vue +++ /dev/null @@ -1,18 +0,0 @@ -<template> - <div class="container"> - <Breadcrumb :items="['menu.exception', 'menu.exception.500']" /> - <div class="content"> - <div class="content-main"> - <img src="@/assets/images/500.png" alt="404" class="image" /> - <h3 class="tip">{{ $t('exception.result.500.description') }}</h3> - <span>{{ $t('exception.result.permissions.500') }}</span> - </div> - </div> - </div> -</template> - -<script lang="ts" setup></script> - -<style scoped lang="less"> - @import '@/assets/style/exception.less'; /* 引入公共样式 */ -</style> diff --git a/admin-website/src/main/web/src/views/exception/500/locale/en-US.ts b/admin-website/src/main/web/src/views/exception/500/locale/en-US.ts deleted file mode 100644 index 533f104..0000000 --- a/admin-website/src/main/web/src/views/exception/500/locale/en-US.ts +++ /dev/null @@ -1,7 +0,0 @@ -export default { - 'menu.exception.500': '500', - 'exception.result.500.description': 'Internal server error', - 'exception.result.500.back': 'Back', - 'exception.result.permissions.500': - 'Check the network connection and try to refresh the page.', -}; diff --git a/admin-website/src/main/web/src/views/exception/500/locale/zh-CN.ts b/admin-website/src/main/web/src/views/exception/500/locale/zh-CN.ts deleted file mode 100644 index a65f3fd..0000000 --- a/admin-website/src/main/web/src/views/exception/500/locale/zh-CN.ts +++ /dev/null @@ -1,6 +0,0 @@ -export default { - 'menu.exception.500': '500', - 'exception.result.500.description': '抱歉,服务器出了点问题~', - 'exception.result.500.back': '返回', - 'exception.result.permissions.500': '请查看网络连接情况,尝试刷新页面', -}; diff --git a/admin-website/src/main/web/src/views/exception/index.vue b/admin-website/src/main/web/src/views/exception/index.vue deleted file mode 100644 index 6c71efd..0000000 --- a/admin-website/src/main/web/src/views/exception/index.vue +++ /dev/null @@ -1,5 +0,0 @@ -<template> - <router-view /> -</template> - -<script lang="ts" setup></script>
