@4399ywkf/cli 1.0.4 → 1.0.6

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 (142) hide show
  1. package/dist/templates/actions.ts +11 -14
  2. package/dist/templates/app/src/locales/default/index.ts +2 -2
  3. package/dist/templates/app//347/277/273/350/257/221.md +1 -1
  4. package/dist/templates/default/index.ts +2 -2
  5. package/dist/templates/index.css +2 -282
  6. package/dist/templates/initialState.ts +10 -28
  7. package/dist/templates/locales/default/index.ts +2 -2
  8. package/dist/templates/src/locales/default/common.ts +1 -0
  9. package/dist/templates/src/locales/default/index.ts +2 -2
  10. package/dist/templates//347/277/273/350/257/221.md +1 -1
  11. package/package.json +1 -1
  12. package/dist/templates/Loading/__tests__/Loading.test.tsx +0 -23
  13. package/dist/templates/Loading.test.tsx +0 -23
  14. package/dist/templates/__mocks__/fileMock.js +0 -1
  15. package/dist/templates/__tests__/Loading.test.tsx +0 -23
  16. package/dist/templates/__tests__/example.test.ts +0 -7
  17. package/dist/templates/app/locales/en-US/common.json +0 -74
  18. package/dist/templates/app/locales/en-US/generate.json +0 -71
  19. package/dist/templates/app/locales/en-US/nav.json +0 -10
  20. package/dist/templates/app/locales/en-US/overview.json +0 -6
  21. package/dist/templates/app/locales/en-US/retopology.json +0 -4
  22. package/dist/templates/app/locales/en-US/rigging.json +0 -21
  23. package/dist/templates/app/locales/en-US/segmentation.json +0 -4
  24. package/dist/templates/app/locales/en-US/stylization.json +0 -11
  25. package/dist/templates/app/locales/en-US/texture.json +0 -4
  26. package/dist/templates/app/locales/en-US/threeModel.json +0 -9
  27. package/dist/templates/app/locales/en-US/toolbox.json +0 -11
  28. package/dist/templates/app/locales/zh-CN/common.json +0 -74
  29. package/dist/templates/app/locales/zh-CN/generate.json +0 -71
  30. package/dist/templates/app/locales/zh-CN/nav.json +0 -10
  31. package/dist/templates/app/locales/zh-CN/overview.json +0 -6
  32. package/dist/templates/app/locales/zh-CN/retopology.json +0 -4
  33. package/dist/templates/app/locales/zh-CN/rigging.json +0 -21
  34. package/dist/templates/app/locales/zh-CN/segmentation.json +0 -4
  35. package/dist/templates/app/locales/zh-CN/stylization.json +0 -11
  36. package/dist/templates/app/locales/zh-CN/texture.json +0 -4
  37. package/dist/templates/app/locales/zh-CN/threeModel.json +0 -9
  38. package/dist/templates/app/locales/zh-CN/toolbox.json +0 -11
  39. package/dist/templates/app/src/__mocks__/fileMock.js +0 -1
  40. package/dist/templates/app/src/components/Loading/__tests__/Loading.test.tsx +0 -23
  41. package/dist/templates/app/src/loading.tsx +0 -52
  42. package/dist/templates/app/src/locales/default/chat.ts +0 -455
  43. package/dist/templates/app/src/pages/index.css +0 -282
  44. package/dist/templates/app/src/setupTests.ts +0 -39
  45. package/dist/templates/app/src/test-utils.tsx +0 -18
  46. package/dist/templates/app/src/utils/__tests__/example.test.ts +0 -7
  47. package/dist/templates/app/store/auth/index.tsx +0 -82
  48. package/dist/templates/app/store/auth/indexApi.tsx +0 -11
  49. package/dist/templates/app/store/global/index.tsx +0 -133
  50. package/dist/templates/app/store/global/indexApi.tsx +0 -19
  51. package/dist/templates/app/store/global/types.ts +0 -62
  52. package/dist/templates/app/store/theme/index.ts +0 -25
  53. package/dist/templates/auth/index.tsx +0 -82
  54. package/dist/templates/auth/indexApi.tsx +0 -11
  55. package/dist/templates/chat.ts +0 -455
  56. package/dist/templates/common.json +0 -74
  57. package/dist/templates/components/Loading/__tests__/Loading.test.tsx +0 -23
  58. package/dist/templates/default/chat.ts +0 -455
  59. package/dist/templates/en-US/common.json +0 -74
  60. package/dist/templates/en-US/generate.json +0 -71
  61. package/dist/templates/en-US/nav.json +0 -10
  62. package/dist/templates/en-US/overview.json +0 -6
  63. package/dist/templates/en-US/retopology.json +0 -4
  64. package/dist/templates/en-US/rigging.json +0 -21
  65. package/dist/templates/en-US/segmentation.json +0 -4
  66. package/dist/templates/en-US/stylization.json +0 -11
  67. package/dist/templates/en-US/texture.json +0 -4
  68. package/dist/templates/en-US/threeModel.json +0 -9
  69. package/dist/templates/en-US/toolbox.json +0 -11
  70. package/dist/templates/example.test.ts +0 -7
  71. package/dist/templates/fileMock.js +0 -1
  72. package/dist/templates/generate.json +0 -71
  73. package/dist/templates/global/index.tsx +0 -133
  74. package/dist/templates/global/indexApi.tsx +0 -19
  75. package/dist/templates/global/types.ts +0 -62
  76. package/dist/templates/loading.tsx +0 -52
  77. package/dist/templates/locales/default/chat.ts +0 -455
  78. package/dist/templates/locales/en-US/common.json +0 -74
  79. package/dist/templates/locales/en-US/generate.json +0 -71
  80. package/dist/templates/locales/en-US/nav.json +0 -10
  81. package/dist/templates/locales/en-US/overview.json +0 -6
  82. package/dist/templates/locales/en-US/retopology.json +0 -4
  83. package/dist/templates/locales/en-US/rigging.json +0 -21
  84. package/dist/templates/locales/en-US/segmentation.json +0 -4
  85. package/dist/templates/locales/en-US/stylization.json +0 -11
  86. package/dist/templates/locales/en-US/texture.json +0 -4
  87. package/dist/templates/locales/en-US/threeModel.json +0 -9
  88. package/dist/templates/locales/en-US/toolbox.json +0 -11
  89. package/dist/templates/locales/zh-CN/common.json +0 -74
  90. package/dist/templates/locales/zh-CN/generate.json +0 -71
  91. package/dist/templates/locales/zh-CN/nav.json +0 -10
  92. package/dist/templates/locales/zh-CN/overview.json +0 -6
  93. package/dist/templates/locales/zh-CN/retopology.json +0 -4
  94. package/dist/templates/locales/zh-CN/rigging.json +0 -21
  95. package/dist/templates/locales/zh-CN/segmentation.json +0 -4
  96. package/dist/templates/locales/zh-CN/stylization.json +0 -11
  97. package/dist/templates/locales/zh-CN/texture.json +0 -4
  98. package/dist/templates/locales/zh-CN/threeModel.json +0 -9
  99. package/dist/templates/locales/zh-CN/toolbox.json +0 -11
  100. package/dist/templates/nav.json +0 -10
  101. package/dist/templates/overview.json +0 -6
  102. package/dist/templates/pages/index.css +0 -282
  103. package/dist/templates/retopology.json +0 -4
  104. package/dist/templates/rigging.json +0 -21
  105. package/dist/templates/segmentation.json +0 -4
  106. package/dist/templates/setupTests.ts +0 -39
  107. package/dist/templates/src/__mocks__/fileMock.js +0 -1
  108. package/dist/templates/src/components/Loading/__tests__/Loading.test.tsx +0 -23
  109. package/dist/templates/src/loading.tsx +0 -52
  110. package/dist/templates/src/locales/default/chat.ts +0 -455
  111. package/dist/templates/src/pages/index.css +0 -282
  112. package/dist/templates/src/setupTests.ts +0 -39
  113. package/dist/templates/src/test-utils.tsx +0 -18
  114. package/dist/templates/src/utils/__tests__/example.test.ts +0 -7
  115. package/dist/templates/store/auth/index.tsx +0 -82
  116. package/dist/templates/store/auth/indexApi.tsx +0 -11
  117. package/dist/templates/store/global/index.tsx +0 -133
  118. package/dist/templates/store/global/indexApi.tsx +0 -19
  119. package/dist/templates/store/global/types.ts +0 -62
  120. package/dist/templates/store/theme/index.ts +0 -25
  121. package/dist/templates/stylization.json +0 -11
  122. package/dist/templates/test-utils.tsx +0 -18
  123. package/dist/templates/texture.json +0 -4
  124. package/dist/templates/theme/index.ts +0 -25
  125. package/dist/templates/threeModel.json +0 -9
  126. package/dist/templates/toolbox.json +0 -11
  127. package/dist/templates/utils/__tests__/example.test.ts +0 -7
  128. package/dist/templates/zh-CN/common.json +0 -74
  129. package/dist/templates/zh-CN/generate.json +0 -71
  130. package/dist/templates/zh-CN/nav.json +0 -10
  131. package/dist/templates/zh-CN/overview.json +0 -6
  132. package/dist/templates/zh-CN/retopology.json +0 -4
  133. package/dist/templates/zh-CN/rigging.json +0 -21
  134. package/dist/templates/zh-CN/segmentation.json +0 -4
  135. package/dist/templates/zh-CN/stylization.json +0 -11
  136. package/dist/templates/zh-CN/texture.json +0 -4
  137. package/dist/templates/zh-CN/threeModel.json +0 -9
  138. package/dist/templates/zh-CN/toolbox.json +0 -11
  139. /package/dist/templates/{__mocks__/styleMock.ts → app/src/locales/default/common.ts} +0 -0
  140. /package/dist/templates/{app/src/__mocks__/styleMock.ts → common.ts} +0 -0
  141. /package/dist/templates/{src/__mocks__/styleMock.ts → default/common.ts} +0 -0
  142. /package/dist/templates/{styleMock.ts → locales/default/common.ts} +0 -0
