mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 12:52:26 +00:00
feat: 重构静态资源路径并更新文档配置
- 将静态图片资源从backend迁移到frontend/docs/public目录 - 更新文档配置和图片引用路径 - 替换登录背景图为SVG格式并支持暗色模式 - 修复字典服务错误消息拼写错误 - 优化菜单表单父级菜单显示逻辑
This commit is contained in:
@@ -2,14 +2,41 @@ import { defineConfig } from 'vitepress'
|
||||
|
||||
// https://vitepress.dev/reference/site-config
|
||||
export default defineConfig({
|
||||
base: '/docs/dist',
|
||||
outDir: 'dist',
|
||||
base: '/docs',
|
||||
outDir: '../public/docs',
|
||||
lang: 'zh-CN',
|
||||
title: 'Fastapi Vue3 Admin',
|
||||
description: '现代、开源、全栈融合的中后台快速开发平台',
|
||||
head: [
|
||||
['link', { rel: 'icon', href: '/favicon.png' }],
|
||||
[
|
||||
"link",
|
||||
{
|
||||
rel: "apple-touch-icon",
|
||||
sizes: "180x180",
|
||||
href: "/favicon.png",
|
||||
},
|
||||
],
|
||||
[
|
||||
"link",
|
||||
{
|
||||
rel: "icon",
|
||||
type: "image/png",
|
||||
sizes: "32x32",
|
||||
href: "/favicon.png",
|
||||
},
|
||||
],
|
||||
[
|
||||
"link",
|
||||
{
|
||||
rel: "icon",
|
||||
type: "image/png",
|
||||
sizes: "16x16",
|
||||
href: "/favicon.png",
|
||||
},
|
||||
],
|
||||
["link", { rel: "shortcut icon", href: "/favicon.png" }],
|
||||
],
|
||||
|
||||
locales: {
|
||||
root: { label: '简体中文' },
|
||||
en: { label: 'English' },
|
||||
@@ -18,7 +45,7 @@ export default defineConfig({
|
||||
cleanUrls: true,
|
||||
metaChunk: true,
|
||||
themeConfig: {
|
||||
logo: '/logo.jpg',
|
||||
logo: '/logo.png',
|
||||
siteTitle: 'Fastapi Vue3 Admin',
|
||||
nav: [
|
||||
{ text: '首页', link: '/' },
|
||||
@@ -73,6 +100,11 @@ export default defineConfig({
|
||||
copyright: 'Copyright © 2025-2026 service.fastapiadmin.com 版权所有 |隐私 |条款 陕ICP备2025069493号-1'
|
||||
},
|
||||
|
||||
docFooter: {
|
||||
prev: "上一页",
|
||||
next: "下一页",
|
||||
},
|
||||
|
||||
search: {
|
||||
provider: 'local',
|
||||
options: {
|
||||
@@ -95,6 +127,24 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
},
|
||||
outline: 3,
|
||||
outline: {
|
||||
level: [2, 3],
|
||||
label: "页面导航",
|
||||
},
|
||||
|
||||
lastUpdated: {
|
||||
text: "最后更新于",
|
||||
formatOptions: {
|
||||
dateStyle: "short", // full
|
||||
timeStyle: "short", // medium
|
||||
},
|
||||
},
|
||||
|
||||
langMenuLabel: "多语言",
|
||||
returnToTopLabel: "回到顶部",
|
||||
sidebarMenuLabel: "菜单",
|
||||
darkModeSwitchLabel: "主题",
|
||||
lightModeSwitchTitle: "切换到浅色模式",
|
||||
darkModeSwitchTitle: "切换到深色模式",
|
||||
}
|
||||
})
|
||||
|
||||
@@ -46,7 +46,3 @@
|
||||
}
|
||||
}
|
||||
|
||||
.VPHero .VPImage {
|
||||
filter: drop-shadow(-2px 4px 6px rgba(0, 0, 0, 0.2));
|
||||
padding: 18px;
|
||||
}
|
||||
Reference in New Issue
Block a user