Skip to content

Commit 074f76a

Browse files
committed
mozc starts to work on Chrome
1 parent 5e12f95 commit 074f76a

File tree

3 files changed

+14
-19
lines changed

3 files changed

+14
-19
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
"build": "vite build && vue-tsc -d --emitDeclarationOnly"
1212
},
1313
"devDependencies": {
14-
"@antfu/eslint-config": "^5.4.1",
14+
"@antfu/eslint-config": "^6.0.0",
1515
"@vitejs/plugin-vue": "^6.0.1",
16-
"eslint": "^9.36.0",
16+
"eslint": "^9.38.0",
1717
"fcitx5-js": "file:cache/fcitx5-js.tgz",
1818
"naive-ui": "^2.43.1",
19-
"typescript": "5.9.2",
20-
"vite": "^7.1.7",
19+
"typescript": "5.9.3",
20+
"vite": "^7.1.11",
2121
"vooks": "^0.2.12",
2222
"vue": "^3.5.22",
2323
"vue-i18n": "11",
24-
"vue-tsc": "^3.0.8"
24+
"vue-tsc": "^3.1.1"
2525
}
2626
}

src/PluginManager.vue

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import type { UploadFileInfo } from 'naive-ui'
3-
import { NA, NAlert, NCode, NFlex, NList, NListItem, NUpload, NUploadDragger, useMessage } from 'naive-ui'
3+
import { NA, NFlex, NList, NListItem, NUpload, NUploadDragger, useMessage } from 'naive-ui'
44
import { computed, ref } from 'vue'
55
import { t } from './i18n'
66
@@ -38,17 +38,12 @@ async function onUpload(files: UploadFileInfo[]) {
3838

3939
<template>
4040
<NFlex size="large">
41-
<NFlex vertical>
42-
<NUpload v-model:file-list="fileList" style="width: auto" multiple accept=".zip" @update:file-list="onUpload">
43-
<NUploadDragger style="height: 200px">
44-
{{ t('Download and drag zip to this area') }}
45-
</NUploadDragger>
46-
</NUpload>
47-
<NAlert :title="t('Warning')" type="warning">
48-
{{ t("Mozc doesn't work on Chrome unless start the process with") }} <br>
49-
<NCode>--enable-features=WebAssemblyUnlimitedSyncCompilation</NCode>
50-
</NAlert>
51-
</NFlex>
41+
<NUpload v-model:file-list="fileList" multiple accept=".zip" @update:file-list="onUpload">
42+
<NUploadDragger style="height: 200px">
43+
<p>{{ t('Download plugin zip by clicking links below') }}</p>
44+
<p>{{ t('then click (or drag them to) this area') }}</p>
45+
</NUploadDragger>
46+
</NUpload>
5247
<NFlex>
5348
<NList style="min-width: 100px">
5449
<template #header>

src/locales/zh-CN.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"Available": "可用",
44
"Cancel": "取消",
55
"Close": "关闭",
6-
"Download and drag zip to this area": "下载并拖拽 zip 到此区域",
6+
"Download plugin zip by clicking links below": "点击下方链接下载插件 zip",
7+
"then click (or drag them to) this area": "然后点击(或拖拽它们到)此区域",
78
"Installed": "已安装",
89
"Installed {plugin}": "已安装 {plugin}",
9-
"Mozc doesn't work on Chrome unless start the process with": "Mozc 在 Chrome 下不工作,除非用如下参数启动进程",
1010
"Only show current language": "只显示当前语言",
1111
"Redo": "重做",
1212
"Reset to default": "重设为默认值",

0 commit comments

Comments
 (0)