@4399ywkf/cli 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/templates/app/src/index.tsx +0 -3
- package/dist/templates/src/index.tsx +0 -3
- package/package.json +1 -1
- package/dist/templates/Loading/__tests__/Loading.test.tsx +0 -23
- package/dist/templates/Loading.test.tsx +0 -23
- package/dist/templates/__mocks__/fileMock.js +0 -1
- package/dist/templates/__mocks__/styleMock.ts +0 -1
- package/dist/templates/__tests__/Loading.test.tsx +0 -23
- package/dist/templates/__tests__/example.test.ts +0 -7
- package/dist/templates/app/locales/en-US/common.json +0 -74
- package/dist/templates/app/locales/en-US/generate.json +0 -71
- package/dist/templates/app/locales/en-US/nav.json +0 -10
- package/dist/templates/app/locales/en-US/overview.json +0 -6
- package/dist/templates/app/locales/en-US/retopology.json +0 -4
- package/dist/templates/app/locales/en-US/rigging.json +0 -21
- package/dist/templates/app/locales/en-US/segmentation.json +0 -4
- package/dist/templates/app/locales/en-US/stylization.json +0 -11
- package/dist/templates/app/locales/en-US/texture.json +0 -4
- package/dist/templates/app/locales/en-US/threeModel.json +0 -9
- package/dist/templates/app/locales/en-US/toolbox.json +0 -11
- package/dist/templates/app/locales/zh-CN/common.json +0 -74
- package/dist/templates/app/locales/zh-CN/generate.json +0 -71
- package/dist/templates/app/locales/zh-CN/nav.json +0 -10
- package/dist/templates/app/locales/zh-CN/overview.json +0 -6
- package/dist/templates/app/locales/zh-CN/retopology.json +0 -4
- package/dist/templates/app/locales/zh-CN/rigging.json +0 -21
- package/dist/templates/app/locales/zh-CN/segmentation.json +0 -4
- package/dist/templates/app/locales/zh-CN/stylization.json +0 -11
- package/dist/templates/app/locales/zh-CN/texture.json +0 -4
- package/dist/templates/app/locales/zh-CN/threeModel.json +0 -9
- package/dist/templates/app/locales/zh-CN/toolbox.json +0 -11
- package/dist/templates/app/src/__mocks__/fileMock.js +0 -1
- package/dist/templates/app/src/__mocks__/styleMock.ts +0 -1
- package/dist/templates/app/src/components/Loading/__tests__/Loading.test.tsx +0 -23
- package/dist/templates/app/src/loading.tsx +0 -52
- package/dist/templates/app/src/locales/default/chat.ts +0 -455
- package/dist/templates/app/src/pages/index.css +0 -282
- package/dist/templates/app/src/setupTests.ts +0 -39
- package/dist/templates/app/src/test-utils.tsx +0 -18
- package/dist/templates/app/src/utils/__tests__/example.test.ts +0 -7
- package/dist/templates/app/store/auth/index.tsx +0 -82
- package/dist/templates/app/store/auth/indexApi.tsx +0 -11
- package/dist/templates/app/store/global/index.tsx +0 -133
- package/dist/templates/app/store/global/indexApi.tsx +0 -19
- package/dist/templates/app/store/global/types.ts +0 -62
- package/dist/templates/app/store/theme/index.ts +0 -25
- package/dist/templates/auth/index.tsx +0 -82
- package/dist/templates/auth/indexApi.tsx +0 -11
- package/dist/templates/chat.ts +0 -455
- package/dist/templates/common.json +0 -74
- package/dist/templates/components/Loading/__tests__/Loading.test.tsx +0 -23
- package/dist/templates/default/chat.ts +0 -455
- package/dist/templates/en-US/common.json +0 -74
- package/dist/templates/en-US/generate.json +0 -71
- package/dist/templates/en-US/nav.json +0 -10
- package/dist/templates/en-US/overview.json +0 -6
- package/dist/templates/en-US/retopology.json +0 -4
- package/dist/templates/en-US/rigging.json +0 -21
- package/dist/templates/en-US/segmentation.json +0 -4
- package/dist/templates/en-US/stylization.json +0 -11
- package/dist/templates/en-US/texture.json +0 -4
- package/dist/templates/en-US/threeModel.json +0 -9
- package/dist/templates/en-US/toolbox.json +0 -11
- package/dist/templates/example.test.ts +0 -7
- package/dist/templates/fileMock.js +0 -1
- package/dist/templates/generate.json +0 -71
- package/dist/templates/global/index.tsx +0 -133
- package/dist/templates/global/indexApi.tsx +0 -19
- package/dist/templates/global/types.ts +0 -62
- package/dist/templates/loading.tsx +0 -52
- package/dist/templates/locales/default/chat.ts +0 -455
- package/dist/templates/locales/en-US/common.json +0 -74
- package/dist/templates/locales/en-US/generate.json +0 -71
- package/dist/templates/locales/en-US/nav.json +0 -10
- package/dist/templates/locales/en-US/overview.json +0 -6
- package/dist/templates/locales/en-US/retopology.json +0 -4
- package/dist/templates/locales/en-US/rigging.json +0 -21
- package/dist/templates/locales/en-US/segmentation.json +0 -4
- package/dist/templates/locales/en-US/stylization.json +0 -11
- package/dist/templates/locales/en-US/texture.json +0 -4
- package/dist/templates/locales/en-US/threeModel.json +0 -9
- package/dist/templates/locales/en-US/toolbox.json +0 -11
- package/dist/templates/locales/zh-CN/common.json +0 -74
- package/dist/templates/locales/zh-CN/generate.json +0 -71
- package/dist/templates/locales/zh-CN/nav.json +0 -10
- package/dist/templates/locales/zh-CN/overview.json +0 -6
- package/dist/templates/locales/zh-CN/retopology.json +0 -4
- package/dist/templates/locales/zh-CN/rigging.json +0 -21
- package/dist/templates/locales/zh-CN/segmentation.json +0 -4
- package/dist/templates/locales/zh-CN/stylization.json +0 -11
- package/dist/templates/locales/zh-CN/texture.json +0 -4
- package/dist/templates/locales/zh-CN/threeModel.json +0 -9
- package/dist/templates/locales/zh-CN/toolbox.json +0 -11
- package/dist/templates/nav.json +0 -10
- package/dist/templates/overview.json +0 -6
- package/dist/templates/pages/index.css +0 -282
- package/dist/templates/retopology.json +0 -4
- package/dist/templates/rigging.json +0 -21
- package/dist/templates/segmentation.json +0 -4
- package/dist/templates/setupTests.ts +0 -39
- package/dist/templates/src/__mocks__/fileMock.js +0 -1
- package/dist/templates/src/__mocks__/styleMock.ts +0 -1
- package/dist/templates/src/components/Loading/__tests__/Loading.test.tsx +0 -23
- package/dist/templates/src/loading.tsx +0 -52
- package/dist/templates/src/locales/default/chat.ts +0 -455
- package/dist/templates/src/pages/index.css +0 -282
- package/dist/templates/src/setupTests.ts +0 -39
- package/dist/templates/src/test-utils.tsx +0 -18
- package/dist/templates/src/utils/__tests__/example.test.ts +0 -7
- package/dist/templates/store/auth/index.tsx +0 -82
- package/dist/templates/store/auth/indexApi.tsx +0 -11
- package/dist/templates/store/global/index.tsx +0 -133
- package/dist/templates/store/global/indexApi.tsx +0 -19
- package/dist/templates/store/global/types.ts +0 -62
- package/dist/templates/store/theme/index.ts +0 -25
- package/dist/templates/styleMock.ts +0 -1
- package/dist/templates/stylization.json +0 -11
- package/dist/templates/test-utils.tsx +0 -18
- package/dist/templates/texture.json +0 -4
- package/dist/templates/theme/index.ts +0 -25
- package/dist/templates/threeModel.json +0 -9
- package/dist/templates/toolbox.json +0 -11
- package/dist/templates/utils/__tests__/example.test.ts +0 -7
- package/dist/templates/zh-CN/common.json +0 -74
- package/dist/templates/zh-CN/generate.json +0 -71
- package/dist/templates/zh-CN/nav.json +0 -10
- package/dist/templates/zh-CN/overview.json +0 -6
- package/dist/templates/zh-CN/retopology.json +0 -4
- package/dist/templates/zh-CN/rigging.json +0 -21
- package/dist/templates/zh-CN/segmentation.json +0 -4
- package/dist/templates/zh-CN/stylization.json +0 -11
- package/dist/templates/zh-CN/texture.json +0 -4
- package/dist/templates/zh-CN/threeModel.json +0 -9
- package/dist/templates/zh-CN/toolbox.json +0 -11
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { render, RenderOptions } from '@testing-library/react';
|
|
2
|
-
import { ConfigProvider } from 'antd';
|
|
3
|
-
import React, { ReactElement } from 'react';
|
|
4
|
-
import { BrowserRouter } from 'react-router';
|
|
5
|
-
|
|
6
|
-
// 创建自定义渲染函数
|
|
7
|
-
const AllTheProviders = ({ children }: { children: React.ReactNode }) => {
|
|
8
|
-
return (
|
|
9
|
-
<BrowserRouter>
|
|
10
|
-
<ConfigProvider prefixCls='test'>{children}</ConfigProvider>
|
|
11
|
-
</BrowserRouter>
|
|
12
|
-
);
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const customRender = (ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>) => render(ui, { wrapper: AllTheProviders, ...options });
|
|
16
|
-
|
|
17
|
-
export * from '@testing-library/react';
|
|
18
|
-
export { customRender as render };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { create } from 'zustand';
|
|
2
|
-
import { createJSONStorage, persist } from 'zustand/middleware';
|
|
3
|
-
|
|
4
|
-
interface ThemeStore {
|
|
5
|
-
theme: string;
|
|
6
|
-
setTheme: (theme: string) => void;
|
|
7
|
-
isDark: () => boolean;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const useThemeStore = create<ThemeStore, [['zustand/persist', unknown]]>(
|
|
11
|
-
persist(
|
|
12
|
-
(set, get) => ({
|
|
13
|
-
theme: 'light',
|
|
14
|
-
setTheme: theme => set({ theme }),
|
|
15
|
-
isDark: () => get().theme === 'dark',
|
|
16
|
-
}),
|
|
17
|
-
{
|
|
18
|
-
name: 'theme',
|
|
19
|
-
storage: createJSONStorage(() => localStorage),
|
|
20
|
-
version: 1,
|
|
21
|
-
},
|
|
22
|
-
),
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
export default useThemeStore;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lang": {
|
|
3
|
-
"ar": "阿拉伯语",
|
|
4
|
-
"bg-BG": "保加利亚语",
|
|
5
|
-
"bn": "孟加拉语",
|
|
6
|
-
"cs-CZ": "捷克语",
|
|
7
|
-
"da-DK": "丹麦语",
|
|
8
|
-
"de-DE": "德语",
|
|
9
|
-
"el-GR": "希腊语",
|
|
10
|
-
"en": "英语",
|
|
11
|
-
"en-US": "英语",
|
|
12
|
-
"es-ES": "西班牙语",
|
|
13
|
-
"fa-IR": "波斯语",
|
|
14
|
-
"fi-FI": "芬兰语",
|
|
15
|
-
"fr-FR": "法语",
|
|
16
|
-
"hi-IN": "印地语",
|
|
17
|
-
"hu-HU": "匈牙利语",
|
|
18
|
-
"id-ID": "印尼语",
|
|
19
|
-
"it-IT": "意大利语",
|
|
20
|
-
"ja-JP": "日语",
|
|
21
|
-
"ko-KR": "韩语",
|
|
22
|
-
"nl-NL": "荷兰语",
|
|
23
|
-
"no-NO": "挪威语",
|
|
24
|
-
"pl-PL": "波兰语",
|
|
25
|
-
"pt-BR": "葡萄牙语",
|
|
26
|
-
"pt-PT": "葡萄牙语",
|
|
27
|
-
"ro-RO": "罗马尼亚语",
|
|
28
|
-
"ru-RU": "俄语",
|
|
29
|
-
"sk-SK": "斯洛伐克语",
|
|
30
|
-
"sr-RS": "塞尔维亚语",
|
|
31
|
-
"sv-SE": "瑞典语",
|
|
32
|
-
"th-TH": "泰语",
|
|
33
|
-
"tr-TR": "土耳其语",
|
|
34
|
-
"uk-UA": "乌克兰语",
|
|
35
|
-
"vi-VN": "越南语",
|
|
36
|
-
"zh": "简体中文",
|
|
37
|
-
"zh-CN": "简体中文",
|
|
38
|
-
"zh-TW": "繁体中文"
|
|
39
|
-
},
|
|
40
|
-
"tab": {
|
|
41
|
-
"model": "模型",
|
|
42
|
-
"generate": "生成",
|
|
43
|
-
"overview": "模型概览",
|
|
44
|
-
"segmentation": "分割",
|
|
45
|
-
"retopology": "重拓扑",
|
|
46
|
-
"texture": "纹理",
|
|
47
|
-
"rigging": "一键绑骨",
|
|
48
|
-
"stylization": "风格化"
|
|
49
|
-
},
|
|
50
|
-
"imageUpload": {
|
|
51
|
-
"actions": "点击 / 拖拽",
|
|
52
|
-
"desc": "支持 JPG 和 PNG 格式,最大尺寸为 20 MB"
|
|
53
|
-
},
|
|
54
|
-
"loading": "加载中...",
|
|
55
|
-
"processing": "解析中...",
|
|
56
|
-
"rigging": {
|
|
57
|
-
"run": "自动绑定",
|
|
58
|
-
"preRigging": "骨骼绑定中...",
|
|
59
|
-
"retargeting": "动画中...",
|
|
60
|
-
"stylizing": "风格化中..."
|
|
61
|
-
},
|
|
62
|
-
"tour": {
|
|
63
|
-
"one": {
|
|
64
|
-
"title": "欢迎来到Tripo Studio工作区!",
|
|
65
|
-
"desc": "用鼠标或触控板熟悉视图控制!"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"exportPopover": {
|
|
69
|
-
"fileName": "文件名",
|
|
70
|
-
"fileNamePlaceholder": "请输入文件名",
|
|
71
|
-
"format": "格式",
|
|
72
|
-
"export": "导出"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "生成3D模型",
|
|
3
|
-
"desc": "使用AI技术快速生成高质量的3D模型",
|
|
4
|
-
"textTo3D": "文生模型",
|
|
5
|
-
"imageTo3D": "图生模型",
|
|
6
|
-
"multiViewsTo3D": "多视图生模型",
|
|
7
|
-
"batch3DGen": "批量图生模型",
|
|
8
|
-
"stayTuned": "即将上线",
|
|
9
|
-
"style": {
|
|
10
|
-
"title": "风格",
|
|
11
|
-
"none": "无",
|
|
12
|
-
"cartoon": "卡通",
|
|
13
|
-
"christmas": "圣诞",
|
|
14
|
-
"barbie": "芭比",
|
|
15
|
-
"clay": "粘土",
|
|
16
|
-
"steam_punk": "蒸汽朋克",
|
|
17
|
-
"alien": "外星人",
|
|
18
|
-
"gold": "黄金",
|
|
19
|
-
"bronze": "青铜",
|
|
20
|
-
"wood": "木头",
|
|
21
|
-
"stone": "石头",
|
|
22
|
-
"metal": "金属",
|
|
23
|
-
"plastic": "塑料"
|
|
24
|
-
},
|
|
25
|
-
"hdTexture": {
|
|
26
|
-
"title": "高清纹理",
|
|
27
|
-
"desc": "高分辨率纹理,细节更丰富"
|
|
28
|
-
},
|
|
29
|
-
"modelVersion": {
|
|
30
|
-
"title": "模型",
|
|
31
|
-
"desc": "V2.5-20250123 前所未有的细节与真实感\nV2.0-20240919 行业内领先的几何体与 PBR"
|
|
32
|
-
},
|
|
33
|
-
"topology": {
|
|
34
|
-
"title": "拓扑",
|
|
35
|
-
"desc": "选择四边面将强制输出为 FBX 模型。",
|
|
36
|
-
"quad": "四边面",
|
|
37
|
-
"triangle": "三角面"
|
|
38
|
-
},
|
|
39
|
-
"polycount": {
|
|
40
|
-
"title": "面数限制",
|
|
41
|
-
"auto": "自动"
|
|
42
|
-
},
|
|
43
|
-
"textureAlignment": {
|
|
44
|
-
"title": "纹理对齐",
|
|
45
|
-
"desc": "图像对齐:与原始图像高度相似,可能存在3D细节上的差异\n结构对齐:保持精确的3D结构,可能与原始图像略有不同",
|
|
46
|
-
"originalImageDesc": "图像对齐",
|
|
47
|
-
"geometryDesc": "结构对齐"
|
|
48
|
-
},
|
|
49
|
-
"moreSettings": "高级设置",
|
|
50
|
-
"generate": "生成",
|
|
51
|
-
"front": "正视图",
|
|
52
|
-
"left": "左视图",
|
|
53
|
-
"right": "右视图",
|
|
54
|
-
"back": "后视图",
|
|
55
|
-
"multiViewToModel": {
|
|
56
|
-
"imagesTip": "请上传至少一张正视图以及一张侧视图或后视图。"
|
|
57
|
-
},
|
|
58
|
-
"setting": {
|
|
59
|
-
"autoSize": "尺寸缩放",
|
|
60
|
-
"modelSeed": "模型种子",
|
|
61
|
-
"textureSeed": "纹理种子",
|
|
62
|
-
"autoSizeDesc": "自动将模型缩放到真实尺寸,单位为米。",
|
|
63
|
-
"modelSeedDesc": "种子控制几何生成过程,使用相同种子时生成的模型相同",
|
|
64
|
-
"textureSeedDesc": "使用相同的种子将产生相同的纹理",
|
|
65
|
-
"pbrDesc": "通过模拟物理特性精准呈现物体外观"
|
|
66
|
-
},
|
|
67
|
-
"yes": "是",
|
|
68
|
-
"no": "否",
|
|
69
|
-
"on": "开",
|
|
70
|
-
"off": "关"
|
|
71
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "绑定与动画",
|
|
3
|
-
"desc": "即时自动绑定模型并生成可用动画",
|
|
4
|
-
"run": "自动绑定",
|
|
5
|
-
"actions": {
|
|
6
|
-
"stand": "站立",
|
|
7
|
-
"walk": "行走",
|
|
8
|
-
"run": "跑步",
|
|
9
|
-
"climb": "攀爬",
|
|
10
|
-
"jump": "跳跃",
|
|
11
|
-
"slash": "劈砍",
|
|
12
|
-
"shoot": "射击",
|
|
13
|
-
"hurt": "受击",
|
|
14
|
-
"fall": "坠落",
|
|
15
|
-
"turn": "转身",
|
|
16
|
-
"dive": "翻滚",
|
|
17
|
-
"idle": "待机"
|
|
18
|
-
},
|
|
19
|
-
"retry": "重试",
|
|
20
|
-
"preRiggingFailed": "当前模型不支持自动绑定。"
|
|
21
|
-
}
|