- 删除应用配置页面及相关组件,重构路由为 /developer/config/[id].vue - 移除开发者文档页面及其导航与样式实现 - 清理开发者侧功能完善工作日志文件 - 删除全局.gitignore配置文件,清理无用忽略规则 - 优化应用配置页面的参数读取和路由结构,解决刷新404问题 - 解决数据库配置唯一键冲突,调整保存逻辑避免重复插入 - 移除对后端配置加密字段的 secret 标记,修正加密异常问题
184 lines
3.0 KiB
TypeScript
184 lines
3.0 KiB
TypeScript
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
|
|
}
|
|
} |