mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-29 05:54:17 +01:00
-Updates
+Increase cache size +json packages +F7 update version changes
This commit is contained in:
parent
f030c3bf2c
commit
002ad94095
@ -201,6 +201,7 @@ module.exports = {
|
|||||||
...(!isCordova ? [
|
...(!isCordova ? [
|
||||||
new WorkboxPlugin.InjectManifest({
|
new WorkboxPlugin.InjectManifest({
|
||||||
swSrc: resolvePath('src/service-worker.js'),
|
swSrc: resolvePath('src/service-worker.js'),
|
||||||
|
maximumFileSizeToCacheInBytes: 6 * 1024 * 1024, // or however much you need. This is 6MB.
|
||||||
})
|
})
|
||||||
] : []),
|
] : []),
|
||||||
],
|
],
|
||||||
|
6248
package-lock.json
generated
6248
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
48
package.json
48
package.json
@ -28,48 +28,48 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"alasql": "^1.7.3",
|
"alasql": "^1.7.3",
|
||||||
"axios": "^0.26.1",
|
"axios": "^0.27.2",
|
||||||
"crypto-js": "^4.1.1",
|
"crypto-js": "^4.1.1",
|
||||||
"dom7": "^4.0.4",
|
"dom7": "^4.0.4",
|
||||||
"framework7": "^6.3.16",
|
"framework7": "^7.0.7",
|
||||||
"framework7-icons": "^5.0.5",
|
"framework7-icons": "^5.0.5",
|
||||||
"html2pdf.js": "^0.10.1",
|
"html2pdf.js": "^0.10.1",
|
||||||
"localforage": "^1.10.0",
|
"localforage": "^1.10.0",
|
||||||
"skeleton-elements": "^4.0.0",
|
"skeleton-elements": "^4.0.0",
|
||||||
"swiper": "^8.1.0"
|
"swiper": "^8.3.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.17.9",
|
"@babel/core": "^7.19.0",
|
||||||
"@babel/plugin-transform-runtime": "^7.17.0",
|
"@babel/plugin-transform-runtime": "^7.18.10",
|
||||||
"@babel/preset-env": "^7.16.11",
|
"@babel/preset-env": "^7.19.0",
|
||||||
"@babel/preset-react": "^7.16.7",
|
"@babel/preset-react": "^7.18.6",
|
||||||
"@babel/runtime": "^7.17.9",
|
"@babel/runtime": "^7.19.0",
|
||||||
"babel-loader": "^8.2.4",
|
"babel-loader": "^8.2.5",
|
||||||
"chalk": "^5.0.1",
|
"chalk": "^5.0.1",
|
||||||
"concurrently": "^7.1.0",
|
"concurrently": "^7.4.0",
|
||||||
"copy-webpack-plugin": "^10.2.4",
|
"copy-webpack-plugin": "^11.0.0",
|
||||||
"cpy-cli": "^4.1.0",
|
"cpy-cli": "^4.2.0",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"css-loader": "^6.7.1",
|
"css-loader": "^6.7.1",
|
||||||
"css-minimizer-webpack-plugin": "^3.4.1",
|
"css-minimizer-webpack-plugin": "^4.1.0",
|
||||||
"file-loader": "^6.2.0",
|
"file-loader": "^6.2.0",
|
||||||
"framework7-loader": "^3.0.2",
|
"framework7-loader": "^3.0.2",
|
||||||
"html-webpack-plugin": "^5.5.0",
|
"html-webpack-plugin": "^5.5.0",
|
||||||
"html2canvas": "^1.4.1",
|
"html2canvas": "^1.4.1",
|
||||||
"jspdf": "^2.5.1",
|
"jspdf": "^2.5.1",
|
||||||
"less": "^4.1.2",
|
"less": "^4.1.3",
|
||||||
"less-loader": "^10.2.0",
|
"less-loader": "^11.0.0",
|
||||||
"mini-css-extract-plugin": "^2.6.0",
|
"mini-css-extract-plugin": "^2.6.1",
|
||||||
"ora": "^6.1.0",
|
"ora": "^6.1.2",
|
||||||
"postcss-loader": "^6.2.1",
|
"postcss-loader": "^7.0.1",
|
||||||
"postcss-preset-env": "^7.4.3",
|
"postcss-preset-env": "^7.8.1",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"style-loader": "^3.3.1",
|
"style-loader": "^3.3.1",
|
||||||
"terser-webpack-plugin": "^5.3.1",
|
"terser-webpack-plugin": "^5.3.6",
|
||||||
"url-loader": "^4.1.1",
|
"url-loader": "^4.1.1",
|
||||||
"webpack": "^5.72.0",
|
"webpack": "^5.74.0",
|
||||||
"webpack-cli": "^4.9.2",
|
"webpack-cli": "^4.10.0",
|
||||||
"webpack-dev-server": "^4.8.1",
|
"webpack-dev-server": "^4.11.0",
|
||||||
"workbox-webpack-plugin": "^6.5.2"
|
"workbox-webpack-plugin": "^6.5.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div id="app" class="theme-dark">
|
<div id="app" class="dark">
|
||||||
|
|
||||||
<!-- Your main view, should have "view-main" class -->
|
<!-- Your main view, should have "view-main" class -->
|
||||||
<div class="view view-main view-init safe-areas" data-url="/"></div>
|
<div class="view view-main view-init safe-areas" data-url="/"></div>
|
||||||
|
@ -3,7 +3,7 @@ import { localForage } from "./../api/config.js";
|
|||||||
|
|
||||||
const theme = createStore({
|
const theme = createStore({
|
||||||
state: {
|
state: {
|
||||||
name: 'theme-dark',
|
name: 'dark',
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
//Mutations
|
//Mutations
|
||||||
@ -13,8 +13,8 @@ const theme = createStore({
|
|||||||
//End mutations
|
//End mutations
|
||||||
async checkTheme({ dispatch }, selector){
|
async checkTheme({ dispatch }, selector){
|
||||||
let theme = await localForage.getItem('theme');
|
let theme = await localForage.getItem('theme');
|
||||||
if (theme == null) theme = 'theme-dark';
|
if (theme == null) theme = 'dark';
|
||||||
if (theme != 'theme-dark'){ document.querySelector(selector).classList.remove('theme-dark'); }
|
if (theme != 'dark'){ document.querySelector(selector).classList.remove('dark'); }
|
||||||
dispatch('changeTheme', theme);
|
dispatch('changeTheme', theme);
|
||||||
},
|
},
|
||||||
async initTheme({ dispatch }, selector){
|
async initTheme({ dispatch }, selector){
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- Left panel with cover effect-->
|
<!-- Left panel with cover effect-->
|
||||||
<div class="panel panel-left panel-reveal theme-dark" @panel:open=${onPanelOpen}>
|
<div class="panel panel-left panel-reveal dark" @panel:open=${onPanelOpen}>
|
||||||
<div class="view">
|
<div class="view">
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<div class="navbar">
|
<div class="navbar">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- Right panel with reveal effect-->
|
<!-- Right panel with reveal effect-->
|
||||||
<div class="panel panel-right panel-reveal theme-dark" @panel:open=${onPanelOpen}>
|
<div class="panel panel-right panel-reveal dark" @panel:open=${onPanelOpen}>
|
||||||
<div class="view">
|
<div class="view">
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<div class="navbar">
|
<div class="navbar">
|
||||||
@ -73,7 +73,7 @@ export default (props, { $f7, $, $on, $onMounted, $update, $f7router }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$onMounted(async () => {
|
$onMounted(async () => {
|
||||||
$('#light-theme').prop('checked', (theme != 'theme-dark') ? true : false );
|
$('#light-theme').prop('checked', (theme != 'dark') ? true : false );
|
||||||
await themes.dispatch('checkTheme', '.panel-right');
|
await themes.dispatch('checkTheme', '.panel-right');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -86,12 +86,12 @@ export default (props, { $f7, $, $on, $onMounted, $update, $f7router }) => {
|
|||||||
|
|
||||||
const setTheme = async () => {
|
const setTheme = async () => {
|
||||||
if ($("#light-theme").prop('checked')){
|
if ($("#light-theme").prop('checked')){
|
||||||
$("#app, .panel-right").removeClass("theme-dark");
|
$("#app, .panel-right").removeClass("dark");
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$("#app, .panel-right").addClass("theme-dark");
|
$("#app, .panel-right").addClass("dark");
|
||||||
}
|
}
|
||||||
let name = !$("#light-theme").prop('checked') ? 'theme-dark' : '';
|
let name = !$("#light-theme").prop('checked') ? 'dark' : '';
|
||||||
await themes.dispatch('setTheme', name);
|
await themes.dispatch('setTheme', name);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user