Skip to content

Commit

Permalink
add mozc
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Jan 1, 2025
1 parent c0c0d85 commit 5783eeb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- name: Install dependencies
run: |
wget -P cache https://github.com/fcitx-contrib/fcitx5-js/releases/download/latest/fcitx5-js-0.1.0.tgz
wget -P cache https://github.com/fcitx-contrib/fcitx5-js/releases/download/latest/fcitx5-js.tgz
npm i -g pnpm
pnpm i
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
"build": "vite build && vue-tsc -d --emitDeclarationOnly"
},
"devDependencies": {
"@antfu/eslint-config": "^3.12.0",
"@antfu/eslint-config": "^3.12.1",
"@vitejs/plugin-vue": "^5.2.1",
"eslint": "^9.17.0",
"fcitx5-js": "file:cache/fcitx5-js-0.1.0.tgz",
"naive-ui": "^2.40.3",
"typescript": "5.6.3",
"vite": "^6.0.3",
"fcitx5-js": "file:cache/fcitx5-js.tgz",
"naive-ui": "^2.40.4",
"typescript": "5.7.2",
"vite": "^6.0.6",
"vooks": "^0.2.12",
"vue": "^3.5.13",
"vue-tsc": "^2.1.10"
"vue-tsc": "^2.2.0"
}
}
20 changes: 13 additions & 7 deletions src/PluginManager.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import type { UploadFileInfo } from 'naive-ui'
import { NA, NFlex, NList, NListItem, NUpload, NUploadDragger, useMessage } from 'naive-ui'
import { NA, NAlert, NCode, NFlex, NList, NListItem, NUpload, NUploadDragger, useMessage } from 'naive-ui'
import { computed, ref } from 'vue'
const message = useMessage()
Expand All @@ -9,7 +9,7 @@ function getInstalledPlugins() {
return window.fcitx.getInstalledPlugins().sort()
}
const allPlugins = ['anthy', 'chewing', 'chinese-addons', 'hallelujah', 'hangul', 'lua', 'rime', 'sayura', 'thai', 'unikey']
const allPlugins = ['anthy', 'chewing', 'chinese-addons', 'hallelujah', 'hangul', 'lua', 'mozc', 'rime', 'sayura', 'thai', 'unikey']
const installedPlugins = ref<string[]>(getInstalledPlugins())
const availablePlugins = computed(() => allPlugins.filter(plugin => !installedPlugins.value.includes(plugin)))
Expand Down Expand Up @@ -37,11 +37,17 @@ async function onUpload(files: UploadFileInfo[]) {

<template>
<NFlex size="large">
<NUpload v-model:file-list="fileList" style="width: auto" multiple accept=".zip" @update:file-list="onUpload">
<NUploadDragger style="height: 200px">
Download and drag zip to this area
</NUploadDragger>
</NUpload>
<NFlex vertical>
<NUpload v-model:file-list="fileList" style="width: auto" multiple accept=".zip" @update:file-list="onUpload">
<NUploadDragger style="height: 200px">
Download and drag zip to this area
</NUploadDragger>
</NUpload>
<NAlert title="Warning" type="warning">
Mozc doesn't work on Chrome unless start the process with <br>
<NCode>--enable-features=WebAssemblyUnlimitedSyncCompilation</NCode>
</NAlert>
</NFlex>
<NFlex>
<NList style="min-width: 100px">
<template #header>
Expand Down

0 comments on commit 5783eeb

Please sign in to comment.