chore(nuxt): 清理生成文件和类型声明文件

- 删除 .nuxt 目录下的类型声明和配置文件
- 删除构建相关的声明模块
- 添加 .gitignore 以忽略构建产物和依赖目录
- 移除冗余的 Nuxt 配置和类型定义文件
- 清理无用的组件声明和类型文件
This commit is contained in:
2026-04-09 01:02:19 +08:00
parent d8c559b5b1
commit 0f03520c24
35 changed files with 26 additions and 7148 deletions

View File

@@ -1,184 +0,0 @@
import { RuntimeConfig as UserRuntimeConfig, PublicRuntimeConfig as UserPublicRuntimeConfig } from 'nuxt/schema'
interface SharedRuntimeConfig {
app: {
buildId: string,
baseURL: string,
buildAssetsDir: string,
cdnURL: string,
},
nitro: {
envPrefix: string,
},
content: {
databaseVersion: string,
version: string,
database: {
type: string,
filename: string,
},
localDatabase: {
type: string,
filename: string,
},
integrityCheck: boolean,
},
}
interface SharedPublicRuntimeConfig {
tenantId: string,
serverApiBase: string,
modulesApiBase: string,
appApiBase: string,
mpApiBase: string,
fileServerBase: string,
templateId: string,
ServerApi: string,
ApiBase: string,
TenantId: string,
mdc: {
components: {
prose: boolean,
map: any,
customElements: Array<any>,
},
headings: {
anchorLinks: {
h1: boolean,
h2: boolean,
h3: boolean,
h4: boolean,
h5: boolean,
h6: boolean,
},
},
highlight: {
noApiRoute: boolean,
highlighter: string,
theme: {
default: string,
dark: string,
},
shikiEngine: string,
langs: Array<string>,
},
},
content: {
wsUrl: string,
},
i18n: {
baseUrl: string,
defaultLocale: string,
rootRedirect: any,
redirectStatusCode: number,
skipSettingLocaleOnNavigate: boolean,
locales: Array<{
}>,
detectBrowserLanguage: {
alwaysRedirect: boolean,
cookieCrossOrigin: boolean,
cookieDomain: any,
cookieKey: string,
cookieSecure: boolean,
fallbackLocale: string,
redirectOn: string,
useCookie: boolean,
},
experimental: {
localeDetector: string,
typedPages: boolean,
typedOptionsAndMessages: boolean,
alternateLinkCanonicalQueries: boolean,
devCache: boolean,
cacheLifetime: any,
stripMessagesPayload: boolean,
preload: boolean,
strictSeo: boolean,
nitroContextDetection: boolean,
httpCacheDuration: number,
},
domainLocales: {
"zh-CN": {
domain: string,
},
en: {
domain: string,
},
},
},
}
declare module '@nuxt/schema' {
interface RuntimeConfig extends UserRuntimeConfig {}
interface PublicRuntimeConfig extends UserPublicRuntimeConfig {}
}
declare module 'nuxt/schema' {
interface RuntimeConfig extends SharedRuntimeConfig {}
interface PublicRuntimeConfig extends SharedPublicRuntimeConfig {}
}
declare module 'vue' {
interface ComponentCustomProperties {
$config: UserRuntimeConfig
}
}