This commit is contained in:
Timothy Jaeryang Baek
2026-06-15 08:16:43 +02:00
Unverified
parent 7938f73e57
commit 5b50154b66
11 changed files with 80 additions and 1 deletions
@@ -1,6 +1,32 @@
<script lang="ts">
import { t } from '$lib/i18n';
import { appVersion, showChangelog, updateAvailable, latestVersion } from '$lib/stores';
const REPO_URL = 'https://github.com/open-webui/computer';
const SHARE_TEXT = 'Check out cptr. Your computer, from anywhere.';
const shareLinks = [
{
label: 'X',
href: `https://x.com/intent/tweet?text=${encodeURIComponent(SHARE_TEXT)}&url=${encodeURIComponent(REPO_URL)}`
},
{
label: 'Reddit',
href: `https://reddit.com/submit?url=${encodeURIComponent(REPO_URL)}&title=${encodeURIComponent(SHARE_TEXT)}`
},
{
label: 'LinkedIn',
href: `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(REPO_URL)}`
}
];
let copied = $state(false);
function copyLink() {
navigator.clipboard.writeText(REPO_URL);
copied = true;
setTimeout(() => (copied = false), 2000);
}
</script>
<h2 class="text-sm font-medium text-gray-900 dark:text-white mb-4">
@@ -52,7 +78,30 @@
</p>
</div>
<p class="text-[11px] text-gray-300 dark:text-gray-700 pt-8">
<div class="flex items-center gap-1.5 pt-6">
<span class="text-[11px] text-gray-400 dark:text-gray-600 mr-1">{$t('about.share')}</span>
{#each shareLinks as link, i}
{#if i > 0}
<span class="text-[11px] text-gray-200 dark:text-gray-700">·</span>
{/if}
<a
href={link.href}
target="_blank"
rel="noopener noreferrer"
class="text-[11px] text-gray-400 hover:text-gray-600 dark:hover:text-gray-500 transition-colors"
>{link.label}</a
>
{/each}
<span class="text-[11px] text-gray-200 dark:text-gray-700">·</span>
<button
onclick={copyLink}
class="text-[11px] text-gray-400 hover:text-gray-600 dark:hover:text-gray-500 transition-colors cursor-pointer"
>
{copied ? $t('about.copied') : $t('about.copyLink')}
</button>
</div>
<p class="text-[11px] text-gray-300 dark:text-gray-700 pt-4">
{$t('about.createdBy')}
</p>
@@ -316,6 +316,9 @@
"about.licenseName": "Open Use Lizenz",
"about.copyright": "Copyright © 2026 Open WebUI Inc. Alle Rechte vorbehalten.",
"about.updateAvailable": "v{{version}} verfügbar",
"about.share": "Teilen",
"about.copyLink": "Link kopieren",
"about.copied": "Kopiert!",
"connections.failedToUpdate": "Verbindung konnte nicht aktualisiert werden",
"keyboard.newFile": "Eine neue leere Datei öffnen",
"keyboard.newTerminal": "Eine neue Terminalsitzung öffnen",
@@ -377,6 +377,9 @@
"about.licenseName": "Open Use License",
"about.copyright": "Copyright © 2026 Open WebUI Inc. All rights reserved.",
"about.updateAvailable": "v{{version}} available",
"about.share": "Share",
"about.copyLink": "Copy link",
"about.copied": "Copied!",
"automations.title": "Automations",
"automations.filter": "Filter...",
@@ -316,6 +316,9 @@
"about.licenseName": "Licencia de Uso Abierto",
"about.copyright": "Copyright © 2026 Open WebUI Inc. Todos los derechos reservados.",
"about.updateAvailable": "v{{version}} disponible",
"about.share": "Compartir",
"about.copyLink": "Copiar enlace",
"about.copied": "¡Copiado!",
"connections.failedToUpdate": "Error al actualizar conexión",
"keyboard.newFile": "Abrir un archivo nuevo vacío",
"keyboard.newTerminal": "Abrir una nueva sesión de terminal",
@@ -315,6 +315,9 @@
"about.licenseName": "Licence d'utilisation ouverte",
"about.copyright": "Copyright © 2026 Open WebUI Inc. Tous droits réservés.",
"about.updateAvailable": "v{{version}} disponible",
"about.share": "Partager",
"about.copyLink": "Copier le lien",
"about.copied": "Copié !",
"connections.failedToUpdate": "Échec de la mise à jour de la connexion",
"keyboard.newFile": "Ouvrir un nouveau fichier vide",
"keyboard.newTerminal": "Ouvrir une nouvelle session de terminal",
@@ -316,6 +316,9 @@
"about.licenseName": "オープンユースライセンス",
"about.copyright": "Copyright © 2026 Open WebUI Inc. All rights reserved.",
"about.updateAvailable": "v{{version}} が利用可能",
"about.share": "共有",
"about.copyLink": "リンクをコピー",
"about.copied": "コピーしました!",
"connections.failedToUpdate": "接続の更新に失敗しました",
"keyboard.newFile": "新しい空のファイルを開く",
"keyboard.newTerminal": "新しいターミナルセッションを開く",
@@ -316,6 +316,9 @@
"about.licenseName": "오픈 사용 라이선스",
"about.copyright": "Copyright © 2026 Open WebUI Inc. All rights reserved.",
"about.updateAvailable": "v{{version}} 사용 가능",
"about.share": "공유",
"about.copyLink": "링크 복사",
"about.copied": "복사됨!",
"connections.failedToUpdate": "연결 업데이트에 실패했습니다",
"keyboard.newFile": "새 빈 파일 열기",
"keyboard.newTerminal": "새 터미널 세션 열기",
@@ -316,6 +316,9 @@
"about.licenseName": "Licença de Uso Aberto",
"about.copyright": "Copyright © 2026 Open WebUI Inc. Todos os direitos reservados.",
"about.updateAvailable": "v{{version}} disponível",
"about.share": "Compartilhar",
"about.copyLink": "Copiar link",
"about.copied": "Copiado!",
"connections.failedToUpdate": "Falha ao atualizar conexão",
"keyboard.newFile": "Abrir um novo arquivo vazio",
"keyboard.newTerminal": "Abrir uma nova sessão de terminal",
@@ -316,6 +316,9 @@
"about.licenseName": "Открытая лицензия",
"about.copyright": "Copyright © 2026 Open WebUI Inc. Все права защищены.",
"about.updateAvailable": "v{{version}} доступна",
"about.share": "Поделиться",
"about.copyLink": "Копировать ссылку",
"about.copied": "Скопировано!",
"connections.failedToUpdate": "Не удалось обновить подключение",
"keyboard.newFile": "Открыть новый пустой файл",
"keyboard.newTerminal": "Открыть новую сессию терминала",
@@ -316,6 +316,9 @@
"about.licenseName": "开放使用许可",
"about.copyright": "Copyright © 2026 Open WebUI Inc. 保留所有权利。",
"about.updateAvailable": "v{{version}} 可用",
"about.share": "分享",
"about.copyLink": "复制链接",
"about.copied": "已复制!",
"connections.failedToUpdate": "更新连接失败",
"keyboard.newFile": "打开新的空白文件",
"keyboard.newTerminal": "打开新的终端会话",
@@ -316,6 +316,9 @@
"about.licenseName": "開放使用許可",
"about.copyright": "Copyright © 2026 Open WebUI Inc. 保留所有權利。",
"about.updateAvailable": "v{{version}} 可用",
"about.share": "分享",
"about.copyLink": "複製連結",
"about.copied": "已複製!",
"connections.failedToUpdate": "更新連線失敗",
"keyboard.newFile": "開啟新的空白檔案",
"keyboard.newTerminal": "開啟新的終端機工作階段",