Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

feat(ui): the Remote page shows the token the server made up

Jareer202195f3bee8
diff --git a/src/crates/concat/locales/de.json b/src/crates/concat/locales/de.json
index 9de5cb10..13300428 100644
--- a/src/crates/concat/locales/de.json
+++ b/src/crates/concat/locales/de.json
@@ -712,6 +712,5 @@
"Tear": "Riss",
"The picture as a sci-fi projection: its hue thrown away for a blue ramp, edges glowing, scan lines drifting, a refresh sweep, tears and grain.": "Das Bild als Science-Fiction-Projektion: der Farbton weicht einem Blauverlauf, Kanten glühen, Scanlinien wandern, ein Bildwechsel fegt durch, Risse und Korn.",
"Token": "Token",
- "What a connection must present before its first call. Empty on 127.0.0.1 lets anything on this machine in.": "Was eine Verbindung vor ihrem ersten Aufruf vorzeigen muss. Leer auf 127.0.0.1 lässt alles auf diesem Rechner herein.",
"{0} is not an address like 127.0.0.1:7420": "{0} ist keine Adresse wie 127.0.0.1:7420"
}
diff --git a/src/crates/concat/locales/en.json b/src/crates/concat/locales/en.json
index e4c82954..c0002303 100644
--- a/src/crates/concat/locales/en.json
+++ b/src/crates/concat/locales/en.json
@@ -133,7 +133,6 @@
"Content": "Content",
"CONTENTS": "CONTENTS",
"Contents": "Contents",
- "Timeline shortcuts": "Timeline shortcuts",
"Contrast": "Contrast",
"Contrast Pop": "Contrast Pop",
"Cool": "Cool",
@@ -205,6 +204,7 @@
"Effects": "Effects",
"Elegant": "Elegant",
"Emboss": "Emboss",
+ "Enable flip and reverse shortcuts": "Enable flip and reverse shortcuts",
"Enable {0}": "Enable {0}",
"Engine": "Engine",
"Enhance Voice": "Enhance Voice",
@@ -280,6 +280,7 @@
"Green": "Green",
"Green Screen": "Green Screen",
"Greens": "Greens",
+ "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.",
"Half": "Half",
"Half the size": "Half the size",
"Hall": "Hall",
@@ -555,8 +556,6 @@
"Shift": "Shift",
"Shifts the picture towards candlelight.": "Shifts the picture towards candlelight.",
"Shifts the picture towards daylight shade.": "Shifts the picture towards daylight shade.",
- "Enable flip and reverse shortcuts": "Enable flip and reverse shortcuts",
- "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.": "H flips the selected clip horizontally, J vertically, R reverses it. Off, the keys do nothing.",
"Show in folder": "Show in folder",
"Show lane": "Show lane",
"Show the log": "Show the log",
@@ -647,6 +646,7 @@
"TIMELINE": "TIMELINE",
"Timeline": "Timeline",
"Timeline 1": "Timeline 1",
+ "Timeline shortcuts": "Timeline shortcuts",
"Tint": "Tint",
"Title": "Title",
"Titles": "Titles",
@@ -690,7 +690,7 @@
"Warmth": "Warmth",
"Water": "Water",
"Water and sky turned aquamarine and brightened, sand and skin left warm and clean. The beach-day look creators reach for first.": "Water and sky turned aquamarine and brightened, sand and skin left warm and clean. The beach-day look creators reach for first.",
- "What a connection must present before its first call. Empty on 127.0.0.1 lets anything on this machine in.": "What a connection must present before its first call. Empty on 127.0.0.1 lets anything on this machine in.",
+ "What a connection must present before its first call. Left empty, the server makes one up each time it starts and shows it here.": "What a connection must present before its first call. Left empty, the server makes one up each time it starts and shows it here.",
"Where each model came from": "Where each model came from",
"Where should the project folder go?": "Where should the project folder go?",
"Whites": "Whites",
diff --git a/src/crates/concat/locales/es.json b/src/crates/concat/locales/es.json
index f85cdfbd..52ae8f4b 100644
--- a/src/crates/concat/locales/es.json
+++ b/src/crates/concat/locales/es.json
@@ -712,6 +712,5 @@
"Tear": "Desgarro",
"The picture as a sci-fi projection: its hue thrown away for a blue ramp, edges glowing, scan lines drifting, a refresh sweep, tears and grain.": "La imagen como proyección de ciencia ficción: el tono se sustituye por una rampa azul, los bordes brillan, las líneas de barrido se deslizan, pasa un barrido de refresco, con desgarros y grano.",
"Token": "Token",
- "What a connection must present before its first call. Empty on 127.0.0.1 lets anything on this machine in.": "Lo que una conexión debe presentar antes de su primera llamada. Vacío en 127.0.0.1 deja entrar a cualquier cosa de este equipo.",
"{0} is not an address like 127.0.0.1:7420": "{0} no es una dirección como 127.0.0.1:7420"
}
diff --git a/src/crates/concat/locales/fr.json b/src/crates/concat/locales/fr.json
index 174c5b1c..a0a096e7 100644
--- a/src/crates/concat/locales/fr.json
+++ b/src/crates/concat/locales/fr.json
@@ -712,6 +712,5 @@
"Tear": "Déchirure",
"The picture as a sci-fi projection: its hue thrown away for a blue ramp, edges glowing, scan lines drifting, a refresh sweep, tears and grain.": "L'image en projection de science-fiction : sa teinte remplacée par une rampe bleue, des bords lumineux, des lignes de balayage qui dérivent, un balayage de rafraîchissement, des déchirures et du grain.",
"Token": "Jeton",
- "What a connection must present before its first call. Empty on 127.0.0.1 lets anything on this machine in.": "Ce qu'une connexion doit présenter avant son premier appel. Vide sur 127.0.0.1, tout ce qui tourne sur cette machine entre.",
"{0} is not an address like 127.0.0.1:7420": "{0} n'est pas une adresse comme 127.0.0.1:7420"
}
diff --git a/src/crates/concat/locales/hr.json b/src/crates/concat/locales/hr.json
index d4a9904f..e7925ca3 100644
--- a/src/crates/concat/locales/hr.json
+++ b/src/crates/concat/locales/hr.json
@@ -712,6 +712,5 @@
"Tear": "Kidanje",
"The picture as a sci-fi projection: its hue thrown away for a blue ramp, edges glowing, scan lines drifting, a refresh sweep, tears and grain.": "Slika kao znanstvenofantastična projekcija: nijansa zamijenjena plavim prijelazom, rubovi svijetle, linije skeniranja plutaju, prolazi osvježavanje, kidanja i zrnatost.",
"Token": "Token",
- "What a connection must present before its first call. Empty on 127.0.0.1 lets anything on this machine in.": "Što veza mora predočiti prije prvog poziva. Prazno na 127.0.0.1 propušta sve s ovog računala.",
"{0} is not an address like 127.0.0.1:7420": "{0} nije adresa poput 127.0.0.1:7420"
}
diff --git a/src/crates/concat/locales/it.json b/src/crates/concat/locales/it.json
index 3314e21e..30dfe091 100644
--- a/src/crates/concat/locales/it.json
+++ b/src/crates/concat/locales/it.json
@@ -712,6 +712,5 @@
"Tear": "Strappo",
"The picture as a sci-fi projection: its hue thrown away for a blue ramp, edges glowing, scan lines drifting, a refresh sweep, tears and grain.": "L'immagine come proiezione fantascientifica: la tinta sostituita da una rampa blu, bordi luminosi, linee di scansione alla deriva, una passata di aggiornamento, strappi e grana.",
"Token": "Token",
- "What a connection must present before its first call. Empty on 127.0.0.1 lets anything on this machine in.": "Ciò che una connessione deve presentare prima della prima chiamata. Vuoto su 127.0.0.1 lascia entrare qualunque cosa su questo computer.",
"{0} is not an address like 127.0.0.1:7420": "{0} non è un indirizzo come 127.0.0.1:7420"
}
diff --git a/src/crates/concat/locales/ja.json b/src/crates/concat/locales/ja.json
index c3775cae..12cf72e9 100644
--- a/src/crates/concat/locales/ja.json
+++ b/src/crates/concat/locales/ja.json
@@ -712,6 +712,5 @@
"Tear": "ティア",
"The picture as a sci-fi projection: its hue thrown away for a blue ramp, edges glowing, scan lines drifting, a refresh sweep, tears and grain.": "SF の投影のような映像: 色相を青のグラデーションに置き換え、縁が光り、走査線が流れ、リフレッシュの帯が走り、ずれと粒子が乗ります。",
"Token": "トークン",
- "What a connection must present before its first call. Empty on 127.0.0.1 lets anything on this machine in.": "接続が最初の呼び出しの前に提示するもの。127.0.0.1 で空にすると、このマシン上の何でも入れます。",
"{0} is not an address like 127.0.0.1:7420": "{0} は 127.0.0.1:7420 のようなアドレスではありません"
}
diff --git a/src/crates/concat/locales/ko.json b/src/crates/concat/locales/ko.json
index e5408bb8..b77ee81d 100644
--- a/src/crates/concat/locales/ko.json
+++ b/src/crates/concat/locales/ko.json
@@ -712,6 +712,5 @@
"Tear": "찢김",
"The picture as a sci-fi projection: its hue thrown away for a blue ramp, edges glowing, scan lines drifting, a refresh sweep, tears and grain.": "SF 영화의 투영처럼 보이는 화면: 색상은 파란 그라데이션으로 바뀌고, 가장자리가 빛나며, 주사선이 흐르고, 새로 고침 띠가 지나가며, 찢김과 입자가 더해집니다.",
"Token": "토큰",
- "What a connection must present before its first call. Empty on 127.0.0.1 lets anything on this machine in.": "연결이 첫 호출 전에 제시해야 하는 값입니다. 127.0.0.1에서 비워 두면 이 컴퓨터의 무엇이든 들어올 수 있습니다.",
"{0} is not an address like 127.0.0.1:7420": "{0}은(는) 127.0.0.1:7420 같은 주소가 아닙니다"
}
diff --git a/src/crates/concat/locales/pt-BR.json b/src/crates/concat/locales/pt-BR.json
index 2b14469c..ba7fd6b3 100644
--- a/src/crates/concat/locales/pt-BR.json
+++ b/src/crates/concat/locales/pt-BR.json
@@ -712,6 +712,5 @@
"Tear": "Rasgo",
"The picture as a sci-fi projection: its hue thrown away for a blue ramp, edges glowing, scan lines drifting, a refresh sweep, tears and grain.": "A imagem como uma projeção de ficção científica: o matiz trocado por uma rampa azul, bordas brilhando, linhas de varredura à deriva, uma varredura de atualização, rasgos e granulação.",
"Token": "Token",
- "What a connection must present before its first call. Empty on 127.0.0.1 lets anything on this machine in.": "O que uma conexão precisa apresentar antes da primeira chamada. Vazio em 127.0.0.1 deixa entrar qualquer coisa desta máquina.",
"{0} is not an address like 127.0.0.1:7420": "{0} não é um endereço como 127.0.0.1:7420"
}
diff --git a/src/crates/concat/locales/ru.json b/src/crates/concat/locales/ru.json
index 215b55a1..053a26bb 100644
--- a/src/crates/concat/locales/ru.json
+++ b/src/crates/concat/locales/ru.json
@@ -712,6 +712,5 @@
"Tear": "Разрыв",
"The picture as a sci-fi projection: its hue thrown away for a blue ramp, edges glowing, scan lines drifting, a refresh sweep, tears and grain.": "Изображение как фантастическая проекция: оттенок заменён синим градиентом, края светятся, строки развёртки плывут, проходит полоса обновления, разрывы и зерно.",
"Token": "Токен",
- "What a connection must present before its first call. Empty on 127.0.0.1 lets anything on this machine in.": "Что соединение должно предъявить перед первым вызовом. Пустое значение на 127.0.0.1 впускает всё с этого компьютера.",
"{0} is not an address like 127.0.0.1:7420": "{0} — не адрес вида 127.0.0.1:7420"
}
diff --git a/src/crates/concat/locales/tr.json b/src/crates/concat/locales/tr.json
index 27ab1a27..3feccc00 100644
--- a/src/crates/concat/locales/tr.json
+++ b/src/crates/concat/locales/tr.json
@@ -712,6 +712,5 @@
"Tear": "Yırtılma",
"The picture as a sci-fi projection: its hue thrown away for a blue ramp, edges glowing, scan lines drifting, a refresh sweep, tears and grain.": "Görüntü bilimkurgu projeksiyonu gibi: tonu mavi bir geçişle değiştirilir, kenarlar parlar, tarama çizgileri kayar, bir yenileme süpürmesi geçer, yırtılmalar ve gren.",
"Token": "Belirteç",
- "What a connection must present before its first call. Empty on 127.0.0.1 lets anything on this machine in.": "Bir bağlantının ilk çağrısından önce sunması gereken şey. 127.0.0.1'de boş bırakılırsa bu makinedeki her şey girebilir.",
"{0} is not an address like 127.0.0.1:7420": "{0}, 127.0.0.1:7420 gibi bir adres değil"
}
diff --git a/src/crates/concat/locales/zh-Hans.json b/src/crates/concat/locales/zh-Hans.json
index 39bf3c9e..98fee1ba 100644
--- a/src/crates/concat/locales/zh-Hans.json
+++ b/src/crates/concat/locales/zh-Hans.json
@@ -712,6 +712,5 @@
"Tear": "撕裂",
"The picture as a sci-fi projection: its hue thrown away for a blue ramp, edges glowing, scan lines drifting, a refresh sweep, tears and grain.": "把画面变成科幻投影:色相被换成蓝色渐变,边缘发光,扫描线漂移,刷新扫过,带有撕裂和颗粒。",
"Token": "令牌",
- "What a connection must present before its first call. Empty on 127.0.0.1 lets anything on this machine in.": "连接在首次调用前必须出示的内容。在 127.0.0.1 上留空则允许本机上的任何程序进入。",
"{0} is not an address like 127.0.0.1:7420": "{0} 不是类似 127.0.0.1:7420 的地址"
}
diff --git a/src/crates/concat/locales/zh-TW.json b/src/crates/concat/locales/zh-TW.json
index db1d4a87..dd543b53 100644
--- a/src/crates/concat/locales/zh-TW.json
+++ b/src/crates/concat/locales/zh-TW.json
@@ -712,6 +712,5 @@
"Tear": "撕裂",
"The picture as a sci-fi projection: its hue thrown away for a blue ramp, edges glowing, scan lines drifting, a refresh sweep, tears and grain.": "把畫面變成科幻投影:色相換成藍色漸層,邊緣發光,掃描線漂移,刷新掃過,帶有撕裂與顆粒。",
"Token": "權杖",
- "What a connection must present before its first call. Empty on 127.0.0.1 lets anything on this machine in.": "連線在第一次呼叫前必須出示的內容。在 127.0.0.1 上留空則允許本機上的任何程式進入。",
"{0} is not an address like 127.0.0.1:7420": "{0} 不是類似 127.0.0.1:7420 的位址"
}
diff --git a/src/crates/concat/src/panes/settings.rs b/src/crates/concat/src/panes/settings.rs
index 94908b26..092a2618 100644
--- a/src/crates/concat/src/panes/settings.rs
+++ b/src/crates/concat/src/panes/settings.rs
@@ -535,7 +535,12 @@ impl SettingsPane {
download_base: self.download_base.as_str().into(),
server_enabled: studio.prefs.server.enabled,
server_listen: studio.prefs.server.listen.as_str().into(),
- server_token: studio.prefs.server.token.as_str().into(),
+ server_token: match &studio.host.server {
+ // A token the server minted for itself is shown where a
+ // chosen one would be typed: it is how a caller gets in.
+ Some(server) if studio.prefs.server.token.is_empty() => server.token().into(),
+ _ => studio.prefs.server.token.as_str().into(),
+ },
server_status: self.server_status(studio).into(),
disk: {
let on_disk: Vec<&ModelState> = installed(&self.transcribers)
diff --git a/src/crates/concat/ui/dialogs/settings.slint b/src/crates/concat/ui/dialogs/settings.slint
index f946ae12..bf566197 100644
--- a/src/crates/concat/ui/dialogs/settings.slint
+++ b/src/crates/concat/ui/dialogs/settings.slint
@@ -61,7 +61,8 @@ export struct SettingsData {
server-enabled: bool,
/// "127.0.0.1:7420"
server-listen: string,
- /// what a connection presents first; empty for none
+ /// what a connection presents first: the chosen one, or the one the
+ /// server made up when none was chosen
server-token: string,
/// "Listening on 127.0.0.1:7420 · 1 connected", "Off", or why not
server-status: string,
@@ -702,7 +703,7 @@ export component SettingsDialog inherits Modal {
DialogSection {
title: I18n.t("Token");
- hint: I18n.t("What a connection must present before its first call. Empty on 127.0.0.1 lets anything on this machine in.");
+ hint: I18n.t("What a connection must present before its first call. Left empty, the server makes one up each time it starts and shows it here.");
HorizontalLayout {
spacing: 6px;