@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,756 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dependencies": {
|
|
3
|
+
"@skyroc/axios": "^2.2.0",
|
|
4
|
+
"@skyroc/color": "^2.6.0",
|
|
5
|
+
"@skyroc/core-state": "^1.0.0",
|
|
6
|
+
"@skyroc/hooks": "^1.0.0",
|
|
7
|
+
"@skyroc/logger": "^1.0.0",
|
|
8
|
+
"@skyroc/service": "^1.0.0",
|
|
9
|
+
"@skyroc/utils": "^4.0.0",
|
|
10
|
+
"@skyroc/web-admin-devtools": "^0.1.0",
|
|
11
|
+
"@skyroc/web-ui": "^0.1.3",
|
|
12
|
+
"@tanstack/react-query": "^5.90.12",
|
|
13
|
+
"@tanstack/react-router": "^1.140.0",
|
|
14
|
+
"ahooks": "^3.9.6",
|
|
15
|
+
"antd": "6.5.3",
|
|
16
|
+
"clsx": "^2.1.1",
|
|
17
|
+
"dayjs": "^1.11.19",
|
|
18
|
+
"defu": "^6.1.4",
|
|
19
|
+
"i18next": "25.7.2",
|
|
20
|
+
"jotai": "^2.16.0",
|
|
21
|
+
"motion": "^12.23.26",
|
|
22
|
+
"nprogress": "^0.2.0",
|
|
23
|
+
"react": "19.1.0",
|
|
24
|
+
"react-dom": "19.1.0",
|
|
25
|
+
"react-error-boundary": "6.0.0",
|
|
26
|
+
"react-i18next": "16.4.0",
|
|
27
|
+
"zod": "^4.1.13"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@iconify/json": "^2.2.416",
|
|
31
|
+
"@iconify/react": "^6.0.2",
|
|
32
|
+
"@iconify/types": "^2.0.0",
|
|
33
|
+
"@sa/uno-config": "^1.0.0",
|
|
34
|
+
"@skyroc/scripts": "^2.5.0",
|
|
35
|
+
"@skyroc/web-admin-vite": "^0.1.0",
|
|
36
|
+
"@svgr/core": "^8.1.0",
|
|
37
|
+
"@svgr/plugin-jsx": "^8.1.0",
|
|
38
|
+
"@types/node": "^24.10.2",
|
|
39
|
+
"@types/nprogress": "^0.2.3",
|
|
40
|
+
"@types/react": "^19.2.7",
|
|
41
|
+
"@types/react-dom": "^19.2.3",
|
|
42
|
+
"@unocss/eslint-config": "^66.5.10",
|
|
43
|
+
"@unocss/preset-uno": "^66.5.10",
|
|
44
|
+
"@unocss/preset-wind3": "^66.5.10",
|
|
45
|
+
"@unocss/transformer-directives": "^66.5.10",
|
|
46
|
+
"@unocss/transformer-variant-group": "^66.5.10",
|
|
47
|
+
"eslint-plugin-react": "^7.37.5",
|
|
48
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
49
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
50
|
+
"eslint-plugin-sort": "^4.0.0",
|
|
51
|
+
"fast-glob": "^3.3.3",
|
|
52
|
+
"oxlint": "^1.60.0",
|
|
53
|
+
"sass": "^1.96.0",
|
|
54
|
+
"tsx": "^4.21.0",
|
|
55
|
+
"typescript": "^6.0.3",
|
|
56
|
+
"unocss": "^66.5.11",
|
|
57
|
+
"vite": "^8.0.14"
|
|
58
|
+
},
|
|
59
|
+
"oxlintConfig": {
|
|
60
|
+
"plugins": [
|
|
61
|
+
"node",
|
|
62
|
+
"import",
|
|
63
|
+
"unicorn",
|
|
64
|
+
"typescript",
|
|
65
|
+
"eslint",
|
|
66
|
+
"oxc",
|
|
67
|
+
"vitest",
|
|
68
|
+
"react"
|
|
69
|
+
],
|
|
70
|
+
"jsPlugins": [
|
|
71
|
+
"eslint-plugin-sort"
|
|
72
|
+
],
|
|
73
|
+
"categories": {
|
|
74
|
+
"correctness": "off",
|
|
75
|
+
"suspicious": "error"
|
|
76
|
+
},
|
|
77
|
+
"env": {
|
|
78
|
+
"builtin": true,
|
|
79
|
+
"browser": true,
|
|
80
|
+
"es2022": true,
|
|
81
|
+
"node": true
|
|
82
|
+
},
|
|
83
|
+
"globals": {
|
|
84
|
+
"AudioWorkletGlobalScope": "readonly",
|
|
85
|
+
"AudioWorkletProcessor": "readonly",
|
|
86
|
+
"currentFrame": "readonly",
|
|
87
|
+
"currentTime": "readonly",
|
|
88
|
+
"registerProcessor": "readonly",
|
|
89
|
+
"sampleRate": "readonly",
|
|
90
|
+
"WorkletGlobalScope": "readonly"
|
|
91
|
+
},
|
|
92
|
+
"ignorePatterns": [
|
|
93
|
+
"**/node_modules/",
|
|
94
|
+
"**/.turbo",
|
|
95
|
+
"**/*.log",
|
|
96
|
+
"**/.next",
|
|
97
|
+
"**/dist",
|
|
98
|
+
"**/dist-ssr",
|
|
99
|
+
"**/*.local",
|
|
100
|
+
"**/.cache",
|
|
101
|
+
"server/dist",
|
|
102
|
+
"public/dist",
|
|
103
|
+
"**/.idea",
|
|
104
|
+
"**/*.suo",
|
|
105
|
+
"**/*.ntvs*",
|
|
106
|
+
"**/*.njsproj",
|
|
107
|
+
"**/*.sln",
|
|
108
|
+
"**/*.sw?",
|
|
109
|
+
"**/.temp",
|
|
110
|
+
"**/yarn.lock",
|
|
111
|
+
"**/package-lock.json",
|
|
112
|
+
"**/coverage",
|
|
113
|
+
"**/.DS_Store",
|
|
114
|
+
"**/*.",
|
|
115
|
+
"**/*.pem",
|
|
116
|
+
"**/.expo/",
|
|
117
|
+
"**/dist/",
|
|
118
|
+
"**/web-build/",
|
|
119
|
+
"**/expo-env.d.ts",
|
|
120
|
+
"**/.kotlin/",
|
|
121
|
+
"**/*.orig.*",
|
|
122
|
+
"**/*.jks",
|
|
123
|
+
"**/*.p8",
|
|
124
|
+
"**/*.p12",
|
|
125
|
+
"**/*.key",
|
|
126
|
+
"**/*.mobileprovision",
|
|
127
|
+
"**/.metro-health-check*",
|
|
128
|
+
"**/npm-debug.*",
|
|
129
|
+
"**/yarn-debug.*",
|
|
130
|
+
"**/yarn-error.*",
|
|
131
|
+
"**/.tanstack",
|
|
132
|
+
"**/ios/",
|
|
133
|
+
"**/android/",
|
|
134
|
+
"**/node_modules",
|
|
135
|
+
"**/pnpm-lock.yaml",
|
|
136
|
+
"**/bun.lockb",
|
|
137
|
+
"**/output",
|
|
138
|
+
"**/temp",
|
|
139
|
+
"**/tmp",
|
|
140
|
+
"**/.tmp",
|
|
141
|
+
"**/.history",
|
|
142
|
+
"**/.vitepress/cache",
|
|
143
|
+
"**/.nuxt",
|
|
144
|
+
"**/.vercel",
|
|
145
|
+
"**/.changeset",
|
|
146
|
+
"**/.output",
|
|
147
|
+
"**/.vite-inspect",
|
|
148
|
+
"**/CHANGELOG*.md",
|
|
149
|
+
"**/*.min.*",
|
|
150
|
+
"**/LICENSE*",
|
|
151
|
+
"**/__snapshots__",
|
|
152
|
+
"**/auto-import?(s).d.ts",
|
|
153
|
+
"**/components.d.ts",
|
|
154
|
+
"**/uniwind-types.d.ts",
|
|
155
|
+
"**/.github/workflows/*.yml"
|
|
156
|
+
],
|
|
157
|
+
"rules": {
|
|
158
|
+
"sort/destructuring-properties": "warn",
|
|
159
|
+
"sort/exports": [
|
|
160
|
+
"warn",
|
|
161
|
+
{
|
|
162
|
+
"groups": [
|
|
163
|
+
{
|
|
164
|
+
"type": "default",
|
|
165
|
+
"order": 50
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"type": "sourceless",
|
|
169
|
+
"order": 40
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"regex": "^\\.+\\/",
|
|
173
|
+
"order": 30
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"type": "dependency",
|
|
177
|
+
"order": 10
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"type": "other",
|
|
181
|
+
"order": 20
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"sort/export-members": "warn",
|
|
187
|
+
"sort/import-members": [
|
|
188
|
+
"error",
|
|
189
|
+
{
|
|
190
|
+
"caseSensitive": true,
|
|
191
|
+
"natural": true
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"sort/string-enums": [
|
|
195
|
+
"error",
|
|
196
|
+
{
|
|
197
|
+
"caseSensitive": false,
|
|
198
|
+
"natural": true
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"sort/string-unions": [
|
|
202
|
+
"error",
|
|
203
|
+
{
|
|
204
|
+
"caseSensitive": false,
|
|
205
|
+
"natural": true
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"sort/type-properties": [
|
|
209
|
+
"warn",
|
|
210
|
+
{
|
|
211
|
+
"caseSensitive": false,
|
|
212
|
+
"natural": true
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"accessor-pairs": [
|
|
216
|
+
"error",
|
|
217
|
+
{
|
|
218
|
+
"enforceForClassMembers": true,
|
|
219
|
+
"setWithoutGet": true
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"array-callback-return": "error",
|
|
223
|
+
"arrow-body-style": "off",
|
|
224
|
+
"block-scoped-var": "error",
|
|
225
|
+
"class-methods-use-this": "error",
|
|
226
|
+
"complexity": "error",
|
|
227
|
+
"constructor-super": "error",
|
|
228
|
+
"curly": "off",
|
|
229
|
+
"default-case": "error",
|
|
230
|
+
"default-case-last": "error",
|
|
231
|
+
"default-param-last": "error",
|
|
232
|
+
"eqeqeq": "error",
|
|
233
|
+
"for-direction": "error",
|
|
234
|
+
"func-names": "error",
|
|
235
|
+
"grouped-accessor-pairs": "error",
|
|
236
|
+
"guard-for-in": "error",
|
|
237
|
+
"max-depth": "error",
|
|
238
|
+
"max-nested-callbacks": "error",
|
|
239
|
+
"max-params": "error",
|
|
240
|
+
"new-cap": [
|
|
241
|
+
"error",
|
|
242
|
+
{
|
|
243
|
+
"newIsCap": true,
|
|
244
|
+
"capIsNew": false,
|
|
245
|
+
"properties": true
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"no-alert": "error",
|
|
249
|
+
"no-array-constructor": "error",
|
|
250
|
+
"no-async-promise-executor": "error",
|
|
251
|
+
"no-await-in-loop": "error",
|
|
252
|
+
"no-bitwise": "error",
|
|
253
|
+
"no-caller": "error",
|
|
254
|
+
"no-case-declarations": "error",
|
|
255
|
+
"no-class-assign": "error",
|
|
256
|
+
"no-compare-neg-zero": "error",
|
|
257
|
+
"no-cond-assign": "error",
|
|
258
|
+
"no-const-assign": "error",
|
|
259
|
+
"no-constant-binary-expression": "error",
|
|
260
|
+
"no-constant-condition": "error",
|
|
261
|
+
"no-constructor-return": "error",
|
|
262
|
+
"no-continue": "error",
|
|
263
|
+
"no-control-regex": "error",
|
|
264
|
+
"no-debugger": "error",
|
|
265
|
+
"no-delete-var": "error",
|
|
266
|
+
"no-div-regex": "error",
|
|
267
|
+
"no-dupe-class-members": "error",
|
|
268
|
+
"no-dupe-else-if": "error",
|
|
269
|
+
"no-dupe-keys": "error",
|
|
270
|
+
"no-duplicate-case": "error",
|
|
271
|
+
"no-else-return": "error",
|
|
272
|
+
"no-empty": [
|
|
273
|
+
"error",
|
|
274
|
+
{
|
|
275
|
+
"allowEmptyCatch": true
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"no-empty-character-class": "error",
|
|
279
|
+
"no-empty-pattern": "error",
|
|
280
|
+
"no-empty-static-block": "error",
|
|
281
|
+
"no-eq-null": "error",
|
|
282
|
+
"no-eval": "error",
|
|
283
|
+
"no-ex-assign": "error",
|
|
284
|
+
"no-extend-native": "error",
|
|
285
|
+
"no-extra-bind": "error",
|
|
286
|
+
"no-extra-boolean-cast": "error",
|
|
287
|
+
"no-extra-label": "error",
|
|
288
|
+
"no-fallthrough": "error",
|
|
289
|
+
"no-func-assign": "error",
|
|
290
|
+
"no-global-assign": "error",
|
|
291
|
+
"no-implicit-coercion": "error",
|
|
292
|
+
"no-import-assign": "error",
|
|
293
|
+
"no-inner-declarations": "error",
|
|
294
|
+
"no-invalid-regexp": "error",
|
|
295
|
+
"no-irregular-whitespace": "error",
|
|
296
|
+
"no-iterator": "error",
|
|
297
|
+
"no-label-var": "error",
|
|
298
|
+
"no-labels": [
|
|
299
|
+
"error",
|
|
300
|
+
{
|
|
301
|
+
"allowLoop": false,
|
|
302
|
+
"allowSwitch": false
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"no-lone-blocks": "error",
|
|
306
|
+
"no-lonely-if": "error",
|
|
307
|
+
"no-loop-func": "error",
|
|
308
|
+
"no-loss-of-precision": "error",
|
|
309
|
+
"no-misleading-character-class": "error",
|
|
310
|
+
"no-multi-assign": "error",
|
|
311
|
+
"no-multi-str": "error",
|
|
312
|
+
"no-nested-ternary": "error",
|
|
313
|
+
"no-new": "error",
|
|
314
|
+
"no-new-func": "error",
|
|
315
|
+
"no-new-native-nonconstructor": "error",
|
|
316
|
+
"no-new-wrappers": "error",
|
|
317
|
+
"no-nonoctal-decimal-escape": "error",
|
|
318
|
+
"no-obj-calls": "error",
|
|
319
|
+
"no-object-constructor": "error",
|
|
320
|
+
"no-param-reassign": "error",
|
|
321
|
+
"no-plusplus": "error",
|
|
322
|
+
"no-promise-executor-return": "error",
|
|
323
|
+
"no-proto": "error",
|
|
324
|
+
"no-prototype-builtins": "error",
|
|
325
|
+
"no-redeclare": [
|
|
326
|
+
"error",
|
|
327
|
+
{
|
|
328
|
+
"builtinGlobals": false
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"no-regex-spaces": "error",
|
|
332
|
+
"no-restricted-globals": [
|
|
333
|
+
"error",
|
|
334
|
+
{
|
|
335
|
+
"message": "Use `globalThis` instead.",
|
|
336
|
+
"name": "global"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"message": "Use `globalThis` instead.",
|
|
340
|
+
"name": "self"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"no-restricted-imports": "error",
|
|
344
|
+
"no-return-assign": "error",
|
|
345
|
+
"no-script-url": "error",
|
|
346
|
+
"no-self-assign": [
|
|
347
|
+
"error",
|
|
348
|
+
{
|
|
349
|
+
"props": true
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
"no-self-compare": "error",
|
|
353
|
+
"no-sequences": "error",
|
|
354
|
+
"no-setter-return": "error",
|
|
355
|
+
"no-shadow": "error",
|
|
356
|
+
"no-shadow-restricted-names": "error",
|
|
357
|
+
"no-sparse-arrays": "error",
|
|
358
|
+
"no-template-curly-in-string": "error",
|
|
359
|
+
"no-this-before-super": "error",
|
|
360
|
+
"no-throw-literal": "error",
|
|
361
|
+
"no-unassigned-vars": "error",
|
|
362
|
+
"no-unexpected-multiline": "error",
|
|
363
|
+
"no-unmodified-loop-condition": "error",
|
|
364
|
+
"no-unneeded-ternary": [
|
|
365
|
+
"error",
|
|
366
|
+
{
|
|
367
|
+
"defaultAssignment": false
|
|
368
|
+
}
|
|
369
|
+
],
|
|
370
|
+
"no-unsafe-finally": "error",
|
|
371
|
+
"no-unsafe-negation": "error",
|
|
372
|
+
"no-unsafe-optional-chaining": "error",
|
|
373
|
+
"no-unused-expressions": [
|
|
374
|
+
"error",
|
|
375
|
+
{
|
|
376
|
+
"allowShortCircuit": true,
|
|
377
|
+
"allowTaggedTemplates": true,
|
|
378
|
+
"allowTernary": true
|
|
379
|
+
}
|
|
380
|
+
],
|
|
381
|
+
"no-unused-labels": "error",
|
|
382
|
+
"no-unused-private-class-members": "error",
|
|
383
|
+
"no-unused-vars": [
|
|
384
|
+
"error",
|
|
385
|
+
{
|
|
386
|
+
"vars": "all",
|
|
387
|
+
"args": "all",
|
|
388
|
+
"ignoreRestSiblings": false,
|
|
389
|
+
"varsIgnorePattern": "^_",
|
|
390
|
+
"argsIgnorePattern": "^_"
|
|
391
|
+
}
|
|
392
|
+
],
|
|
393
|
+
"no-use-before-define": [
|
|
394
|
+
"error",
|
|
395
|
+
{
|
|
396
|
+
"functions": false,
|
|
397
|
+
"classes": false,
|
|
398
|
+
"variables": true
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
"no-useless-backreference": "error",
|
|
402
|
+
"no-useless-call": "error",
|
|
403
|
+
"no-useless-catch": "error",
|
|
404
|
+
"no-useless-computed-key": "error",
|
|
405
|
+
"no-useless-concat": "error",
|
|
406
|
+
"no-useless-constructor": "error",
|
|
407
|
+
"no-useless-escape": "error",
|
|
408
|
+
"no-useless-rename": "error",
|
|
409
|
+
"no-useless-return": "error",
|
|
410
|
+
"no-var": "error",
|
|
411
|
+
"no-void": "error",
|
|
412
|
+
"no-warning-comments": "error",
|
|
413
|
+
"no-with": "error",
|
|
414
|
+
"object-shorthand": [
|
|
415
|
+
"error",
|
|
416
|
+
"always",
|
|
417
|
+
{
|
|
418
|
+
"ignoreConstructors": false,
|
|
419
|
+
"avoidQuotes": true
|
|
420
|
+
}
|
|
421
|
+
],
|
|
422
|
+
"operator-assignment": "error",
|
|
423
|
+
"prefer-const": [
|
|
424
|
+
"error",
|
|
425
|
+
{
|
|
426
|
+
"destructuring": "all",
|
|
427
|
+
"ignoreReadBeforeAssign": true
|
|
428
|
+
}
|
|
429
|
+
],
|
|
430
|
+
"prefer-exponentiation-operator": "error",
|
|
431
|
+
"prefer-numeric-literals": "error",
|
|
432
|
+
"prefer-object-has-own": "error",
|
|
433
|
+
"prefer-object-spread": "error",
|
|
434
|
+
"prefer-promise-reject-errors": "error",
|
|
435
|
+
"prefer-rest-params": "error",
|
|
436
|
+
"prefer-spread": "error",
|
|
437
|
+
"prefer-template": "error",
|
|
438
|
+
"preserve-caught-error": "error",
|
|
439
|
+
"radix": "error",
|
|
440
|
+
"require-yield": "error",
|
|
441
|
+
"sort-vars": "error",
|
|
442
|
+
"symbol-description": "error",
|
|
443
|
+
"unicode-bom": [
|
|
444
|
+
"error",
|
|
445
|
+
"never"
|
|
446
|
+
],
|
|
447
|
+
"use-isnan": "error",
|
|
448
|
+
"valid-typeof": "error",
|
|
449
|
+
"vars-on-top": "error",
|
|
450
|
+
"yoda": "error",
|
|
451
|
+
"import/first": "error",
|
|
452
|
+
"import/no-duplicates": "error",
|
|
453
|
+
"import/no-mutable-exports": "error",
|
|
454
|
+
"import/no-named-default": "error",
|
|
455
|
+
"import/no-self-import": "error",
|
|
456
|
+
"import/no-webpack-loader-syntax": "error",
|
|
457
|
+
"unicorn/error-message": "error",
|
|
458
|
+
"unicorn/escape-case": "error",
|
|
459
|
+
"unicorn/no-instanceof-array": "error",
|
|
460
|
+
"unicorn/no-new-array": "error",
|
|
461
|
+
"unicorn/no-new-buffer": "error",
|
|
462
|
+
"unicorn/number-literal-case": "error",
|
|
463
|
+
"unicorn/prefer-dom-node-text-content": "error",
|
|
464
|
+
"unicorn/prefer-includes": "error",
|
|
465
|
+
"unicorn/prefer-node-protocol": "error",
|
|
466
|
+
"unicorn/prefer-number-properties": "error",
|
|
467
|
+
"unicorn/prefer-string-starts-ends-with": "error",
|
|
468
|
+
"unicorn/prefer-type-error": "error",
|
|
469
|
+
"unicorn/throw-new-error": "error",
|
|
470
|
+
"node/handle-callback-err": [
|
|
471
|
+
"error",
|
|
472
|
+
"^(err|error)$"
|
|
473
|
+
],
|
|
474
|
+
"node/no-exports-assign": "error",
|
|
475
|
+
"node/no-new-require": "error",
|
|
476
|
+
"node/no-path-concat": "error",
|
|
477
|
+
"import/no-absolute-path": "warn",
|
|
478
|
+
"import/no-empty-named-blocks": [
|
|
479
|
+
"error"
|
|
480
|
+
],
|
|
481
|
+
"react/hook-use-state": [
|
|
482
|
+
"error",
|
|
483
|
+
{
|
|
484
|
+
"allowDestructuredState": true
|
|
485
|
+
}
|
|
486
|
+
],
|
|
487
|
+
"react/jsx-curly-brace-presence": [
|
|
488
|
+
"warn",
|
|
489
|
+
{
|
|
490
|
+
"children": "never",
|
|
491
|
+
"propElementValues": "always",
|
|
492
|
+
"props": "never"
|
|
493
|
+
}
|
|
494
|
+
],
|
|
495
|
+
"react/jsx-fragments": [
|
|
496
|
+
"warn",
|
|
497
|
+
"syntax"
|
|
498
|
+
],
|
|
499
|
+
"react/jsx-no-useless-fragment": "warn",
|
|
500
|
+
"react/react-in-jsx-scope": "off",
|
|
501
|
+
"react/self-closing-comp": [
|
|
502
|
+
"error",
|
|
503
|
+
{
|
|
504
|
+
"component": true,
|
|
505
|
+
"html": true
|
|
506
|
+
}
|
|
507
|
+
],
|
|
508
|
+
"react/only-export-components": [
|
|
509
|
+
"warn",
|
|
510
|
+
{
|
|
511
|
+
"allowExportNames": [
|
|
512
|
+
"loader",
|
|
513
|
+
"action",
|
|
514
|
+
"handle",
|
|
515
|
+
"shouldRevalidate"
|
|
516
|
+
]
|
|
517
|
+
}
|
|
518
|
+
]
|
|
519
|
+
},
|
|
520
|
+
"overrides": [
|
|
521
|
+
{
|
|
522
|
+
"files": [
|
|
523
|
+
"**/scripts/**/*.?([cm])[jt]s?(x)",
|
|
524
|
+
"**/cli.?([cm])[jt]s?(x)"
|
|
525
|
+
],
|
|
526
|
+
"rules": {
|
|
527
|
+
"no-console": "off"
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"files": [
|
|
532
|
+
"**/__tests__/**/*.?([cm])[jt]s?(x)",
|
|
533
|
+
"**/*.spec.?([cm])[jt]s?(x)",
|
|
534
|
+
"**/*.test.?([cm])[jt]s?(x)",
|
|
535
|
+
"**/*.bench.?([cm])[jt]s?(x)",
|
|
536
|
+
"**/*.benchmark.?([cm])[jt]s?(x)"
|
|
537
|
+
],
|
|
538
|
+
"rules": {
|
|
539
|
+
"no-unused-expressions": "off"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"files": [
|
|
544
|
+
"**/*.?([cm])[jt]s?(x)"
|
|
545
|
+
],
|
|
546
|
+
"rules": {
|
|
547
|
+
"constructor-super": "off",
|
|
548
|
+
"no-class-assign": "off",
|
|
549
|
+
"no-const-assign": "off",
|
|
550
|
+
"no-dupe-class-members": "off",
|
|
551
|
+
"no-dupe-keys": "off",
|
|
552
|
+
"no-func-assign": "off",
|
|
553
|
+
"no-import-assign": "off",
|
|
554
|
+
"no-new-native-nonconstructor": "off",
|
|
555
|
+
"no-obj-calls": "off",
|
|
556
|
+
"no-redeclare": "error",
|
|
557
|
+
"no-setter-return": "off",
|
|
558
|
+
"no-this-before-super": "off",
|
|
559
|
+
"no-unsafe-negation": "off",
|
|
560
|
+
"no-with": "off",
|
|
561
|
+
"prefer-const": [
|
|
562
|
+
"error",
|
|
563
|
+
{
|
|
564
|
+
"destructuring": "all",
|
|
565
|
+
"ignoreReadBeforeAssign": true
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
"no-unused-expressions": "error",
|
|
569
|
+
"no-unused-vars": [
|
|
570
|
+
"error",
|
|
571
|
+
{
|
|
572
|
+
"vars": "all",
|
|
573
|
+
"args": "all",
|
|
574
|
+
"ignoreRestSiblings": false,
|
|
575
|
+
"varsIgnorePattern": "^_",
|
|
576
|
+
"argsIgnorePattern": "^_"
|
|
577
|
+
}
|
|
578
|
+
],
|
|
579
|
+
"no-use-before-define": [
|
|
580
|
+
"error",
|
|
581
|
+
{
|
|
582
|
+
"functions": false,
|
|
583
|
+
"classes": false,
|
|
584
|
+
"variables": true
|
|
585
|
+
}
|
|
586
|
+
],
|
|
587
|
+
"typescript/ban-ts-comment": [
|
|
588
|
+
"error",
|
|
589
|
+
{
|
|
590
|
+
"minimumDescriptionLength": 10
|
|
591
|
+
}
|
|
592
|
+
],
|
|
593
|
+
"typescript/no-duplicate-enum-values": "error",
|
|
594
|
+
"typescript/no-dynamic-delete": "error",
|
|
595
|
+
"typescript/no-empty-object-type": "error",
|
|
596
|
+
"typescript/no-explicit-any": "off",
|
|
597
|
+
"typescript/no-extra-non-null-assertion": "error",
|
|
598
|
+
"typescript/no-extraneous-class": "error",
|
|
599
|
+
"typescript/no-invalid-void-type": "error",
|
|
600
|
+
"typescript/no-misused-new": "error",
|
|
601
|
+
"typescript/no-namespace": "error",
|
|
602
|
+
"typescript/no-non-null-asserted-nullish-coalescing": "error",
|
|
603
|
+
"typescript/no-non-null-asserted-optional-chain": "error",
|
|
604
|
+
"typescript/no-non-null-assertion": "off",
|
|
605
|
+
"typescript/no-require-imports": "error",
|
|
606
|
+
"typescript/no-this-alias": "error",
|
|
607
|
+
"typescript/no-unnecessary-type-constraint": "error",
|
|
608
|
+
"typescript/no-unsafe-declaration-merging": "error",
|
|
609
|
+
"typescript/no-unsafe-function-type": "error",
|
|
610
|
+
"typescript/no-wrapper-object-types": "error",
|
|
611
|
+
"typescript/prefer-as-const": "error",
|
|
612
|
+
"typescript/prefer-literal-enum-member": "error",
|
|
613
|
+
"typescript/prefer-namespace-keyword": "error",
|
|
614
|
+
"typescript/triple-slash-reference": "error",
|
|
615
|
+
"typescript/unified-signatures": "off",
|
|
616
|
+
"typescript/consistent-type-imports": [
|
|
617
|
+
"error",
|
|
618
|
+
{
|
|
619
|
+
"prefer": "type-imports",
|
|
620
|
+
"disallowTypeAnnotations": false
|
|
621
|
+
}
|
|
622
|
+
],
|
|
623
|
+
"typescript/no-empty-interface": [
|
|
624
|
+
"error",
|
|
625
|
+
{
|
|
626
|
+
"allowSingleExtends": true
|
|
627
|
+
}
|
|
628
|
+
],
|
|
629
|
+
"typescript/ban-types": "off",
|
|
630
|
+
"typescript/consistent-type-definitions": "off"
|
|
631
|
+
},
|
|
632
|
+
"plugins": [
|
|
633
|
+
"typescript"
|
|
634
|
+
]
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"files": [
|
|
638
|
+
"**/*.js",
|
|
639
|
+
"**/*.cjs"
|
|
640
|
+
],
|
|
641
|
+
"rules": {
|
|
642
|
+
"typescript/no-require-imports": "off",
|
|
643
|
+
"typescript/no-var-requires": "off"
|
|
644
|
+
},
|
|
645
|
+
"plugins": [
|
|
646
|
+
"typescript"
|
|
647
|
+
]
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"files": [
|
|
651
|
+
"**/*.?([cm])jsx",
|
|
652
|
+
"**/*.?([cm])tsx"
|
|
653
|
+
],
|
|
654
|
+
"rules": {
|
|
655
|
+
"react/display-name": "error",
|
|
656
|
+
"react/jsx-key": "error",
|
|
657
|
+
"react/jsx-no-comment-textnodes": "error",
|
|
658
|
+
"react/jsx-no-duplicate-props": "error",
|
|
659
|
+
"react/jsx-no-target-blank": "error",
|
|
660
|
+
"react/no-children-prop": "error",
|
|
661
|
+
"react/no-danger-with-children": "error",
|
|
662
|
+
"react/no-direct-mutation-state": "error",
|
|
663
|
+
"react/no-find-dom-node": "error",
|
|
664
|
+
"react/no-is-mounted": "error",
|
|
665
|
+
"react/no-render-return-value": "error",
|
|
666
|
+
"react/no-string-refs": "error",
|
|
667
|
+
"react/no-unescaped-entities": "error",
|
|
668
|
+
"react/no-unknown-property": "error",
|
|
669
|
+
"react/no-unsafe": "off",
|
|
670
|
+
"react/react-in-jsx-scope": "off",
|
|
671
|
+
"react/exhaustive-deps": "error",
|
|
672
|
+
"react/rules-of-hooks": "error",
|
|
673
|
+
"react/only-export-components": [
|
|
674
|
+
"warn",
|
|
675
|
+
{
|
|
676
|
+
"allowConstantExport": true
|
|
677
|
+
}
|
|
678
|
+
]
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
]
|
|
682
|
+
},
|
|
683
|
+
"overrides": {
|
|
684
|
+
"@types/react": "^19.2.7",
|
|
685
|
+
"@types/react-dom": "^19.2.3",
|
|
686
|
+
"antd": "6.5.3",
|
|
687
|
+
"typescript": "^6.0.3"
|
|
688
|
+
},
|
|
689
|
+
"tsconfig": {
|
|
690
|
+
"compilerOptions": {
|
|
691
|
+
"composite": false,
|
|
692
|
+
"target": "ESNext",
|
|
693
|
+
"moduleDetection": "force",
|
|
694
|
+
"experimentalDecorators": true,
|
|
695
|
+
"module": "ESNext",
|
|
696
|
+
"moduleResolution": "bundler",
|
|
697
|
+
"resolveJsonModule": true,
|
|
698
|
+
"strict": true,
|
|
699
|
+
"strictNullChecks": true,
|
|
700
|
+
"noFallthroughCasesInSwitch": true,
|
|
701
|
+
"noImplicitAny": true,
|
|
702
|
+
"noImplicitOverride": true,
|
|
703
|
+
"noImplicitThis": true,
|
|
704
|
+
"noUncheckedIndexedAccess": false,
|
|
705
|
+
"noUnusedLocals": true,
|
|
706
|
+
"noUnusedParameters": true,
|
|
707
|
+
"inlineSources": false,
|
|
708
|
+
"noEmit": true,
|
|
709
|
+
"removeComments": true,
|
|
710
|
+
"sourceMap": false,
|
|
711
|
+
"allowSyntheticDefaultImports": true,
|
|
712
|
+
"esModuleInterop": true,
|
|
713
|
+
"exactOptionalPropertyTypes": false,
|
|
714
|
+
"forceConsistentCasingInFileNames": true,
|
|
715
|
+
"isolatedModules": true,
|
|
716
|
+
"verbatimModuleSyntax": true,
|
|
717
|
+
"skipLibCheck": true,
|
|
718
|
+
"preserveWatchOutput": true,
|
|
719
|
+
"useDefineForClassFields": true,
|
|
720
|
+
"jsx": "react-jsx",
|
|
721
|
+
"lib": [
|
|
722
|
+
"ESNext",
|
|
723
|
+
"DOM",
|
|
724
|
+
"DOM.Iterable"
|
|
725
|
+
],
|
|
726
|
+
"types": [
|
|
727
|
+
"vite/client",
|
|
728
|
+
"node",
|
|
729
|
+
"unplugin-icons/types/react"
|
|
730
|
+
],
|
|
731
|
+
"declaration": false,
|
|
732
|
+
"paths": {
|
|
733
|
+
"@/*": [
|
|
734
|
+
"./src/*"
|
|
735
|
+
],
|
|
736
|
+
"~/*": [
|
|
737
|
+
"./*"
|
|
738
|
+
],
|
|
739
|
+
"@shell/*": [
|
|
740
|
+
"../../packages/web/admin/*"
|
|
741
|
+
]
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
"exclude": [
|
|
745
|
+
"**/node_modules/**",
|
|
746
|
+
"**/dist/**",
|
|
747
|
+
"**/.turbo/**"
|
|
748
|
+
],
|
|
749
|
+
"include": [
|
|
750
|
+
"./**/*.ts",
|
|
751
|
+
"./**/*.tsx",
|
|
752
|
+
"../../packages/web/admin/**/*.d.ts"
|
|
753
|
+
]
|
|
754
|
+
},
|
|
755
|
+
"unpublishedPackages": []
|
|
756
|
+
}
|