Skip to content

Commit fc29c22

Browse files
committed
feat: add client download link to profile menu
1 parent cfc8fe4 commit fc29c22

10 files changed

Lines changed: 27 additions & 0 deletions

File tree

‎i18n/locales/en.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,7 @@
12521252
"AlwaysEnabled": "Always enabled",
12531253
"DownloadApplication": "Download Application",
12541254
"DownloadCenter": "Download Center",
1255+
"DownloadClient": "Download Client",
12551256
"CopyPath": "Copy path",
12561257
"CopyPathSuccess": "Path copied",
12571258
"SelectPath": "Select path",

‎i18n/locales/es.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,7 @@
12521252
"AlwaysEnabled": "Siempre habilitado",
12531253
"DownloadApplication": "Descargar aplicación",
12541254
"DownloadCenter": "Centro de descargas",
1255+
"DownloadClient": "Descargar cliente",
12551256
"CopyPath": "Copiar ruta",
12561257
"CopyPathSuccess": "Ruta copiada",
12571258
"SelectPath": "Seleccionar ruta",

‎i18n/locales/ja.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,7 @@
12521252
"AlwaysEnabled": "常に有効",
12531253
"DownloadApplication": "アプリケーションをダウンロード",
12541254
"DownloadCenter": "ダウンロードセンター",
1255+
"DownloadClient": "クライアントをダウンロード",
12551256
"CopyPath": "パスをコピー",
12561257
"CopyPathSuccess": "パスをコピーしました",
12571258
"SelectPath": "パスを選択",

‎i18n/locales/ko.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,7 @@
12521252
"AlwaysEnabled": "항상 활성화",
12531253
"DownloadApplication": "애플리케이션 다운로드",
12541254
"DownloadCenter": "다운로드 센터",
1255+
"DownloadClient": "클라이언트 다운로드",
12551256
"CopyPath": "경로 복사",
12561257
"CopyPathSuccess": "경로를 복사했습니다",
12571258
"SelectPath": "경로 선택",

‎i18n/locales/pt_br.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,7 @@
12521252
"AlwaysEnabled": "Sempre habilitado",
12531253
"DownloadApplication": "Baixar aplicativo",
12541254
"DownloadCenter": "Central de downloads",
1255+
"DownloadClient": "Baixar cliente",
12551256
"CopyPath": "Copiar caminho",
12561257
"CopyPathSuccess": "Caminho copiado",
12571258
"SelectPath": "Selecionar caminho",

‎i18n/locales/ru.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,7 @@
12521252
"AlwaysEnabled": "Всегда включено",
12531253
"DownloadApplication": "Скачать приложение",
12541254
"DownloadCenter": "Центр загрузок",
1255+
"DownloadClient": "Скачать клиент",
12551256
"CopyPath": "Скопировать путь",
12561257
"CopyPathSuccess": "Путь скопирован",
12571258
"SelectPath": "Выбрать путь",

‎i18n/locales/vi.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,7 @@
12521252
"AlwaysEnabled": "Luôn bật",
12531253
"DownloadApplication": "Tải ứng dụng",
12541254
"DownloadCenter": "Trung tâm tải xuống",
1255+
"DownloadClient": "Tải ứng dụng khách",
12551256
"CopyPath": "Sao chép đường dẫn",
12561257
"CopyPathSuccess": "Đã sao chép đường dẫn",
12571258
"SelectPath": "Chọn đường dẫn",

‎i18n/locales/zh.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,6 +1255,7 @@
12551255
"AlwaysEnabled": "始终启用",
12561256
"DownloadApplication": "下载应用",
12571257
"DownloadCenter": "下载中心",
1258+
"DownloadClient": "客户端下载",
12581259
"CopyPath": "复制路径",
12591260
"CopyPathSuccess": "路径已复制",
12601261
"SelectPath": "选择路径",

‎i18n/locales/zh_hant.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,7 @@
12521252
"AlwaysEnabled": "始終啟用",
12531253
"DownloadApplication": "下載應用",
12541254
"DownloadCenter": "下載中心",
1255+
"DownloadClient": "用戶端下載",
12551256
"CopyPath": "複製路徑",
12561257
"CopyPathSuccess": "路徑已複製",
12571258
"SelectPath": "選擇路徑",

‎ui/components/SideBar/profile.vue‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ const inputRef = ref<ComponentPublicInstance | null>(null);
7373
const siteNameInputRef = ref<ComponentPublicInstance | null>(null);
7474
const profileOpen = ref(false);
7575
const profileOpenedByPointer = ref(false);
76+
const downloadCenterUrl = computed(() =>
77+
import.meta.client ? withWebSitePrefix("/core/download/") : "/core/download/"
78+
);
7679
const headerIconButtonClass =
7780
"grid size-6 shrink-0 place-items-center rounded-[length:var(--app-radius)] p-0 text-[var(--app-text-secondary)] transition-colors hover:bg-[var(--app-hover-soft)] hover:text-[var(--app-fg)]";
7881
const headerIconButtonActiveClass = "bg-[var(--app-hover-soft)] text-[var(--app-fg)]";
@@ -1165,6 +1168,21 @@ onBeforeUnmount(() => {
11651168
</span>
11661169
</template>
11671170
</UButton>
1171+
<UButton
1172+
v-if="!isDesktopRuntime()"
1173+
:label="t('Setting.DownloadClient')"
1174+
icon="i-lucide-download"
1175+
:to="downloadCenterUrl"
1176+
external
1177+
target="_blank"
1178+
rel="noopener noreferrer"
1179+
color="neutral"
1180+
variant="ghost"
1181+
size="sm"
1182+
block
1183+
class="justify-start"
1184+
@click="profileOpen = false"
1185+
/>
11681186
<UButton
11691187
v-if="isDesktopRuntime()"
11701188
:label="t('Menu.MyTools')"

0 commit comments

Comments
 (0)