mirror of
https://github.com/real-zony/ZonyLrcToolsX.git
synced 2025-07-01 20:30:41 +00:00
chore: Removed the frontend web page code.
This commit is contained in:
parent
1186369d16
commit
d860632327
@ -1,3 +0,0 @@
|
||||
> 1%
|
||||
last 2 versions
|
||||
not dead
|
213
src/ui/.gitignore
vendored
213
src/ui/.gitignore
vendored
@ -1,213 +0,0 @@
|
||||
### VisualStudioCode template
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
*.code-workspace
|
||||
|
||||
# Local History for Visual Studio Code
|
||||
.history/
|
||||
|
||||
### JetBrains template
|
||||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
||||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||
|
||||
# User-specific stuff
|
||||
.idea/**/workspace.xml
|
||||
.idea/**/tasks.xml
|
||||
.idea/**/usage.statistics.xml
|
||||
.idea/**/dictionaries
|
||||
.idea/**/shelf
|
||||
|
||||
# Generated files
|
||||
.idea/**/contentModel.xml
|
||||
|
||||
# Sensitive or high-churn files
|
||||
.idea/**/dataSources/
|
||||
.idea/**/dataSources.ids
|
||||
.idea/**/dataSources.local.xml
|
||||
.idea/**/sqlDataSources.xml
|
||||
.idea/**/dynamic.xml
|
||||
.idea/**/uiDesigner.xml
|
||||
.idea/**/dbnavigator.xml
|
||||
|
||||
# Gradle
|
||||
.idea/**/gradle.xml
|
||||
.idea/**/libraries
|
||||
|
||||
# Gradle and Maven with auto-import
|
||||
# When using Gradle or Maven with auto-import, you should exclude module files,
|
||||
# since they will be recreated, and may cause churn. Uncomment if using
|
||||
# auto-import.
|
||||
# .idea/artifacts
|
||||
# .idea/compiler.xml
|
||||
# .idea/jarRepositories.xml
|
||||
# .idea/modules.xml
|
||||
# .idea/*.iml
|
||||
# .idea/modules
|
||||
# *.iml
|
||||
# *.ipr
|
||||
|
||||
# CMake
|
||||
cmake-build-*/
|
||||
|
||||
# Mongo Explorer plugin
|
||||
.idea/**/mongoSettings.xml
|
||||
|
||||
# File-based project format
|
||||
*.iws
|
||||
|
||||
# IntelliJ
|
||||
out/
|
||||
|
||||
# mpeltonen/sbt-idea plugin
|
||||
.idea_modules/
|
||||
|
||||
# JIRA plugin
|
||||
atlassian-ide-plugin.xml
|
||||
|
||||
# Cursive Clojure plugin
|
||||
.idea/replstate.xml
|
||||
|
||||
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||
com_crashlytics_export_strings.xml
|
||||
crashlytics.properties
|
||||
crashlytics-build.properties
|
||||
fabric.properties
|
||||
|
||||
# Editor-based Rest Client
|
||||
.idea/httpRequests
|
||||
|
||||
# Android studio 3.1+ serialized cache file
|
||||
.idea/caches/build_file_checksums.ser
|
||||
|
||||
### Node template
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# Snowpack dependency directory (https://snowpack.dev/)
|
||||
web_modules/
|
||||
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Microbundle cache
|
||||
.rpt2_cache/
|
||||
.rts2_cache_cjs/
|
||||
.rts2_cache_es/
|
||||
.rts2_cache_umd/
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
.env.test
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
.parcel-cache
|
||||
|
||||
# Next.js build output
|
||||
.next
|
||||
out
|
||||
|
||||
# Nuxt.js build / generate output
|
||||
.nuxt
|
||||
dist
|
||||
|
||||
# Gatsby files
|
||||
.cache/
|
||||
# Comment in the public line in if your project uses Gatsby and not Next.js
|
||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
||||
# public
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
# FuseBox cache
|
||||
.fusebox/
|
||||
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# TernJS port file
|
||||
.tern-port
|
||||
|
||||
# Stores VSCode versions used for testing VSCode extensions
|
||||
.vscode-test
|
||||
|
||||
# yarn v2
|
||||
.yarn/cache
|
||||
.yarn/unplugged
|
||||
.yarn/build-state.yml
|
||||
.yarn/install-state.gz
|
||||
.pnp.*
|
||||
|
||||
### Vue template
|
||||
# gitignore template for Vue.js projects
|
||||
#
|
||||
# Recommended template: Node.gitignore
|
||||
|
||||
# TODO: where does this rule come from?
|
||||
docs/_book
|
||||
|
||||
# TODO: where does this rule come from?
|
||||
test/
|
||||
|
@ -1,19 +0,0 @@
|
||||
# ui
|
||||
|
||||
## Project setup
|
||||
```
|
||||
yarn install
|
||||
```
|
||||
|
||||
### Compiles and hot-reloads for development
|
||||
```
|
||||
yarn serve
|
||||
```
|
||||
|
||||
### Compiles and minifies for production
|
||||
```
|
||||
yarn build
|
||||
```
|
||||
|
||||
### Customize configuration
|
||||
See [Configuration Reference](https://cli.vuejs.org/config/).
|
@ -1,5 +0,0 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
]
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"module": "esnext",
|
||||
"baseUrl": "./",
|
||||
"moduleResolution": "node",
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"src/*"
|
||||
]
|
||||
},
|
||||
"lib": [
|
||||
"esnext",
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"scripthost"
|
||||
]
|
||||
}
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
{
|
||||
"name": "ui",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.1.3",
|
||||
"core-js": "^3.8.3",
|
||||
"vue": "^2.6.14",
|
||||
"vue-router": "^3.5.1",
|
||||
"vuetify": "^2.6.0",
|
||||
"vuex": "^3.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "~5.0.0",
|
||||
"@vue/cli-plugin-router": "~5.0.0",
|
||||
"@vue/cli-plugin-vuex": "~5.0.0",
|
||||
"@vue/cli-service": "~5.0.0",
|
||||
"sass": "^1.32.7",
|
||||
"sass-loader": "^12.0.0",
|
||||
"vue-cli-plugin-vuetify": "~2.5.8",
|
||||
"vue-template-compiler": "^2.6.14",
|
||||
"vuetify-loader": "^1.7.0"
|
||||
}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 4.2 KiB |
@ -1,19 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||
</noscript>
|
||||
<div id="app"></div>
|
||||
<!-- built files will be auto injected -->
|
||||
</body>
|
||||
</html>
|
@ -1,80 +0,0 @@
|
||||
<template>
|
||||
<v-app id="inspire">
|
||||
|
||||
<v-navigation-drawer
|
||||
v-model="drawer"
|
||||
app
|
||||
>
|
||||
<v-sheet
|
||||
color="grey lighten-4"
|
||||
class="pa-4"
|
||||
>
|
||||
<div>ZonyLrcTools-X</div>
|
||||
</v-sheet>
|
||||
|
||||
<v-divider></v-divider>
|
||||
|
||||
<v-list>
|
||||
<v-list-item
|
||||
v-for="[icon, text, to] in links"
|
||||
:key="icon"
|
||||
:to="to"
|
||||
link
|
||||
>
|
||||
<v-list-item-icon>
|
||||
<v-icon>{{ icon }}</v-icon>
|
||||
</v-list-item-icon>
|
||||
|
||||
<v-list-item-content>
|
||||
<v-list-item-title>{{ text }}</v-list-item-title>
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-navigation-drawer>
|
||||
|
||||
<v-app-bar app>
|
||||
<v-app-bar-nav-icon @click="drawer = !drawer"></v-app-bar-nav-icon>
|
||||
|
||||
<v-toolbar-title>ZonyLrcToolsX</v-toolbar-title>
|
||||
</v-app-bar>
|
||||
|
||||
<v-main>
|
||||
<v-container
|
||||
class="py-8 px-6"
|
||||
fluid
|
||||
>
|
||||
<router-view></router-view>
|
||||
</v-container>
|
||||
</v-main>
|
||||
</v-app>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Socket from "@/communication/socket";
|
||||
import {mapMutations} from "vuex"
|
||||
|
||||
export default {
|
||||
data: () => ({
|
||||
drawer: null,
|
||||
links: [
|
||||
['mdi-play-circle', '开始', '/'],
|
||||
['mdi-multiplication-box', '设置', '/setting'],
|
||||
['mdi-information', '关于', '/about'],
|
||||
],
|
||||
}),
|
||||
created() {
|
||||
Socket.$on("message", this.handleGetMessage);
|
||||
},
|
||||
beforeDestroy() {
|
||||
Socket.$off("message", this.handleGetMessage);
|
||||
},
|
||||
methods: {
|
||||
...mapMutations({
|
||||
setWsRes: "ws/setWsRes",
|
||||
}),
|
||||
handleGetMessage(msg) {
|
||||
this.setWsRes(JSON.parse(msg));
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Binary file not shown.
Before Width: | Height: | Size: 6.7 KiB |
@ -1 +0,0 @@
|
||||
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 87.5 100"><defs><style>.cls-1{fill:#1697f6;}.cls-2{fill:#7bc6ff;}.cls-3{fill:#1867c0;}.cls-4{fill:#aeddff;}</style></defs><title>Artboard 46</title><polyline class="cls-1" points="43.75 0 23.31 0 43.75 48.32"/><polygon class="cls-2" points="43.75 62.5 43.75 100 0 14.58 22.92 14.58 43.75 62.5"/><polyline class="cls-3" points="43.75 0 64.19 0 43.75 48.32"/><polygon class="cls-4" points="64.58 14.58 87.5 14.58 43.75 100 43.75 62.5 64.58 14.58"/></svg>
|
Before Width: | Height: | Size: 539 B |
@ -1,5 +0,0 @@
|
||||
import Vue from "vue";
|
||||
|
||||
const eventBus = new Vue();
|
||||
|
||||
export default eventBus;
|
@ -1,31 +0,0 @@
|
||||
import Vue from 'vue'
|
||||
import eventBus from "@/communication/eventbus";
|
||||
|
||||
// const wsUrl = process.env.VUE_APP_WS_URL;
|
||||
const wsUrl = "ws://127.0.0.1:50001"
|
||||
|
||||
let socket = new WebSocket(wsUrl);
|
||||
const emitter = new Vue({
|
||||
methods: {
|
||||
send(message) {
|
||||
if (socket.readyState === 1) {
|
||||
socket.send(JSON.stringify(message));
|
||||
}
|
||||
}, connect() {
|
||||
socket = new WebSocket(wsUrl);
|
||||
socket.onmessage = (msg) => {
|
||||
let event = JSON.parse(msg.data);
|
||||
eventBus.$emit(event.action, event);
|
||||
};
|
||||
socket.onerror = (err) => {
|
||||
eventBus.$emit('error', err);
|
||||
};
|
||||
socket.onclose = () => {
|
||||
emitter.connect()
|
||||
};
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
emitter.connect();
|
||||
export default emitter;
|
@ -1,13 +0,0 @@
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "setting"
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -1,14 +0,0 @@
|
||||
import Vue from 'vue'
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import store from './store'
|
||||
import vuetify from './plugins/vuetify'
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
vuetify,
|
||||
render: h => h(App)
|
||||
}).$mount('#app')
|
@ -1,21 +0,0 @@
|
||||
import Vue from 'vue';
|
||||
import Vuetify from 'vuetify/lib/framework';
|
||||
|
||||
Vue.use(Vuetify);
|
||||
|
||||
export default new Vuetify({
|
||||
theme: {
|
||||
dark: false,
|
||||
themes: {
|
||||
light: {
|
||||
primary: '#03a9f4',
|
||||
secondary: '#8bc34a',
|
||||
accent: '#cddc39',
|
||||
error: '#f44336',
|
||||
warning: '#ffc107',
|
||||
info: '#607d8b',
|
||||
success: '#4caf50'
|
||||
}
|
||||
},
|
||||
}
|
||||
});
|
@ -1,33 +0,0 @@
|
||||
import Vue from 'vue'
|
||||
import VueRouter from 'vue-router'
|
||||
import HomeView from '../views/HomeView.vue'
|
||||
import AboutView from '../views/AboutView.vue'
|
||||
import SettingView from "@/views/SettingView"
|
||||
|
||||
Vue.use(VueRouter)
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
component: HomeView
|
||||
},
|
||||
{
|
||||
path: '/about',
|
||||
name: 'about',
|
||||
component: AboutView
|
||||
},
|
||||
{
|
||||
path: '/setting',
|
||||
name: 'setting',
|
||||
component: SettingView
|
||||
}
|
||||
]
|
||||
|
||||
const router = new VueRouter({
|
||||
mode: 'history',
|
||||
base: process.env.BASE_URL,
|
||||
routes
|
||||
})
|
||||
|
||||
export default router
|
@ -1,12 +0,0 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
export default new Vuex.Store({
|
||||
state: {},
|
||||
getters: {},
|
||||
mutations: {},
|
||||
actions: {},
|
||||
modules: {}
|
||||
})
|
@ -1,5 +0,0 @@
|
||||
<template>
|
||||
<div class="about">
|
||||
<h1>This is an about page</h1>
|
||||
</div>
|
||||
</template>
|
@ -1,90 +0,0 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
|
||||
<!-- Operation Buttons Group -->
|
||||
<div class="button-group">
|
||||
<v-btn @click="openDir">
|
||||
扫描文件
|
||||
</v-btn>
|
||||
<input type="file" class="d-none">
|
||||
|
||||
<v-btn class="ml-5" disabled>开始下载</v-btn>
|
||||
</div>
|
||||
|
||||
<div class="file-list mt-5">
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="items"
|
||||
class="elevation-1"
|
||||
>
|
||||
<template v-slot:item.status="{ item }">
|
||||
<v-icon v-if="item.status === 'success'" color="success">mdi-check</v-icon>
|
||||
<v-icon v-else-if="item.status === 'error'" color="error">mdi-close</v-icon>
|
||||
<v-icon v-else>mdi-minus</v-icon>
|
||||
</template>
|
||||
</v-data-table>
|
||||
|
||||
<div class="output mt-8">
|
||||
<v-textarea disabled outlined label="日志信息" :value='outputText'/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Socket from '@/communication/socket'
|
||||
import eventBus from "@/communication/eventbus";
|
||||
|
||||
export default {
|
||||
name: 'Home',
|
||||
data() {
|
||||
return {
|
||||
headers: [
|
||||
{
|
||||
text: '文件名',
|
||||
align: 'start',
|
||||
sortable: false,
|
||||
value: 'name',
|
||||
},
|
||||
{text: '大小', value: 'size'},
|
||||
{text: '状态', value: 'status'},
|
||||
{text: '操作', value: 'action'},
|
||||
],
|
||||
items: [],
|
||||
outputText: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
openDir() {
|
||||
Socket.send({
|
||||
type: 'openDir',
|
||||
data: {},
|
||||
})
|
||||
},
|
||||
loadItems() {
|
||||
this.items = []
|
||||
axios.get()
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
mounted() {
|
||||
// eventBus.$on('getFile', (msgData) => {
|
||||
// console.log(msgData);
|
||||
// });
|
||||
// eventBus.$on('getFileInfo', (msgData) => {
|
||||
// this.items = [...this.items, ...msgData.data.map(item => {
|
||||
// return {
|
||||
// name: item.name,
|
||||
// size: item.size,
|
||||
// status: 'success',
|
||||
// action: 4.0,
|
||||
// }
|
||||
// })]
|
||||
// });
|
||||
//
|
||||
eventBus.$on('output', (msgData) => {
|
||||
this.outputText = this.outputText.concat(msgData.data.text).concat('\n');
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
@ -1,148 +0,0 @@
|
||||
<template>
|
||||
|
||||
<v-form>
|
||||
<v-list subheader flat two-line>
|
||||
<v-subheader>网络代理</v-subheader>
|
||||
|
||||
<v-list-item>
|
||||
<v-switch label="启用代理" @change="proxyEnabledChange" v-model="isProxyEnabled"/>
|
||||
</v-list-item>
|
||||
<v-list-item>
|
||||
<v-text-field :disabled="proxyEnabled" v-model="proxyAddress" label="代理地址"
|
||||
placeholder="请输入代理服务器的地址,例如 127.0.0.1:1080。"/>
|
||||
</v-list-item>
|
||||
<v-list-item>
|
||||
<v-text-field :disabled="proxyEnabled" v-model="updateAddress" label="更新检查地址"
|
||||
placeholder="请输入更新检查地址,默认情况下无需变更。"/>
|
||||
</v-list-item>
|
||||
|
||||
<v-divider></v-divider>
|
||||
<v-subheader>全局下载设置</v-subheader>
|
||||
<v-list-item>
|
||||
<v-switch label="是否启用翻译歌词"/>
|
||||
</v-list-item>
|
||||
<v-list-item>
|
||||
<v-switch label="仅输出翻译歌词"/>
|
||||
</v-list-item>
|
||||
<v-list-item>
|
||||
<v-switch label="跳过歌词文件已存在的歌曲"/>
|
||||
</v-list-item>
|
||||
<v-list-item>
|
||||
<v-switch label="双语歌词合并展示" v-model="mergeLrc"/>
|
||||
</v-list-item>
|
||||
<v-list-item>
|
||||
<!--文件编码-->
|
||||
<v-select v-model="lrcEncoding" :items="lrcEncodings" label="歌词文件编码" placeholder="请选择歌词文件编码"/>
|
||||
</v-list-item>
|
||||
<v-list-item>
|
||||
<!--换行符下拉选择-->
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-select label="换行符" v-model="lineBreak" :items="lineBreakOptions" item-text="label"
|
||||
item-value="value"/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
|
||||
<v-divider></v-divider>
|
||||
<v-list-item>
|
||||
<v-row>
|
||||
<v-col cols="6">
|
||||
<v-subheader>歌词下载器设置</v-subheader>
|
||||
<v-list-item>
|
||||
<v-data-table hide-default-footer :headers="lyricDownloaderHeaders" :items="lyricDownloader"
|
||||
class="elevation-1" disable-sort>
|
||||
<template v-slot:item.enabled="{ item }">
|
||||
<v-simple-checkbox v-model="item.enabled" color="primary"/>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-list-item>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="6">
|
||||
<v-subheader>标签解析器设置</v-subheader>
|
||||
<v-list-item>
|
||||
<v-data-table hide-default-footer :headers="tagParserHeaders" :items="tagParser" class="elevation-1"
|
||||
disable-sort>
|
||||
<template v-slot:item.enabled="{ item }">
|
||||
<v-simple-checkbox v-model="item.enabled" color="primary"></v-simple-checkbox>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</v-list-item>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
|
||||
<v-divider class="mt-5"></v-divider>
|
||||
<v-subheader>屏蔽字典</v-subheader>
|
||||
<v-list-item>
|
||||
<v-switch label="启用屏蔽字典" v-model="isBlockDictEnabled" @change="blockDictEnabledChange"/>
|
||||
</v-list-item>
|
||||
<v-list-item>
|
||||
<v-text-field :disabled="blockDictEnabled" v-model="blockDictPath" label="屏蔽字典路径"
|
||||
placeholder="请选择屏蔽字典的文件路径。"/>
|
||||
<v-btn :disabled="blockDictEnabled" icon @click="openBlockDict">
|
||||
<v-icon>mdi-folder</v-icon>
|
||||
</v-btn>
|
||||
</v-list-item>
|
||||
|
||||
<v-divider></v-divider>
|
||||
<v-subheader>扫描设置</v-subheader>
|
||||
<v-list-item>
|
||||
<v-text-field v-model="fileSearchSuffix" label="文件搜索后缀"
|
||||
placeholder="请输入文件搜索后缀,多个后缀以英文逗号分隔。"/>
|
||||
</v-list-item>
|
||||
|
||||
</v-list>
|
||||
</v-form>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "Setting",
|
||||
data: () => {
|
||||
return {
|
||||
isProxyEnabled: true,
|
||||
proxyEnabled: false,
|
||||
isBlockDictEnabled: true,
|
||||
blockDictEnabled: false,
|
||||
blockDictPath: "",
|
||||
proxyAddress: "",
|
||||
updateAddress: "",
|
||||
mergeLrc: false,
|
||||
lineBreak: "lf",
|
||||
lineBreakOptions: [
|
||||
{label: "LF", value: "lf"},
|
||||
{label: "CRLF", value: "crlf"},
|
||||
],
|
||||
lrcEncoding: "utf-8",
|
||||
lyricDownloaderHeaders: [
|
||||
{text: "启用", value: "enabled"},
|
||||
{text: "歌词源", value: "name"},
|
||||
{text: "搜索深度", value: "searchDepth"},
|
||||
{text: "优先级", value: "priority"},
|
||||
],
|
||||
lyricDownloader: [
|
||||
{enabled: true, name: "网易云音乐", searchDepth: 10, priority: 1},
|
||||
],
|
||||
tagParserHeaders: [
|
||||
{text: "启用", value: "enabled", sortable: false, width: "10%"},
|
||||
{text: "标签解析器", value: "name", sortable: false, width: "90%"},
|
||||
],
|
||||
tagParser: [
|
||||
{name: '正则表达式解析器', enabled: true},
|
||||
],
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
proxyEnabledChange() {
|
||||
this.proxyEnabled = !this.proxyEnabled;
|
||||
},
|
||||
blockDictEnabledChange() {
|
||||
this.blockDictEnabled = !this.blockDictEnabled;
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
@ -1,6 +0,0 @@
|
||||
const { defineConfig } = require('@vue/cli-service')
|
||||
module.exports = defineConfig({
|
||||
transpileDependencies: [
|
||||
'vuetify'
|
||||
]
|
||||
})
|
5654
src/ui/yarn.lock
5654
src/ui/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user