@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.
Files changed (134) hide show
  1. package/dist/templates/app/src/index.tsx +0 -3
  2. package/dist/templates/src/index.tsx +0 -3
  3. package/package.json +1 -1
  4. package/dist/templates/Loading/__tests__/Loading.test.tsx +0 -23
  5. package/dist/templates/Loading.test.tsx +0 -23
  6. package/dist/templates/__mocks__/fileMock.js +0 -1
  7. package/dist/templates/__mocks__/styleMock.ts +0 -1
  8. package/dist/templates/__tests__/Loading.test.tsx +0 -23
  9. package/dist/templates/__tests__/example.test.ts +0 -7
  10. package/dist/templates/app/locales/en-US/common.json +0 -74
  11. package/dist/templates/app/locales/en-US/generate.json +0 -71
  12. package/dist/templates/app/locales/en-US/nav.json +0 -10
  13. package/dist/templates/app/locales/en-US/overview.json +0 -6
  14. package/dist/templates/app/locales/en-US/retopology.json +0 -4
  15. package/dist/templates/app/locales/en-US/rigging.json +0 -21
  16. package/dist/templates/app/locales/en-US/segmentation.json +0 -4
  17. package/dist/templates/app/locales/en-US/stylization.json +0 -11
  18. package/dist/templates/app/locales/en-US/texture.json +0 -4
  19. package/dist/templates/app/locales/en-US/threeModel.json +0 -9
  20. package/dist/templates/app/locales/en-US/toolbox.json +0 -11
  21. package/dist/templates/app/locales/zh-CN/common.json +0 -74
  22. package/dist/templates/app/locales/zh-CN/generate.json +0 -71
  23. package/dist/templates/app/locales/zh-CN/nav.json +0 -10
  24. package/dist/templates/app/locales/zh-CN/overview.json +0 -6
  25. package/dist/templates/app/locales/zh-CN/retopology.json +0 -4
  26. package/dist/templates/app/locales/zh-CN/rigging.json +0 -21
  27. package/dist/templates/app/locales/zh-CN/segmentation.json +0 -4
  28. package/dist/templates/app/locales/zh-CN/stylization.json +0 -11
  29. package/dist/templates/app/locales/zh-CN/texture.json +0 -4
  30. package/dist/templates/app/locales/zh-CN/threeModel.json +0 -9
  31. package/dist/templates/app/locales/zh-CN/toolbox.json +0 -11
  32. package/dist/templates/app/src/__mocks__/fileMock.js +0 -1
  33. package/dist/templates/app/src/__mocks__/styleMock.ts +0 -1
  34. package/dist/templates/app/src/components/Loading/__tests__/Loading.test.tsx +0 -23
  35. package/dist/templates/app/src/loading.tsx +0 -52
  36. package/dist/templates/app/src/locales/default/chat.ts +0 -455
  37. package/dist/templates/app/src/pages/index.css +0 -282
  38. package/dist/templates/app/src/setupTests.ts +0 -39
  39. package/dist/templates/app/src/test-utils.tsx +0 -18
  40. package/dist/templates/app/src/utils/__tests__/example.test.ts +0 -7
  41. package/dist/templates/app/store/auth/index.tsx +0 -82
  42. package/dist/templates/app/store/auth/indexApi.tsx +0 -11
  43. package/dist/templates/app/store/global/index.tsx +0 -133
  44. package/dist/templates/app/store/global/indexApi.tsx +0 -19
  45. package/dist/templates/app/store/global/types.ts +0 -62
  46. package/dist/templates/app/store/theme/index.ts +0 -25
  47. package/dist/templates/auth/index.tsx +0 -82
  48. package/dist/templates/auth/indexApi.tsx +0 -11
  49. package/dist/templates/chat.ts +0 -455
  50. package/dist/templates/common.json +0 -74
  51. package/dist/templates/components/Loading/__tests__/Loading.test.tsx +0 -23
  52. package/dist/templates/default/chat.ts +0 -455
  53. package/dist/templates/en-US/common.json +0 -74
  54. package/dist/templates/en-US/generate.json +0 -71
  55. package/dist/templates/en-US/nav.json +0 -10
  56. package/dist/templates/en-US/overview.json +0 -6
  57. package/dist/templates/en-US/retopology.json +0 -4
  58. package/dist/templates/en-US/rigging.json +0 -21
  59. package/dist/templates/en-US/segmentation.json +0 -4
  60. package/dist/templates/en-US/stylization.json +0 -11
  61. package/dist/templates/en-US/texture.json +0 -4
  62. package/dist/templates/en-US/threeModel.json +0 -9
  63. package/dist/templates/en-US/toolbox.json +0 -11
  64. package/dist/templates/example.test.ts +0 -7
  65. package/dist/templates/fileMock.js +0 -1
  66. package/dist/templates/generate.json +0 -71
  67. package/dist/templates/global/index.tsx +0 -133
  68. package/dist/templates/global/indexApi.tsx +0 -19
  69. package/dist/templates/global/types.ts +0 -62
  70. package/dist/templates/loading.tsx +0 -52
  71. package/dist/templates/locales/default/chat.ts +0 -455
  72. package/dist/templates/locales/en-US/common.json +0 -74
  73. package/dist/templates/locales/en-US/generate.json +0 -71
  74. package/dist/templates/locales/en-US/nav.json +0 -10
  75. package/dist/templates/locales/en-US/overview.json +0 -6
  76. package/dist/templates/locales/en-US/retopology.json +0 -4
  77. package/dist/templates/locales/en-US/rigging.json +0 -21
  78. package/dist/templates/locales/en-US/segmentation.json +0 -4
  79. package/dist/templates/locales/en-US/stylization.json +0 -11
  80. package/dist/templates/locales/en-US/texture.json +0 -4
  81. package/dist/templates/locales/en-US/threeModel.json +0 -9
  82. package/dist/templates/locales/en-US/toolbox.json +0 -11
  83. package/dist/templates/locales/zh-CN/common.json +0 -74
  84. package/dist/templates/locales/zh-CN/generate.json +0 -71
  85. package/dist/templates/locales/zh-CN/nav.json +0 -10
  86. package/dist/templates/locales/zh-CN/overview.json +0 -6
  87. package/dist/templates/locales/zh-CN/retopology.json +0 -4
  88. package/dist/templates/locales/zh-CN/rigging.json +0 -21
  89. package/dist/templates/locales/zh-CN/segmentation.json +0 -4
  90. package/dist/templates/locales/zh-CN/stylization.json +0 -11
  91. package/dist/templates/locales/zh-CN/texture.json +0 -4
  92. package/dist/templates/locales/zh-CN/threeModel.json +0 -9
  93. package/dist/templates/locales/zh-CN/toolbox.json +0 -11
  94. package/dist/templates/nav.json +0 -10
  95. package/dist/templates/overview.json +0 -6
  96. package/dist/templates/pages/index.css +0 -282
  97. package/dist/templates/retopology.json +0 -4
  98. package/dist/templates/rigging.json +0 -21
  99. package/dist/templates/segmentation.json +0 -4
  100. package/dist/templates/setupTests.ts +0 -39
  101. package/dist/templates/src/__mocks__/fileMock.js +0 -1
  102. package/dist/templates/src/__mocks__/styleMock.ts +0 -1
  103. package/dist/templates/src/components/Loading/__tests__/Loading.test.tsx +0 -23
  104. package/dist/templates/src/loading.tsx +0 -52
  105. package/dist/templates/src/locales/default/chat.ts +0 -455
  106. package/dist/templates/src/pages/index.css +0 -282
  107. package/dist/templates/src/setupTests.ts +0 -39
  108. package/dist/templates/src/test-utils.tsx +0 -18
  109. package/dist/templates/src/utils/__tests__/example.test.ts +0 -7
  110. package/dist/templates/store/auth/index.tsx +0 -82
  111. package/dist/templates/store/auth/indexApi.tsx +0 -11
  112. package/dist/templates/store/global/index.tsx +0 -133
  113. package/dist/templates/store/global/indexApi.tsx +0 -19
  114. package/dist/templates/store/global/types.ts +0 -62
  115. package/dist/templates/store/theme/index.ts +0 -25
  116. package/dist/templates/styleMock.ts +0 -1
  117. package/dist/templates/stylization.json +0 -11
  118. package/dist/templates/test-utils.tsx +0 -18
  119. package/dist/templates/texture.json +0 -4
  120. package/dist/templates/theme/index.ts +0 -25
  121. package/dist/templates/threeModel.json +0 -9
  122. package/dist/templates/toolbox.json +0 -11
  123. package/dist/templates/utils/__tests__/example.test.ts +0 -7
  124. package/dist/templates/zh-CN/common.json +0 -74
  125. package/dist/templates/zh-CN/generate.json +0 -71
  126. package/dist/templates/zh-CN/nav.json +0 -10
  127. package/dist/templates/zh-CN/overview.json +0 -6
  128. package/dist/templates/zh-CN/retopology.json +0 -4
  129. package/dist/templates/zh-CN/rigging.json +0 -21
  130. package/dist/templates/zh-CN/segmentation.json +0 -4
  131. package/dist/templates/zh-CN/stylization.json +0 -11
  132. package/dist/templates/zh-CN/texture.json +0 -4
  133. package/dist/templates/zh-CN/threeModel.json +0 -9
  134. 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,4 +0,0 @@
