feat(desktop): add localized drag and drop strike separator text (#139)

* feat(desktop): add localized drag and drop strike separator text

* chore(desktop): format code and remove trailing whitespaces
This commit is contained in:
Huakun 2025-02-18 03:17:19 -05:00 committed by GitHub
parent 71b88e0a22
commit eeeeaf1822
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 24 additions and 17 deletions

View File

@ -52,7 +52,7 @@ export function verifySingleProject(projectPath: string): boolean {
logger.info(`name`, pkg.name)
logger.info(`version`, pkg.version)
logger.info(`identifier`, pkg.kunkun.identifier)
if ((pkg.files?.length ?? 0) === 0) {
logger.warn(
`"files" field is empty, it is recommended to include only the necessary files, e.g. dist`

View File

@ -62,6 +62,7 @@
"settings_add_dev_ext_install_from_ext_folders": "Install from Extension Folders",
"settings_add_dev_ext_install_from_ext_files": "Install from Extension Tarball File",
"settings_add_dev_ext_drag_and_drop": "Drag and Drop",
"settings_add_dev_ext_drag_and_drop_strike": "Drag and Drop",
"settings_add_dev_ext_drag_and_drop2": "Extension Folder or Tarball",
"settings_add_dev_ext_install_tarball_from_url": "Install Tarball From URL",

View File

@ -62,6 +62,7 @@
"settings_add_dev_ext_install_from_ext_folders": "Instalar de Pastas de Extensão",
"settings_add_dev_ext_install_from_ext_files": "Instalar de Arquivo Tarball de Extensão",
"settings_add_dev_ext_drag_and_drop": "Arraste e Solte",
"settings_add_dev_ext_drag_and_drop_strike": "Arraste e Solte",
"settings_add_dev_ext_drag_and_drop2": "Pasta ou Tarball da Extensão",
"settings_add_dev_ext_install_tarball_from_url": "Instalar Tarball da URL",

View File

@ -61,8 +61,10 @@
"settings_add_dev_ext_description": "В режиме разработчика у вас есть четыре способа установки dev-расширений: из локального tar-архива, из локальной директории, по URL-адресу на tar-архив либо по названию пакета npm.",
"settings_add_dev_ext_install_from_ext_folders": "Установить из директори",
"settings_add_dev_ext_install_from_ext_files": "Установить из tar-архива",
"settings_add_dev_ext_drag_and_drop": "Локальные расширения",
"settings_add_dev_ext_drag_and_drop2": "в виде директории или tar-архива могут быть перемещены сюда",
"settings_add_dev_ext_drag_and_drop_strike": "Локальные расширения",
"settings_add_dev_ext_drag_and_drop": "Можете перетащить сюда расширения",
"settings_add_dev_ext_drag_and_drop2": "в виде директории или tar-архива",
"settings_add_dev_ext_install_tarball_from_url": "Установить tar-архив по URL-адресу",
"troubleshooters_sidebar_title": "Диагностика",

View File

@ -62,6 +62,7 @@
"settings_add_dev_ext_install_from_ext_folders": "Cài Đặt Từ Thư Mục Tiện Ích",
"settings_add_dev_ext_install_from_ext_files": "Cài Đặt Từ File Tarball",
"settings_add_dev_ext_drag_and_drop": "Kéo và Thả",
"settings_add_dev_ext_drag_and_drop_strike": "Kéo và Thả",
"settings_add_dev_ext_drag_and_drop2": "Thư Mục Tiện Ích hoặc File Tarball",
"settings_add_dev_ext_install_tarball_from_url": "Cài Đặt File Tarball Từ Liên kết",

View File

@ -62,6 +62,7 @@
"settings_add_dev_ext_install_from_ext_folders": "从插件文件夹安装",
"settings_add_dev_ext_install_from_ext_files": "从插件 tarball 文件安装",
"settings_add_dev_ext_drag_and_drop": "拖放",
"settings_add_dev_ext_drag_and_drop_strike": "拖放",
"settings_add_dev_ext_drag_and_drop2": "插件文件夹或 tarball",
"settings_add_dev_ext_install_tarball_from_url": "从 tarball URL 安装",

View File

@ -111,15 +111,18 @@
</script>
<div class="my-3 flex justify-center gap-3">
<Button size="sm" onclick={pickExtFolders}
>{m.settings_add_dev_ext_install_from_ext_folders()}</Button
>
<Button size="sm" onclick={pickExtFiles}>{m.settings_add_dev_ext_install_from_ext_files()}</Button
>
<Button size="sm" onclick={pickExtFolders}>
{m.settings_add_dev_ext_install_from_ext_folders()}
</Button>
<Button size="sm" onclick={pickExtFiles}>
{m.settings_add_dev_ext_install_from_ext_files()}
</Button>
</div>
<StrikeSeparator class="my-1">
<h3 class="text-muted-foreground font-mono text-sm">{m.settings_add_dev_ext_drag_and_drop()}</h3>
<h3 class="text-muted-foreground font-mono text-sm">
{m.settings_add_dev_ext_drag_and_drop_strike()}
</h3>
</StrikeSeparator>
<Layouts.Center>
@ -150,12 +153,12 @@
icon={{ value: "mdi:folder-cog-outline", type: IconEnum.Iconify }}
class="h-10 w-10"
/>
<small class="select-none font-mono text-xs"
>{m.settings_add_dev_ext_drag_and_drop()}</small
>
<small class="select-none font-mono text-xs"
>{m.settings_add_dev_ext_drag_and_drop2()}</small
>
<small class="select-none font-mono text-xs">
{m.settings_add_dev_ext_drag_and_drop()}
</small>
<small class="select-none font-mono text-xs">
{m.settings_add_dev_ext_drag_and_drop2()}
</small>
</div>
</button>
</Card.Root>

View File

@ -1,4 +1,3 @@
## Permission Table
<table>
@ -7,7 +6,6 @@
<th>Description</th>
</tr>
<tr>
<td>