mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-29 12:22:44 +08:00
引入 Cron
This commit is contained in:
parent
cec2ff7f96
commit
807834244d
11
package-lock.json
generated
11
package-lock.json
generated
@ -10,6 +10,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@quasar/extras": "^1.0.0",
|
"@quasar/extras": "^1.0.0",
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
|
"croner": "^4.3.9",
|
||||||
"monaco-editor": "^0.33.0",
|
"monaco-editor": "^0.33.0",
|
||||||
"monaco-editor-webpack-plugin": "^7.0.1",
|
"monaco-editor-webpack-plugin": "^7.0.1",
|
||||||
"picture-compressor": "^1.1.0",
|
"picture-compressor": "^1.1.0",
|
||||||
@ -3917,6 +3918,11 @@
|
|||||||
"node": ">= 10"
|
"node": ">= 10"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/croner": {
|
||||||
|
"version": "4.3.9",
|
||||||
|
"resolved": "https://registry.npmmirror.com/croner/-/croner-4.3.9.tgz",
|
||||||
|
"integrity": "sha512-e9bqMBUoShzQ9Dazb3D86IvYPa94WGWTp8hyi+VMiFHrTBS65Re8c9e+k31tOpkiGQZCSOXBe0IssPZiOpBsMw=="
|
||||||
|
},
|
||||||
"node_modules/cross-spawn": {
|
"node_modules/cross-spawn": {
|
||||||
"version": "7.0.3",
|
"version": "7.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
||||||
@ -14391,6 +14397,11 @@
|
|||||||
"readable-stream": "^3.4.0"
|
"readable-stream": "^3.4.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"croner": {
|
||||||
|
"version": "4.3.9",
|
||||||
|
"resolved": "https://registry.npmmirror.com/croner/-/croner-4.3.9.tgz",
|
||||||
|
"integrity": "sha512-e9bqMBUoShzQ9Dazb3D86IvYPa94WGWTp8hyi+VMiFHrTBS65Re8c9e+k31tOpkiGQZCSOXBe0IssPZiOpBsMw=="
|
||||||
|
},
|
||||||
"cross-spawn": {
|
"cross-spawn": {
|
||||||
"version": "7.0.3",
|
"version": "7.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@quasar/extras": "^1.0.0",
|
"@quasar/extras": "^1.0.0",
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
|
"croner": "^4.3.9",
|
||||||
"monaco-editor": "^0.33.0",
|
"monaco-editor": "^0.33.0",
|
||||||
"monaco-editor-webpack-plugin": "^7.0.1",
|
"monaco-editor-webpack-plugin": "^7.0.1",
|
||||||
"picture-compressor": "^1.1.0",
|
"picture-compressor": "^1.1.0",
|
||||||
|
@ -3,29 +3,10 @@ import {
|
|||||||
} from 'quasar/wrappers'
|
} from 'quasar/wrappers'
|
||||||
import UTOOLS from "../js/utools.js";
|
import UTOOLS from "../js/utools.js";
|
||||||
import programmings from '../js/options/programs.js';
|
import programmings from '../js/options/programs.js';
|
||||||
|
import defaultProfile from "../js/options/defaultProfile.js"
|
||||||
|
import Cron from "croner"
|
||||||
|
|
||||||
// 配置数据存取
|
// 配置数据存取
|
||||||
let defaultProfile = {
|
|
||||||
commandCardStyle: "normal",
|
|
||||||
primaryColor: "#009688",
|
|
||||||
defaultPrimaryColor: "#009688",
|
|
||||||
backgroundImg: null,
|
|
||||||
codeHistory: {},
|
|
||||||
quickFeatures: {
|
|
||||||
favFile: {
|
|
||||||
enable: false,
|
|
||||||
tag: "文件"
|
|
||||||
},
|
|
||||||
favUrl: {
|
|
||||||
enable: false,
|
|
||||||
tag: "网址"
|
|
||||||
},
|
|
||||||
pluNickName: {
|
|
||||||
enable: false,
|
|
||||||
tag: "别名"
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let userProfile = UTOOLS.getDB(
|
let userProfile = UTOOLS.getDB(
|
||||||
UTOOLS.DBPRE.CFG + "preferences"
|
UTOOLS.DBPRE.CFG + "preferences"
|
||||||
);
|
);
|
||||||
@ -33,10 +14,11 @@ Object.assign(defaultProfile, userProfile)
|
|||||||
|
|
||||||
// "async" is optional;
|
// "async" is optional;
|
||||||
// more info on params: https://v2.quasar.dev/quasar-cli/boot-files
|
// more info on params: https://v2.quasar.dev/quasar-cli/boot-files
|
||||||
export default boot(async ({
|
export default boot(async({
|
||||||
app
|
app
|
||||||
}) => {
|
}) => {
|
||||||
app.config.globalProperties.$utools = UTOOLS
|
app.config.globalProperties.$utools = UTOOLS
|
||||||
app.config.globalProperties.$programmings = programmings
|
app.config.globalProperties.$programmings = programmings
|
||||||
app.config.globalProperties.$profile = defaultProfile
|
app.config.globalProperties.$profile = defaultProfile
|
||||||
|
app.config.globalProperties.$Cron = Cron
|
||||||
})
|
})
|
21
src/js/options/defaultProfile.js
Normal file
21
src/js/options/defaultProfile.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
export default {
|
||||||
|
commandCardStyle: "normal",
|
||||||
|
primaryColor: "#009688",
|
||||||
|
defaultPrimaryColor: "#009688",
|
||||||
|
backgroundImg: null,
|
||||||
|
codeHistory: {},
|
||||||
|
quickFeatures: {
|
||||||
|
favFile: {
|
||||||
|
enable: false,
|
||||||
|
tag: "文件"
|
||||||
|
},
|
||||||
|
favUrl: {
|
||||||
|
enable: false,
|
||||||
|
tag: "网址"
|
||||||
|
},
|
||||||
|
pluNickName: {
|
||||||
|
enable: false,
|
||||||
|
tag: "别名"
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user