Skip to content

Commit c1442ec

Browse files
huchenleigithub-actions
andauthored
[Cleanup] Remove api nodes news dialog (#3890)
Co-authored-by: github-actions <[email protected]>
1 parent ebd9c96 commit c1442ec

File tree

11 files changed

+0
-246
lines changed

11 files changed

+0
-246
lines changed

browser_tests/fixtures/ComfyPage.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ export class ComfyPage {
275275
localStorage.clear()
276276
sessionStorage.clear()
277277
localStorage.setItem('Comfy.userId', id)
278-
localStorage.setItem('api-nodes-news-seen', 'true')
279278
}, this.id)
280279
}
281280
await this.goto()

src/components/dialog/content/ApiNodesNewsContent.vue

Lines changed: 0 additions & 74 deletions
This file was deleted.

src/locales/en/main.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,26 +1381,6 @@
13811381
"notSet": "Not set",
13821382
"updatePassword": "Update Password"
13831383
},
1384-
"apiNodesNews": {
1385-
"introducing": "Introducing",
1386-
"subtitle": "Access all the popular paid models natively in ComfyUI",
1387-
"steps": {
1388-
"step1": {
1389-
"title": "Login/Create an account:",
1390-
"subtitle": "Settings > User > Login"
1391-
},
1392-
"step2": {
1393-
"title": "Purchase credits:",
1394-
"subtitle": "Settings > Credits > Buy Credits"
1395-
},
1396-
"step3": {
1397-
"title": "Locate new API Nodes under 'API Node' section and add to the canvas"
1398-
},
1399-
"step4": {
1400-
"title": "Run!"
1401-
}
1402-
}
1403-
},
14041384
"selectionToolbox": {
14051385
"executeButton": {
14061386
"tooltip": "Execute to selected output nodes (Highlighted with orange border)",

src/locales/es/main.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,6 @@
44
"title": "Nodo(s) de API",
55
"totalCost": "Costo total"
66
},
7-
"apiNodesNews": {
8-
"introducing": "Presentamos",
9-
"steps": {
10-
"step1": {
11-
"subtitle": "Configuración > Usuario > Iniciar sesión",
12-
"title": "Inicia sesión/Crea una cuenta:"
13-
},
14-
"step2": {
15-
"subtitle": "Configuración > Créditos > Comprar créditos",
16-
"title": "Compra créditos:"
17-
},
18-
"step3": {
19-
"title": "Ubica los nuevos nodos API en la sección 'API Node' y agrégalos al lienzo"
20-
},
21-
"step4": {
22-
"title": "¡Ejecuta!"
23-
}
24-
},
25-
"subtitle": "Todos los modelos externos ahora disponibles en ComfyUI"
26-
},
277
"apiNodesSignInDialog": {
288
"message": "Este flujo de trabajo contiene nodos de API, que requieren que inicies sesión en tu cuenta para poder ejecutar.",
299
"title": "Se requiere iniciar sesión para usar los nodos de API"

src/locales/fr/main.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,6 @@
44
"title": "Nœud(s) API",
55
"totalCost": "Coût total"
66
},
7-
"apiNodesNews": {
8-
"introducing": "Présentation",
9-
"steps": {
10-
"step1": {
11-
"subtitle": "Paramètres > Utilisateur > Connexion",
12-
"title": "Connectez-vous / Créez un compte :"
13-
},
14-
"step2": {
15-
"subtitle": "Paramètres > Crédits > Acheter des crédits",
16-
"title": "Achetez des crédits :"
17-
},
18-
"step3": {
19-
"title": "Trouvez les nouveaux nœuds API dans la section 'API Node' et ajoutez-les à la toile"
20-
},
21-
"step4": {
22-
"title": "Lancez !"
23-
}
24-
},
25-
"subtitle": "Tous les modèles externes sont désormais disponibles dans ComfyUI"
26-
},
277
"apiNodesSignInDialog": {
288
"message": "Ce flux de travail contient des nœuds API, qui nécessitent que vous soyez connecté à votre compte pour pouvoir fonctionner.",
299
"title": "Connexion requise pour utiliser les nœuds API"

src/locales/ja/main.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,6 @@
44
"title": "APIノード",
55
"totalCost": "合計コスト"
66
},
7-
"apiNodesNews": {
8-
"introducing": "紹介",
9-
"steps": {
10-
"step1": {
11-
"subtitle": "設定 > ユーザー > ログイン",
12-
"title": "ログイン/アカウント作成:"
13-
},
14-
"step2": {
15-
"subtitle": "設定 > クレジット > クレジットを購入",
16-
"title": "クレジットを購入:"
17-
},
18-
"step3": {
19-
"title": "「APIノード」セクションで新しいAPIノードを見つけてキャンバスに追加"
20-
},
21-
"step4": {
22-
"title": "実行!"
23-
}
24-
},
25-
"subtitle": "すべての外部モデルがComfyUIで利用可能になりました"
26-
},
277
"apiNodesSignInDialog": {
288
"message": "このワークフローにはAPIノードが含まれており、実行するためにはアカウントにサインインする必要があります。",
299
"title": "APIノードを使用するためにはサインインが必要です"

src/locales/ko/main.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,6 @@
44
"title": "API 노드(들)",
55
"totalCost": "총 비용"
66
},
7-
"apiNodesNews": {
8-
"introducing": "소개합니다",
9-
"steps": {
10-
"step1": {
11-
"subtitle": "설정 > 사용자 > 로그인",
12-
"title": "로그인/계정 생성:"
13-
},
14-
"step2": {
15-
"subtitle": "설정 > 크레딧 > 크레딧 구매",
16-
"title": "크레딧 구매:"
17-
},
18-
"step3": {
19-
"title": "'API Node' 섹션에서 새로운 API 노드를 찾아 캔버스에 추가하세요"
20-
},
21-
"step4": {
22-
"title": "실행!"
23-
}
24-
},
25-
"subtitle": "모든 외부 모델이 이제 ComfyUI에서 사용 가능합니다"
26-
},
277
"apiNodesSignInDialog": {
288
"message": "이 워크플로우에는 API 노드가 포함되어 있으며, 실행하려면 계정에 로그인해야 합니다.",
299
"title": "API 노드 사용에 필요한 로그인"

src/locales/ru/main.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,6 @@
44
"title": "API Node(s)",
55
"totalCost": "Общая стоимость"
66
},
7-
"apiNodesNews": {
8-
"introducing": "Представляем",
9-
"steps": {
10-
"step1": {
11-
"subtitle": "Настройки > Пользователь > Войти",
12-
"title": "Войти/Создать аккаунт:"
13-
},
14-
"step2": {
15-
"subtitle": "Настройки > Кредиты > Купить кредиты",
16-
"title": "Купить кредиты:"
17-
},
18-
"step3": {
19-
"title": "Найдите новые API-узлы в разделе 'API Node' и добавьте их на холст"
20-
},
21-
"step4": {
22-
"title": "Запустить!"
23-
}
24-
},
25-
"subtitle": "Все внешние модели теперь доступны в ComfyUI"
26-
},
277
"apiNodesSignInDialog": {
288
"message": "Этот рабочий процесс содержит API Nodes, которые требуют входа в вашу учетную запись для выполнения.",
299
"title": "Требуется вход для использования API Nodes"

src/locales/zh/main.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,6 @@
44
"title": "API节点",
55
"totalCost": "总成本"
66
},
7-
"apiNodesNews": {
8-
"introducing": "介绍",
9-
"steps": {
10-
"step1": {
11-
"subtitle": "设置 > 用户 > 登录",
12-
"title": "登录/创建账户:"
13-
},
14-
"step2": {
15-
"subtitle": "设置 > 积分 > 购买积分",
16-
"title": "购买积分:"
17-
},
18-
"step3": {
19-
"title": "在“API 节点”部分找到新的 API 节点并添加到画布"
20-
},
21-
"step4": {
22-
"title": "运行!"
23-
}
24-
},
25-
"subtitle": "所有外部模型现已在 ComfyUI 中可用"
26-
},
277
"apiNodesSignInDialog": {
288
"message": "此工作流包含API节点,需要您登录账户才能运行。",
299
"title": "使用API节点需要登录"

src/services/dialogService.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import ApiNodesNewsContent from '@/components/dialog/content/ApiNodesNewsContent.vue'
21
import ApiNodesSignInContent from '@/components/dialog/content/ApiNodesSignInContent.vue'
32
import ConfirmationDialogContent from '@/components/dialog/content/ConfirmationDialogContent.vue'
43
import ErrorDialogContent from '@/components/dialog/content/ErrorDialogContent.vue'
@@ -380,32 +379,6 @@ export const useDialogService = () => {
380379
})
381380
}
382381

383-
/**
384-
* Shows a dialog for the API nodes news.
385-
* TODO: Remove the news dialog on next major feature release.
386-
*/
387-
function showApiNodesNewsDialog() {
388-
if (localStorage.getItem('api-nodes-news-seen') === 'true') {
389-
return
390-
}
391-
392-
return dialogStore.showDialog({
393-
key: 'api-nodes-news',
394-
component: ApiNodesNewsContent,
395-
props: {
396-
dismissableMask: true,
397-
onClose: () => {
398-
dialogStore.closeDialog({ key: 'api-nodes-news' })
399-
localStorage.setItem('api-nodes-news-seen', 'true')
400-
}
401-
},
402-
dialogComponentProps: {
403-
closable: false,
404-
position: 'bottomright'
405-
}
406-
})
407-
}
408-
409382
return {
410383
showLoadWorkflowWarning,
411384
showMissingModelsWarning,
@@ -421,7 +394,6 @@ export const useDialogService = () => {
421394
showSignInDialog,
422395
showTopUpCreditsDialog,
423396
showUpdatePasswordDialog,
424-
showApiNodesNewsDialog,
425397
prompt,
426398
confirm
427399
}

0 commit comments

Comments
 (0)