feat:组件框架

This commit is contained in:
董海洋
2026-05-31 09:36:23 +08:00
parent b371a5341a
commit ba3b3ad5c8
483 changed files with 134708 additions and 1627 deletions
+22 -3
View File
@@ -5,7 +5,12 @@ export const locales = [
{
"id": "zh-CN",
"name": "中文",
"base": "/"
"suffix": ""
},
{
"id": "en-US",
"name": "English",
"suffix": "-en"
}
];
export const messages = {
@@ -57,7 +62,14 @@ export const messages = {
"content.footer.actions.next": "NEXT",
"search.not.found": "No content was found",
"search.loading": "Loading...",
"layout.sidebar.btn": "Sidebar"
"layout.sidebar.btn": "Sidebar",
"app.not-found.back-home": "Back to home page",
"app.not-found.subTitle": "Sorry, the page you visited does not exist.",
"app.theme.switch.dark": "Dark theme",
"app.theme.switch.compact": "Compact theme",
"app.header.menu.more": "More",
"app.footer.last.updated": "Last updated: ",
"app.footer.actions.edit": "Improve this documentation"
},
"zh-CN": {
"header.search.placeholder": "输入关键字搜索...",
@@ -106,6 +118,13 @@ export const messages = {
"content.footer.actions.next": "下一篇",
"search.not.found": "未找到相关内容",
"search.loading": "加载中...",
"layout.sidebar.btn": "侧边菜单"
"layout.sidebar.btn": "侧边菜单",
"app.not-found.back-home": "返回首页",
"app.not-found.subTitle": "你访问的页面貌似不存在?",
"app.theme.switch.dark": "暗黑主题",
"app.theme.switch.compact": "紧凑主题",
"app.header.menu.more": "更多",
"app.footer.last.updated": "最后更新时间:",
"app.footer.actions.edit": "帮助改进此文档"
}
};
@@ -4,7 +4,7 @@
import { history } from 'dumi';
import React, { useState, useLayoutEffect, useCallback, type ReactNode } from 'react';
import { RawIntlProvider, createIntl, createIntlCache } from '/Users/donghym/Desktop/day/UI/Nova/node_modules/.pnpm/react-intl@7.0.0_react@19.2.6_typescript@6.0.3/node_modules/react-intl';
import { useIsomorphicLayoutEffect } from '/Users/donghym/Desktop/day/UI/Nova/node_modules/.pnpm/dumi@2.4.28_@babel+core@7.29.7_@swc+helpers@0.5.15_@types+node@25.9.1_@types+react@18.3_cf46fd6bbea4e97c0978eb785c920599/node_modules/dumi/dist/client/theme-api/utils.js'
import { useIsomorphicLayoutEffect } from '/Users/donghym/Desktop/day/UI/Nova/node_modules/.pnpm/dumi@2.4.28_@babel+core@7.29.7_@types+node@25.9.1_@types+react@19.2.15_eslint@10.4.0_ji_4b5099ce8b49e6def696b2efaf0f9b24/node_modules/dumi/dist/client/theme-api/utils.js'
import { locales, messages } from './config';
const cache = createIntlCache();