Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Theme front-end config #42

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 5 additions & 76 deletions @types/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ declare global {
const AConfigProvider: typeof import('antd')['ConfigProvider']
const ADivider: typeof import('antd')['Divider']
const ADropdown: typeof import('antd')['Dropdown']
const AFloatButton: typeof import('antd')['FloatButton']
const AForm: typeof import('antd')['Form']
const AIcon: typeof import('@ant-design/icons')['default']
const AImage: typeof import('antd')['Image']
const AInput: typeof import('antd')['Input']
const ALayout: typeof import('antd')['Layout']
const AMenu: typeof import('antd')['Menu']
const AMessage: typeof import('antd')['message']
const ASpin: typeof import('antd')['Spin']
const ATheme: typeof import('antd')['theme']
const ATooltip: typeof import('antd')['Tooltip']
Expand All @@ -31,12 +32,13 @@ declare global {
const BaseBreadcrumb: typeof import('../src/layouts/BaseLayout/components/BaseBreadcrumb/index')['default']
const BaseContent: typeof import('../src/layouts/BaseLayout/components/BaseContent/index')['default']
const BaseFooter: typeof import('../src/layouts/BaseLayout/components/BaseFooter/index')['default']
const BaseGlobalLoading: typeof import('../src/components/BaseGlobalLoading/index')['default']
const BaseHeader: typeof import('../src/layouts/BaseLayout/components/BaseHeader/index')['default']
const BaseLayout: typeof import('../src/layouts/BaseLayout/index')['default']
const BasePageModel: typeof import('@/constants')['BasePageModel']
const BaseSidebar: typeof import('../src/layouts/BaseLayout/components/BaseSidebar/index')['default']
const BrowserUtils: typeof import('@dolphin-admin/utils')['BrowserUtils']
const DpDevMenuFab: typeof import('../src/components/DpDevMenuFab/index')['default']
const DpGlobalLoading: typeof import('../src/components/DpGlobalLoading/index')['default']
const GlobalEnvConfig: typeof import('@/constants')['GlobalEnvConfig']
const Icon: typeof import('@iconify/react')['Icon']
const LangUtils: typeof import('@dolphin-admin/utils')['LangUtils']
Expand All @@ -58,117 +60,44 @@ declare global {
const lazy: typeof import('react')['lazy']
const memo: typeof import('react')['memo']
const startTransition: typeof import('react')['startTransition']
const useAntdTable: typeof import('ahooks')['useAntdTable']
const useAsyncEffect: typeof import('ahooks')['useAsyncEffect']
const useBoolean: typeof import('ahooks')['useBoolean']
const useAuthGuard: typeof import('../src/hooks/useAuthGuard')['useAuthGuard']
const useCallback: typeof import('react')['useCallback']
const useClickAway: typeof import('ahooks')['useClickAway']
const useContext: typeof import('react')['useContext']
const useControllableValue: typeof import('ahooks')['useControllableValue']
const useCookieState: typeof import('ahooks')['useCookieState']
const useCountDown: typeof import('ahooks')['useCountDown']
const useCounter: typeof import('ahooks')['useCounter']
const useCreation: typeof import('ahooks')['useCreation']
const useDebounce: typeof import('ahooks')['useDebounce']
const useDebounceEffect: typeof import('ahooks')['useDebounceEffect']
const useDebounceFn: typeof import('ahooks')['useDebounceFn']
const useDebugValue: typeof import('react')['useDebugValue']
const useDeepCompareEffect: typeof import('ahooks')['useDeepCompareEffect']
const useDeepCompareLayoutEffect: typeof import('ahooks')['useDeepCompareLayoutEffect']
const useDeferredValue: typeof import('react')['useDeferredValue']
const useDocumentVisibility: typeof import('ahooks')['useDocumentVisibility']
const useDrag: typeof import('ahooks')['useDrag']
const useDrop: typeof import('ahooks')['useDrop']
const useDynamicList: typeof import('ahooks')['useDynamicList']
const useEffect: typeof import('react')['useEffect']
const useEventEmitter: typeof import('ahooks')['useEventEmitter']
const useEventListener: typeof import('ahooks')['useEventListener']
const useEventTarget: typeof import('ahooks')['useEventTarget']
const useExternal: typeof import('ahooks')['useExternal']
const useFavicon: typeof import('ahooks')['useFavicon']
const useFocusWithin: typeof import('ahooks')['useFocusWithin']
const useFullscreen: typeof import('ahooks')['useFullscreen']
const useFusionTable: typeof import('ahooks')['useFusionTable']
const useGetState: typeof import('ahooks')['useGetState']
const useHistoryTravel: typeof import('ahooks')['useHistoryTravel']
const useHover: typeof import('ahooks')['useHover']
const useHref: typeof import('react-router-dom')['useHref']
const useId: typeof import('react')['useId']
const useImmer: typeof import('use-immer')['useImmer']
const useImperativeHandle: typeof import('react')['useImperativeHandle']
const useInRouterContext: typeof import('react-router-dom')['useInRouterContext']
const useInViewport: typeof import('ahooks')['useInViewport']
const useInfiniteScroll: typeof import('ahooks')['useInfiniteScroll']
const useInsertionEffect: typeof import('react')['useInsertionEffect']
const useInterval: typeof import('ahooks')['useInterval']
const useIsomorphicLayoutEffect: typeof import('ahooks')['useIsomorphicLayoutEffect']
const useKeyPress: typeof import('ahooks')['useKeyPress']
const useLangStore: typeof import('../src/store/lang')['useLangStore']
const useLatest: typeof import('ahooks')['useLatest']
const useLayoutEffect: typeof import('react')['useLayoutEffect']
const useLinkClickHandler: typeof import('react-router-dom')['useLinkClickHandler']
const useLocalStorageState: typeof import('ahooks')['useLocalStorageState']
const useLocation: typeof import('react-router-dom')['useLocation']
const useLockFn: typeof import('ahooks')['useLockFn']
const useLongPress: typeof import('ahooks')['useLongPress']
const useMap: typeof import('ahooks')['useMap']
const useMemo: typeof import('react')['useMemo']
const useMemoizedFn: typeof import('ahooks')['useMemoizedFn']
const useMount: typeof import('ahooks')['useMount']
const useMouse: typeof import('ahooks')['useMouse']
const useMutation: typeof import('@tanstack/react-query')['useMutation']
const useMutationObserver: typeof import('ahooks')['useMutationObserver']
const useNavigate: typeof import('react-router-dom')['useNavigate']
const useNavigationType: typeof import('react-router-dom')['useNavigationType']
const useNetwork: typeof import('ahooks')['useNetwork']
const useOutlet: typeof import('react-router-dom')['useOutlet']
const useOutletContext: typeof import('react-router-dom')['useOutletContext']
const usePagination: typeof import('ahooks')['usePagination']
const useParams: typeof import('react-router-dom')['useParams']
const usePrevious: typeof import('ahooks')['usePrevious']
const useQuery: typeof import('@tanstack/react-query')['useQuery']
const useQueryClient: typeof import('@tanstack/react-query')['useQueryClient']
const useRafInterval: typeof import('ahooks')['useRafInterval']
const useRafState: typeof import('ahooks')['useRafState']
const useRafTimeout: typeof import('ahooks')['useRafTimeout']
const useReactive: typeof import('ahooks')['useReactive']
const useReducer: typeof import('react')['useReducer']
const useRef: typeof import('react')['useRef']
const useRequest: typeof import('ahooks')['useRequest']
const useResetState: typeof import('ahooks')['useResetState']
const useResolvedPath: typeof import('react-router-dom')['useResolvedPath']
const useResponsive: typeof import('ahooks')['useResponsive']
const useRoutes: typeof import('react-router-dom')['useRoutes']
const useSSE: typeof import('../src/hooks/useSSE')['useSSE']
const useSafeState: typeof import('ahooks')['useSafeState']
const useScroll: typeof import('ahooks')['useScroll']
const useSearchParams: typeof import('react-router-dom')['useSearchParams']
const useSelections: typeof import('ahooks')['useSelections']
const useSessionStorageState: typeof import('ahooks')['useSessionStorageState']
const useSet: typeof import('ahooks')['useSet']
const useSetState: typeof import('ahooks')['useSetState']
const useSidebarStore: typeof import('../src/store/sidebar')['useSidebarStore']
const useSize: typeof import('ahooks')['useSize']
const useState: typeof import('react')['useState']
const useSyncExternalStore: typeof import('react')['useSyncExternalStore']
const useTextSelection: typeof import('ahooks')['useTextSelection']
const useThemeStore: typeof import('../src/store/theme')['useThemeStore']
const useThrottle: typeof import('ahooks')['useThrottle']
const useThrottleEffect: typeof import('ahooks')['useThrottleEffect']
const useThrottleFn: typeof import('ahooks')['useThrottleFn']
const useTimeout: typeof import('ahooks')['useTimeout']
const useTitle: typeof import('ahooks')['useTitle']
const useToggle: typeof import('ahooks')['useToggle']
const useTrackedEffect: typeof import('ahooks')['useTrackedEffect']
const useTransition: typeof import('react')['useTransition']
const useTranslation: typeof import('react-i18next')['useTranslation']
const useUnmount: typeof import('ahooks')['useUnmount']
const useUnmountedRef: typeof import('ahooks')['useUnmountedRef']
const useUpdate: typeof import('ahooks')['useUpdate']
const useUpdateEffect: typeof import('ahooks')['useUpdateEffect']
const useUpdateLayoutEffect: typeof import('ahooks')['useUpdateLayoutEffect']
const useUserStore: typeof import('../src/store/user')['useUserStore']
const useVirtualList: typeof import('ahooks')['useVirtualList']
const useWebSocket: typeof import('ahooks')['useWebSocket']
const useWhyDidYouUpdate: typeof import('ahooks')['useWhyDidYouUpdate']
}
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@ant-design/happy-work-theme": "^1.0.0",
"@ant-design/icons": "^5.2.6",
"@dolphin-admin/utils": "^0.0.16",
"@tanstack/react-query": "^5.8.3",
"@tanstack/react-query-devtools": "^5.8.3",
"@tanstack/react-query": "^5.8.4",
"@tanstack/react-query-devtools": "^5.8.4",
"@tauri-apps/api": "^1.5.1",
"ahooks": "^3.7.8",
"antd": "^5.11.1",
Expand All @@ -53,17 +53,17 @@
"qrcode": "^1.5.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^13.4.1",
"react-router-dom": "^6.18.0",
"react-i18next": "^13.5.0",
"react-router-dom": "^6.19.0",
"socket.io-client": "^4.7.2",
"use-immer": "^0.9.0",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.0/xlsx-0.20.0.tgz",
"zustand": "^4.4.6"
},
"devDependencies": {
"@brucesong/eslint-config-react": "^1.0.17",
"@commitlint/cli": "^18.4.1",
"@commitlint/config-conventional": "^18.4.0",
"@commitlint/cli": "^18.4.2",
"@commitlint/config-conventional": "^18.4.2",
"@dolphin-admin/auto-import": "^0.0.10",
"@dolphin-admin/bootstrap-animation": "^0.0.4",
"@iconify/json": "^2.2.142",
Expand All @@ -76,7 +76,7 @@
"@types/qrcode": "^1.5.5",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@vitejs/plugin-react-swc": "^3.4.1",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.16",
"commitizen": "^4.3.0",
"cspell": "^8.0.0",
Expand All @@ -91,6 +91,7 @@
"tailwindcss": "^3.3.5",
"typescript": "~5.2.2",
"unplugin-auto-import": "^0.16.7",
"unplugin-auto-import-ahooks": "^0.0.2",
"unplugin-auto-import-antd": "^0.0.1",
"unplugin-icons": "^0.17.4",
"vite": "^4.5.0",
Expand Down
Loading