diff --git a/.eslintrc.js b/.eslintrc.js index 607d564..9c1d86f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -490,4 +490,13 @@ module.exports = { // https://eslint.org/docs/rules/template-curly-spacing "vue/template-curly-spacing": "error", }, + overrides: [ + { + files: ["*.html"], + rules: { + "vue/comment-directive": "off", + "max-len": "off", + } + } + ] }; diff --git a/index.html b/index.html index ebe61c7..70bc2dc 100644 --- a/index.html +++ b/index.html @@ -1,17 +1,16 @@ - - - + + + Acosta Repuestos - - + + - @@ -29,4 +28,4 @@ window.process.nextTick = setTimeout; - + \ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico deleted file mode 100644 index 2edb19d..0000000 Binary files a/public/favicon.ico and /dev/null differ diff --git a/public/img/192x192.png b/public/img/192x192.png index e3ad28d..f3bccc6 100644 Binary files a/public/img/192x192.png and b/public/img/192x192.png differ diff --git a/public/img/512x512.png b/public/img/512x512.png index 5705a18..2393fdd 100644 Binary files a/public/img/512x512.png and b/public/img/512x512.png differ diff --git a/public/img/maskable_icon_x192.png b/public/img/maskable_icon_x192.png new file mode 100644 index 0000000..f734f55 Binary files /dev/null and b/public/img/maskable_icon_x192.png differ diff --git a/public/img/maskable_icon_x512.png b/public/img/maskable_icon_x512.png new file mode 100644 index 0000000..ba9748e Binary files /dev/null and b/public/img/maskable_icon_x512.png differ diff --git a/public/robots.txt b/public/robots.txt deleted file mode 100644 index 14267e9..0000000 --- a/public/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Allow: / \ No newline at end of file diff --git a/src/assets/img/icons/16x16.png b/src/assets/img/icons/16x16.png deleted file mode 100644 index 16ab9c8..0000000 Binary files a/src/assets/img/icons/16x16.png and /dev/null differ diff --git a/src/assets/img/icons/192x192.png b/src/assets/img/icons/192x192.png deleted file mode 100644 index 48dd02a..0000000 Binary files a/src/assets/img/icons/192x192.png and /dev/null differ diff --git a/src/assets/img/icons/32x32.png b/src/assets/img/icons/32x32.png deleted file mode 100644 index d7384c3..0000000 Binary files a/src/assets/img/icons/32x32.png and /dev/null differ diff --git a/src/assets/img/icons/512x512.png b/src/assets/img/icons/512x512.png deleted file mode 100755 index 1bbecd5..0000000 Binary files a/src/assets/img/icons/512x512.png and /dev/null differ diff --git a/src/assets/img/icons/icon.png b/src/assets/img/icons/icon.png index cac5093..1f3777f 100644 Binary files a/src/assets/img/icons/icon.png and b/src/assets/img/icons/icon.png differ diff --git a/src/assets/img/icons/motor-sport.svg b/src/assets/img/icons/motor-sport.svg deleted file mode 100644 index 082a9bc..0000000 --- a/src/assets/img/icons/motor-sport.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/components/Left-SideBar.vue b/src/components/Left-SideBar.vue index f330cbb..9069d9d 100644 --- a/src/components/Left-SideBar.vue +++ b/src/components/Left-SideBar.vue @@ -96,7 +96,7 @@ @click="logout()" > - Salir {{ userName }} + Salir
{{ userName }}
diff --git a/src/store/modules/categorias.js b/src/store/modules/categorias.js index c8fdccc..1864fc4 100644 --- a/src/store/modules/categorias.js +++ b/src/store/modules/categorias.js @@ -155,28 +155,9 @@ export default (app) => ({ live: true, retry: true, }) - .on("change", (change) => { - console.log("yo, something changed!", change); + .on("change", () => { dispatch("getAllCategorias"); }) - .on("paused", (info) => { - console.log( - "replication was paused, usually because of a lost connection", - info, - ); - }) - .on("active", (info) => { - console.log("replication was resumed", info); - }) - .on("denied", (err) => { - console.log( - "a document failed to replicate (e.g. due to permissions)", - err, - ); - }) - .on("complete", (info) => { - console.log("Completado", info); - }) .on("error", (err) => { console.log("totally unhandled error (shouldn't happen)", err); }); diff --git a/src/store/modules/estadisticas.js b/src/store/modules/estadisticas.js index cdbb43c..8850967 100644 --- a/src/store/modules/estadisticas.js +++ b/src/store/modules/estadisticas.js @@ -18,7 +18,9 @@ export default (app) => ({ method: "GET", credentials: "include", }; - if (searchParameters.userSelected === "Todos" && localStorage.getItem("role") !== "manager") return dispatch("getStatisticsByOrgDiv", { searchParameters, settings }); + const role = localStorage.getItem("role"); + if (searchParameters.userSelected === "Todos" && role === "manager") return dispatch("getStatisticsByOrgDiv", { searchParameters, settings }); + if (searchParameters.typeOfFilter === "Por cede") return dispatch("getStatisticsByOrgDiv", { searchParameters, settings }); return dispatch("getStatisticsByUser", { searchParameters, settings }); }, getStatisticsByUser(store, {searchParameters, settings}) { diff --git a/vite.config.js b/vite.config.js index d996e90..1c9fba1 100644 --- a/vite.config.js +++ b/vite.config.js @@ -30,7 +30,7 @@ export default defineConfig({ globPatterns: ["**/*.{js,css,html,ico,png,svg}"], }, manifest: { - id: "1.0.0", + id: "2.0.0", version: "1.0.0", manifest_version: 1, name: "Acosta Repuestos", @@ -39,7 +39,7 @@ export default defineConfig({ description: "Manage inventory and catalogs", theme_color: "#e94c63", start_url: "/", - display: "fullscreen", + display: "standalone", background_color: "#e94c63", icons: [ { @@ -49,7 +49,7 @@ export default defineConfig({ purpose: "any", }, { - src: "img/192x192.png", + src: "img/maskable_icon_x192.png", sizes: "192x192", type: "image/png", purpose: "maskable", @@ -61,7 +61,7 @@ export default defineConfig({ purpose: "any", }, { - src: "img/512x512.png", + src: "img/maskable_icon_x512.png", sizes: "512x512", type: "image/png", purpose: "maskable",