Skip to content

Commit 06b3451

Browse files
authored
feat(stage-*): allow to connect remote ws server (#953)
1 parent ce56400 commit 06b3451

File tree

18 files changed

+165
-23
lines changed

18 files changed

+165
-23
lines changed

apps/stage-tamagotchi/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"@proj-airi/server-runtime": "workspace:^",
6161
"@proj-airi/server-sdk": "workspace:*",
6262
"@proj-airi/stage-layouts": "workspace:^",
63+
"@proj-airi/stage-pages": "workspace:^",
6364
"@proj-airi/stage-ui": "workspace:^",
6465
"@proj-airi/stage-ui-live2d": "workspace:^",
6566
"@proj-airi/stage-ui-three": "workspace:^",

apps/stage-tamagotchi/src/renderer/layouts/settings.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ const routeHeaderMetadataMap = computed(() => {
104104
subtitle: t('settings.title'),
105105
title: t('settings.pages.data.title'),
106106
},
107+
'/settings/connection': {
108+
subtitle: t('settings.title'),
109+
title: t('settings.pages.connection.title'),
110+
},
107111
'/settings/scene': {
108112
subtitle: t('settings.title'),
109113
title: t('settings.pages.scene.title'),
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<script setup lang="ts">
2+
import ConnectionSettings from '@proj-airi/stage-pages/pages/settings/connection/ConnectionSettings.vue'
3+
</script>
4+
5+
<template>
6+
<ConnectionSettings>
7+
<template #platform-specific />
8+
</ConnectionSettings>
9+
</template>
10+
11+
<route lang="yaml">
12+
meta:
13+
layout: settings
14+
stageTransition:
15+
name: slide
16+
</route>

apps/stage-tamagotchi/src/renderer/pages/settings/index.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ const settings = computed(() => [
6060
icon: 'i-solar:box-minimalistic-bold-duotone',
6161
to: '/settings/providers',
6262
},
63+
{
64+
title: t('settings.pages.connection.title'),
65+
description: t('settings.pages.connection.description'),
66+
icon: 'i-solar:router-bold-duotone',
67+
to: '/settings/connection',
68+
},
6369
{
6470
title: t('settings.pages.system.title'),
6571
description: t('settings.pages.system.description'),

packages/i18n/src/locales/en/settings.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,13 @@ pages:
722722
playground:
723723
title: Transcription Playground
724724
title: Providers
725+
connection:
726+
description: Configure WebSocket server connection
727+
title: Connection
728+
websocket-url:
729+
description: Full address of the WebSocket server (e.g., ws://localhost:6121/ws)
730+
label: WebSocket Server Address
731+
placeholder: ws://localhost:6121/ws
725732
scene:
726733
description: Configure the environment where the character lives
727734
title: Scene

packages/i18n/src/locales/es/settings.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,12 @@ pages:
696696
playground:
697697
title: Playground de Transcripción
698698
title: Proveedores
699+
connection:
700+
description: Configurar la conexión del servidor WebSocket
701+
title: Conexión
702+
websocket-url:
703+
description: "Dirección completa del servidor WebSocket (ej.: ws://localhost:6121/ws)' label: Dirección del servidor WebSocket"
704+
placeholder: ws://localhost:6121/ws
699705
scene:
700706
description: Configurar el entorno donde vive el personaje
701707
title: Escena

packages/i18n/src/locales/ja/settings.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,13 @@ pages:
696696
playground:
697697
title: 文字起こし実験場
698698
title: プロバイダー
699+
connection:
700+
description: WebSocket サーバー接続を設定
701+
title: 接続
702+
websocket-url:
703+
description: WebSocket サーバーの完全なアドレス(例:ws://localhost:6121/ws)
704+
label: WebSocket サーバーアドレス
705+
placeholder: ws://localhost:6121/ws
699706
scene:
700707
description: キャラクターが過ごす環境を設定する
701708
title: シーン

packages/i18n/src/locales/ko/settings.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,13 @@ pages:
696696
playground:
697697
title: Transcription Playground
698698
title: Providers
699+
connection:
700+
description: WebSocket 서버 연결 구성
701+
title: 연결
702+
websocket-url:
703+
description: 'WebSocket 서버의 전체 주소 (예: ws://localhost:6121/ws)'
704+
label: WebSocket 서버 주소
705+
placeholder: ws://localhost:6121/ws
699706
scene:
700707
description: Configure the environment where the character lives
701708
title: Scene

packages/i18n/src/locales/ru/settings.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,13 @@ pages:
696696
playground:
697697
title: Песочница транскрипции
698698
title: Провайдеры
699+
connection:
700+
description: Настроить подключение к WebSocket серверу
701+
title: Подключение
702+
websocket-url:
703+
description: 'Полный адрес WebSocket сервера (например: ws://localhost:6121/ws)'
704+
label: Адрес WebSocket сервера
705+
placeholder: ws://localhost:6121/ws
699706
scene:
700707
description: Настройте окружение, в котором живёт персонаж
701708
title: Сцена

packages/i18n/src/locales/vi/settings.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,13 @@ pages:
696696
playground:
697697
title: Transcription Playground
698698
title: Nhà cung cấp
699+
connection:
700+
description: Cấu hình kết nối máy chủ WebSocket
701+
title: Kết nối
702+
websocket-url:
703+
description: 'Địa chỉ đầy đủ của máy chủ WebSocket (ví dụ: ws://localhost:6121/ws)'
704+
label: Địa chỉ máy chủ WebSocket
705+
placeholder: ws://localhost:6121/ws
699706
scene:
700707
description: Cấu hình môi trường nhân vật sinh sống
701708
title: Bối cảnh

0 commit comments

Comments
 (0)