perf: staticRoutes is renamed externalRoutes (#4143)

This commit is contained in:
Vben 2024-08-13 21:48:01 +08:00 committed by GitHub
parent 1a4d61cc17
commit 4793c4c0db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 24 additions and 23 deletions

View File

@ -9,19 +9,19 @@ const dynamicRouteFiles = import.meta.glob('./modules/**/*.ts', {
}); });
// 有需要可以自行打开注释,并创建文件夹 // 有需要可以自行打开注释,并创建文件夹
// const staticRouteFiles = import.meta.glob('./static/**/*.ts', { eager: true }); // const externalRouteFiles = import.meta.glob('./external/**/*.ts', { eager: true });
/** 动态路由 */ /** 动态路由 */
const dynamicRoutes: RouteRecordRaw[] = mergeRouteModules(dynamicRouteFiles); const dynamicRoutes: RouteRecordRaw[] = mergeRouteModules(dynamicRouteFiles);
/** 静态路由列表,访问这些页面可以不需要权限 */ /** 外部路由列表访问这些页面可以不需要Layout可能用于内嵌在别的系统 */
// const staticRoutes: RouteRecordRaw[] = mergeRouteModules(staticRouteFiles); // const externalRoutes: RouteRecordRaw[] = mergeRouteModules(externalRouteFiles);
const staticRoutes: RouteRecordRaw[] = []; const externalRoutes: RouteRecordRaw[] = [];
/** 路由列表,由基本路由+静态路由组成 */ /** 路由列表,由基本路由+静态路由组成 */
const routes: RouteRecordRaw[] = [ const routes: RouteRecordRaw[] = [
...coreRoutes, ...coreRoutes,
...staticRoutes, ...externalRoutes,
fallbackNotFoundRoute, fallbackNotFoundRoute,
]; ];

View File

@ -9,19 +9,19 @@ const dynamicRouteFiles = import.meta.glob('./modules/**/*.ts', {
}); });
// 有需要可以自行打开注释,并创建文件夹 // 有需要可以自行打开注释,并创建文件夹
// const staticRouteFiles = import.meta.glob('./static/**/*.ts', { eager: true }); // const externalRouteFiles = import.meta.glob('./external/**/*.ts', { eager: true });
/** 动态路由 */ /** 动态路由 */
const dynamicRoutes: RouteRecordRaw[] = mergeRouteModules(dynamicRouteFiles); const dynamicRoutes: RouteRecordRaw[] = mergeRouteModules(dynamicRouteFiles);
/** 静态路由列表,访问这些页面可以不需要权限 */ /** 外部路由列表访问这些页面可以不需要Layout可能用于内嵌在别的系统 */
// const staticRoutes: RouteRecordRaw[] = mergeRouteModules(staticRouteFiles); // const externalRoutes: RouteRecordRaw[] = mergeRouteModules(externalRouteFiles);
const staticRoutes: RouteRecordRaw[] = []; const externalRoutes: RouteRecordRaw[] = [];
/** 路由列表,由基本路由+静态路由组成 */ /** 路由列表,由基本路由+静态路由组成 */
const routes: RouteRecordRaw[] = [ const routes: RouteRecordRaw[] = [
...coreRoutes, ...coreRoutes,
...staticRoutes, ...externalRoutes,
fallbackNotFoundRoute, fallbackNotFoundRoute,
]; ];

View File

