Skip to content

Commit 5783eeb

Browse files
committed
add mozc
1 parent c0c0d85 commit 5783eeb

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- name: Install dependencies
2121
run: |
22-
wget -P cache https://github.com/fcitx-contrib/fcitx5-js/releases/download/latest/fcitx5-js-0.1.0.tgz
22+
wget -P cache https://github.com/fcitx-contrib/fcitx5-js/releases/download/latest/fcitx5-js.tgz
2323
npm i -g pnpm
2424
pnpm i
2525

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
"build": "vite build && vue-tsc -d --emitDeclarationOnly"
1212
},
1313
"devDependencies": {
14-
"@antfu/eslint-config": "^3.12.0",
14+
"@antfu/eslint-config": "^3.12.1",
1515
"@vitejs/plugin-vue": "^5.2.1",
1616
"eslint": "^9.17.0",
17-
"fcitx5-js": "file:cache/fcitx5-js-0.1.0.tgz",
18-
"naive-ui": "^2.40.3",
19-
"typescript": "5.6.3",
20-
"vite": "^6.0.3",
17+
"fcitx5-js": "file:cache/fcitx5-js.tgz",
18+
"naive-ui": "^2.40.4",
19+
"typescript": "5.7.2",
20+
"vite": "^6.0.6",
2121
"vooks": "^0.2.12",
2222
"vue": "^3.5.13",
23-
"vue-tsc": "^2.1.10"
23+
"vue-tsc": "^2.2.0"
2424
}
2525
}

src/PluginManager.vue

Lines changed: 13 additions & 7 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, NFlex, NList, NListItem, NUpload, NUploadDragger, useMessage } from 'naive-ui'
3+
import { NA, NAlert, NCode, NFlex, NList, NListItem, NUpload, NUploadDragger, useMessage } from 'naive-ui'
44
import { computed, ref } from 'vue'
55
66
const message = useMessage()
@@ -9,7 +9,7 @@ function getInstalledPlugins() {
99
return window.fcitx.getInstalledPlugins().sort()
1010
}
1111
12-
const allPlugins = ['anthy', 'chewing', 'chinese-addons', 'hallelujah', 'hangul', 'lua', 'rime', 'sayura', 'thai', 'unikey']
12+
const allPlugins = ['anthy', 'chewing', 'chinese-addons', 'hallelujah', 'hangul', 'lua', 'mozc', 'rime', 'sayura', 'thai', 'unikey']
1313
const installedPlugins = ref<string[]>(getInstalledPlugins())
1414
const availablePlugins = computed(() => allPlugins.filter(plugin => !installedPlugins.value.includes(plugin)))
1515
@@ -37,11 +37,17 @@ async function onUpload(files: UploadFileInfo[]) {
3737

3838
<template>
3939
<NFlex size="large">
40-
<NUpload v-model:file-list="fileList" style="width: auto" multiple accept=".zip" @update:file-list="onUpload">
41-
<NUploadDragger style="height: 200px">
42-
Download and drag zip to this area
43-
</NUploadDragger>
44-
</NUpload>
40+
<NFlex vertical>
41+
<NUpload v-model:file-list="fileList" style="width: auto" multiple accept=".zip" @update:file-list="onUpload">
42+
<NUploadDragger style="height: 200px">
43+
Download and drag zip to this area
44+
</NUploadDragger>
45+
</NUpload>
46+
<NAlert title="Warning" type="warning">
47+
Mozc doesn't work on Chrome unless start the process with <br>
48+
<NCode>--enable-features=WebAssemblyUnlimitedSyncCompilation</NCode>
49+
</NAlert>
50+
</NFlex>
4551
<NFlex>
4652
<NList style="min-width: 100px">
4753
<template #header>

0 commit comments

Comments
 (0)