@@ -1,23 +1,20 @@
1
- import type { StateCreator } from "zustand/vanilla";
1
+ import type { StateCreator } from 'zustand/vanilla';
2
2
 
3
- import type { UserStore } from "../../store";
4
- import type { AnimationMode, ThemeMode } from "./initialState";
3
+ import type { UserStore } from '../../store';
4
+ import { apiGetV1GatewayProfile } from './api';
5
5
 
6
- export interface UserSettingsAction {
7
- setAnimationMode: (animationMode: AnimationMode) => void;
8
- setThemeMode: (themeMode: ThemeMode) => void;
6
+ export interface UserProfileAction {
7
+ getUserProfile: () => Promise<void>;
9
8
  }
10
9
 
11
- export const createSettingsSlice: StateCreator<
10
+ export const createProfileSlice: StateCreator<
12
11
  UserStore,
13
- [["zustand/devtools", never]],
12
+ [['zustand/devtools', never]],
14
13
  [],
15
- UserSettingsAction
14
+ UserProfileAction
16
15
  > = (set, get) => ({
17
- setAnimationMode: (animationMode: AnimationMode) => {
18
- set({ animationMode });
19
- },
20
- setThemeMode: (themeMode: ThemeMode) => {
21
- set({ themeMode });
16
+ getUserProfile: async () => {
17
+ const { data } = await apiGetV1GatewayProfile();
18
+ set({ user: data });
22
19
  },
23
20
  });
@@ -1,7 +1,7 @@
1
- import chat from './chat';
1
+ import common from "./common";
2
2
 
3
3
  const resources = {
4
- chat,
4
+ common,
5
5
  } as const;
6
6
 
7
7
  export default resources;
@@ -6,4 +6,4 @@ export OPENAI_PROXY_URL="xxxx"
6
6
  export OPENAI_API_KEY="sk-xxx"
7
7
  ```
8
8
 
9
- 3. 在chat目录根目录下,执行 `lobe-i18n`
9
+ 3. 在根目录根目录下,执行 `npx lobe-i18n`
@@ -1,7 +1,7 @@
1
- import chat from './chat';
1
+ import common from "./common";
2
2
 
3
3
  const resources = {
4
- chat,
4
+ common,
5
5
  } as const;
6
6
 
7
7
  export default resources;
@@ -1,282 +1,2 @@
1
- html,
2
- body {
3
- padding: 0;
4
- margin: 0;
5
- width: 100%;
6
- height: 100%;
7
- font-family: PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
8
- }
9
-
10
- #root {
11
- height: 100%;
12
- width: 100%;
13
- }
14
-
15
- p {
16
- margin: 0;
17
- }
18
-
19
- * {
20
- -webkit-font-smoothing: antialiased;
21
- -moz-osx-font-smoothing: grayscale;
22
- box-sizing: border-box;
23
- }
24
-
25
- main {
26
- flex: 1;
27
- display: flex;
28
- flex-direction: column;
29
- justify-content: center;
30
- align-items: center;
31
- }
32
-
33
-
34
- .module__app {
35
- height: calc(100vh - 50px) !important;
36
- position: relative;
37
- width: 100%;
38
- -webkit-box-pack: start;
39
- place-content: flex-start;
40
- align-items: flex-start;
41
- -webkit-font-smoothing: antialiased;
42
- overflow: auto;
43
- }
44
-
45
- :root {
46
- --red-1: 255, 236, 232;
47
- --red-2: 253, 205, 197;
48
- --red-3: 251, 172, 163;
49
- --red-4: 249, 137, 129;
50
- --red-5: 247, 101, 96;
51
- --red-6: 245, 63, 63;
52
- --red-7: 203, 39, 45;
53
- --red-8: 161, 21, 30;
54
- --red-9: 119, 8, 19;
55
- --red-10: 77, 0, 10;
56
- --orangered-1: 255, 243, 232;
57
- --orangered-2: 253, 221, 195;
58
- --orangered-3: 252, 197, 159;
59
- --orangered-4: 250, 172, 123;
60
- --orangered-5: 249, 144, 87;
61
- --orangered-6: 247, 114, 52;
62
- --orangered-7: 204, 81, 32;
63
- --orangered-8: 162, 53, 17;
64
- --orangered-9: 119, 31, 6;
65
- --orangered-10: 77, 14, 0;
66
- --orange-1: 255, 247, 232;
67
- --orange-2: 255, 228, 186;
68
- --orange-3: 255, 207, 139;
69
- --orange-4: 255, 182, 93;
70
- --orange-5: 255, 154, 46;
71
- --orange-6: 255, 125, 0;
72
- --orange-7: 210, 95, 0;
73
- --orange-8: 166, 69, 0;
74
- --orange-9: 121, 46, 0;
75
- --orange-10: 77, 27, 0;
76
- --gold-1: 255, 252, 232;
77
- --gold-2: 253, 244, 191;
78
- --gold-3: 252, 233, 150;
79
- --gold-4: 250, 220, 109;
80
- --gold-5: 249, 204, 69;
81
- --gold-6: 247, 186, 30;
82
- --gold-7: 204, 146, 19;
83
- --gold-8: 162, 109, 10;
84
- --gold-9: 119, 75, 4;
85
- --gold-10: 77, 45, 0;
86
- --yellow-1: 254, 255, 232;
87
- --yellow-2: 254, 254, 190;
88
- --yellow-3: 253, 250, 148;
89
- --yellow-4: 252, 242, 107;
90
- --yellow-5: 251, 232, 66;
91
- --yellow-6: 250, 220, 25;
92
- --yellow-7: 207, 175, 15;
93
- --yellow-8: 163, 132, 8;
94
- --yellow-9: 120, 93, 3;
95
- --yellow-10: 77, 56, 0;
96
- --lime-1: 252, 255, 232;
97
- --lime-2: 237, 248, 187;
98
- --lime-3: 220, 241, 144;
99
- --lime-4: 201, 233, 104;
100
- --lime-5: 181, 226, 65;
101
- --lime-6: 159, 219, 29;
102
- --lime-7: 126, 183, 18;
103
- --lime-8: 95, 148, 10;
104
- --lime-9: 67, 112, 4;
105
- --lime-10: 42, 77, 0;
106
- --green-1: 232, 255, 234;
107
- --green-2: 175, 240, 181;
108
- --green-3: 123, 225, 136;
109
- --green-4: 76, 210, 99;
110
- --green-5: 35, 195, 67;
111
- --green-6: 0, 180, 42;
112
- --green-7: 0, 154, 41;
113
- --green-8: 0, 128, 38;
114
- --green-9: 0, 102, 34;
115
- --green-10: 0, 77, 28;
116
- --cyan-1: 232, 255, 251;
117
- --cyan-2: 183, 244, 236;
118
- --cyan-3: 137, 233, 224;
119
- --cyan-4: 94, 223, 214;
120
- --cyan-5: 55, 212, 207;
121
- --cyan-6: 20, 201, 201;
122
- --cyan-7: 13, 165, 170;
123
- --cyan-8: 7, 130, 139;
124
- --cyan-9: 3, 97, 108;
125
- --cyan-10: 0, 66, 77;
126
- --blue-1: 232, 247, 255;
127
- --blue-2: 195, 231, 254;
128
- --blue-3: 159, 212, 253;
129
- --blue-4: 123, 192, 252;
130
- --blue-5: 87, 169, 251;
131
- --blue-6: 52, 145, 250;
132
- --blue-7: 32, 108, 207;
133
- --blue-8: 17, 75, 163;
134
- --blue-9: 6, 48, 120;
135
- --blue-10: 0, 26, 77;
136
- --arcoblue-1: 232, 243, 255;
137
- --arcoblue-2: 190, 218, 255;
138
- --arcoblue-3: 148, 191, 255;
139
- --arcoblue-4: 106, 161, 255;
140
- --arcoblue-5: 64, 128, 255;
141
- --arcoblue-6: 22, 93, 255;
142
- --arcoblue-7: 14, 66, 210;
143
- --arcoblue-8: 7, 44, 166;
144
- --arcoblue-9: 3, 26, 121;
145
- --arcoblue-10: 0, 13, 77;
146
- --purple-1: 245, 232, 255;
147
- --purple-2: 221, 190, 246;
148
- --purple-3: 195, 150, 237;
149
- --purple-4: 168, 113, 227;
150
- --purple-5: 141, 78, 218;
151
- --purple-6: 114, 46, 209;
152
- --purple-7: 85, 29, 176;
153
- --purple-8: 60, 16, 143;
154
- --purple-9: 39, 6, 110;
155
- --purple-10: 22, 0, 77;
156
- --pinkpurple-1: 255, 232, 251;
157
- --pinkpurple-2: 247, 186, 239;
158
- --pinkpurple-3: 240, 142, 230;
159
- --pinkpurple-4: 232, 101, 223;
160
- --pinkpurple-5: 225, 62, 219;
161
- --pinkpurple-6: 217, 26, 217;
162
- --pinkpurple-7: 176, 16, 182;
163
- --pinkpurple-8: 138, 9, 147;
164
- --pinkpurple-9: 101, 3, 112;
165
- --pinkpurple-10: 66, 0, 77;
166
- --magenta-1: 255, 232, 241;
167
- --magenta-2: 253, 194, 219;
168
- --magenta-3: 251, 157, 199;
169
- --magenta-4: 249, 121, 183;
170
- --magenta-5: 247, 84, 168;
171
- --magenta-6: 245, 49, 157;
172
- --magenta-7: 203, 30, 131;
173
- --magenta-8: 161, 16, 105;
174
- --magenta-9: 119, 6, 79;
175
- --magenta-10: 77, 0, 52;
176
- --gray-1: 247, 248, 250;
177
- --gray-2: 242, 243, 245;
178
- --gray-4: 201, 205, 212;
179
- --gray-5: 169, 174, 184;
180
- --gray-6: 134, 144, 156;
181
- --gray-7: 107, 119, 133;
182
- --gray-8: 78, 89, 105;
183
- --gray-9: 39, 46, 59;
184
- --gray-10: 29, 33, 41;
185
- --data-2: var(--arcoblue-2);
186
- --data-3: 85, 197, 253;
187
- --data-4: 156, 220, 252;
188
- --data-8: var(--green-2);
189
- --data-10: var(--purple-2);
190
- --success-1: var(--green-1);
191
- --success-2: var(--green-2);
192
- --success-3: var(--green-3);
193
- --success-4: var(--green-4);
194
- --success-5: var(--green-5);
195
- --success-6: var(--green-6);
196
- --success-7: var(--green-7);
197
- --success-8: var(--green-8);
198
- --success-9: var(--green-9);
199
- --success-10: var(--green-10);
200
- --primary-1: var(--arcoblue-1);
201
- --primary-2: var(--arcoblue-2);
202
- --primary-3: var(--arcoblue-3);
203
- --primary-4: var(--arcoblue-4);
204
- --primary-5: var(--arcoblue-5);
205
- --primary-6: var(--arcoblue-6);
206
- --primary-7: var(--arcoblue-7);
207
- --primary-8: var(--arcoblue-8);
208
- --primary-9: var(--arcoblue-9);
209
- --primary-10: var(--arcoblue-10);
210
- --danger-1: var(--red-1);
211
- --danger-2: var(--red-2);
212
- --danger-3: var(--red-3);
213
- --danger-4: var(--red-4);
214
- --danger-5: var(--red-5);
215
- --danger-6: var(--red-6);
216
- --danger-7: var(--red-7);
217
- --danger-8: var(--red-8);
218
- --danger-9: var(--red-9);
219
- --danger-10: var(--red-10);
220
- --warning-1: var(--orange-1);
221
- --warning-2: var(--orange-2);
222
- --warning-3: var(--orange-3);
223
- --warning-4: var(--orange-4);
224
- --warning-5: var(--orange-5);
225
- --warning-6: var(--orange-6);
226
- --warning-7: var(--orange-7);
227
- --warning-8: var(--orange-8);
228
- --warning-9: var(--orange-9);
229
- --warning-10: var(--orange-10);
230
- --link-1: var(--arcoblue-1);
231
- --link-2: var(--arcoblue-2);
232
- --link-3: var(--arcoblue-3);
233
- --link-4: var(--arcoblue-4);
234
- --link-5: var(--arcoblue-5);
235
- --link-6: var(--arcoblue-6);
236
- --link-7: var(--arcoblue-7);
237
- --link-8: var(--arcoblue-8);
238
- --link-9: var(--arcoblue-9);
239
- --link-10: var(--arcoblue-10);
240
- --data-1: var(--arcoblue-5);
241
- --data-5: var(--orange-6);
242
- --data-6: var(--orange-3);
243
- --data-7: var(--green-4);
244
- --data-9: var(--purple-4);
245
- --data-11: var(--gold-6);
246
- --data-12: var(--gold-4);
247
- --data-13: var(--lime-6);
248
- --data-14: var(--lime-4);
249
- --data-15: var(--magenta-4);
250
- --data-16: var(--magenta-3);
251
- --data-17: var(--cyan-6);
252
- --data-18: var(--cyan-3);
253
- --data-19: var(--pinkpurple-4);
254
- --data-20: var(--pinkpurple-2);
255
- --container--layout--padding: 20px 32px;
256
- --border-radius-medium: 4px;
257
- --color-border-3: #dde2e9;
258
- --primary-5: 66, 129, 255;
259
- --color-text-1: rgb(29, 33, 41);
260
- --color-fill-2: rgb(242, 243, 245);
261
- --gray-3: 229, 230, 235;
262
- --color-neutral-3: rgb(var(--gray-3));
263
- --container--form--layout--header-height: 64px;
264
- --contexify-zIndex: 666 !important;
265
- --contexify-menu-minWidth: 220px !important;
266
- --contexify-menu-padding: 6px !important;
267
- --contexify-menu-radius: var(--border-radius-medium) !important;
268
- --contexify-menu-bgColor: #fff !important;
269
- --contexify-menu-shadow: 0 4px 10px rgba(0, 0, 0, .1) !important;
270
- --contexify-menu-negatePadding: var(--contexify-menu-padding) !important;
271
- --contexify-separator-color: rgba(0, 0, 0, .2) !important;
272
- --contexify-separator-margin: 5px !important;
273
- --contexify-itemContent-padding: 6px !important;
274
- --contexify-activeItem-radius: 4px !important;
275
- --contexify-item-color: #333 !important;
276
- --contexify-activeItem-color: var(--color-text-1) !important;
277
- --contexify-activeItem-bgColor: var(--color-fill-2) !important;
278
- --contexify-rightSlot-color: #6f6e77 !important;
279
- --contexify-activeRightSlot-color: #fff !important;
280
- --contexify-arrow-color: #6f6e77 !important;
281
- --contexify-activeArrow-color: #fff !important
282
- }
1
+ @import "tailwindcss";
2
+ @variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
@@ -1,32 +1,14 @@
1
- export type AnimationMode = "disabled" | "agile" | "elegant";
2
- export type ResponseAnimationStyle = "smooth" | "fadeIn" | "none";
3
- export type ThemeMode = "auto" | "dark" | "light";
4
- import type {
5
- HighlighterProps,
6
- MermaidProps,
7
- NeutralColors,
8
- PrimaryColors,
9
- } from "@/styles";
1
+ import type { User } from '@/types/user';
10
2
 
11
- export interface UserSettingsState {
12
- animationMode?: AnimationMode;
13
- neutralColor?: NeutralColors;
14
- primaryColor?: PrimaryColors;
15
- fontSize: number;
16
- transitionMode?: ResponseAnimationStyle;
17
- highlighterTheme?: HighlighterProps["theme"];
18
- mermaidTheme?: MermaidProps["theme"];
19
-
20
- themeMode?: ThemeMode;
3
+ export interface UserProfileState {
4
+ user?: User;
21
5
  }
22
6
 
23
- export const initialState: UserSettingsState = {
24
- animationMode: "agile",
25
- neutralColor: undefined,
26
- primaryColor: undefined,
27
- fontSize: 14,
28
- transitionMode: "fadeIn",
29
- highlighterTheme: "lobe-theme",
30
- mermaidTheme: "lobe-theme",
31
- themeMode: "auto",
7
+ export const initialState: UserProfileState = {
8
+ user: {
9
+ id: 0,
10
+ name: '',
11
+ cname: '',
12
+ staffId: '',
13
+ },
32
14
  };
@@ -1,7 +1,7 @@
1
- import chat from './chat';
1
+ import common from "./common";
2
2
 
3
3
  const resources = {
4
- chat,
4
+ common,
5
5
  } as const;
6
6
 
7
7
  export default resources;
@@ -0,0 +1 @@
1
+ export default {};
@@ -1,7 +1,7 @@
1
- import chat from './chat';
1
+ import common from "./common";
2
2
 
3
3
  const resources = {
4
- chat,
4
+ common,
5
5
  } as const;
6
6
 
7
7
  export default resources;
@@ -6,4 +6,4 @@ export OPENAI_PROXY_URL="xxxx"
6
6
  export OPENAI_API_KEY="sk-xxx"
7
7
  ```
8
8
 
9
- 3. 在chat目录根目录下,执行 `lobe-i18n`
9
+ 3. 在根目录根目录下,执行 `npx lobe-i18n`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4399ywkf/cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "运维开发部脚手架",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { render, screen } from '@testing-library/react';
3
- import Loading from '../index';
4
-
5
- describe('Loading Component', () => {
6
- test('renders loading container', () => {
7
- render(<Loading />);
8
- const container = screen.getByTestId('loading-container');
9
- expect(container).toBeInTheDocument();
10
- });
11
-
12
- test('renders loading spinner', () => {
13
- render(<Loading />);
14
- const spinner = screen.getByTestId('loading-spinner');
15
- expect(spinner).toBeInTheDocument();
16
- });
17
-
18
- test('spinner has animation class', () => {
19
- render(<Loading />);
20
- const spinner = screen.getByTestId('loading-spinner');
21
- expect(spinner).toHaveClass('animate-spin');
22
- });
23
- });
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { render, screen } from '@testing-library/react';
3
- import Loading from '../index';
4
-
5
- describe('Loading Component', () => {
6
- test('renders loading container', () => {
7
- render(<Loading />);
8
- const container = screen.getByTestId('loading-container');
9
- expect(container).toBeInTheDocument();
10
- });
11
-
12
- test('renders loading spinner', () => {
13
- render(<Loading />);
14
- const spinner = screen.getByTestId('loading-spinner');
15
- expect(spinner).toBeInTheDocument();
16
- });
17
-
18
- test('spinner has animation class', () => {
19
- render(<Loading />);
20
- const spinner = screen.getByTestId('loading-spinner');
21
- expect(spinner).toHaveClass('animate-spin');
22
- });
23
- });
@@ -1 +0,0 @@
1
- module.exports = 'test-file-stub';
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { render, screen } from '@testing-library/react';
3
- import Loading from '../index';
4
-
5
- describe('Loading Component', () => {
6
- test('renders loading container', () => {
7
- render(<Loading />);
8
- const container = screen.getByTestId('loading-container');
9
- expect(container).toBeInTheDocument();
10
- });
11
-
12
- test('renders loading spinner', () => {
13
- render(<Loading />);
14
- const spinner = screen.getByTestId('loading-spinner');
15
- expect(spinner).toBeInTheDocument();
16
- });
17
-
18
- test('spinner has animation class', () => {
19
- render(<Loading />);
20
- const spinner = screen.getByTestId('loading-spinner');
21
- expect(spinner).toHaveClass('animate-spin');
22
- });
23
- });
@@ -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": "Arabic",
4
- "bg-BG": "Bulgarian",
5
- "bn": "Bengali",
6
- "cs-CZ": "Czech",
7
- "da-DK": "Danish",
8
- "de-DE": "German",
9
- "el-GR": "Greek",
10
- "en": "English",
11
- "en-US": "English",
12
- "es-ES": "Spanish",
13
- "fa-IR": "Persian",
14
- "fi-FI": "Finnish",
15
- "fr-FR": "French",
16
- "hi-IN": "Hindi",
17
- "hu-HU": "Hungarian",
18
- "id-ID": "Indonesian",
19
- "it-IT": "Italian",
20
- "ja-JP": "Japanese",
21
- "ko-KR": "Korean",
22
- "nl-NL": "Dutch",
23
- "no-NO": "Norwegian",
24
- "pl-PL": "Polish",
25
- "pt-BR": "Portuguese",
26
- "pt-PT": "Portuguese",
27
- "ro-RO": "Romanian",
28
- "ru-RU": "Russian",
29
- "sk-SK": "Slovak",
30
- "sr-RS": "Serbian",
31
- "sv-SE": "Swedish",
32
- "th-TH": "Thai",
33
- "tr-TR": "Turkish",
34
- "uk-UA": "Ukrainian",
35
- "vi-VN": "Vietnamese",
36
- "zh": "Simplified Chinese",
37
- "zh-CN": "Simplified Chinese",
38
- "zh-TW": "Traditional Chinese"
39
- },
40
- "tab": {
41
- "model": "Model",
42
- "generate": "Generation",
43
- "overview": "Overview",
44
- "segmentation": "Segmentation",
45
- "retopology": "Retopology",
46
- "texture": "Texture",
47
- "rigging": "Rigging",
48
- "stylization": "Stylization"
49
- },
50
- "imageUpload": {
51
- "actions": "Drag or Upload Image",
52
- "desc": "JPG,PNG, WEBP Size≤20MB"
53
- },
54
- "loading": "Loading...",
55
- "processing": "Processing...",
56
- "rigging": {
57
- "run": "Rigging...",
58
- "preRigging": "Pre Rigging...",
59
- "retargeting": "Retargeting...",
60
- "stylizing": "Stylizing..."
61
- },
62
- "tour": {
63
- "one": {
64
- "title": "Welcome to Tripo Studio Workspace!",
65
- "desc": "Master view controls with your mouse or touchpad!"
66
- }
67
- },
68
- "exportPopover": {
69
- "fileName": "File Name",
70
- "fileNamePlaceholder": "Please enter file name",
71
- "format": "Format",
72
- "export": "Export"
73
- }
74
- }
@@ -1,71 +0,0 @@
1
- {
2
- "title": "Generate 3D Models",
3
- "desc": "Instantly generate high-quality 3D models with AI",
4
- "textTo3D": "Text to 3D",
5
- "imageTo3D": "Image to 3D",
6
- "multiViewsTo3D": "Multi-views to 3D",
7
- "batch3DGen": "Batch 3D Gen",
8
- "stayTuned": "Stay Tuned",
9
- "style": {
10
- "title": "Style",
11
- "none": "None",
12
- "cartoon": "Cartoon",
13
- "christmas": "Christmas",
14
- "barbie": "Barbie",
15
- "clay": "Clay",
16
- "steam_punk": "Steam Punk",
17
- "alien": "Alien",
18
- "gold": "Gold",
19
- "bronze": "Bronze",
20
- "wood": "Wood",
21
- "stone": "Stone",
22
- "metal": "Metal",
23
- "plastic": "Plastic"
24
- },
25
- "hdTexture": {
26
- "title": "HD Texture",
27
- "desc": "High-res textures for refined details"
28
- },
29
- "modelVersion": {
30
- "title": "Version",
31
- "desc": "V2.5-20250123 Unprecedented detail and fidelity\nV2.0-20240919 Industry-leading geometry with PBR"
32
- },
33
- "topology": {
34
- "title": "Topology",
35
- "desc": "Select quad faces to force output as FBX model.",
36
- "quad": "Quad",
37
- "triangle": "Triangle"
38
- },
39
- "polycount": {
40
- "title": "Polycount",
41
- "auto": "Auto"
42
- },
43
- "textureAlignment": {
44
- "title": "Texture Alignment",
45
- "desc": "Image Aligned: Highly similar to the original image, may has 3D detail variations\nStructure Aligned: Maintains precise 3D structure, may slightly differs from the original image",
46
- "originalImageDesc": "Image Aligned",
47
- "geometryDesc": "Structure Aligned"
48
- },
49
- "moreSettings": "More Settings",
50
- "generate": "Generate",
51
- "front": "Front",
52
- "left": "Left",
53
- "right": "Right",
54
- "back": "Back",
55
- "multiViewToModel": {
56
- "imagesTip": "Please upload at least one front view plus one side / back view."
57
- },
58
- "setting": {
59
- "autoSize": "Auto Size",
60
- "modelSeed": "Model Seed",
61
- "textureSeed": "Texture Seed",
62
- "autoSizeDesc": "Automatically scale the model to real size, in meters.",
63
- "modelSeedDesc": "Seed controls the geometry generation process, models generated with the same seed will be the same",
64
- "textureSeedDesc": "Using the same seed will produce the same texture",
65
- "pbrDesc": "Accurately presenting the appearance of objects by simulating physical properties"
66
- },
67
- "yes": "Yes",
68
- "no": "No",
69
- "on": "On",
70
- "off": "Off"
71
- }
@@ -1,10 +0,0 @@
1
- {
2
- "model": "Model",
3
- "generation": "Generation",
4
- "overview": "Overview",
5
- "segmentation": "Segmentation",
6
- "retopology": "Retopology",
7
- "texture": "Texture",
8
- "rigging": "Rigging",
9
- "stylization": "Stylization"
10
- }
@@ -1,6 +0,0 @@
1
- {
2
- "title": "Model Info",
3
- "desc": "View a quick summary of this model.",
4
- "refer": "Reference",
5
- "prompt": "Prompt"
6
- }