1
- {
2
- "title": "Texture Gen",
3
- "desc": "Generate entire PBR texture from text / image, or use magic texture brush to have more accurate control"
4
- }
@@ -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,9 +0,0 @@
1
- {
2
- "viewerToolbarButtons": {
3
- "wireframeMode": "线框模式",
4
- "solidMode": "白模模式",
5
- "export": "导出",
6
- "image": "截图",
7
- "rotation": "顺时针旋转"
8
- }
9
- }
@@ -1,11 +0,0 @@
1
- {
2
- "assets": "资源",
3
- "myAssets": "我的资产",
4
- "collected": "已收藏",
5
- "property": "属性",
6
- "material": "材质",
7
- "pbr": "PBR",
8
- "metallic": "金属度",
9
- "roughness": "粗糙度",
10
- "transform": "变换"
11
- }
@@ -1,7 +0,0 @@
1
- // 假设您有一些工具函数需要测试
2
- describe('工具函数测试', () => {
3
- it('示例测试', () => {
4
- const result = 1 + 1;
5
- expect(result).toBe(2);
6
- });
7
- });
@@ -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,10 +0,0 @@
1
- {
2
- "model": "模型",
3
- "generation": "生成",
4
- "overview": "概览",
5
- "segmentation": "分割",
6
- "retopology": "重拓扑",
7
- "texture": "纹理",
8
- "rigging": "绑定",
9
- "stylization": "风格化"
10
- }
@@ -1,6 +0,0 @@
1
- {
2
- "title": "模型详情",
3
- "desc": "查看本模型的快速摘要",
4
- "refer": "参考图",
5
- "prompt": "提示词"
6
- }
@@ -1,4 +0,0 @@
1
- {
2
- "title": "Retopology",
3
- "desc": "Automatically retopologize into clean quad or triangle meshes with optimized topology"
4
- }
@@ -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
- }
@@ -1,4 +0,0 @@
1
- {
2
- "title": "Segmentation",
3
- "desc": "Auto segment your model and make each part editable"
4
- }
@@ -1,11 +0,0 @@
1
- {
2
- "title": "风格化",
3
- "desc": "对3D网格进行艺术风格转换",
4
- "actions": {
5
- "none": "原图",
6
- "lego": "乐高",
7
- "voxel": "像素",
8
- "voronoi": "分形"
9
- },
10
- "apply": "应用"
11
- }
@@ -1,4 +0,0 @@
1
- {
2
- "title": "Texture Gen",
3
- "desc": "Generate entire PBR texture from text / image, or use magic texture brush to have more accurate control"
4
- }
@@ -1,9 +0,0 @@
1
- {
2
- "viewerToolbarButtons": {
3
- "wireframeMode": "线框模式",
4
- "solidMode": "白模模式",
5
- "export": "导出",
6
- "image": "截图",
7
- "rotation": "顺时针旋转"
8
- }
9
- }
@@ -1,11 +0,0 @@
1
- {
2
- "assets": "资源",
3
- "myAssets": "我的资产",
4
- "collected": "已收藏",
5
- "property": "属性",
6
- "material": "材质",
7
- "pbr": "PBR",
8
- "metallic": "金属度",
9
- "roughness": "粗糙度",
10
- "transform": "变换"
11
- }