feat(webui): improve setup flows across chat channels (NAN-112) (#5356)
* feat(webui): improve channel setup flows * fix(webui): refine channel setup interactions (NAN-112) * fix(webui): keep email setup sections channel-owned * fix(webui): remove concrete channel details from shared components * refactor(webui): remove unused channel setup resources * fix(webui): finish channel-owned setup boundaries * fix(webui): update channel switches optimistically * test(channels): remove obsolete absence assertions * fix(webui): flatten channel instance settings disclosure * fix(webui): complete channel setup and connection flows * fix(whatsapp): wait for session database release * fix(webui): preserve scrolling channel controls * fix(webui): stage channel connection checks * fix(channels): align verification actions * fix(email): expose connection checks * fix(webui): align channel field actions * fix(email): verify account credentials * fix(wecom): bypass system proxy for websocket * fix(channels): stabilize async connection cleanup * fix(webui): autosave channel credentials * fix(email): make provider presets non-destructive * test(weixin): isolate persisted QR credentials
This commit is contained in:
1 parent
3cc3012b3a
commit
e8a29a0087
291 files changed
+12194
-3979
No files matched your search
@@ -13,7 +13,16 @@ SETUP_SPEC = ChannelSetupSpec(
|
||||
"accessToken": field("secret"),
|
||||
"deviceId": field(),
|
||||
"groupPolicy": field("enum", choices=GROUP_POLICIES, default="open"),
|
||||
"allowFrom": field("list", writable=False),
|
||||
"allowFrom": field("list"),
|
||||
"e2eeEnabled": field("bool", default=False),
|
||||
"sasVerification": field("bool", default=False),
|
||||
"syncStopGraceSeconds": field("int", default=2),
|
||||
"maxMediaBytes": field("int", default=20 * 1024 * 1024),
|
||||
"maxConcurrentMediaDownloads": field("int", default=2),
|
||||
"groupAllowFrom": field("list"),
|
||||
"allowRoomMentions": field("bool", default=False),
|
||||
"streaming": field("bool", default=False),
|
||||
"proxy": field(),
|
||||
},
|
||||
required=(
|
||||
*required_fields("homeserver", "userId"),
|
||||
|
||||
@@ -301,6 +301,7 @@ class MatrixConfig(Base):
|
||||
group_allow_from: list[str] = Field(default_factory=list)
|
||||
allow_room_mentions: bool = False
|
||||
streaming: bool = False
|
||||
proxy: str | None = None
|
||||
|
||||
|
||||
class MatrixChannel(BaseChannel):
|
||||
@@ -356,10 +357,14 @@ class MatrixChannel(BaseChannel):
|
||||
# Replace ':' with '_' to produce a Windows-safe filename
|
||||
safe_store_name = self.config.user_id.replace(":", "_") + f"_{self.config.device_id}.db"
|
||||
|
||||
proxy = self.config.proxy.strip() if self.config.proxy else ""
|
||||
if proxy and "://" not in proxy:
|
||||
proxy = f"http://{proxy}"
|
||||
self.client = AsyncClient(
|
||||
homeserver=self.config.homeserver,
|
||||
user=self.config.user_id,
|
||||
store_path=str(self.store_path),
|
||||
proxy=proxy or None,
|
||||
config=AsyncClientConfig(
|
||||
store_sync_tokens=True,
|
||||
encryption_enabled=self.config.e2ee_enabled,
|
||||
|
||||
@@ -48,11 +48,12 @@ class _DummyTask:
|
||||
|
||||
|
||||
class _FakeAsyncClient:
|
||||
def __init__(self, homeserver, user, store_path, config) -> None:
|
||||
def __init__(self, homeserver, user, store_path, config, proxy=None) -> None:
|
||||
self.homeserver = homeserver
|
||||
self.user = user
|
||||
self.store_path = store_path
|
||||
self.config = config
|
||||
self.proxy = proxy
|
||||
self.user_id: str | None = None
|
||||
self.access_token: str | None = None
|
||||
self.device_id: str | None = None
|
||||
@@ -326,11 +327,15 @@ async def test_start_skips_load_store_when_device_id_missing(
|
||||
"nanobot.channels.matrix.runtime.asyncio.create_task", _fake_create_task
|
||||
)
|
||||
|
||||
channel = MatrixChannel(_make_config(device_id="", e2ee_enabled=True), MessageBus())
|
||||
channel = MatrixChannel(
|
||||
_make_config(device_id="", e2ee_enabled=True, proxy="127.0.0.1:7890"),
|
||||
MessageBus(),
|
||||
)
|
||||
await channel.start()
|
||||
|
||||
assert len(clients) == 1
|
||||
assert clients[0].config.encryption_enabled is True
|
||||
assert clients[0].proxy == "http://127.0.0.1:7890"
|
||||
assert clients[0].load_store_called is False
|
||||
assert len(clients[0].callbacks) == 3
|
||||
assert clients[0].to_device_callbacks == []
|
||||
|
||||
@@ -10,7 +10,7 @@ from nanobot.config.schema import Config
|
||||
@pytest.mark.parametrize(
|
||||
("credentials", "expected_status", "expected_missing"),
|
||||
[
|
||||
({}, "needs_setup", "password_or_accessToken"),
|
||||
({}, "needs_setup", "password"),
|
||||
({"channels.matrix.accessToken": "token"}, "needs_setup", "deviceId"),
|
||||
({"channels.matrix.password": "secret"}, "configured", None),
|
||||
(
|
||||
@@ -49,3 +49,35 @@ def test_validate_matrix_requires_a_complete_login_method(
|
||||
assert result["missing_fields"] == []
|
||||
else:
|
||||
assert expected_missing in result["missing_fields"]
|
||||
|
||||
|
||||
def test_validate_matrix_can_replace_a_saved_password_with_a_token(
|
||||
tmp_path,
|
||||
monkeypatch: pytest.MonkeyPatch,
|
||||
) -> None:
|
||||
config_path = tmp_path / "config.json"
|
||||
save_config(
|
||||
Config.model_validate({
|
||||
"channels": {
|
||||
"matrix": {
|
||||
"homeserver": "https://matrix.example",
|
||||
"userId": "@nanobot:matrix.example",
|
||||
"password": "saved-password",
|
||||
},
|
||||
},
|
||||
}),
|
||||
config_path,
|
||||
)
|
||||
monkeypatch.setattr("nanobot.config.loader._current_config_path", config_path)
|
||||
|
||||
result = validate_channel_config(
|
||||
"matrix",
|
||||
{
|
||||
"channels.matrix.password": None,
|
||||
"channels.matrix.accessToken": "replacement-token",
|
||||
"channels.matrix.deviceId": "DEVICE",
|
||||
},
|
||||
)
|
||||
|
||||
assert result["status"] == "configured"
|
||||
assert result["missing_fields"] == []
|
||||
@@ -25,7 +25,7 @@ def validate(values: dict[str, Any], _context: ChannelValidationContext) -> dict
|
||||
)
|
||||
else:
|
||||
if not password and not access_token:
|
||||
missing.append("password_or_accessToken")
|
||||
missing.append("password")
|
||||
message = "Add a password, or an access token with its device ID."
|
||||
else:
|
||||
missing.append("deviceId")
|
||||
|
||||
@@ -3,20 +3,20 @@ import { chatAppGuideUrl } from "@/components/settings/channels/catalog";
|
||||
|
||||
export default {
|
||||
presentation: {
|
||||
logoUrl: "https://matrix.org/favicon.ico",
|
||||
displayName: "Matrix",
|
||||
initials: "MX",
|
||||
color: "#0DBD8B",
|
||||
logoUrl: "https://matrix.org/favicon.ico",
|
||||
setup: {
|
||||
mode: "credentials",
|
||||
docsUrl: chatAppGuideUrl("matrix"),
|
||||
fields: [
|
||||
{ key: "channels.matrix.homeserver" },
|
||||
{ key: "channels.matrix.userId" },
|
||||
{ key: "channels.matrix.password" },
|
||||
{ key: "channels.matrix.accessToken" },
|
||||
{ key: "channels.matrix.deviceId" },
|
||||
{ key: "channels.matrix.groupPolicy" },
|
||||
{ key: "channels.matrix.homeserver", section: "connection" },
|
||||
{ key: "channels.matrix.userId", section: "account" },
|
||||
{ key: "channels.matrix.password", section: "credentials" },
|
||||
{ key: "channels.matrix.accessToken", section: "credentials" },
|
||||
{ key: "channels.matrix.deviceId", section: "credentials" },
|
||||
{ key: "channels.matrix.groupPolicy", section: "behavior" },
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,16 +1,7 @@
|
||||
{
|
||||
"description": "Use nanobot from Matrix rooms.",
|
||||
"requirements": "Homeserver, account token, room access",
|
||||
"setup": {
|
||||
"docsLabel": "Open Matrix setup",
|
||||
"officialLabel": "Open Matrix clients",
|
||||
"tryIt": "Invite the Matrix account into a room and send a test message.",
|
||||
"summary": "Enter your Matrix homeserver and sign in with a password or access token.",
|
||||
"steps": [
|
||||
"Create or choose a Matrix account for nanobot.",
|
||||
"Enter the homeserver, user ID, and either password or access-token credentials.",
|
||||
"Save and enable Matrix, invite the account to a room, and send a test message."
|
||||
],
|
||||
"fields": {
|
||||
"homeserver": {
|
||||
"label": "Homeserver",
|
||||
@@ -22,18 +13,15 @@
|
||||
},
|
||||
"password": {
|
||||
"label": "Password",
|
||||
"placeholder": "••••••",
|
||||
"help": "Use either password login or access token login."
|
||||
"placeholder": "••••••"
|
||||
},
|
||||
"accessToken": {
|
||||
"label": "Access token",
|
||||
"placeholder": "Enter an access token",
|
||||
"help": "Preferred when your Matrix client exposes an access token."
|
||||
"placeholder": "Enter an access token"
|
||||
},
|
||||
"deviceId": {
|
||||
"label": "Device ID",
|
||||
"placeholder": "Required with an access token",
|
||||
"help": "Copy the device ID associated with the access token. Password login does not need it."
|
||||
"placeholder": "Required with an access token"
|
||||
},
|
||||
"groupPolicy": {
|
||||
"label": "Group behavior",
|
||||
@@ -42,6 +30,53 @@
|
||||
"open": "All messages",
|
||||
"allowlist": "Allowlist"
|
||||
}
|
||||
},
|
||||
"allowFrom": {
|
||||
"label": "Allowed users"
|
||||
},
|
||||
"e2eeEnabled": {
|
||||
"label": "End-to-end encryption",
|
||||
"choices": {
|
||||
"true": "On",
|
||||
"false": "Off"
|
||||
}
|
||||
},
|
||||
"sasVerification": {
|
||||
"label": "SAS verification",
|
||||
"choices": {
|
||||
"true": "On",
|
||||
"false": "Off"
|
||||
}
|
||||
},
|
||||
"syncStopGraceSeconds": {
|
||||
"label": "Sync stop grace period"
|
||||
},
|
||||
"maxMediaBytes": {
|
||||
"label": "Maximum media size"
|
||||
},
|
||||
"maxConcurrentMediaDownloads": {
|
||||
"label": "Concurrent media downloads"
|
||||
},
|
||||
"groupAllowFrom": {
|
||||
"label": "Allowed groups"
|
||||
},
|
||||
"allowRoomMentions": {
|
||||
"label": "Allow room mentions",
|
||||
"choices": {
|
||||
"true": "On",
|
||||
"false": "Off"
|
||||
}
|
||||
},
|
||||
"streaming": {
|
||||
"label": "Streaming",
|
||||
"choices": {
|
||||
"true": "On",
|
||||
"false": "Off"
|
||||
}
|
||||
},
|
||||
"proxy": {
|
||||
"label": "Network proxy",
|
||||
"placeholder": "http://127.0.0.1:7890"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,7 @@
|
||||
{
|
||||
"description": "Usa nanobot desde salas de Matrix.",
|
||||
"requirements": "Servidor de la cuenta, credenciales de acceso y permisos para las salas",
|
||||
"setup": {
|
||||
"docsLabel": "Abrir guía de Matrix",
|
||||
"officialLabel": "Abrir lista de clientes Matrix",
|
||||
"tryIt": "Invita la cuenta de Matrix a una sala y envía un mensaje de prueba.",
|
||||
"summary": "Introduce el servidor de tu cuenta de Matrix e inicia sesión con una contraseña o un token de acceso.",
|
||||
"steps": [
|
||||
"Crea o elige una cuenta de Matrix para nanobot.",
|
||||
"Introduce el servidor de tu cuenta, el ID de usuario y la contraseña o el token de acceso.",
|
||||
"Guarda y activa Matrix, invita la cuenta a una sala y envía un mensaje de prueba."
|
||||
],
|
||||
"fields": {
|
||||
"homeserver": {
|
||||
"label": "Servidor de la cuenta",
|
||||
@@ -22,18 +13,15 @@
|
||||
},
|
||||
"password": {
|
||||
"label": "Contraseña",
|
||||
"placeholder": "••••••",
|
||||
"help": "Usa contraseña o token de acceso."
|
||||
"placeholder": "••••••"
|
||||
},
|
||||
"accessToken": {
|
||||
"label": "Token de acceso",
|
||||
"placeholder": "Introduce un token de acceso",
|
||||
"help": "Preferible si tu cliente Matrix muestra un token de acceso."
|
||||
"placeholder": "Introduce un token de acceso"
|
||||
},
|
||||
"deviceId": {
|
||||
"label": "ID del dispositivo",
|
||||
"placeholder": "Obligatorio con token",
|
||||
"help": "Copia el ID asociado al token. No se necesita con contraseña."
|
||||
"placeholder": "Obligatorio con token"
|
||||
},
|
||||
"groupPolicy": {
|
||||
"label": "Comportamiento en grupos",
|
||||
@@ -42,6 +30,53 @@
|
||||
"open": "Todos los mensajes",
|
||||
"allowlist": "Lista de permitidos"
|
||||
}
|
||||
},
|
||||
"allowFrom": {
|
||||
"label": "Usuarios permitidos"
|
||||
},
|
||||
"e2eeEnabled": {
|
||||
"label": "Cifrado de extremo a extremo",
|
||||
"choices": {
|
||||
"true": "encendido",
|
||||
"false": "Apagado"
|
||||
}
|
||||
},
|
||||
"sasVerification": {
|
||||
"label": "verificación SAS",
|
||||
"choices": {
|
||||
"true": "encendido",
|
||||
"false": "Apagado"
|
||||
}
|
||||
},
|
||||
"syncStopGraceSeconds": {
|
||||
"label": "Período de gracia para detener la sincronización"
|
||||
},
|
||||
"maxMediaBytes": {
|
||||
"label": "Tamaño máximo de medios"
|
||||
},
|
||||
"maxConcurrentMediaDownloads": {
|
||||
"label": "Descargas multimedia simultáneas"
|
||||
},
|
||||
"groupAllowFrom": {
|
||||
"label": "Grupos permitidos"
|
||||
},
|
||||
"allowRoomMentions": {
|
||||
"label": "Permitir menciones de sala",
|
||||
"choices": {
|
||||
"true": "encendido",
|
||||
"false": "Apagado"
|
||||
}
|
||||
},
|
||||
"streaming": {
|
||||
"label": "Transmisión",
|
||||
"choices": {
|
||||
"true": "encendido",
|
||||
"false": "Apagado"
|
||||
}
|
||||
},
|
||||
"proxy": {
|
||||
"label": "Proxy de red",
|
||||
"placeholder": "http://127.0.0.1:7890"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,7 @@
|
||||
{
|
||||
"description": "Utilisez nanobot depuis les salons Matrix.",
|
||||
"requirements": "Serveur d’accueil, jeton de compte et accès aux salons",
|
||||
"setup": {
|
||||
"docsLabel": "Ouvrir le guide Matrix",
|
||||
"officialLabel": "Ouvrir la liste des clients Matrix",
|
||||
"tryIt": "Invitez le compte Matrix dans un salon et envoyez un message test.",
|
||||
"summary": "Saisissez le serveur de votre compte Matrix et connectez-vous avec un mot de passe ou un jeton d’accès.",
|
||||
"steps": [
|
||||
"Créez ou choisissez un compte Matrix pour nanobot.",
|
||||
"Saisissez le serveur, l’ID utilisateur et le mot de passe ou le jeton d’accès.",
|
||||
"Enregistrez et activez Matrix, invitez le compte dans un salon et envoyez un message test."
|
||||
],
|
||||
"fields": {
|
||||
"homeserver": {
|
||||
"label": "Serveur d’accueil",
|
||||
@@ -22,18 +13,15 @@
|
||||
},
|
||||
"password": {
|
||||
"label": "Mot de passe",
|
||||
"placeholder": "••••••",
|
||||
"help": "Utilisez le mot de passe ou le jeton d’accès."
|
||||
"placeholder": "••••••"
|
||||
},
|
||||
"accessToken": {
|
||||
"label": "Jeton d’accès",
|
||||
"placeholder": "Saisir un jeton d’accès",
|
||||
"help": "À privilégier si votre client Matrix expose un jeton d’accès."
|
||||
"placeholder": "Saisir un jeton d’accès"
|
||||
},
|
||||
"deviceId": {
|
||||
"label": "ID de l’appareil",
|
||||
"placeholder": "Requis avec un jeton d’accès",
|
||||
"help": "Copiez l’ID d’appareil associé au jeton. Il n’est pas nécessaire avec un mot de passe."
|
||||
"placeholder": "Requis avec un jeton d’accès"
|
||||
},
|
||||
"groupPolicy": {
|
||||
"label": "Comportement en groupe",
|
||||
@@ -42,6 +30,53 @@
|
||||
"open": "Tous les messages",
|
||||
"allowlist": "Liste d’autorisation"
|
||||
}
|
||||
},
|
||||
"allowFrom": {
|
||||
"label": "Utilisateurs autorisés"
|
||||
},
|
||||
"e2eeEnabled": {
|
||||
"label": "Chiffrement de bout en bout",
|
||||
"choices": {
|
||||
"true": "Sur",
|
||||
"false": "Désactivé"
|
||||
}
|
||||
},
|
||||
"sasVerification": {
|
||||
"label": "Vérification SAS",
|
||||
"choices": {
|
||||
"true": "Sur",
|
||||
"false": "Désactivé"
|
||||
}
|
||||
},
|
||||
"syncStopGraceSeconds": {
|
||||
"label": "Délai de grâce pour l'arrêt de la synchronisation"
|
||||
},
|
||||
"maxMediaBytes": {
|
||||
"label": "Taille maximale du support"
|
||||
},
|
||||
"maxConcurrentMediaDownloads": {
|
||||
"label": "Téléchargements multimédias simultanés"
|
||||
},
|
||||
"groupAllowFrom": {
|
||||
"label": "Groupes autorisés"
|
||||
},
|
||||
"allowRoomMentions": {
|
||||
"label": "Autoriser les mentions de salles",
|
||||
"choices": {
|
||||
"true": "Sur",
|
||||
"false": "Désactivé"
|
||||
}
|
||||
},
|
||||
"streaming": {
|
||||
"label": "Diffusion en continu",
|
||||
"choices": {
|
||||
"true": "Sur",
|
||||
"false": "Désactivé"
|
||||
}
|
||||
},
|
||||
"proxy": {
|
||||
"label": "Proxy réseau",
|
||||
"placeholder": "http://127.0.0.1:7890"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,7 @@
|
||||
{
|
||||
"description": "Gunakan nanobot dari ruang Matrix.",
|
||||
"requirements": "Server akun, kredensial, dan akses ruang",
|
||||
"setup": {
|
||||
"docsLabel": "Buka panduan Matrix",
|
||||
"officialLabel": "Buka daftar klien Matrix",
|
||||
"tryIt": "Undang akun Matrix ke ruang dan kirim pesan uji.",
|
||||
"summary": "Masukkan server akun Matrix, lalu masuk dengan kata sandi atau token akses.",
|
||||
"steps": [
|
||||
"Buat atau pilih akun Matrix untuk nanobot.",
|
||||
"Masukkan server akun, ID pengguna, serta kata sandi atau token akses.",
|
||||
"Simpan dan aktifkan Matrix, undang akun ke ruang, lalu kirim pesan uji."
|
||||
],
|
||||
"fields": {
|
||||
"homeserver": {
|
||||
"label": "Server akun",
|
||||
@@ -22,18 +13,15 @@
|
||||
},
|
||||
"password": {
|
||||
"label": "Kata sandi",
|
||||
"placeholder": "••••••",
|
||||
"help": "Gunakan kata sandi atau token akses."
|
||||
"placeholder": "••••••"
|
||||
},
|
||||
"accessToken": {
|
||||
"label": "Token akses",
|
||||
"placeholder": "Masukkan token akses",
|
||||
"help": "Disarankan jika klien Matrix menyediakan token akses."
|
||||
"placeholder": "Masukkan token akses"
|
||||
},
|
||||
"deviceId": {
|
||||
"label": "ID perangkat",
|
||||
"placeholder": "Wajib dengan token akses",
|
||||
"help": "Salin ID perangkat yang terkait token. Login kata sandi tidak memerlukannya."
|
||||
"placeholder": "Wajib dengan token akses"
|
||||
},
|
||||
"groupPolicy": {
|
||||
"label": "Perilaku grup",
|
||||
@@ -42,6 +30,53 @@
|
||||
"open": "Semua pesan",
|
||||
"allowlist": "Daftar izin"
|
||||
}
|
||||
},
|
||||
"allowFrom": {
|
||||
"label": "Pengguna yang diizinkan"
|
||||
},
|
||||
"e2eeEnabled": {
|
||||
"label": "Enkripsi ujung ke ujung",
|
||||
"choices": {
|
||||
"true": "Aktif",
|
||||
"false": "Mati"
|
||||
}
|
||||
},
|
||||
"sasVerification": {
|
||||
"label": "verifikasi SAS",
|
||||
"choices": {
|
||||
"true": "Aktif",
|
||||
"false": "Mati"
|
||||
}
|
||||
},
|
||||
"syncStopGraceSeconds": {
|
||||
"label": "Sinkronisasi menghentikan masa tenggang"
|
||||
},
|
||||
"maxMediaBytes": {
|
||||
"label": "Ukuran media maksimum"
|
||||
},
|
||||
"maxConcurrentMediaDownloads": {
|
||||
"label": "Pengunduhan media secara bersamaan"
|
||||
},
|
||||
"groupAllowFrom": {
|
||||
"label": "Grup yang diizinkan"
|
||||
},
|
||||
"allowRoomMentions": {
|
||||
"label": "Izinkan penyebutan ruangan",
|
||||
"choices": {
|
||||
"true": "Aktif",
|
||||
"false": "Mati"
|
||||
}
|
||||
},
|
||||
"streaming": {
|
||||
"label": "Streaming",
|
||||
"choices": {
|
||||
"true": "Aktif",
|
||||
"false": "Mati"
|
||||
}
|
||||
},
|
||||
"proxy": {
|
||||
"label": "Proxy jaringan",
|
||||
"placeholder": "http://127.0.0.1:7890"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,7 @@
|
||||
{
|
||||
"description": "Matrix ルームから nanobot を利用します。",
|
||||
"requirements": "ホームサーバー、アカウントトークン、ルームへのアクセス",
|
||||
"setup": {
|
||||
"docsLabel": "Matrix 設定ガイドを開く",
|
||||
"officialLabel": "Matrix クライアント一覧を開く",
|
||||
"tryIt": "Matrix アカウントをルームに招待し、テストメッセージを送信します。",
|
||||
"summary": "Matrix アカウントのホームサーバーを入力し、パスワードまたはアクセストークンでログインします。",
|
||||
"steps": [
|
||||
"nanobot 用の Matrix アカウントを作成または選択します。",
|
||||
"ホームサーバー、ユーザー ID、パスワードまたはアクセストークンを入力します。",
|
||||
"保存して Matrix を有効にし、アカウントをルームに招待してテストメッセージを送信します。"
|
||||
],
|
||||
"fields": {
|
||||
"homeserver": {
|
||||
"label": "ホームサーバー",
|
||||
@@ -22,18 +13,15 @@
|
||||
},
|
||||
"password": {
|
||||
"label": "パスワード",
|
||||
"placeholder": "••••••",
|
||||
"help": "パスワードまたはアクセストークンのどちらかを使います。"
|
||||
"placeholder": "••••••"
|
||||
},
|
||||
"accessToken": {
|
||||
"label": "アクセストークン",
|
||||
"placeholder": "アクセストークンを入力",
|
||||
"help": "Matrix クライアントでアクセストークンを取得できる場合に推奨します。"
|
||||
"placeholder": "アクセストークンを入力"
|
||||
},
|
||||
"deviceId": {
|
||||
"label": "デバイス ID",
|
||||
"placeholder": "アクセストークン使用時に必須",
|
||||
"help": "トークンに関連付けられたデバイス ID をコピーします。パスワードログインでは不要です。"
|
||||
"placeholder": "アクセストークン使用時に必須"
|
||||
},
|
||||
"groupPolicy": {
|
||||
"label": "グループでの動作",
|
||||
@@ -42,6 +30,53 @@
|
||||
"open": "すべてのメッセージ",
|
||||
"allowlist": "許可リスト"
|
||||
}
|
||||
},
|
||||
"allowFrom": {
|
||||
"label": "許可されたユーザー"
|
||||
},
|
||||
"e2eeEnabled": {
|
||||
"label": "エンドツーエンドの暗号化",
|
||||
"choices": {
|
||||
"true": "オン",
|
||||
"false": "オフ"
|
||||
}
|
||||
},
|
||||
"sasVerification": {
|
||||
"label": "SAS 検証",
|
||||
"choices": {
|
||||
"true": "オン",
|
||||
"false": "オフ"
|
||||
}
|
||||
},
|
||||
"syncStopGraceSeconds": {
|
||||
"label": "同期停止猶予期間"
|
||||
},
|
||||
"maxMediaBytes": {
|
||||
"label": "最大メディアサイズ"
|
||||
},
|
||||
"maxConcurrentMediaDownloads": {
|
||||
"label": "メディアの同時ダウンロード"
|
||||
},
|
||||
"groupAllowFrom": {
|
||||
"label": "許可されたグループ"
|
||||
},
|
||||
"allowRoomMentions": {
|
||||
"label": "部屋のメンションを許可する",
|
||||
"choices": {
|
||||
"true": "オン",
|
||||
"false": "オフ"
|
||||
}
|
||||
},
|
||||
"streaming": {
|
||||
"label": "ストリーミング",
|
||||
"choices": {
|
||||
"true": "オン",
|
||||
"false": "オフ"
|
||||
}
|
||||
},
|
||||
"proxy": {
|
||||
"label": "ネットワークプロキシ",
|
||||
"placeholder": "http://127.0.0.1:7890"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,7 @@
|
||||
{
|
||||
"description": "Matrix 룸에서 nanobot을 사용합니다.",
|
||||
"requirements": "홈서버, 계정 토큰 및 룸 접근 권한",
|
||||
"setup": {
|
||||
"docsLabel": "Matrix 설정 가이드 열기",
|
||||
"officialLabel": "Matrix 클라이언트 목록 열기",
|
||||
"tryIt": "Matrix 계정을 룸에 초대하고 테스트 메시지를 보내세요.",
|
||||
"summary": "Matrix 계정의 홈서버를 입력하고 비밀번호 또는 액세스 토큰으로 로그인하세요.",
|
||||
"steps": [
|
||||
"nanobot용 Matrix 계정을 만들거나 선택하세요.",
|
||||
"홈서버, 사용자 ID, 비밀번호 또는 액세스 토큰을 입력하세요.",
|
||||
"저장하고 Matrix를 활성화한 다음 계정을 룸에 초대하고 테스트 메시지를 보내세요."
|
||||
],
|
||||
"fields": {
|
||||
"homeserver": {
|
||||
"label": "홈서버",
|
||||
@@ -22,18 +13,15 @@
|
||||
},
|
||||
"password": {
|
||||
"label": "비밀번호",
|
||||
"placeholder": "••••••",
|
||||
"help": "비밀번호 또는 액세스 토큰 중 하나를 사용하세요."
|
||||
"placeholder": "••••••"
|
||||
},
|
||||
"accessToken": {
|
||||
"label": "액세스 토큰",
|
||||
"placeholder": "액세스 토큰 입력",
|
||||
"help": "Matrix 클라이언트에서 토큰을 확인할 수 있다면 권장합니다."
|
||||
"placeholder": "액세스 토큰 입력"
|
||||
},
|
||||
"deviceId": {
|
||||
"label": "장치 ID",
|
||||
"placeholder": "액세스 토큰 사용 시 필수",
|
||||
"help": "토큰과 연결된 장치 ID를 복사하세요. 비밀번호 로그인에는 필요하지 않습니다."
|
||||
"placeholder": "액세스 토큰 사용 시 필수"
|
||||
},
|
||||
"groupPolicy": {
|
||||
"label": "그룹 동작",
|
||||
@@ -42,6 +30,53 @@
|
||||
"open": "모든 메시지",
|
||||
"allowlist": "허용 목록"
|
||||
}
|
||||
},
|
||||
"allowFrom": {
|
||||
"label": "허용된 사용자"
|
||||
},
|
||||
"e2eeEnabled": {
|
||||
"label": "엔드투엔드 암호화",
|
||||
"choices": {
|
||||
"true": "켜기",
|
||||
"false": "끄기"
|
||||
}
|
||||
},
|
||||
"sasVerification": {
|
||||
"label": "SAS 검증",
|
||||
"choices": {
|
||||
"true": "켜기",
|
||||
"false": "끄기"
|
||||
}
|
||||
},
|
||||
"syncStopGraceSeconds": {
|
||||
"label": "동기화 중지 유예 기간"
|
||||
},
|
||||
"maxMediaBytes": {
|
||||
"label": "최대 미디어 크기"
|
||||
},
|
||||
"maxConcurrentMediaDownloads": {
|
||||
"label": "동시 미디어 다운로드"
|
||||
},
|
||||
"groupAllowFrom": {
|
||||
"label": "허용된 그룹"
|
||||
},
|
||||
"allowRoomMentions": {
|
||||
"label": "회의실 언급 허용",
|
||||
"choices": {
|
||||
"true": "켜기",
|
||||
"false": "끄기"
|
||||
}
|
||||
},
|
||||
"streaming": {
|
||||
"label": "스트리밍",
|
||||
"choices": {
|
||||
"true": "켜기",
|
||||
"false": "끄기"
|
||||
}
|
||||
},
|
||||
"proxy": {
|
||||
"label": "네트워크 프록시",
|
||||
"placeholder": "http://127.0.0.1:7890"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,7 @@
|
||||
{
|
||||
"description": "Use o nanobot em salas do Matrix.",
|
||||
"requirements": "Servidor da conta, credenciais e acesso às salas",
|
||||
"setup": {
|
||||
"docsLabel": "Abrir guia do Matrix",
|
||||
"officialLabel": "Abrir lista de clientes Matrix",
|
||||
"tryIt": "Convide a conta Matrix para uma sala e envie uma mensagem de teste.",
|
||||
"summary": "Informe o servidor da sua conta Matrix e entre com uma senha ou um token de acesso.",
|
||||
"steps": [
|
||||
"Crie ou escolha uma conta Matrix para o nanobot.",
|
||||
"Informe o servidor da conta, o ID de usuário e a senha ou o token de acesso.",
|
||||
"Salve e ative o Matrix, convide a conta para uma sala e envie uma mensagem de teste."
|
||||
],
|
||||
"fields": {
|
||||
"homeserver": {
|
||||
"label": "Servidor da conta",
|
||||
@@ -22,18 +13,15 @@
|
||||
},
|
||||
"password": {
|
||||
"label": "Senha",
|
||||
"placeholder": "••••••",
|
||||
"help": "Use senha ou token de acesso."
|
||||
"placeholder": "••••••"
|
||||
},
|
||||
"accessToken": {
|
||||
"label": "Token de acesso",
|
||||
"placeholder": "Informe um token de acesso",
|
||||
"help": "Preferível quando o cliente Matrix fornece um token."
|
||||
"placeholder": "Informe um token de acesso"
|
||||
},
|
||||
"deviceId": {
|
||||
"label": "ID do dispositivo",
|
||||
"placeholder": "Obrigatório com token",
|
||||
"help": "Copie o ID associado ao token. O login por senha não precisa dele."
|
||||
"placeholder": "Obrigatório com token"
|
||||
},
|
||||
"groupPolicy": {
|
||||
"label": "Comportamento em grupos",
|
||||
@@ -42,6 +30,53 @@
|
||||
"open": "Todas as mensagens",
|
||||
"allowlist": "Lista de permissão"
|
||||
}
|
||||
},
|
||||
"allowFrom": {
|
||||
"label": "Usuários permitidos"
|
||||
},
|
||||
"e2eeEnabled": {
|
||||
"label": "Criptografia ponta a ponta",
|
||||
"choices": {
|
||||
"true": "Ligado",
|
||||
"false": "Desligado"
|
||||
}
|
||||
},
|
||||
"sasVerification": {
|
||||
"label": "Verificação SAS",
|
||||
"choices": {
|
||||
"true": "Ligado",
|
||||
"false": "Desligado"
|
||||
}
|
||||
},
|
||||
"syncStopGraceSeconds": {
|
||||
"label": "Período de carência para interrupção da sincronização"
|
||||
},
|
||||
"maxMediaBytes": {
|
||||
"label": "Tamanho máximo da mídia"
|
||||
},
|
||||
"maxConcurrentMediaDownloads": {
|
||||
"label": "Downloads simultâneos de mídia"
|
||||
},
|
||||
"groupAllowFrom": {
|
||||
"label": "Grupos permitidos"
|
||||
},
|
||||
"allowRoomMentions": {
|
||||
"label": "Permitir menções à sala",
|
||||
"choices": {
|
||||
"true": "Ligado",
|
||||
"false": "Desligado"
|
||||
}
|
||||
},
|
||||
"streaming": {
|
||||
"label": "Transmissão",
|
||||
"choices": {
|
||||
"true": "Ligado",
|
||||
"false": "Desligado"
|
||||
}
|
||||
},
|
||||
"proxy": {
|
||||
"label": "Proxy de rede",
|
||||
"placeholder": "http://127.0.0.1:7890"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,7 @@
|
||||
{
|
||||
"description": "Sử dụng nanobot từ các phòng Matrix.",
|
||||
"requirements": "Máy chủ tài khoản, thông tin đăng nhập và quyền truy cập phòng",
|
||||
"setup": {
|
||||
"docsLabel": "Mở hướng dẫn Matrix",
|
||||
"officialLabel": "Mở danh sách ứng dụng Matrix",
|
||||
"tryIt": "Mời tài khoản Matrix vào phòng và gửi tin nhắn thử.",
|
||||
"summary": "Nhập máy chủ của tài khoản Matrix rồi đăng nhập bằng mật khẩu hoặc token truy cập.",
|
||||
"steps": [
|
||||
"Tạo hoặc chọn tài khoản Matrix cho nanobot.",
|
||||
"Nhập máy chủ tài khoản, ID người dùng và mật khẩu hoặc token truy cập.",
|
||||
"Lưu và bật Matrix, mời tài khoản vào phòng rồi gửi tin nhắn thử."
|
||||
],
|
||||
"fields": {
|
||||
"homeserver": {
|
||||
"label": "Máy chủ tài khoản",
|
||||
@@ -22,18 +13,15 @@
|
||||
},
|
||||
"password": {
|
||||
"label": "Mật khẩu",
|
||||
"placeholder": "••••••",
|
||||
"help": "Dùng mật khẩu hoặc token truy cập."
|
||||
"placeholder": "••••••"
|
||||
},
|
||||
"accessToken": {
|
||||
"label": "Token truy cập",
|
||||
"placeholder": "Nhập token truy cập",
|
||||
"help": "Nên dùng khi ứng dụng Matrix cung cấp token truy cập."
|
||||
"placeholder": "Nhập token truy cập"
|
||||
},
|
||||
"deviceId": {
|
||||
"label": "ID thiết bị",
|
||||
"placeholder": "Bắt buộc khi dùng token",
|
||||
"help": "Sao chép ID thiết bị gắn với token. Đăng nhập mật khẩu không cần."
|
||||
"placeholder": "Bắt buộc khi dùng token"
|
||||
},
|
||||
"groupPolicy": {
|
||||
"label": "Hành vi trong nhóm",
|
||||
@@ -42,6 +30,53 @@
|
||||
"open": "Mọi tin nhắn",
|
||||
"allowlist": "Danh sách cho phép"
|
||||
}
|
||||
},
|
||||
"allowFrom": {
|
||||
"label": "Người dùng được phép"
|
||||
},
|
||||
"e2eeEnabled": {
|
||||
"label": "Mã hóa đầu cuối",
|
||||
"choices": {
|
||||
"true": "Bật",
|
||||
"false": "Tắt"
|
||||
}
|
||||
},
|
||||
"sasVerification": {
|
||||
"label": "Xác minh SAS",
|
||||
"choices": {
|
||||
"true": "Bật",
|
||||
"false": "Tắt"
|
||||
}
|
||||
},
|
||||
"syncStopGraceSeconds": {
|
||||
"label": "Thời gian gia hạn dừng đồng bộ hóa"
|
||||
},
|
||||
"maxMediaBytes": {
|
||||
"label": "Kích thước phương tiện tối đa"
|
||||
},
|
||||
"maxConcurrentMediaDownloads": {
|
||||
"label": "Tải xuống phương tiện đồng thời"
|
||||
},
|
||||
"groupAllowFrom": {
|
||||
"label": "Nhóm được phép"
|
||||
},
|
||||
"allowRoomMentions": {
|
||||
"label": "Cho phép đề cập đến phòng",
|
||||
"choices": {
|
||||
"true": "Bật",
|
||||
"false": "Tắt"
|
||||
}
|
||||
},
|
||||
"streaming": {
|
||||
"label": "Truyền phát",
|
||||
"choices": {
|
||||
"true": "Bật",
|
||||
"false": "Tắt"
|
||||
}
|
||||
},
|
||||
"proxy": {
|
||||
"label": "Proxy mạng",
|
||||
"placeholder": "http://127.0.0.1:7890"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,7 @@
|
||||
{
|
||||
"description": "在 Matrix 房间中使用 nanobot。",
|
||||
"requirements": "主服务器、账户令牌和房间访问权限",
|
||||
"setup": {
|
||||
"docsLabel": "打开 Matrix 配置指南",
|
||||
"officialLabel": "打开 Matrix 客户端列表",
|
||||
"tryIt": "将 Matrix 账户邀请进房间并发送一条测试消息。",
|
||||
"summary": "填写 Matrix 账户所在的服务器,并使用密码或访问令牌登录。",
|
||||
"steps": [
|
||||
"为 nanobot 创建或选择一个 Matrix 账户。",
|
||||
"填写主服务器、用户 ID,以及密码或访问令牌凭据。",
|
||||
"保存并启用 Matrix,将账户邀请进房间,然后发送一条测试消息。"
|
||||
],
|
||||
"fields": {
|
||||
"homeserver": {
|
||||
"label": "账户服务器",
|
||||
@@ -22,18 +13,15 @@
|
||||
},
|
||||
"password": {
|
||||
"label": "密码",
|
||||
"placeholder": "••••••",
|
||||
"help": "密码登录和访问令牌登录任选其一。"
|
||||
"placeholder": "••••••"
|
||||
},
|
||||
"accessToken": {
|
||||
"label": "访问令牌",
|
||||
"placeholder": "输入访问令牌",
|
||||
"help": "如果 Matrix 客户端可以显示访问令牌,建议使用该方式。"
|
||||
"placeholder": "输入访问令牌"
|
||||
},
|
||||
"deviceId": {
|
||||
"label": "设备 ID",
|
||||
"placeholder": "使用访问令牌时必填",
|
||||
"help": "复制与访问令牌关联的设备 ID;密码登录不需要。"
|
||||
"placeholder": "使用访问令牌时必填"
|
||||
},
|
||||
"groupPolicy": {
|
||||
"label": "群组行为",
|
||||
@@ -42,6 +30,53 @@
|
||||
"open": "所有消息",
|
||||
"allowlist": "白名单"
|
||||
}
|
||||
},
|
||||
"allowFrom": {
|
||||
"label": "允许的用户"
|
||||
},
|
||||
"e2eeEnabled": {
|
||||
"label": "端到端加密",
|
||||
"choices": {
|
||||
"true": "开启",
|
||||
"false": "关闭"
|
||||
}
|
||||
},
|
||||
"sasVerification": {
|
||||
"label": "SAS 验证",
|
||||
"choices": {
|
||||
"true": "开启",
|
||||
"false": "关闭"
|
||||
}
|
||||
},
|
||||
"syncStopGraceSeconds": {
|
||||
"label": "同步停止等待时间"
|
||||
},
|
||||
"maxMediaBytes": {
|
||||
"label": "媒体大小上限"
|
||||
},
|
||||
"maxConcurrentMediaDownloads": {
|
||||
"label": "并发媒体下载数"
|
||||
},
|
||||
"groupAllowFrom": {
|
||||
"label": "允许的群组"
|
||||
},
|
||||
"allowRoomMentions": {
|
||||
"label": "响应房间提及",
|
||||
"choices": {
|
||||
"true": "开启",
|
||||
"false": "关闭"
|
||||
}
|
||||
},
|
||||
"streaming": {
|
||||
"label": "流式输出",
|
||||
"choices": {
|
||||
"true": "开启",
|
||||
"false": "关闭"
|
||||
}
|
||||
},
|
||||
"proxy": {
|
||||
"label": "网络代理",
|
||||
"placeholder": "http://127.0.0.1:7890"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,7 @@
|
||||
{
|
||||
"description": "在 Matrix 房間中使用 nanobot。",
|
||||
"requirements": "主伺服器、帳戶權杖和房間存取權限",
|
||||
"setup": {
|
||||
"docsLabel": "開啟 Matrix 設定指南",
|
||||
"officialLabel": "開啟 Matrix 用戶端列表",
|
||||
"tryIt": "將 Matrix 帳戶邀請進房間並傳送一則測試訊息。",
|
||||
"summary": "填入 Matrix 帳戶所在的伺服器,並使用密碼或存取權杖登入。",
|
||||
"steps": [
|
||||
"為 nanobot 建立或選擇一個 Matrix 帳戶。",
|
||||
"填入主伺服器、使用者 ID,以及密碼或存取權杖憑證。",
|
||||
"儲存並啟用 Matrix,將帳戶邀請進房間,然後傳送一則測試訊息。"
|
||||
],
|
||||
"fields": {
|
||||
"homeserver": {
|
||||
"label": "帳戶伺服器",
|
||||
@@ -22,18 +13,15 @@
|
||||
},
|
||||
"password": {
|
||||
"label": "密碼",
|
||||
"placeholder": "••••••",
|
||||
"help": "密碼登入和存取權杖登入任選其一。"
|
||||
"placeholder": "••••••"
|
||||
},
|
||||
"accessToken": {
|
||||
"label": "存取權杖",
|
||||
"placeholder": "輸入存取權杖",
|
||||
"help": "若 Matrix 用戶端可顯示存取權杖,建議使用此方式。"
|
||||
"placeholder": "輸入存取權杖"
|
||||
},
|
||||
"deviceId": {
|
||||
"label": "裝置 ID",
|
||||
"placeholder": "使用存取權杖時必填",
|
||||
"help": "複製與存取權杖關聯的裝置 ID;密碼登入不需要。"
|
||||
"placeholder": "使用存取權杖時必填"
|
||||
},
|
||||
"groupPolicy": {
|
||||
"label": "群組行為",
|
||||
@@ -42,6 +30,53 @@
|
||||
"open": "所有訊息",
|
||||
"allowlist": "允許清單"
|
||||
}
|
||||
},
|
||||
"allowFrom": {
|
||||
"label": "允許的用戶"
|
||||
},
|
||||
"e2eeEnabled": {
|
||||
"label": "端對端加密",
|
||||
"choices": {
|
||||
"true": "開啟",
|
||||
"false": "關閉"
|
||||
}
|
||||
},
|
||||
"sasVerification": {
|
||||
"label": "SAS 驗證",
|
||||
"choices": {
|
||||
"true": "開啟",
|
||||
"false": "關閉"
|
||||
}
|
||||
},
|
||||
"syncStopGraceSeconds": {
|
||||
"label": "同步停止等待時間"
|
||||
},
|
||||
"maxMediaBytes": {
|
||||
"label": "媒體大小上限"
|
||||
},
|
||||
"maxConcurrentMediaDownloads": {
|
||||
"label": "並發媒體下載數"
|
||||
},
|
||||
"groupAllowFrom": {
|
||||
"label": "允許的群組"
|
||||
},
|
||||
"allowRoomMentions": {
|
||||
"label": "響應房間提及",
|
||||
"choices": {
|
||||
"true": "開啟",
|
||||
"false": "關閉"
|
||||
}
|
||||
},
|
||||
"streaming": {
|
||||
"label": "串流輸出",
|
||||
"choices": {
|
||||
"true": "開啟",
|
||||
"false": "關閉"
|
||||
}
|
||||
},
|
||||
"proxy": {
|
||||
"label": "網路代理",
|
||||
"placeholder": "http://127.0.0.1:7890"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user