Skip to content

Commit 8c5ccb0

Browse files
huchenleigithub-actions
authored andcommitted
[API Nodes] Add API Nodes new feature dialog (#3755)
Co-authored-by: github-actions <[email protected]>
1 parent e9383fc commit 8c5ccb0

File tree

12 files changed

+240
-0
lines changed

12 files changed

+240
-0
lines changed

browser_tests/fixtures/ComfyPage.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ export class ComfyPage {
270270
localStorage.clear()
271271
sessionStorage.clear()
272272
localStorage.setItem('Comfy.userId', id)
273+
localStorage.setItem('api-nodes-news-seen', 'true')
273274
}, this.id)
274275
}
275276
await this.goto()
36 KB
Loading
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<template>
2+
<div class="flex flex-col gap-12 p-2 w-96">
3+
<img src="@/assets/images/api-nodes-news.webp" alt="API Nodes News" />
4+
<div class="flex flex-col gap-2 justify-center items-center">
5+
<div class="text-xl">
6+
{{ $t('apiNodesNews.introducing') }}
7+
<span class="text-amber-500">API NODES</span>
8+
</div>
9+
<div class="text-muted">{{ $t('apiNodesNews.subtitle') }}</div>
10+
</div>
11+
12+
<div class="flex flex-col gap-4">
13+
<div
14+
v-for="(step, index) in steps"
15+
:key="index"
16+
class="grid grid-cols-[auto_1fr] gap-2 items-center"
17+
>
18+
<Tag class="w-8 h-8" :value="index + 1" rounded />
19+
<div class="flex flex-col gap-2">
20+
<div>{{ step.title }}</div>
21+
<div v-if="step.subtitle" class="text-muted">
22+
{{ step.subtitle }}
23+
</div>
24+
</div>
25+
</div>
26+
</div>
27+
28+
<div class="flex flex-row justify-between">
29+
<Button label="Learn More" text @click="handleLearnMore" />
30+
<Button label="Close" @click="onClose" />
31+
</div>
32+
</div>
33+
</template>
34+
35+
<script setup lang="ts">
36+
import Button from 'primevue/button'
37+
import Tag from 'primevue/tag'
38+
import { useI18n } from 'vue-i18n'
39+
40+
const { t } = useI18n()
41+
42+
const steps: {
43+
title: string
44+
subtitle?: string
45+
}[] = [
46+
{
47+
title: t('apiNodesNews.steps.step1.title'),
48+
subtitle: t('apiNodesNews.steps.step1.subtitle')
49+
},
50+
{
51+
title: t('apiNodesNews.steps.step2.title'),
52+
subtitle: t('apiNodesNews.steps.step2.subtitle')
53+
},
54+
{
55+
title: t('apiNodesNews.steps.step3.title')
56+
},
57+
{
58+
title: t('apiNodesNews.steps.step4.title')
59+
}
60+
]
61+
62+
const { onClose } = defineProps<{
63+
onClose: () => void
64+
}>()
65+
66+
const handleLearnMore = () => {
67+
window.open('https://blog.comfy.org/', '_blank')
68+
}
69+
</script>

src/locales/en/main.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,5 +1182,25 @@
11821182
"provider": "Sign-in Provider",
11831183
"notSet": "Not set",
11841184
"updatePassword": "Update Password"
1185+
},
1186+
"apiNodesNews": {
1187+
"introducing": "Introducing",
1188+
"subtitle": "All External Models now available in ComfyUI",
1189+
"steps": {
1190+
"step1": {
1191+
"title": "Login/Create an account:",
1192+
"subtitle": "Settings > User > Login"
1193+
},
1194+
"step2": {
1195+
"title": "Purchase credits:",
1196+
"subtitle": "Settings > Credits > Buy Credits"
1197+
},
1198+
"step3": {
1199+
"title": "Locate new API Nodes under 'API Node' section and add to the canvas"
1200+
},
1201+
"step4": {
1202+
"title": "Run!"
1203+
}
1204+
}
11851205
}
11861206
}

src/locales/es/main.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@
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+
},
727
"apiNodesSignInDialog": {
828
"message": "Este flujo de trabajo contiene nodos de API, que requieren que inicies sesión en tu cuenta para poder ejecutar.",
929
"title": "Se requiere iniciar sesión para usar los nodos de API"

src/locales/fr/main.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@
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+
},
727
"apiNodesSignInDialog": {
828
"message": "Ce flux de travail contient des nœuds API, qui nécessitent que vous soyez connecté à votre compte pour pouvoir fonctionner.",
929
"title": "Connexion requise pour utiliser les nœuds API"

src/locales/ja/main.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@
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+
},
727
"apiNodesSignInDialog": {
828
"message": "このワークフローにはAPIノードが含まれており、実行するためにはアカウントにサインインする必要があります。",
929
"title": "APIノードを使用するためにはサインインが必要です"

src/locales/ko/main.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@
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+
},
727
"apiNodesSignInDialog": {
828
"message": "이 워크플로우에는 API 노드가 포함되어 있으며, 실행하려면 계정에 로그인해야 합니다.",
929
"title": "API 노드 사용에 필요한 로그인"

src/locales/ru/main.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@
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+
},
727
"apiNodesSignInDialog": {
828
"message": "Этот рабочий процесс содержит API Nodes, которые требуют входа в вашу учетную запись для выполнения.",
929
"title": "Требуется вход для использования API Nodes"

src/locales/zh/main.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@
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+
},
727
"apiNodesSignInDialog": {
828
"message": "此工作流包含API节点,需要您登录账户才能运行。",
929
"title": "使用API节点需要登录"

0 commit comments

Comments
 (0)