Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4793c4c0
authored
Aug 13, 2024
by
Vben
Committed by
GitHub
Aug 13, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perf: staticRoutes is renamed externalRoutes (#4143)
1 parent
1a4d61cc
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
23 deletions
apps/web-antd/src/router/routes/index.ts
apps/web-ele/src/router/routes/index.ts
apps/web-naive/src/router/routes/index.ts
internal/vite-config/src/plugins/inject-app-loading/default-loading.html
packages/effects/layouts/src/authentication/authentication.vue
playground/src/router/routes/index.ts
apps/web-antd/src/router/routes/index.ts
View file @
4793c4c
...
@@ -9,19 +9,19 @@ const dynamicRouteFiles = import.meta.glob('./modules/**/*.ts', {
...
@@ -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(static
RouteFiles);
// const
externalRoutes: RouteRecordRaw[] = mergeRouteModules(external
RouteFiles);
const
static
Routes
:
RouteRecordRaw
[]
=
[];
const
external
Routes
:
RouteRecordRaw
[]
=
[];
/** 路由列表,由基本路由+静态路由组成 */
/** 路由列表,由基本路由+静态路由组成 */
const
routes
:
RouteRecordRaw
[]
=
[
const
routes
:
RouteRecordRaw
[]
=
[
...
coreRoutes
,
...
coreRoutes
,
...
static
Routes
,
...
external
Routes
,
fallbackNotFoundRoute
,
fallbackNotFoundRoute
,
];
];
...
...
apps/web-ele/src/router/routes/index.ts
View file @
4793c4c
...
@@ -9,19 +9,19 @@ const dynamicRouteFiles = import.meta.glob('./modules/**/*.ts', {
...
@@ -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(static
RouteFiles);
// const
externalRoutes: RouteRecordRaw[] = mergeRouteModules(external
RouteFiles);
const
static
Routes
:
RouteRecordRaw
[]
=
[];
const
external
Routes
:
RouteRecordRaw
[]
=
[];
/** 路由列表,由基本路由+静态路由组成 */
/** 路由列表,由基本路由+静态路由组成 */
const
routes
:
RouteRecordRaw
[]
=
[
const
routes
:
RouteRecordRaw
[]
=
[
...
coreRoutes
,
...
coreRoutes
,
...
static
Routes
,
...
external
Routes
,
fallbackNotFoundRoute
,
fallbackNotFoundRoute
,
];
];
...
...
apps/web-naive/src/router/routes/index.ts
View file @
4793c4c
...
@@ -9,19 +9,19 @@ const dynamicRouteFiles = import.meta.glob('./modules/**/*.ts', {
...
@@ -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(static
RouteFiles);
// const
externalRoutes: RouteRecordRaw[] = mergeRouteModules(external
RouteFiles);
const
static
Routes
:
RouteRecordRaw
[]
=
[];
const
external
Routes
:
RouteRecordRaw
[]
=
[];
/** 路由列表,由基本路由+静态路由组成 */
/** 路由列表,由基本路由+静态路由组成 */
const
routes
:
RouteRecordRaw
[]
=
[
const
routes
:
RouteRecordRaw
[]
=
[
...
coreRoutes
,
...
coreRoutes
,
...
static
Routes
,
...
external
Routes
,
fallbackNotFoundRoute
,
fallbackNotFoundRoute
,
];
];
...
...
internal/vite-config/src/plugins/inject-app-loading/default-loading.html
View file @
4793c4c
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
pointer-events
:
none
;
pointer-events
:
none
;
visibility
:
hidden
;
visibility
:
hidden
;
opacity
:
0
;
opacity
:
0
;
transition
:
all
1
s
ease-out
;
transition
:
all
0.8
s
ease-out
;
}
}
.dark
.loading
{
.dark
.loading
{
...
...
packages/effects/layouts/src/authentication/authentication.vue
View file @
4793c4c
...
@@ -26,6 +26,7 @@ const logoSource = computed(() => preferences.logo.source);
...
@@ -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);
...
@@ -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
);
}
}
...
...
playground/src/router/routes/index.ts
View file @
4793c4c
...
@@ -9,19 +9,19 @@ const dynamicRouteFiles = import.meta.glob('./modules/**/*.ts', {
...
@@ -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(static
RouteFiles);
// const
externalRoutes: RouteRecordRaw[] = mergeRouteModules(external
RouteFiles);
const
static
Routes
:
RouteRecordRaw
[]
=
[];
const
external
Routes
:
RouteRecordRaw
[]
=
[];
/** 路由列表,由基本路由+静态路由组成 */
/** 路由列表,由基本路由+静态路由组成 */
const
routes
:
RouteRecordRaw
[]
=
[
const
routes
:
RouteRecordRaw
[]
=
[
...
coreRoutes
,
...
coreRoutes
,
...
static
Routes
,
...
external
Routes
,
fallbackNotFoundRoute
,
fallbackNotFoundRoute
,
];
];
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment