refactor(projects): 精简代码
This commit is contained in:
parent
d9fd91d137
commit
5dc8626c1e
@ -1,2 +1,2 @@
|
|||||||
export { AppProviderContent, SystemLogo, ExceptionSvg, LoginBg, BannerSvg, HoverContainer } from './common';
|
export * from './common';
|
||||||
export { CountTo, IconClose, ButtonTab, ChromeTab, ShadowCard, BetterScroll } from './custom';
|
export * from './custom';
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
export { setupAppContext, useReloadInject } from './app';
|
export * from './app';
|
||||||
|
export * from './part';
|
||||||
export { useVerticalMixSiderContext } from './part';
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
export { ContentType, EnumDataType, EnumLoginModule } from './common';
|
export * from './common';
|
||||||
export { EnumAnimate } from './animate';
|
export * from './animate';
|
||||||
export { EnumNavMode, EnumNavTheme, EnumMultiTabMode, EnumHorizontalMenuPosition } from './theme';
|
export * from './theme';
|
||||||
export { EnumRoutePath, EnumRouteTitle } from './route';
|
export * from './route';
|
||||||
export { EnumStorageKey } from './storage';
|
export * from './storage';
|
||||||
|
@ -1,12 +1,2 @@
|
|||||||
export {
|
export * from './common';
|
||||||
useAppTitle,
|
export * from './business';
|
||||||
useContext,
|
|
||||||
useRouterChange,
|
|
||||||
useRouteParam,
|
|
||||||
useRouteQuery,
|
|
||||||
useRouteProps,
|
|
||||||
useBoolean,
|
|
||||||
useLoading,
|
|
||||||
useScrollBehavior
|
|
||||||
} from './common';
|
|
||||||
export { useCountDown, useSmsCode } from './business';
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
export { UserInfo } from './business';
|
export * from './business';
|
||||||
export { ThemeSettings, NavMode, MultiTabMode, AnimateType, HorizontalMenuPosition } from './theme';
|
export * from './theme';
|
||||||
export { CustomRoute, RoutePathKey, GlobalMenuOption, LoginModuleType } from './common';
|
export * from './common';
|
||||||
|
@ -1,3 +1 @@
|
|||||||
import { themeSettings, defaultThemeSettings } from './theme';
|
export * from './theme';
|
||||||
|
|
||||||
export { themeSettings, defaultThemeSettings };
|
|
||||||
|
@ -7,4 +7,4 @@ export function setupStore(app: App) {
|
|||||||
app.use(store);
|
app.use(store);
|
||||||
}
|
}
|
||||||
|
|
||||||
export { useThemeStore, useAppStore, useAuthStore } from './modules';
|
export * from './modules';
|
||||||
|
@ -1,39 +1,4 @@
|
|||||||
export { setToken, getToken, removeToken, getUserInfo, resetAuthStorage } from './auth';
|
export * from './auth';
|
||||||
|
export * from './common';
|
||||||
export {
|
export * from './storage';
|
||||||
isNumber,
|
export * from './router';
|
||||||
isString,
|
|
||||||
isBoolean,
|
|
||||||
isNull,
|
|
||||||
isUndefined,
|
|
||||||
isObject,
|
|
||||||
isArray,
|
|
||||||
isDate,
|
|
||||||
isRegExp,
|
|
||||||
isSet,
|
|
||||||
isMap,
|
|
||||||
brightenColor,
|
|
||||||
darkenColor,
|
|
||||||
addColorAlpha,
|
|
||||||
dynamicIconRender
|
|
||||||
} from './common';
|
|
||||||
|
|
||||||
export {
|
|
||||||
setLocal,
|
|
||||||
getLocal,
|
|
||||||
removeLocal,
|
|
||||||
clearLocal,
|
|
||||||
setSession,
|
|
||||||
getSession,
|
|
||||||
removeSession,
|
|
||||||
clearSession
|
|
||||||
} from './storage';
|
|
||||||
|
|
||||||
export {
|
|
||||||
ROUTE_NAME_MAP,
|
|
||||||
setRouterCacheName,
|
|
||||||
getLoginRedirectUrl,
|
|
||||||
setSingleRoute,
|
|
||||||
getCacheRoutes,
|
|
||||||
transformRouteToMenu
|
|
||||||
} from './router';
|
|
||||||
|
@ -20,8 +20,5 @@ export default defineConfig({
|
|||||||
build: {
|
build: {
|
||||||
brotliSize: false,
|
brotliSize: false,
|
||||||
sourcemap: false
|
sourcemap: false
|
||||||
},
|
|
||||||
server: {
|
|
||||||
strictPort: true
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user