MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / renderType

Function renderType

web/src/components/table/MjLogsTable.js:184–336  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

182 }, [visibleColumns]);
183
184 function renderType(type) {
185 switch (type) {
186 case 'IMAGINE':
187 return (
188 <Tag color='blue' shape='circle' prefixIcon={<Palette size={14} />}>
189 {t('绘图')}
190 </Tag>
191 );
192 case 'UPSCALE':
193 return (
194 <Tag color='orange' shape='circle' prefixIcon={<ZoomIn size={14} />}>
195 {t('放大')}
196 </Tag>
197 );
198 case 'VIDEO':
199 return (
200 <Tag color='orange' shape='circle' prefixIcon={<Video size={14} />}>
201 {t('视频')}
202 </Tag>
203 );
204 case 'EDITS':
205 return (
206 <Tag color='orange' shape='circle' prefixIcon={<Video size={14} />}>
207 {t('编辑')}
208 </Tag>
209 );
210 case 'VARIATION':
211 return (
212 <Tag color='purple' shape='circle' prefixIcon={<Shuffle size={14} />}>
213 {t('变换')}
214 </Tag>
215 );
216 case 'HIGH_VARIATION':
217 return (
218 <Tag color='purple' shape='circle' prefixIcon={<Shuffle size={14} />}>
219 {t('强变换')}
220 </Tag>
221 );
222 case 'LOW_VARIATION':
223 return (
224 <Tag color='purple' shape='circle' prefixIcon={<Shuffle size={14} />}>
225 {t('弱变换')}
226 </Tag>
227 );
228 case 'PAN':
229 return (
230 <Tag color='cyan' shape='circle' prefixIcon={<Move size={14} />}>
231 {t('平移')}
232 </Tag>
233 );
234 case 'DESCRIBE':
235 return (
236 <Tag color='yellow' shape='circle' prefixIcon={<FileText size={14} />}>
237 {t('图生文')}
238 </Tag>
239 );
240 case 'BLEND':
241 return (

Callers

nothing calls this directly

Calls 1

tFunction · 0.70

Tested by

no test coverage detected