mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-28 11:52:46 +08:00
24 lines
712 B
JavaScript
24 lines
712 B
JavaScript
import {
|
|
boot
|
|
} from 'quasar/wrappers'
|
|
import UTOOLS from "../js/utools.js";
|
|
import programmings from '../js/options/programs.js';
|
|
import defaultProfile from "../js/options/defaultProfile.js"
|
|
import Cron from "croner"
|
|
|
|
// 配置数据存取
|
|
let userProfile = UTOOLS.getDB(
|
|
UTOOLS.DBPRE.CFG + "preferences"
|
|
);
|
|
Object.assign(defaultProfile, userProfile)
|
|
|
|
// "async" is optional;
|
|
// more info on params: https://v2.quasar.dev/quasar-cli/boot-files
|
|
export default boot(async({
|
|
app
|
|
}) => {
|
|
app.config.globalProperties.$utools = UTOOLS
|
|
app.config.globalProperties.$programmings = programmings
|
|
app.config.globalProperties.$profile = defaultProfile
|
|
app.config.globalProperties.$Cron = Cron
|
|
}) |