Skip to content

Commit e4e89ae

Browse files
authored
chore: update some default settings (#7)
1 parent 8d79bc3 commit e4e89ae

File tree

5 files changed

+16
-46
lines changed

5 files changed

+16
-46
lines changed

apps/web-antd/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 应用标题
2-
VITE_APP_TITLE=FastAPI Best Architecture UI
2+
VITE_APP_TITLE=FBA UI
33

44
# 应用命名空间,用于缓存、store等功能的前缀,确保隔离
55
VITE_APP_NAMESPACE=fba-ui

apps/web-antd/public/favicon.ico

-1.12 KB
Binary file not shown.

apps/web-antd/src/api/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function loginApi(data: LoginParams) {
3838
* 刷新accessToken
3939
*/
4040
export async function refreshTokenApi() {
41-
return baseRequestClient.post<RefreshTokenResult>('/auth/refresh', {
41+
return baseRequestClient.post<RefreshTokenResult>('/api/v1/token/new', {
4242
withCredentials: true,
4343
});
4444
}

apps/web-antd/src/router/routes/modules/vben.ts

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,39 @@
11
import type { RouteRecordRaw } from 'vue-router';
22

3-
import {
4-
VBEN_DOC_URL,
5-
VBEN_ELE_PREVIEW_URL,
6-
VBEN_GITHUB_URL,
7-
VBEN_LOGO_URL,
8-
VBEN_NAIVE_PREVIEW_URL,
9-
} from '@vben/constants';
10-
113
import { IFrameView } from '#/layouts';
124
import { $t } from '#/locales';
135

146
const routes: RouteRecordRaw[] = [
157
{
168
meta: {
179
badgeType: 'dot',
18-
icon: VBEN_LOGO_URL,
10+
icon: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
1911
order: 9998,
2012
title: $t('demos.vben.title'),
2113
},
2214
name: 'VbenProject',
23-
path: '/vben-admin',
15+
path: '/fba-admin',
2416
children: [
2517
{
2618
name: 'VbenDocument',
27-
path: '/vben-admin/document',
19+
path: '/fba-admin/document',
2820
component: IFrameView,
2921
meta: {
3022
icon: 'lucide:book-open-text',
31-
link: VBEN_DOC_URL,
23+
link: 'https://fastapi-practices.github.io/fastapi_best_architecture_docs',
3224
title: $t('demos.vben.document'),
3325
},
3426
},
3527
{
3628
name: 'VbenGithub',
37-
path: '/vben-admin/github',
29+
path: '/fba-admin/github',
3830
component: IFrameView,
3931
meta: {
4032
icon: 'mdi:github',
41-
link: VBEN_GITHUB_URL,
33+
link: 'https://github.com/fastapi-practices/fastapi_best_architecture',
4234
title: 'Github',
4335
},
4436
},
45-
{
46-
name: 'VbenNaive',
47-
path: '/vben-admin/naive',
48-
component: IFrameView,
49-
meta: {
50-
badgeType: 'dot',
51-
icon: 'logos:naiveui',
52-
link: VBEN_NAIVE_PREVIEW_URL,
53-
title: $t('demos.vben.naive-ui'),
54-
},
55-
},
56-
{
57-
name: 'VbenElementPlus',
58-
path: '/vben-admin/ele',
59-
component: IFrameView,
60-
meta: {
61-
badgeType: 'dot',
62-
icon: 'logos:element',
63-
link: VBEN_ELE_PREVIEW_URL,
64-
title: $t('demos.vben.element-plus'),
65-
},
66-
},
6737
],
6838
},
6939
{

packages/@core/preferences/src/config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const defaultPreferences: Preferences = {
1919
layout: 'sidebar-nav',
2020
locale: 'zh-CN',
2121
loginExpiredMode: 'page',
22-
name: 'Vben Admin',
22+
name: 'FBA UI',
2323
preferencesButtonPosition: 'auto',
2424
watermark: false,
2525
},
@@ -31,17 +31,17 @@ const defaultPreferences: Preferences = {
3131
styleType: 'normal',
3232
},
3333
copyright: {
34-
companyName: 'Vben',
35-
companySiteLink: 'https://www.vben.pro',
36-
date: '2024',
34+
companyName: 'FastAPI Practices',
35+
companySiteLink: 'https://github.com/fastapi-practices',
36+
date: '2025',
3737
enable: true,
3838
icp: '',
3939
icpLink: '',
4040
settingShow: true,
4141
},
4242
footer: {
43-
enable: false,
44-
fixed: false,
43+
enable: true,
44+
fixed: true,
4545
},
4646
header: {
4747
enable: true,
@@ -51,7 +51,7 @@ const defaultPreferences: Preferences = {
5151
},
5252
logo: {
5353
enable: true,
54-
source: 'https://unpkg.com/@vbenjs/static-source@0.1.7/source/logo-v1.webp',
54+
source: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
5555
},
5656
navigation: {
5757
accordion: true,
@@ -97,7 +97,7 @@ const defaultPreferences: Preferences = {
9797
colorPrimary: 'hsl(212 100% 45%)',
9898
colorSuccess: 'hsl(144 57% 58%)',
9999
colorWarning: 'hsl(42 84% 61%)',
100-
mode: 'dark',
100+
mode: 'auto',
101101
radius: '0.5',
102102
semiDarkHeader: false,
103103
semiDarkSidebar: false,

0 commit comments

Comments
 (0)