@ -9,19 +9,19 @@ const dynamicRouteFiles = import.meta.glob('./modules/**/*.ts', {
}); });
// 有需要可以自行打开注释,并创建文件夹 // 有需要可以自行打开注释,并创建文件夹
// const staticRouteFiles = import.meta.glob('./static/**/*.ts', { eager: true }); // const externalRouteFiles = import.meta.glob('./external/**/*.ts', { eager: true });
/** 动态路由 */ /** 动态路由 */
const dynamicRoutes: RouteRecordRaw[] = mergeRouteModules(dynamicRouteFiles); const dynamicRoutes: RouteRecordRaw[] = mergeRouteModules(dynamicRouteFiles);
/** 静态路由列表,访问这些页面可以不需要权限 */ /** 外部路由列表访问这些页面可以不需要Layout可能用于内嵌在别的系统 */
// const staticRoutes: RouteRecordRaw[] = mergeRouteModules(staticRouteFiles); // const externalRoutes: RouteRecordRaw[] = mergeRouteModules(externalRouteFiles);
const staticRoutes: RouteRecordRaw[] = []; const externalRoutes: RouteRecordRaw[] = [];
/** 路由列表,由基本路由+静态路由组成 */ /** 路由列表,由基本路由+静态路由组成 */
const routes: RouteRecordRaw[] = [ const routes: RouteRecordRaw[] = [
...coreRoutes, ...coreRoutes,
...staticRoutes, ...externalRoutes,
fallbackNotFoundRoute, fallbackNotFoundRoute,
]; ];

View File

@ -25,7 +25,7 @@
pointer-events: none; pointer-events: none;
visibility: hidden; visibility: hidden;
opacity: 0; opacity: 0;
transition: all 1s ease-out; transition: all 0.8s ease-out;
} }
.dark .loading { .dark .loading {

View File

@ -26,6 +26,7 @@ const logoSource = computed(() => preferences.logo.source);
<!-- 头部 Logo 和应用名称 --> <!-- 头部 Logo 和应用名称 -->
<div class="absolute left-0 top-0 z-10 flex flex-1"> <div class="absolute left-0 top-0 z-10 flex flex-1">
<div <div
:class="authPanelRight ? 'lg:text-white' : 'lg:text-foreground'"
class="text-foreground ml-4 mt-4 flex flex-1 items-center sm:left-6 sm:top-6" class="text-foreground ml-4 mt-4 flex flex-1 items-center sm:left-6 sm:top-6"
> >
<img :alt="appName" :src="logoSource" class="mr-2" width="42" /> <img :alt="appName" :src="logoSource" class="mr-2" width="42" />
@ -71,9 +72,9 @@ const logoSource = computed(() => preferences.logo.source);
.login-background { .login-background {
background: linear-gradient( background: linear-gradient(
154deg, 154deg,
hsl(var(--background) / 15%) 30%, #07070915 30%,
hsl(var(--primary) / 15%) 48%, hsl(var(--primary) / 15%) 48%,
hsl(var(--background) / 8%) 64% #07070915 64%
); );
filter: blur(100px); filter: blur(100px);
} }

View File

@ -9,19 +9,19 @@ const dynamicRouteFiles = import.meta.glob('./modules/**/*.ts', {
}); });
// 有需要可以自行打开注释,并创建文件夹 // 有需要可以自行打开注释,并创建文件夹
// const staticRouteFiles = import.meta.glob('./static/**/*.ts', { eager: true }); // const externalRouteFiles = import.meta.glob('./external/**/*.ts', { eager: true });
/** 动态路由 */ /** 动态路由 */
const dynamicRoutes: RouteRecordRaw[] = mergeRouteModules(dynamicRouteFiles); const dynamicRoutes: RouteRecordRaw[] = mergeRouteModules(dynamicRouteFiles);
/** 静态路由列表,访问这些页面可以不需要权限 */ /** 外部路由列表访问这些页面可以不需要Layout可能用于内嵌在别的系统 */
// const staticRoutes: RouteRecordRaw[] = mergeRouteModules(staticRouteFiles); // const externalRoutes: RouteRecordRaw[] = mergeRouteModules(externalRouteFiles);
const staticRoutes: RouteRecordRaw[] = []; const externalRoutes: RouteRecordRaw[] = [];
/** 路由列表,由基本路由+静态路由组成 */ /** 路由列表,由基本路由+静态路由组成 */
const routes: RouteRecordRaw[] = [ const routes: RouteRecordRaw[] = [
...coreRoutes, ...coreRoutes,
...staticRoutes, ...externalRoutes,
fallbackNotFoundRoute, fallbackNotFoundRoute,
]; ];