Commit b191f473 by CaIon

fix: use neutral drawing task labels

parent c12e5db4
...@@ -79,10 +79,14 @@ const TYPE_LABEL: Record<string, string> = { ...@@ -79,10 +79,14 @@ const TYPE_LABEL: Record<string, string> = {
log_cleanup: 'Log cleanup', log_cleanup: 'Log cleanup',
channel_test: 'Batch channel test', channel_test: 'Batch channel test',
model_update: 'Batch upstream model update', model_update: 'Batch upstream model update',
midjourney_poll: 'Midjourney task polling', midjourney_poll: 'Drawing task polling',
async_task_poll: 'Async task polling', async_task_poll: 'Async task polling',
} }
const TYPE_DISPLAY_ID: Record<string, string> = {
midjourney_poll: 'drawing_task_poll',
}
function isActiveStatus(status: SystemTaskStatus) { function isActiveStatus(status: SystemTaskStatus) {
return status === 'pending' || status === 'running' return status === 'pending' || status === 'running'
} }
...@@ -136,7 +140,7 @@ function SystemTasksTable(props: SystemTasksTableProps) { ...@@ -136,7 +140,7 @@ function SystemTasksTable(props: SystemTasksTableProps) {
{t(TYPE_LABEL[task.type] ?? task.type)} {t(TYPE_LABEL[task.type] ?? task.type)}
</div> </div>
<div className='text-muted-foreground font-mono text-[11px]'> <div className='text-muted-foreground font-mono text-[11px]'>
{task.type} {TYPE_DISPLAY_ID[task.type] ?? task.type}
</div> </div>
</div> </div>
</TableCell> </TableCell>
......
...@@ -1373,6 +1373,7 @@ ...@@ -1373,6 +1373,7 @@
"Drawing logs": "Drawing logs", "Drawing logs": "Drawing logs",
"Drawing Logs": "Drawing Logs", "Drawing Logs": "Drawing Logs",
"Drawing task records": "Drawing task records", "Drawing task records": "Drawing task records",
"Drawing task polling": "Drawing task polling",
"Duplicate": "Duplicate", "Duplicate": "Duplicate",
"Duplicate group names: {{names}}": "Duplicate group names: {{names}}", "Duplicate group names: {{names}}": "Duplicate group names: {{names}}",
"Duplicate source model mappings are not allowed": "Duplicate source model mappings are not allowed", "Duplicate source model mappings are not allowed": "Duplicate source model mappings are not allowed",
...@@ -2472,7 +2473,6 @@ ...@@ -2472,7 +2473,6 @@
"Merge into Other": "Merge into Other", "Merge into Other": "Merge into Other",
"Message Priority": "Message Priority", "Message Priority": "Message Priority",
"Metadata": "Metadata", "Metadata": "Metadata",
"Midjourney task polling": "Midjourney task polling",
"min downtime": "min downtime", "min downtime": "min downtime",
"Min Top-up": "Min Top-up", "Min Top-up": "Min Top-up",
"Min Top-up:": "Min Top-up:", "Min Top-up:": "Min Top-up:",
......
...@@ -1373,6 +1373,7 @@ ...@@ -1373,6 +1373,7 @@
"Drawing logs": "Journaux de dessin", "Drawing logs": "Journaux de dessin",
"Drawing Logs": "Journaux de dessin", "Drawing Logs": "Journaux de dessin",
"Drawing task records": "Historique des tâches de dessin", "Drawing task records": "Historique des tâches de dessin",
"Drawing task polling": "Interrogation des tâches de dessin",
"Duplicate": "Dupliquer", "Duplicate": "Dupliquer",
"Duplicate group names: {{names}}": "Noms de groupe en double : {{names}}", "Duplicate group names: {{names}}": "Noms de groupe en double : {{names}}",
"Duplicate source model mappings are not allowed": "Les mappages de modèles source en double ne sont pas autorisés", "Duplicate source model mappings are not allowed": "Les mappages de modèles source en double ne sont pas autorisés",
...@@ -2472,7 +2473,6 @@ ...@@ -2472,7 +2473,6 @@
"Merge into Other": "Fusionner dans Autres", "Merge into Other": "Fusionner dans Autres",
"Message Priority": "Priorité du message", "Message Priority": "Priorité du message",
"Metadata": "Métadonnées", "Metadata": "Métadonnées",
"Midjourney task polling": "Interrogation des tâches Midjourney",
"min downtime": "min d'interruption", "min downtime": "min d'interruption",
"Min Top-up": "Recharge min.", "Min Top-up": "Recharge min.",
"Min Top-up:": "Recharge min. :", "Min Top-up:": "Recharge min. :",
......
...@@ -1373,6 +1373,7 @@ ...@@ -1373,6 +1373,7 @@
"Drawing logs": "描画ログ", "Drawing logs": "描画ログ",
"Drawing Logs": "画像生成履歴", "Drawing Logs": "画像生成履歴",
"Drawing task records": "描画タスク記録", "Drawing task records": "描画タスク記録",
"Drawing task polling": "描画タスクのポーリング",
"Duplicate": "複製", "Duplicate": "複製",
"Duplicate group names: {{names}}": "重複するグループ名: {{names}}", "Duplicate group names: {{names}}": "重複するグループ名: {{names}}",
"Duplicate source model mappings are not allowed": "重複したソースモデルのマッピングは許可されていません", "Duplicate source model mappings are not allowed": "重複したソースモデルのマッピングは許可されていません",
...@@ -2472,7 +2473,6 @@ ...@@ -2472,7 +2473,6 @@
"Merge into Other": "その他にまとめる", "Merge into Other": "その他にまとめる",
"Message Priority": "メッセージの優先度", "Message Priority": "メッセージの優先度",
"Metadata": "メタデータ", "Metadata": "メタデータ",
"Midjourney task polling": "Midjourney タスクのポーリング",
"min downtime": "分のダウンタイム", "min downtime": "分のダウンタイム",
"Min Top-up": "最低チャージ額", "Min Top-up": "最低チャージ額",
"Min Top-up:": "最小チャージ額:", "Min Top-up:": "最小チャージ額:",
......
...@@ -1373,6 +1373,7 @@ ...@@ -1373,6 +1373,7 @@
"Drawing logs": "Журналы рисования", "Drawing logs": "Журналы рисования",
"Drawing Logs": "Журнал рисования", "Drawing Logs": "Журнал рисования",
"Drawing task records": "Записи задач рисования", "Drawing task records": "Записи задач рисования",
"Drawing task polling": "Опрос задач рисования",
"Duplicate": "Дублировать", "Duplicate": "Дублировать",
"Duplicate group names: {{names}}": "Повторяющиеся имена групп: {{names}}", "Duplicate group names: {{names}}": "Повторяющиеся имена групп: {{names}}",
"Duplicate source model mappings are not allowed": "Повторяющиеся сопоставления исходных моделей не допускаются", "Duplicate source model mappings are not allowed": "Повторяющиеся сопоставления исходных моделей не допускаются",
...@@ -2472,7 +2473,6 @@ ...@@ -2472,7 +2473,6 @@
"Merge into Other": "Объединить в «Другое»", "Merge into Other": "Объединить в «Другое»",
"Message Priority": "Приоритет сообщения", "Message Priority": "Приоритет сообщения",
"Metadata": "Метаданные", "Metadata": "Метаданные",
"Midjourney task polling": "Опрос задач Midjourney",
"min downtime": "мин простоя", "min downtime": "мин простоя",
"Min Top-up": "Мин. пополнение", "Min Top-up": "Мин. пополнение",
"Min Top-up:": "Мин. пополнение:", "Min Top-up:": "Мин. пополнение:",
......
...@@ -1373,6 +1373,7 @@ ...@@ -1373,6 +1373,7 @@
"Drawing logs": "Nhật ký vẽ", "Drawing logs": "Nhật ký vẽ",
"Drawing Logs": "Nhật ký bản vẽ", "Drawing Logs": "Nhật ký bản vẽ",
"Drawing task records": "Lịch sử tác vụ vẽ", "Drawing task records": "Lịch sử tác vụ vẽ",
"Drawing task polling": "Thăm dò tác vụ vẽ",
"Duplicate": "Nhân bản", "Duplicate": "Nhân bản",
"Duplicate group names: {{names}}": "Tên nhóm bị trùng: {{names}}", "Duplicate group names: {{names}}": "Tên nhóm bị trùng: {{names}}",
"Duplicate source model mappings are not allowed": "Không cho phép ánh xạ mô hình nguồn trùng lặp", "Duplicate source model mappings are not allowed": "Không cho phép ánh xạ mô hình nguồn trùng lặp",
...@@ -2472,7 +2473,6 @@ ...@@ -2472,7 +2473,6 @@
"Merge into Other": "Gộp vào Khác", "Merge into Other": "Gộp vào Khác",
"Message Priority": "Ưu tiên tin nhắn", "Message Priority": "Ưu tiên tin nhắn",
"Metadata": "Siêu dữ liệu", "Metadata": "Siêu dữ liệu",
"Midjourney task polling": "Thăm dò tác vụ Midjourney",
"min downtime": "phút gián đoạn", "min downtime": "phút gián đoạn",
"Min Top-up": "Nạp tối thiểu", "Min Top-up": "Nạp tối thiểu",
"Min Top-up:": "Nạp tối thiểu:", "Min Top-up:": "Nạp tối thiểu:",
......
...@@ -1373,6 +1373,7 @@ ...@@ -1373,6 +1373,7 @@
"Drawing logs": "绘制日志", "Drawing logs": "绘制日志",
"Drawing Logs": "绘图日志", "Drawing Logs": "绘图日志",
"Drawing task records": "绘图任务记录", "Drawing task records": "绘图任务记录",
"Drawing task polling": "绘图任务轮询",
"Duplicate": "重复", "Duplicate": "重复",
"Duplicate group names: {{names}}": "存在重复的分组名称:{{names}}", "Duplicate group names: {{names}}": "存在重复的分组名称:{{names}}",
"Duplicate source model mappings are not allowed": "不允许重复的源模型映射", "Duplicate source model mappings are not allowed": "不允许重复的源模型映射",
...@@ -2472,7 +2473,6 @@ ...@@ -2472,7 +2473,6 @@
"Merge into Other": "合并为其他", "Merge into Other": "合并为其他",
"Message Priority": "消息优先级", "Message Priority": "消息优先级",
"Metadata": "元信息", "Metadata": "元信息",
"Midjourney task polling": "Midjourney 任务轮询",
"min downtime": "分钟停机", "min downtime": "分钟停机",
"Min Top-up": "最低充值", "Min Top-up": "最低充值",
"Min Top-up:": "最低充值:", "Min Top-up:": "最低充值:",
......
...@@ -50,6 +50,7 @@ export const STATIC_I18N_KEYS = [ ...@@ -50,6 +50,7 @@ export const STATIC_I18N_KEYS = [
'stale', 'stale',
'Master instances run scheduled background tasks.', 'Master instances run scheduled background tasks.',
'Worker instances do not run master-only background tasks.', 'Worker instances do not run master-only background tasks.',
'Drawing task polling',
// Pricing constants // Pricing constants
'Name', 'Name',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment