@skyroc/scripts 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +508 -0
- package/dist/cli.mjs +78 -0
- package/dist/config-BKkdncJS.mjs +987 -0
- package/dist/index.mjs +14 -0
- package/package.json +83 -0
- package/templates/admin/.env +62 -0
- package/templates/admin/.env.prod +7 -0
- package/templates/admin/.env.test +7 -0
- package/templates/admin/.oxlintrc.json +6 -0
- package/templates/admin/README.md +508 -0
- package/templates/admin/index.html +14 -0
- package/templates/admin/package.json +105 -0
- package/templates/admin/public/favicon.svg +3 -0
- package/templates/admin/src/App.tsx +71 -0
- package/templates/admin/src/assets/audio/wechat-style-notification.wav +0 -0
- package/templates/admin/src/assets/imgs/skyroc.jpg +0 -0
- package/templates/admin/src/assets/svg-icon/activity.svg +1 -0
- package/templates/admin/src/assets/svg-icon/at-sign.svg +1 -0
- package/templates/admin/src/assets/svg-icon/avatar.svg +1 -0
- package/templates/admin/src/assets/svg-icon/banner.svg +1 -0
- package/templates/admin/src/assets/svg-icon/cast.svg +1 -0
- package/templates/admin/src/assets/svg-icon/chrome.svg +1 -0
- package/templates/admin/src/assets/svg-icon/copy.svg +1 -0
- package/templates/admin/src/assets/svg-icon/custom-icon.svg +1 -0
- package/templates/admin/src/assets/svg-icon/empty-data.svg +1 -0
- package/templates/admin/src/assets/svg-icon/error.svg +1 -0
- package/templates/admin/src/assets/svg-icon/expectation.svg +1 -0
- package/templates/admin/src/assets/svg-icon/heart.svg +1 -0
- package/templates/admin/src/assets/svg-icon/logo.svg +15 -0
- package/templates/admin/src/assets/svg-icon/network-error.svg +1 -0
- package/templates/admin/src/assets/svg-icon/no-icon.svg +1 -0
- package/templates/admin/src/assets/svg-icon/no-permission.svg +1 -0
- package/templates/admin/src/assets/svg-icon/not-found.svg +1 -0
- package/templates/admin/src/assets/svg-icon/service-error.svg +1 -0
- package/templates/admin/src/bootstrap.tsx +60 -0
- package/templates/admin/src/components/SkyrocAvatar.tsx +13 -0
- package/templates/admin/src/components/SystemLogo.tsx +7 -0
- package/templates/admin/src/config.ts +125 -0
- package/templates/admin/src/features/antd/AntdProvider.tsx +21 -0
- package/templates/admin/src/features/auth/components/UserAvatar.tsx +76 -0
- package/templates/admin/src/features/auth/use-auth-form-rules.ts +83 -0
- package/templates/admin/src/features/auth/use-auth.ts +96 -0
- package/templates/admin/src/features/auth/use-login.ts +72 -0
- package/templates/admin/src/features/effects/GlobalEffect.tsx +15 -0
- package/templates/admin/src/features/menus/dynamic-routes.ts +10 -0
- package/templates/admin/src/features/menus/extras.ts +3 -0
- package/templates/admin/src/features/menus/menu-category.ts +14 -0
- package/templates/admin/src/features/menus/menu-config.ts +5 -0
- package/templates/admin/src/features/router/RouterProvider.tsx +18 -0
- package/templates/admin/src/features/router/guard.ts +97 -0
- package/templates/admin/src/features/router/index.ts +52 -0
- package/templates/admin/src/features/router/routeTree.gen.ts +237 -0
- package/templates/admin/src/features/router/router-ref.ts +24 -0
- package/templates/admin/src/locales/antd.ts +8 -0
- package/templates/admin/src/locales/index.ts +22 -0
- package/templates/admin/src/locales/sync.ts +14 -0
- package/templates/admin/src/main.tsx +9 -0
- package/templates/admin/src/pages/(admin)/home/index.tsx +46 -0
- package/templates/admin/src/pages/(admin)/layout.tsx +44 -0
- package/templates/admin/src/pages/(auth)/login/index.tsx +102 -0
- package/templates/admin/src/pages/(auth)/login/layout.tsx +71 -0
- package/templates/admin/src/pages/(auth)/login-out.tsx +27 -0
- package/templates/admin/src/pages/(errors)/403.tsx +16 -0
- package/templates/admin/src/pages/(errors)/404.tsx +16 -0
- package/templates/admin/src/pages/(errors)/500.tsx +16 -0
- package/templates/admin/src/pages/__root.tsx +54 -0
- package/templates/admin/src/pages/error.tsx +19 -0
- package/templates/admin/src/pages/index.tsx +14 -0
- package/templates/admin/src/pages/loading.tsx +45 -0
- package/templates/admin/src/pages/not-found.tsx +9 -0
- package/templates/admin/src/plugins/app.tsx +47 -0
- package/templates/admin/src/plugins/assets.ts +4 -0
- package/templates/admin/src/plugins/index.ts +32 -0
- package/templates/admin/src/service/adapter.ts +63 -0
- package/templates/admin/src/service/api/auth/api.ts +31 -0
- package/templates/admin/src/service/api/auth/hooks.ts +28 -0
- package/templates/admin/src/service/api/auth/index.ts +10 -0
- package/templates/admin/src/service/api/auth/keys.ts +7 -0
- package/templates/admin/src/service/api/auth/urls.ts +7 -0
- package/templates/admin/src/service/api/index.ts +2 -0
- package/templates/admin/src/service/api/route/api.ts +7 -0
- package/templates/admin/src/service/api/route/hooks.ts +21 -0
- package/templates/admin/src/service/api/route/index.ts +10 -0
- package/templates/admin/src/service/api/route/keys.ts +3 -0
- package/templates/admin/src/service/api/route/urls.ts +5 -0
- package/templates/admin/src/service/queryClient.ts +13 -0
- package/templates/admin/src/service/request/index.ts +62 -0
- package/templates/admin/src/styles/scss/global.scss +1 -0
- package/templates/admin/src/styles/scss/scrollbar.scss +28 -0
- package/templates/admin/src/types/auto-imports.d.ts +186 -0
- package/templates/admin/src/types/global.d.ts +16 -0
- package/templates/admin/src/types/router.d.ts +14 -0
- package/templates/admin/src/types/storage.d.ts +17 -0
- package/templates/admin/src/types/vite-env.d.ts +117 -0
- package/templates/admin/src/utils/common.tsx +38 -0
- package/templates/admin/src/utils/icon.ts +9 -0
- package/templates/admin/src/utils/service.ts +75 -0
- package/templates/admin/src/utils/storage.ts +7 -0
- package/templates/admin/tsconfig.json +22 -0
- package/templates/admin/uno.config.ts +18 -0
- package/templates/admin/vite.config.ts +13 -0
- package/templates/admin-shell/i18n/atoms/lang.ts +20 -0
- package/templates/admin-shell/i18n/config/default.ts +11 -0
- package/templates/admin-shell/i18n/features/lang/LangEffect.tsx +25 -0
- package/templates/admin-shell/i18n/features/lang/LangSwitch.tsx +49 -0
- package/templates/admin-shell/i18n/hooks/use-lang.ts +47 -0
- package/templates/admin-shell/i18n/i18n.ts +116 -0
- package/templates/admin-shell/i18n/index.ts +23 -0
- package/templates/admin-shell/i18n/langs/en-us/common.json +49 -0
- package/templates/admin-shell/i18n/langs/en-us/datatable.json +8 -0
- package/templates/admin-shell/i18n/langs/en-us/dropdown.json +9 -0
- package/templates/admin-shell/i18n/langs/en-us/form.json +27 -0
- package/templates/admin-shell/i18n/langs/en-us/icon.json +13 -0
- package/templates/admin-shell/i18n/langs/en-us/notification.json +20 -0
- package/templates/admin-shell/i18n/langs/en-us/page.json +442 -0
- package/templates/admin-shell/i18n/langs/en-us/request.json +8 -0
- package/templates/admin-shell/i18n/langs/en-us/route.json +84 -0
- package/templates/admin-shell/i18n/langs/en-us/system.json +9 -0
- package/templates/admin-shell/i18n/langs/en-us/theme.json +173 -0
- package/templates/admin-shell/i18n/langs/index.ts +63 -0
- package/templates/admin-shell/i18n/langs/zh-cn/common.json +49 -0
- package/templates/admin-shell/i18n/langs/zh-cn/datatable.json +8 -0
- package/templates/admin-shell/i18n/langs/zh-cn/dropdown.json +9 -0
- package/templates/admin-shell/i18n/langs/zh-cn/form.json +27 -0
- package/templates/admin-shell/i18n/langs/zh-cn/icon.json +13 -0
- package/templates/admin-shell/i18n/langs/zh-cn/notification.json +20 -0
- package/templates/admin-shell/i18n/langs/zh-cn/page.json +442 -0
- package/templates/admin-shell/i18n/langs/zh-cn/request.json +8 -0
- package/templates/admin-shell/i18n/langs/zh-cn/route.json +84 -0
- package/templates/admin-shell/i18n/langs/zh-cn/system.json +9 -0
- package/templates/admin-shell/i18n/langs/zh-cn/theme.json +173 -0
- package/templates/admin-shell/i18n/types/i18n.ts +29 -0
- package/templates/admin-shell/i18n/types.ts +53 -0
- package/templates/admin-shell/i18n/utils/helpers.ts +18 -0
- package/templates/admin-shell/layouts/AdminLayout.tsx +161 -0
- package/templates/admin-shell/layouts/constant.ts +56 -0
- package/templates/admin-shell/layouts/context.tsx +101 -0
- package/templates/admin-shell/layouts/features/menus/MenuBadge.tsx +76 -0
- package/templates/admin-shell/layouts/features/menus/dynamic-routes.ts +146 -0
- package/templates/admin-shell/layouts/features/menus/menu-generator.tsx +444 -0
- package/templates/admin-shell/layouts/features/menus/menu-renderer.tsx +149 -0
- package/templates/admin-shell/layouts/features/menus/permissions.ts +28 -0
- package/templates/admin-shell/layouts/features/menus/use-menus.ts +98 -0
- package/templates/admin-shell/layouts/features/use-route.ts +30 -0
- package/templates/admin-shell/layouts/index.ts +44 -0
- package/templates/admin-shell/layouts/materials/index.ts +6 -0
- package/templates/admin-shell/layouts/materials/libs/admin-layout/index.module.css +63 -0
- package/templates/admin-shell/layouts/materials/libs/admin-layout/index.module.css.d.ts +18 -0
- package/templates/admin-shell/layouts/materials/libs/admin-layout/index.tsx +238 -0
- package/templates/admin-shell/layouts/materials/libs/admin-layout/shared.ts +67 -0
- package/templates/admin-shell/layouts/materials/libs/page-tab/ButtonTab.tsx +44 -0
- package/templates/admin-shell/layouts/materials/libs/page-tab/ChromeTab.tsx +54 -0
- package/templates/admin-shell/layouts/materials/libs/page-tab/ChromeTabBg.tsx +30 -0
- package/templates/admin-shell/layouts/materials/libs/page-tab/SliderTab.tsx +44 -0
- package/templates/admin-shell/layouts/materials/libs/page-tab/SvgClose.tsx +51 -0
- package/templates/admin-shell/layouts/materials/libs/page-tab/hook.ts +34 -0
- package/templates/admin-shell/layouts/materials/libs/page-tab/index.module.css +120 -0
- package/templates/admin-shell/layouts/materials/libs/page-tab/index.module.css.d.ts +18 -0
- package/templates/admin-shell/layouts/materials/libs/page-tab/index.tsx +76 -0
- package/templates/admin-shell/layouts/materials/libs/page-tab/shared.ts +32 -0
- package/templates/admin-shell/layouts/materials/types/index.ts +322 -0
- package/templates/admin-shell/layouts/modules/AdminContent.tsx +285 -0
- package/templates/admin-shell/layouts/modules/AdminFooter.tsx +13 -0
- package/templates/admin-shell/layouts/modules/AdminLogo.tsx +28 -0
- package/templates/admin-shell/layouts/modules/AdminSider.tsx +50 -0
- package/templates/admin-shell/layouts/modules/admin-header/AdminHeader.tsx +132 -0
- package/templates/admin-shell/layouts/modules/admin-header/components/Breadcrumb.tsx +62 -0
- package/templates/admin-shell/layouts/modules/admin-header/components/ThemeButton.tsx +24 -0
- package/templates/admin-shell/layouts/modules/admin-menu/AdminMenu.tsx +37 -0
- package/templates/admin-shell/layouts/modules/admin-menu/components/FirstLevelMenu.tsx +156 -0
- package/templates/admin-shell/layouts/modules/admin-menu/components/HorizontalMenu.tsx +88 -0
- package/templates/admin-shell/layouts/modules/admin-menu/components/MenuPortal.tsx +28 -0
- package/templates/admin-shell/layouts/modules/admin-menu/components/VerticalMenu.tsx +123 -0
- package/templates/admin-shell/layouts/modules/admin-menu/enum.ts +47 -0
- package/templates/admin-shell/layouts/modules/admin-menu/modules/Horizontal.tsx +22 -0
- package/templates/admin-shell/layouts/modules/admin-menu/modules/TopHybridHeaderFirst.tsx +15 -0
- package/templates/admin-shell/layouts/modules/admin-menu/modules/TopHybridSidebarFirst.tsx +18 -0
- package/templates/admin-shell/layouts/modules/admin-menu/modules/Vertical.tsx +14 -0
- package/templates/admin-shell/layouts/modules/admin-menu/modules/VerticalHybridHeaderFirst.tsx +18 -0
- package/templates/admin-shell/layouts/modules/admin-menu/modules/VerticalMix.tsx +132 -0
- package/templates/admin-shell/layouts/modules/admin-search/AdminSearch.tsx +36 -0
- package/templates/admin-shell/layouts/modules/admin-search/components/SearchFooter.tsx +38 -0
- package/templates/admin-shell/layouts/modules/admin-search/components/SearchModal.tsx +171 -0
- package/templates/admin-shell/layouts/modules/admin-search/components/SearchResult.tsx +43 -0
- package/templates/admin-shell/layouts/modules/admin-tab/AdminTab.tsx +125 -0
- package/templates/admin-shell/layouts/modules/admin-tab/components/TabContextMenu.tsx +107 -0
- package/templates/admin-shell/layouts/modules/admin-tab/hooks/useTabScroll.ts +86 -0
- package/templates/admin-shell/layouts/modules/shared/logo.ts +42 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/ThemeDrawer.tsx +68 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/components/AnimatedCollapse.tsx +36 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/components/AnimatedItem.tsx +35 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/components/LayoutModeCard.tsx +110 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/components/SettingItem.tsx +31 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/ConfigOperation.tsx +53 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/appearance/CustomPicker.tsx +105 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/appearance/ThemeColor.tsx +58 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/appearance/ThemeSchema.tsx +42 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/appearance/ThemeToken.tsx +44 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/appearance/index.tsx +23 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/general/GlobalSettings.tsx +57 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/general/ThemeGeneral.tsx +20 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/general/WatermarkSettings.tsx +103 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/layout/ContentSettings.tsx +100 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/layout/FooterSettings.tsx +71 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/layout/HeaderSettings.tsx +63 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/layout/LayoutMode.tsx +73 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/layout/SiderSettings.tsx +124 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/layout/TabSettings.tsx +95 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/layout/ThemeLayout.tsx +32 -0
- package/templates/admin-shell/layouts/modules/theme-drawer/modules/preset/ThemePreset.tsx +132 -0
- package/templates/admin-shell/layouts/options.tsx +79 -0
- package/templates/admin-shell/layouts/setup.ts +102 -0
- package/templates/admin-shell/layouts/state/AdminEffect.tsx +56 -0
- package/templates/admin-shell/layouts/state/AdminTabEffect.tsx +28 -0
- package/templates/admin-shell/layouts/state/index.ts +3 -0
- package/templates/admin-shell/layouts/state/menus/MenuToggler.tsx +53 -0
- package/templates/admin-shell/layouts/state/menus/use-admin-menu-badges.ts +46 -0
- package/templates/admin-shell/layouts/state/menus/use-admin-menus.tsx +164 -0
- package/templates/admin-shell/layouts/state/tabs/index.ts +1 -0
- package/templates/admin-shell/layouts/state/tabs/shared.tsx +148 -0
- package/templates/admin-shell/layouts/state/tabs/use-admin-tab.ts +377 -0
- package/templates/admin-shell/layouts/state/use-admin-state.ts +118 -0
- package/templates/admin-shell/layouts/types/router.d.ts +10 -0
- package/templates/admin-shell/layouts/types/storage.ts +18 -0
- package/templates/admin-shell/notification/NotificationButton.tsx +91 -0
- package/templates/admin-shell/notification/NotificationContext.ts +8 -0
- package/templates/admin-shell/notification/NotificationPanel.tsx +194 -0
- package/templates/admin-shell/notification/NotificationProvider.tsx +59 -0
- package/templates/admin-shell/notification/index.ts +12 -0
- package/templates/admin-shell/notification/mock.ts +59 -0
- package/templates/admin-shell/notification/notification-store.ts +438 -0
- package/templates/admin-shell/notification/notification.css +60 -0
- package/templates/admin-shell/notification/types.ts +104 -0
- package/templates/admin-shell/notification/use-notification.ts +51 -0
- package/templates/admin-shell/notification/useNotificationContext.ts +14 -0
- package/templates/admin-shell/runtime/app-update.ts +156 -0
- package/templates/admin-shell/runtime/dayjs.ts +20 -0
- package/templates/admin-shell/runtime/iconify.ts +17 -0
- package/templates/admin-shell/runtime/index.ts +10 -0
- package/templates/admin-shell/runtime/nprogress.ts +25 -0
- package/templates/admin-shell/runtime/plugins.ts +62 -0
- package/templates/admin-shell/styles/global.css +54 -0
- package/templates/admin-shell/styles/nprogress.css +85 -0
- package/templates/admin-shell/styles/reset.css +378 -0
- package/templates/admin-shell/theme/antd/AntdProvider.tsx +106 -0
- package/templates/admin-shell/theme/antd/index.ts +23 -0
- package/templates/admin-shell/theme/antd/shared.ts +80 -0
- package/templates/admin-shell/theme/antd/ui.ts +250 -0
- package/templates/admin-shell/theme/antd-algorithm/algorithm/dark/colors.ts +99 -0
- package/templates/admin-shell/theme/antd-algorithm/algorithm/dark/index.ts +87 -0
- package/templates/admin-shell/theme/antd-algorithm/algorithm/default/colors.ts +91 -0
- package/templates/admin-shell/theme/antd-algorithm/algorithm/default/index.ts +77 -0
- package/templates/admin-shell/theme/antd-algorithm/index.ts +80 -0
- package/templates/admin-shell/theme/antd-algorithm/seed/index.ts +41 -0
- package/templates/admin-shell/theme/antd-algorithm/shared/colorAlgorithm.ts +10 -0
- package/templates/admin-shell/theme/antd-algorithm/shared/genColorMapToken.ts +165 -0
- package/templates/admin-shell/theme/antd-algorithm/shared/genCommonMapToken.ts +23 -0
- package/templates/admin-shell/theme/antd-algorithm/shared/genControlHeight.ts +14 -0
- package/templates/admin-shell/theme/antd-algorithm/shared/genFontMapToken.ts +274 -0
- package/templates/admin-shell/theme/antd-algorithm/shared/genRadiusMapToken.ts +139 -0
- package/templates/admin-shell/theme/antd-algorithm/shared/genSizeMapToken.ts +114 -0
- package/templates/admin-shell/theme/antd-algorithm/types/index.ts +20 -0
- package/templates/admin-shell/theme/components/ThemeEffect.tsx +55 -0
- package/templates/admin-shell/theme/components/ThemeSchemaSegmented.tsx +27 -0
- package/templates/admin-shell/theme/components/ThemeSchemaSwitch.tsx +77 -0
- package/templates/admin-shell/theme/components/shared.ts +5 -0
- package/templates/admin-shell/theme/config/default.ts +108 -0
- package/templates/admin-shell/theme/config/index.ts +1 -0
- package/templates/admin-shell/theme/hooks/index.ts +2 -0
- package/templates/admin-shell/theme/hooks/use-theme.ts +244 -0
- package/templates/admin-shell/theme/index.ts +78 -0
- package/templates/admin-shell/theme/presets/azir.json +39 -0
- package/templates/admin-shell/theme/presets/compact.json +38 -0
- package/templates/admin-shell/theme/presets/dark.json +93 -0
- package/templates/admin-shell/theme/presets/default.json +95 -0
- package/templates/admin-shell/theme/presets/index.ts +29 -0
- package/templates/admin-shell/theme/presets/shadcn.json +99 -0
- package/templates/admin-shell/theme/setup.ts +115 -0
- package/templates/admin-shell/theme/types/index.ts +27 -0
- package/templates/admin-shell/theme/types/theme.d.ts +316 -0
- package/templates/admin-shell/theme/utils/dark-mode.ts +46 -0
- package/templates/admin-shell/theme/utils/filters.ts +20 -0
- package/templates/admin-shell/theme/utils/index.ts +3 -0
- package/templates/admin-shell/theme/utils/settings.ts +43 -0
- package/templates/admin-shell/types/api/auth.d.ts +148 -0
- package/templates/admin-shell/types/api/common.d.ts +54 -0
- package/templates/admin-shell/types/api/route.d.ts +104 -0
- package/templates/admin-shell/types/api/service.d.ts +51 -0
- package/templates/admin-shell/types/api/system-manage.d.ts +160 -0
- package/templates/admin-shell/types/app/common.d.ts +31 -0
- package/templates/admin-shell/types/app/global.d.ts +71 -0
- package/templates/admin-shell/types/app/menu.d.ts +57 -0
- package/templates/admin-shell/types/app/router.d.ts +201 -0
- package/templates/admin-shell/types/app/storage.d.ts +10 -0
- package/templates/admin-shell/types/app/union-key.d.ts +156 -0
- package/templates/admin-shell/types/locales/i18n.d.ts +135 -0
- package/templates/admin-shell/ui/antd/components/AppTree.tsx +62 -0
- package/templates/admin-shell/ui/antd/components/BeyondHiding.tsx +42 -0
- package/templates/admin-shell/ui/antd/components/ButtonIcon.tsx +123 -0
- package/templates/admin-shell/ui/antd/components/ButtonLink.tsx +30 -0
- package/templates/admin-shell/ui/antd/components/ErrorBoundary.tsx +45 -0
- package/templates/admin-shell/ui/antd/components/ExceptionBase.tsx +69 -0
- package/templates/admin-shell/ui/antd/components/FullScreen.tsx +33 -0
- package/templates/admin-shell/ui/antd/components/PinToggler.tsx +35 -0
- package/templates/admin-shell/ui/antd/components/ReloadButton.tsx +20 -0
- package/templates/admin-shell/ui/antd/components/index.ts +12 -0
- package/templates/admin-shell/ui/antd/components/styles/button-icon-animations.css +246 -0
- package/templates/admin-shell/ui/antd/index.ts +1 -0
- package/templates/admin-shell/ui/antd/styles.d.ts +1 -0
- package/templates/admin-shell/ui/compose/animate-feature.ts +5 -0
- package/templates/admin-shell/ui/compose/components/BetterScroll.tsx +51 -0
- package/templates/admin-shell/ui/compose/components/DarkModeContainer.tsx +22 -0
- package/templates/admin-shell/ui/compose/components/FlipText.tsx +41 -0
- package/templates/admin-shell/ui/compose/components/I18nLabel.tsx +18 -0
- package/templates/admin-shell/ui/compose/components/LazyAnimate.tsx +10 -0
- package/templates/admin-shell/ui/compose/components/LookForward.tsx +24 -0
- package/templates/admin-shell/ui/compose/components/NumberTicker.tsx +105 -0
- package/templates/admin-shell/ui/compose/components/Portal.tsx +74 -0
- package/templates/admin-shell/ui/compose/components/SvgIcon.tsx +39 -0
- package/templates/admin-shell/ui/compose/components/TypingAnimation.tsx +83 -0
- package/templates/admin-shell/ui/compose/components/WaveBg.tsx +56 -0
- package/templates/admin-shell/ui/compose/components/index.ts +11 -0
- package/templates/admin-shell/ui/compose/index.ts +2 -0
- package/templates/admin-shell/ui/compose/table/DragContent.tsx +239 -0
- package/templates/admin-shell/ui/compose/table/TableHeaderOperation.tsx +210 -0
- package/templates/admin-shell/ui/compose/table/hooks.ts +196 -0
- package/templates/admin-shell/ui/compose/table/index.ts +16 -0
- package/templates/admin-shell/ui/compose/table/types.ts +244 -0
- package/templates/admin-shell/ui/compose/table/use-table-operate.ts +136 -0
- package/templates/admin-shell/ui/compose/table/use-table-scroll.ts +49 -0
- package/templates/admin-shell/ui/compose/table/use-table.ts +303 -0
- package/templates/admin.meta.json +756 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
{
|
|
2
|
+
"themeDrawerTitle": "Theme Configuration",
|
|
3
|
+
"tabs": {
|
|
4
|
+
"appearance": "Appearance",
|
|
5
|
+
"layout": "Layout",
|
|
6
|
+
"general": "General",
|
|
7
|
+
"preset": "Preset"
|
|
8
|
+
},
|
|
9
|
+
"appearance": {
|
|
10
|
+
"themeSchema": {
|
|
11
|
+
"title": "Theme Schema",
|
|
12
|
+
"light": "Light",
|
|
13
|
+
"dark": "Dark",
|
|
14
|
+
"auto": "Follow System"
|
|
15
|
+
},
|
|
16
|
+
"grayscale": "Grayscale",
|
|
17
|
+
"isOnlyExpandCurrentParentMenu": "Only Expand Current Parent Menu",
|
|
18
|
+
"colourWeakness": "Colour Weakness",
|
|
19
|
+
"themeColor": {
|
|
20
|
+
"title": "Theme Color",
|
|
21
|
+
"primary": "Primary",
|
|
22
|
+
"info": "Info",
|
|
23
|
+
"success": "Success",
|
|
24
|
+
"warning": "Warning",
|
|
25
|
+
"error": "Error",
|
|
26
|
+
"followPrimary": "Follow Primary"
|
|
27
|
+
},
|
|
28
|
+
"themeBase": {
|
|
29
|
+
"title": "Theme Base",
|
|
30
|
+
"radius": "Radius",
|
|
31
|
+
"textSize": "Text Size"
|
|
32
|
+
},
|
|
33
|
+
"recommendColor": "Apply Recommended Color Algorithm",
|
|
34
|
+
"recommendColorDesc": "The recommended color algorithm refers to",
|
|
35
|
+
"preset": {
|
|
36
|
+
"title": "Theme Presets",
|
|
37
|
+
"apply": "Apply",
|
|
38
|
+
"applySuccess": "Preset applied successfully",
|
|
39
|
+
"default": {
|
|
40
|
+
"name": "Default Preset",
|
|
41
|
+
"desc": "Default theme preset with balanced settings"
|
|
42
|
+
},
|
|
43
|
+
"dark": {
|
|
44
|
+
"name": "Dark Preset",
|
|
45
|
+
"desc": "Dark theme preset for night time usage"
|
|
46
|
+
},
|
|
47
|
+
"compact": {
|
|
48
|
+
"name": "Compact Preset",
|
|
49
|
+
"desc": "Compact layout preset for small screens"
|
|
50
|
+
},
|
|
51
|
+
"azir": {
|
|
52
|
+
"name": "Azir's Preset",
|
|
53
|
+
"desc": "It is a cold and elegant preset that Azir likes"
|
|
54
|
+
},
|
|
55
|
+
"skyroc": {
|
|
56
|
+
"name": "Skyroc Preset",
|
|
57
|
+
"desc": "Professional theme with vibrant indigo primary color, inspired by Skyroc design"
|
|
58
|
+
},
|
|
59
|
+
"shadcn": {
|
|
60
|
+
"name": "Shadcn Preset",
|
|
61
|
+
"desc": "Modern and elegant theme inspired by shadcn/ui design system with neutral tones"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"layout": {
|
|
66
|
+
"layoutMode": {
|
|
67
|
+
"title": "Layout Mode",
|
|
68
|
+
"vertical": "Vertical Mode",
|
|
69
|
+
"horizontal": "Horizontal Mode",
|
|
70
|
+
"vertical-mix": "Vertical Mix Mode",
|
|
71
|
+
"vertical-hybrid-header-first": "Left Hybrid Header-First",
|
|
72
|
+
"top-hybrid-sidebar-first": "Top-Hybrid Sidebar-First",
|
|
73
|
+
"top-hybrid-header-first": "Top-Hybrid Header-First",
|
|
74
|
+
"vertical_detail": "Vertical menu layout, with the menu on the left and content on the right.",
|
|
75
|
+
"vertical-mix_detail": "Vertical mix-menu layout, with the primary menu on the dark left side and the secondary menu on the lighter left side.",
|
|
76
|
+
"vertical-hybrid-header-first_detail": "Left hybrid layout, with the primary menu at the top, the secondary menu on the dark left side, and the tertiary menu on the lighter left side.",
|
|
77
|
+
"horizontal_detail": "Horizontal menu layout, with the menu at the top and content below.",
|
|
78
|
+
"top-hybrid-sidebar-first_detail": "Top hybrid layout, with the primary menu on the left and the secondary menu at the top.",
|
|
79
|
+
"top-hybrid-header-first_detail": "Top hybrid layout, with the primary menu at the top and the secondary menu on the left."
|
|
80
|
+
},
|
|
81
|
+
"tab": {
|
|
82
|
+
"title": "Tab Settings",
|
|
83
|
+
"visible": "Tab Visible",
|
|
84
|
+
"cache": "Tag Bar Info Cache",
|
|
85
|
+
"cacheTip": "One-click to open/close global keepalive",
|
|
86
|
+
"height": "Tab Height",
|
|
87
|
+
"mode": {
|
|
88
|
+
"title": "Tab Mode",
|
|
89
|
+
"slider": "Slider",
|
|
90
|
+
"chrome": "Chrome",
|
|
91
|
+
"button": "Button"
|
|
92
|
+
},
|
|
93
|
+
"closeByMiddleClick": "Close Tab by Middle Click",
|
|
94
|
+
"closeByMiddleClickTip": "Enable closing tabs by clicking with the middle mouse button"
|
|
95
|
+
},
|
|
96
|
+
"header": {
|
|
97
|
+
"title": "Header Settings",
|
|
98
|
+
"height": "Header Height",
|
|
99
|
+
"breadcrumb": {
|
|
100
|
+
"visible": "Breadcrumb Visible",
|
|
101
|
+
"showIcon": "Breadcrumb Icon Visible"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"sider": {
|
|
105
|
+
"title": "Sider Settings",
|
|
106
|
+
"inverted": "Dark Sider",
|
|
107
|
+
"width": "Sider Width",
|
|
108
|
+
"collapsedWidth": "Sider Collapsed Width",
|
|
109
|
+
"mixWidth": "Mix Sider Width",
|
|
110
|
+
"mixCollapsedWidth": "Mix Sider Collapse Width",
|
|
111
|
+
"mixChildMenuWidth": "Mix Child Menu Width",
|
|
112
|
+
"autoSelectFirstMenu": "Auto Select First Submenu",
|
|
113
|
+
"autoSelectFirstMenuTip": "When a first-level menu is clicked, the first submenu is automatically selected and navigated to the deepest level"
|
|
114
|
+
},
|
|
115
|
+
"footer": {
|
|
116
|
+
"title": "Footer Settings",
|
|
117
|
+
"visible": "Footer Visible",
|
|
118
|
+
"fixed": "Fixed Footer",
|
|
119
|
+
"height": "Footer Height",
|
|
120
|
+
"right": "Right Footer"
|
|
121
|
+
},
|
|
122
|
+
"content": {
|
|
123
|
+
"title": "Content Area Settings",
|
|
124
|
+
"scrollMode": {
|
|
125
|
+
"title": "Scroll Mode",
|
|
126
|
+
"tip": "The theme scroll only scrolls the main part, the outer scroll can carry the header and footer together",
|
|
127
|
+
"wrapper": "Wrapper",
|
|
128
|
+
"content": "Content"
|
|
129
|
+
},
|
|
130
|
+
"page": {
|
|
131
|
+
"animate": "Page Animate",
|
|
132
|
+
"mode": {
|
|
133
|
+
"title": "Page Animate Mode",
|
|
134
|
+
"fade": "Fade",
|
|
135
|
+
"fade-slide": "Slide",
|
|
136
|
+
"fade-bottom": "Fade Zoom",
|
|
137
|
+
"fade-scale": "Fade Scale",
|
|
138
|
+
"zoom-fade": "Zoom Fade",
|
|
139
|
+
"zoom-out": "Zoom Out",
|
|
140
|
+
"none": "None"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"fixedHeaderAndTab": "Fixed Header And Tab"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"general": {
|
|
147
|
+
"title": "General Settings",
|
|
148
|
+
"watermark": {
|
|
149
|
+
"title": "Watermark Settings",
|
|
150
|
+
"visible": "Watermark Full Screen Visible",
|
|
151
|
+
"text": "Custom Watermark Text",
|
|
152
|
+
"enableUserName": "Enable User Name Watermark",
|
|
153
|
+
"enableCustomText": "Enable Custom Watermark Text",
|
|
154
|
+
"enableTime": "Show Current Time",
|
|
155
|
+
"timeFormat": "Time Format"
|
|
156
|
+
},
|
|
157
|
+
"multilingual": {
|
|
158
|
+
"title": "Multilingual Settings",
|
|
159
|
+
"visible": "Display multilingual button"
|
|
160
|
+
},
|
|
161
|
+
"globalSearch": {
|
|
162
|
+
"title": "Global Search Settings",
|
|
163
|
+
"visible": "Display GlobalSearch button"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"configOperation": {
|
|
167
|
+
"copyConfig": "Copy Config",
|
|
168
|
+
"copyFailedMsg": "Copy Failed",
|
|
169
|
+
"copySuccessMsg": "Copy Success, Please replace the variable \"themeSettings\" in \"src/theme/settings.ts\"",
|
|
170
|
+
"resetConfig": "Reset Config",
|
|
171
|
+
"resetSuccessMsg": "Reset Success"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { ResourceLanguage } from 'i18next';
|
|
2
|
+
|
|
3
|
+
import enUSCommon from './en-us/common.json';
|
|
4
|
+
import enUSDatatable from './en-us/datatable.json';
|
|
5
|
+
import enUSDropdown from './en-us/dropdown.json';
|
|
6
|
+
import enUSForm from './en-us/form.json';
|
|
7
|
+
import enUSIcon from './en-us/icon.json';
|
|
8
|
+
import enUSNotification from './en-us/notification.json';
|
|
9
|
+
import enUSPage from './en-us/page.json';
|
|
10
|
+
import enUSRequest from './en-us/request.json';
|
|
11
|
+
import enUSRoute from './en-us/route.json';
|
|
12
|
+
import enUSSystem from './en-us/system.json';
|
|
13
|
+
import enUSTheme from './en-us/theme.json';
|
|
14
|
+
import zhCNCommon from './zh-cn/common.json';
|
|
15
|
+
import zhCNDatatable from './zh-cn/datatable.json';
|
|
16
|
+
import zhCNDropdown from './zh-cn/dropdown.json';
|
|
17
|
+
import zhCNForm from './zh-cn/form.json';
|
|
18
|
+
import zhCNIcon from './zh-cn/icon.json';
|
|
19
|
+
import zhCNNotification from './zh-cn/notification.json';
|
|
20
|
+
import zhCNPage from './zh-cn/page.json';
|
|
21
|
+
import zhCNRequest from './zh-cn/request.json';
|
|
22
|
+
import zhCNRoute from './zh-cn/route.json';
|
|
23
|
+
import zhCNSystem from './zh-cn/system.json';
|
|
24
|
+
import zhCNTheme from './zh-cn/theme.json';
|
|
25
|
+
|
|
26
|
+
import type { LangType } from '../types';
|
|
27
|
+
|
|
28
|
+
const enUS = {
|
|
29
|
+
common: enUSCommon,
|
|
30
|
+
datatable: enUSDatatable,
|
|
31
|
+
dropdown: enUSDropdown,
|
|
32
|
+
form: enUSForm,
|
|
33
|
+
icon: enUSIcon,
|
|
34
|
+
notification: enUSNotification,
|
|
35
|
+
page: enUSPage,
|
|
36
|
+
request: enUSRequest,
|
|
37
|
+
route: enUSRoute,
|
|
38
|
+
system: enUSSystem,
|
|
39
|
+
theme: enUSTheme
|
|
40
|
+
} satisfies ResourceLanguage;
|
|
41
|
+
|
|
42
|
+
const zhCN = {
|
|
43
|
+
common: zhCNCommon,
|
|
44
|
+
datatable: zhCNDatatable,
|
|
45
|
+
dropdown: zhCNDropdown,
|
|
46
|
+
form: zhCNForm,
|
|
47
|
+
icon: zhCNIcon,
|
|
48
|
+
notification: zhCNNotification,
|
|
49
|
+
page: zhCNPage,
|
|
50
|
+
request: zhCNRequest,
|
|
51
|
+
route: zhCNRoute,
|
|
52
|
+
system: zhCNSystem,
|
|
53
|
+
theme: zhCNTheme
|
|
54
|
+
} satisfies ResourceLanguage;
|
|
55
|
+
|
|
56
|
+
export type AdminLocaleMessages = typeof zhCN;
|
|
57
|
+
|
|
58
|
+
export const localeResources: Record<LangType, ResourceLanguage> = {
|
|
59
|
+
'en-US': enUS,
|
|
60
|
+
'zh-CN': zhCN
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export default localeResources;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"action": "操作",
|
|
3
|
+
"add": "新增",
|
|
4
|
+
"addSuccess": "添加成功",
|
|
5
|
+
"backToHome": "返回首页",
|
|
6
|
+
"batchDelete": "批量删除",
|
|
7
|
+
"cancel": "取消",
|
|
8
|
+
"check": "勾选",
|
|
9
|
+
"close": "关闭",
|
|
10
|
+
"columnSetting": "列设置",
|
|
11
|
+
"config": "配置",
|
|
12
|
+
"confirm": "确认",
|
|
13
|
+
"confirmDelete": "确认删除吗?",
|
|
14
|
+
"createTime": "创建时间",
|
|
15
|
+
"delete": "删除",
|
|
16
|
+
"deleteSuccess": "删除成功",
|
|
17
|
+
"detail": "详情",
|
|
18
|
+
"edit": "编辑",
|
|
19
|
+
"error": "错误",
|
|
20
|
+
"errorHint": "出错了,请稍后再试",
|
|
21
|
+
"expandColumn": "展开列",
|
|
22
|
+
"index": "序号",
|
|
23
|
+
"keywordSearch": "请输入关键词搜索",
|
|
24
|
+
"logout": "退出登录",
|
|
25
|
+
"logoutConfirm": "确认退出登录吗?",
|
|
26
|
+
"lookForward": "敬请期待",
|
|
27
|
+
"modify": "修改",
|
|
28
|
+
"modifySuccess": "修改成功",
|
|
29
|
+
"noData": "无数据",
|
|
30
|
+
"operate": "操作",
|
|
31
|
+
"pleaseCheckValue": "请检查输入的值是否合法",
|
|
32
|
+
"refresh": "刷新",
|
|
33
|
+
"reset": "重置",
|
|
34
|
+
"search": "搜索",
|
|
35
|
+
"selectAll": "全选",
|
|
36
|
+
"switch": "切换",
|
|
37
|
+
"tip": "提示",
|
|
38
|
+
"trigger": "触发",
|
|
39
|
+
"tryAlign": "刷新重试",
|
|
40
|
+
"update": "更新",
|
|
41
|
+
"updateTime": "更新时间",
|
|
42
|
+
"updateSuccess": "更新成功",
|
|
43
|
+
"userCenter": "个人中心",
|
|
44
|
+
"warning": "警告",
|
|
45
|
+
"yesOrNo": {
|
|
46
|
+
"no": "否",
|
|
47
|
+
"yes": "是"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"code": {
|
|
3
|
+
"invalid": "验证码格式不正确",
|
|
4
|
+
"required": "请输入验证码"
|
|
5
|
+
},
|
|
6
|
+
"confirmPwd": {
|
|
7
|
+
"invalid": "两次输入密码不一致",
|
|
8
|
+
"required": "请输入确认密码"
|
|
9
|
+
},
|
|
10
|
+
"email": {
|
|
11
|
+
"invalid": "邮箱格式不正确",
|
|
12
|
+
"required": "请输入邮箱"
|
|
13
|
+
},
|
|
14
|
+
"phone": {
|
|
15
|
+
"invalid": "手机号格式不正确",
|
|
16
|
+
"required": "请输入手机号"
|
|
17
|
+
},
|
|
18
|
+
"pwd": {
|
|
19
|
+
"invalid": "密码格式不正确,6-18位字符,包含字母、数字、下划线",
|
|
20
|
+
"required": "请输入密码"
|
|
21
|
+
},
|
|
22
|
+
"required": "不能为空",
|
|
23
|
+
"userName": {
|
|
24
|
+
"invalid": "用户名格式不正确",
|
|
25
|
+
"required": "请输入用户名"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"all": "全部",
|
|
3
|
+
"browser": "浏览器通知",
|
|
4
|
+
"clearAll": "清空全部",
|
|
5
|
+
"clearConfirm": "确定清空所有通知吗?",
|
|
6
|
+
"doNotDisturb": "勿扰模式",
|
|
7
|
+
"empty": "暂无通知",
|
|
8
|
+
"markAllRead": "全部已读",
|
|
9
|
+
"message": "消息",
|
|
10
|
+
"priority": {
|
|
11
|
+
"high": "高优先级",
|
|
12
|
+
"urgent": "紧急"
|
|
13
|
+
},
|
|
14
|
+
"reminder": "通知提醒",
|
|
15
|
+
"sound": "通知声音",
|
|
16
|
+
"system": "系统",
|
|
17
|
+
"title": "通知中心",
|
|
18
|
+
"unread": "未读",
|
|
19
|
+
"viewAll": "查看全部通知"
|
|
20
|
+
}
|