From feccfc3421df5c562d43c1aba0ab678715ac9b69 Mon Sep 17 00:00:00 2001 From: LokerL <44148627+LokerL@users.noreply.github.com> Date: Sun, 31 Jul 2022 14:43:00 +0800 Subject: [PATCH 001/126] Update release.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 测试自动部署 --- .github/workflows/release.yml | 90 +++++++---------------------------- 1 file changed, 17 insertions(+), 73 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ce77f4..fdf7dad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,77 +1,21 @@ -name: Release - +name: Build Pack on: push: - release: - branches: [main] - types: - - published - paths-ignore: - - "**.md" - - "**.spec.js" - - ".idea" - - ".vscode" - - ".dockerignore" - - "Dockerfile" - - ".gitignore" - - ".github/**" - - "!.github/workflows/release.yml" - -defaults: - run: - shell: "bash" - + branches: + - master # master 分支 push 时触发工作流 jobs: - build: - # see more environment https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on - runs-on: [ubuntu-20.04] - # https://www.electron.build/multi-platform-build#provided-docker-images - container: electronuserland/builder:wine - - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ELECTRON_BUILDER_CACHE: "/root/.cache/electron-builder" - ELECTRON_CACHE: "/root/.cache/electron" - - strategy: - matrix: - node: ["14"] - + pack: # 打包任务 + runs-on: windows-latest # 在 windows 系统中运行 steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node }} - - - name: Install dependencies - run: npm i - - # - name: Run tests - # run: npm run test - - # - name: Build dependencies - # run: npm run build - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - # - uses: actions/upload-artifact@v2 - # with: - # name: upload-artifact - # path: | - # release/electron-vue-vite*.exe - # release/electron-vue-vite*.AppImage - # release/electron-vue-vite*.snap - - # https://github.com/marketplace/actions/electron-builder-action - - name: Compile & Release Electron app - uses: samuelmeuli/action-electron-builder@v1 - with: - build_script_name: prebuild - args: --config electron-builder.json5 - github_token: ${{ secrets.GITHUB_TOKEN }} - release: ${{ startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push' && needs.get_metadata.outputs.branch == 'main'}} - max_attempts: 3 + - uses: actions/checkout@v2 # 下载仓库代码到工作流机器中 + - name: Install and Pack # 安装依赖并且进行构建 + run: | + npm install + npm run build + - name: Upload file # 将构建产物进行上传 + uses: actions/upload-artifact@v2 + with: + name: vue-tts + # 打包的路径以及文件过滤,此为仅打包dist目录下的exe文件 + path: release/1.0.0/*exe + From 28656abd52af35669589bed0c57158571aa49c46 Mon Sep 17 00:00:00 2001 From: LokerL <44148627+LokerL@users.noreply.github.com> Date: Sun, 31 Jul 2022 16:27:26 +0800 Subject: [PATCH 002/126] Create main.yml --- .github/workflows/main.yml | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..489fe07 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,49 @@ +name: Build + +on: + push: + branches: [main] + paths-ignore: + - "**.md" + - "**.spec.js" + - ".idea" + - ".vscode" + - ".dockerignore" + - "Dockerfile" + - ".gitignore" + - ".github/**" + - "!.github/workflows/build.yml" + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: 14 + + - name: Install Dependencies + run: npm install + + - name: Build Release Files + run: npm run build + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: release_on_${{ matrix. os }} + path: release/ + retention-days: 5 From c044e2c522f1a480beafd4a2ae44a4ffe79a747d Mon Sep 17 00:00:00 2001 From: LokerL <44148627+LokerL@users.noreply.github.com> Date: Sun, 31 Jul 2022 16:45:10 +0800 Subject: [PATCH 003/126] Update main.yml test build --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 489fe07..7e51164 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,6 +13,7 @@ on: - ".gitignore" - ".github/**" - "!.github/workflows/build.yml" + workflow_dispatch: jobs: build: From 32f058e479a3894816b3825946cdb5a51e5738f0 Mon Sep 17 00:00:00 2001 From: LokerL <44148627+LokerL@users.noreply.github.com> Date: Sun, 31 Jul 2022 17:03:09 +0800 Subject: [PATCH 004/126] Update main.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新 自动打包 --- .github/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7e51164..3a9a5b8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,8 @@ jobs: strategy: matrix: - os: [macos-latest, ubuntu-latest, windows-latest] + # [macos-latest, ubuntu-latest, windows-latest] + os: [windows-latest] steps: - name: Checkout Code @@ -45,6 +46,6 @@ jobs: - name: Upload Artifact uses: actions/upload-artifact@v3 with: - name: release_on_${{ matrix. os }} - path: release/ + name: vue-tts_release_on_${{ matrix.os }} + path: release/1.0.0/*exe retention-days: 5 From f693b202b26bfa0912f62aaecf5258590c5324e5 Mon Sep 17 00:00:00 2001 From: LokerL <44148627+LokerL@users.noreply.github.com> Date: Sun, 31 Jul 2022 17:40:59 +0800 Subject: [PATCH 005/126] Delete release.yml --- .github/workflows/release.yml | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index f88911d..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Build Pack -on: - push: - branches: - - master # master 分支 push 时触发工作流 -jobs: - pack: # 打包任务 - runs-on: windows-latest # 在 windows 系统中运行 - steps: - - uses: actions/checkout@v2 # 下载仓库代码到工作流机器中 - - name: Install and Pack # 安装依赖并且进行构建 - run: | - npm install - npm run electron-builder - - name: Upload file # 将构建产物进行上传 - uses: actions/upload-artifact@v2 - with: - name: vue-tts - # 打包的路径以及文件过滤,此为仅打包dist目录下的exe文件 - path: release/1.0.0/*exe From 31c0a167cba67cd3087dd6d71848fce91ec5d52a Mon Sep 17 00:00:00 2001 From: LokerL <44148627+LokerL@users.noreply.github.com> Date: Sun, 31 Jul 2022 19:19:13 +0800 Subject: [PATCH 006/126] Update main.yml --- .github/workflows/main.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3a9a5b8..0d493ec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,12 +40,17 @@ jobs: - name: Build Release Files run: npm run build - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload Artifact uses: actions/upload-artifact@v3 with: - name: vue-tts_release_on_${{ matrix.os }} + name: vue-tts-${{ matrix.os }} path: release/1.0.0/*exe - retention-days: 5 + retention-days: 30 + + - name: Upload to release + uses: softprops/action-gh-release@v1 + with: + name: vue-tts-${{ matrix.os }} + if: startsWith(github.ref, 'refs/tags/') + files: "release/1.0.0/*exe" From 5ea38c6513cf27a33b2b567badd4377a7457a40f Mon Sep 17 00:00:00 2001 From: LokerL <44148627+LokerL@users.noreply.github.com> Date: Sun, 31 Jul 2022 19:50:25 +0800 Subject: [PATCH 007/126] Update main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0d493ec..2b1a587 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,3 +54,4 @@ jobs: name: vue-tts-${{ matrix.os }} if: startsWith(github.ref, 'refs/tags/') files: "release/1.0.0/*exe" + token: ${{ secrets.TOKEN }} From 25673cd482bb433e527aadcc984f2dfb1d3506bd Mon Sep 17 00:00:00 2001 From: LokerL <44148627+LokerL@users.noreply.github.com> Date: Sun, 31 Jul 2022 20:37:13 +0800 Subject: [PATCH 008/126] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2b1a587..2f1ccab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ on: - "Dockerfile" - ".gitignore" - ".github/**" - - "!.github/workflows/build.yml" + - "!.github/workflows/main.yml" workflow_dispatch: jobs: @@ -39,7 +39,7 @@ jobs: run: npm install - name: Build Release Files - run: npm run build + run: npm run electron-builder build --publish=never - name: Upload Artifact uses: actions/upload-artifact@v3 From 23c5bbc20d2e3d6aa3388442c51966da2af70ef5 Mon Sep 17 00:00:00 2001 From: LokerL <44148627+LokerL@users.noreply.github.com> Date: Sun, 31 Jul 2022 20:51:14 +0800 Subject: [PATCH 009/126] Update main.yml --- .github/workflows/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2f1ccab..17c8050 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,7 +39,7 @@ jobs: run: npm install - name: Build Release Files - run: npm run electron-builder build --publish=never + run: npm run build - name: Upload Artifact uses: actions/upload-artifact@v3 @@ -48,10 +48,10 @@ jobs: path: release/1.0.0/*exe retention-days: 30 - - name: Upload to release - uses: softprops/action-gh-release@v1 - with: - name: vue-tts-${{ matrix.os }} - if: startsWith(github.ref, 'refs/tags/') - files: "release/1.0.0/*exe" - token: ${{ secrets.TOKEN }} + # - name: Upload to release + # uses: softprops/action-gh-release@v1 + # with: + # name: vue-tts-${{ matrix.os }} + # if: startsWith(github.ref, 'refs/tags/') + # files: "release/1.0.0/*exe" + # token: ${{ secrets.TOKEN }} From 39db72296d6dece5716b76aa00ce1a09bfe62407 Mon Sep 17 00:00:00 2001 From: LokerL <44148627+LokerL@users.noreply.github.com> Date: Sun, 31 Jul 2022 21:04:42 +0800 Subject: [PATCH 010/126] Update main.yml --- .github/workflows/main.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 17c8050..33c8b69 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ on: - "Dockerfile" - ".gitignore" - ".github/**" - - "!.github/workflows/main.yml" + - "!.github/workflows/build.yml" workflow_dispatch: jobs: @@ -40,18 +40,11 @@ jobs: - name: Build Release Files run: npm run build + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload Artifact uses: actions/upload-artifact@v3 with: - name: vue-tts-${{ matrix.os }} + name: vue-tts.zip path: release/1.0.0/*exe - retention-days: 30 - - # - name: Upload to release - # uses: softprops/action-gh-release@v1 - # with: - # name: vue-tts-${{ matrix.os }} - # if: startsWith(github.ref, 'refs/tags/') - # files: "release/1.0.0/*exe" - # token: ${{ secrets.TOKEN }} From aa58a6e1a59f0496c8b114f87180ce81c5afc7f0 Mon Sep 17 00:00:00 2001 From: LokerL <44148627+LokerL@users.noreply.github.com> Date: Sun, 31 Jul 2022 21:11:50 +0800 Subject: [PATCH 011/126] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 33c8b69..f8c4d01 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,5 +46,5 @@ jobs: - name: Upload Artifact uses: actions/upload-artifact@v3 with: - name: vue-tts.zip + name: vue-tts path: release/1.0.0/*exe From 3d4fc76cccccb897b8dbf2fab17b1503f507f94c Mon Sep 17 00:00:00 2001 From: LokerL <806076693@qq.com> Date: Sun, 31 Jul 2022 23:39:55 +0800 Subject: [PATCH 012/126] =?UTF-8?q?=E4=BF=AE=E6=94=B9README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 114 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 67 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index 26a1a30..31af1d8 100644 --- a/README.md +++ b/README.md @@ -1,65 +1,85 @@ -# electron-vite-vue +# TTS-Vue -🥳 Really simple `Electron` + `Vue` + `Vite` boilerplate. +🎤 微软语音合成工具,使用 `Electron` + `Vue` + `ElementPlus` + `Vite` 构建. -[![awesome-vite](https://awesome.re/mentioned-badge.svg)](https://github.com/vitejs/awesome-vite) -[![Netlify Status](https://api.netlify.com/api/v1/badges/ae3863e3-1aec-4eb1-8f9f-1890af56929d/deploy-status)](https://app.netlify.com/sites/electron-vite/deploys) -![GitHub license](https://img.shields.io/github/license/caoxiemeihao/electron-vite-vue?style=flat) -![GitHub stars](https://img.shields.io/github/stars/caoxiemeihao/electron-vite-vue?color=fa6470&style=flat) -![GitHub forks](https://img.shields.io/github/forks/caoxiemeihao/electron-vite-vue?style=flat) -## Features +## 开始使用 -📦 Out of the box -🎯 Based on the official [vue-ts](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-vue-ts) template, less invasive -🌱 Extensible, really simple directory structure -💪 Support using Node.js API in Electron-Renderer -🔩 Support C/C++ native addons -🖥 It's easy to implement multiple windows +### 1. 下载安装 +* 方法1:直接下载安装包: + [下载地址Gitee](https://gitee.com/LGW_space/tts-vue/attach_files/1142731/download/vue-tts.zip) + [下载地址GitHub](https://github.com/LokerL/tts-vue/releases/download/untagged-18f6b9dc2aafce098458/vue-tts.zip) + [下载地址lanzou云](https://wwn.lanzoul.com/iOOza08rnzed) + ![tts-vue.zip](http://pic.rmb.bdstatic.com/bjh/50c9038bab1165bce67cf26b763be521.png) + 解压压缩包得到安装程序`tts-vue_1.0.0.exe` + 双击安装程序`tts-vue_1.0.0.exe`,选择安装位置,点击安装。 + ![安装结束](http://pic.rmb.bdstatic.com/bjh/226a11ce4887c21429d0ad1da1dd5d69.png) + +* 方法2:通过源码编译:(适合有开发能力的小伙伴) + GitHub: https://github.com/LokerL/tts-vue + Gitee: https://gitee.com/LGW_space/tts-vue + 下载源码后运行 + + ```shell + # npm + npm install + npm run dev + npm run build + 或者 + # yarn + yarn + yarn dev + yarn build + ``` -## Quick Start +### 2. 功能介绍 +#### 2.1 文本转语音 +![](http://pic.rmb.bdstatic.com/bjh/f94c2d5dcdb7b038670662773c47a8eb.png) +在`文本`菜单中,有`文本`和`SSML`两个标签页面。 +`文本`菜单的`文本`标签页:可以输入要转换为语音的文字。 +`文本`菜单的`SSML`标签页:可以输入要转换为语音的SSML标签语言。 -```sh -npm create electron-vite -``` +在设置区域,可以设置语音的`语言`,`语音`,` 说话风格`,`角色扮演`,`语速`,`音调`选项。 - +语速默认为`1`,为正常语速;音调默认为`1`,为正常音调; -![electron-vite-vue.gif](https://github.com/electron-vite/electron-vite-vue/blob/main/public/electron-vite-vue.gif?raw=true) +点击`保存配置`可以保存当前设置区域的配置,并在下方的下拉选择框中选择已保存的配置。 -## Debug +打开软件默认选择`默认配置`。想要修改默认配置,可以在`保存配置`时,给配置起名为`默认`即可替换默认配置。 -![electron-vite-react-debug.gif](https://github.com/electron-vite/electron-vite-react/blob/main/public/electron-vite-react-debug.gif?raw=true) +点击**开始转换**即可通过中间文本/SSML区域内容以及右侧配置选项生成语音。 -## Directory +语音生成成功后,即可在下方点击播放进行试听。 -```diff -+ ├─┬ electron -+ │ ├─┬ main -+ │ │ └── index.ts entry of Electron-Main -+ │ └─┬ preload -+ │ └── index.ts entry of Preload-Scripts - ├─┬ src - │ └── main.ts entry of Electron-Renderer - ├── index.html - ├── package.json - └── vite.config.ts -``` +播放按钮右侧绿色下载按钮,点击可以下载当前试听的声音为.mp3,默认保存位置为桌面。 +#### 2.2 文本批量转语音 -## 🚨 Be aware +![](http://pic.rmb.bdstatic.com/bjh/2af8a0096632014b50ce6a8176a5e8f6.png) -By default, this template integrates Node.js in the Renderer process. If you don't need it, you just remove the option below. [Because it will modify the default config of Vite](https://github.com/electron-vite/vite-plugin-electron/tree/main/packages/electron-renderer#config-presets-opinionated). +在`批量`菜单中,可以批量的将多个.txt文件转为.mp3文件。 -```diff -# vite.config.ts +点击选择文件可以选择多个文本文件,选择完成后,可以看到文件的路径、字数以及当前为`ready`状态。 -electron({ -- renderer: {} -}) -``` +不需要的文件可以点击同行的`删除`按钮。 -## FAQ +在右侧的设置区域配置好相应的选项后,点击**开始转换**,即可转换多个文件为mp3。默认保存路径为桌面。 -- [dependencies vs devDependencies](https://github.com/electron-vite/vite-plugin-electron/tree/main/packages/electron-renderer#dependencies-vs-devdependencies) -- [Using C/C++ native addons in Electron-Renderer](https://github.com/electron-vite/vite-plugin-electron/tree/main/packages/electron-renderer#load-nodejs-cc-native-modules) -- [Node.js ESM packages](https://github.com/electron-vite/vite-plugin-electron/tree/main/packages/electron-renderer#nodejs-esm-packages) (e.g. `execa` `node-fetch`) +#### 2.3 程序设置 + +![](http://pic.rmb.bdstatic.com/bjh/ec364eb5f5551e4cd581272bd02fa8f8.png) + +在`设置`菜单中,可以进行以下设置: + +* 文件保存路径:修改文件保存路径并点击`确认`。 + +* 是否自动播放:配置为`是`时,文本转为语音后,可以自动播放。批量转换时无效。 + +* 配置模板编辑:保存的模板可以在这里查看或删除。鼠标放在配置名字上可以显示全部配置内容。 + + ![](http://pic.rmb.bdstatic.com/bjh/dabc0e3200b44c0c3c1f65cfca586160.png) + +修改完成后其实已经自动保存完成,可以点击`刷新配置`以立即应用。 + +#### 2.3 其他说明 +关闭软件:左上角红色圆圈按钮 +最小化:左上角绿色圆圈按钮 \ No newline at end of file From d6350f7faf40bb5fb48eae7a46f3f7e52885c965 Mon Sep 17 00:00:00 2001 From: Loker <806076693@qq.com> Date: Mon, 1 Aug 2022 08:37:53 +0800 Subject: [PATCH 013/126] =?UTF-8?q?=E9=87=8D=E6=9E=84-=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- yarn.lock | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3f90a97..75775db 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "element-plus": "2.2.9", "mitt": "^3.0.0", "nodejs-websocket": "^1.7.2", + "pinia": "^2.0.17", "uuid": "^8.3.2" } -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index 792488b..4e035c0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -270,6 +270,11 @@ "@vue/compiler-dom" "3.2.37" "@vue/shared" "3.2.37" +"@vue/devtools-api@^6.2.1": + version "6.2.1" + resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.2.1.tgz#6f2948ff002ec46df01420dfeff91de16c5b4092" + integrity sha512-OEgAMeQXvCoJ+1x8WyQuVZzFo0wcyCmUR3baRVLmKBo1LmYZWMlRiXlux5jd0fqVJu6PfDbOrZItVqUEzLobeQ== + "@vue/reactivity-transform@3.2.37": version "3.2.37" resolved "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.2.37.tgz" @@ -1999,6 +2004,14 @@ pify@^3.0.0: resolved "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz" integrity sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg== +pinia@^2.0.17: + version "2.0.17" + resolved "https://registry.yarnpkg.com/pinia/-/pinia-2.0.17.tgz#f925e5e4f73c15e16dfb4838176a9ca50752f26b" + integrity sha512-AtwLwEWQgIjofjgeFT+nxbnK5lT2QwQjaHNEDqpsi2AiCwf/NY78uWTeHUyEhiiJy8+sBmw0ujgQMoQbWiZDfA== + dependencies: + "@vue/devtools-api" "^6.2.1" + vue-demi "*" + pkg-up@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-3.1.0.tgz#100ec235cc150e4fd42519412596a28512a0def5" From de5341e8c8fa70e503c341071d5cb66ce0196b47 Mon Sep 17 00:00:00 2001 From: Loker <806076693@qq.com> Date: Mon, 1 Aug 2022 16:04:01 +0800 Subject: [PATCH 014/126] =?UTF-8?q?=E9=87=8D=E6=9E=84=E5=AE=8C=E6=88=90?= =?UTF-8?q?=EF=BC=8C=E6=9C=AA=E4=BF=AE=E5=A4=8D=E5=B7=B2=E7=9F=A5BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/aside/Aside.vue | 13 +- src/components/configpage/ConfigPage.vue | 13 +- src/components/footer/Footer.vue | 51 ++++--- src/components/footer/play.ts | 3 +- src/components/main/Main.vue | 98 ++++---------- src/components/main/MainOptions.vue | 161 ++++++++--------------- src/global/index.ts | 1 + src/main.ts | 6 +- src/store/play.ts | 120 +++++++++++++++++ src/store/store.ts | 107 +++++++++++++++ tsconfig.json | 2 +- vite.config.ts | 49 ++++--- 12 files changed, 384 insertions(+), 240 deletions(-) create mode 100644 src/store/play.ts create mode 100644 src/store/store.ts diff --git a/src/components/aside/Aside.vue b/src/components/aside/Aside.vue index a4db963..788daac 100644 --- a/src/components/aside/Aside.vue +++ b/src/components/aside/Aside.vue @@ -1,7 +1,7 @@