From 37a2c33f9f51f199fcf8fed6b32e7ed65a440e79 Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 14 Mar 2024 08:51:26 +0100 Subject: [PATCH 01/11] refactor: #6993 set default QTable pagination --- quasar.config.js | 2 +- quasar.patch | 2013 +++++++++++++++++ quasar.patch:Zone.Identifier | 4 + src/boot/setDefaults.js | 22 + src/components/FilterItemForm.vue | 1 - src/components/FilterTravelForm.vue | 1 - src/pages/Claim/Card/ClaimSummary.vue | 2 - .../Customer/Defaulter/CustomerDefaulter.vue | 2 - .../Notifications/CustomerNotifications.vue | 2 - .../Customer/Payments/CustomerPayments.vue | 2 - src/pages/Entry/Card/EntryBuys.vue | 1 - src/pages/Entry/Card/EntryBuysImport.vue | 7 +- src/pages/Entry/Card/EntrySummary.vue | 1 - src/pages/Entry/EntryLatestBuys.vue | 1 - .../InvoiceIn/Card/InvoiceInCorrective.vue | 1 - src/pages/InvoiceIn/Card/InvoiceInDueDay.vue | 1 - .../InvoiceIn/Card/InvoiceInIntrastat.vue | 1 - src/pages/InvoiceIn/Card/InvoiceInSummary.vue | 5 +- src/pages/InvoiceIn/Card/InvoiceInVat.vue | 4 +- src/pages/InvoiceOut/InvoiceOutGlobal.vue | 2 - .../InvoiceOut/InvoiceOutNegativeBases.vue | 1 - src/pages/Order/Card/OrderSummary.vue | 1 - src/pages/Route/Card/RouteSummary.vue | 2 - src/pages/Route/Cmr/CmrList.vue | 2 - src/pages/Route/RouteList.vue | 2 - src/pages/Travel/Card/TravelSummary.vue | 3 +- src/pages/Travel/ExtraCommunity.vue | 2 - 27 files changed, 2045 insertions(+), 43 deletions(-) create mode 100644 quasar.patch create mode 100644 quasar.patch:Zone.Identifier create mode 100644 src/boot/setDefaults.js diff --git a/quasar.config.js b/quasar.config.js index 2d8289508..aa42e19eb 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -29,7 +29,7 @@ module.exports = configure(function (/* ctx */) { // app boot file (/src/boot) // --> boot files are part of "main.js" // https://v2.quasar.dev/quasar-cli/boot-files - boot: ['i18n', 'axios', 'vnDate', 'validations'], + boot: ['i18n', 'axios', 'vnDate', 'validations', 'setDefaults'], // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css css: ['app.scss'], diff --git a/quasar.patch b/quasar.patch new file mode 100644 index 000000000..c65fce6cf --- /dev/null +++ b/quasar.patch @@ -0,0 +1,2013 @@ +diff --git a/quasar.config.js b/quasar.config.js +index 755e96bd..789b9f64 100644 +--- a/quasar.config.js ++++ b/quasar.config.js +@@ -12,6 +12,7 @@ const { configure } = require('quasar/wrappers'); + const VueI18nPlugin = require('@intlify/unplugin-vue-i18n/vite'); + const path = require('path'); + ++ + module.exports = configure(function (/* ctx */) { + return { + eslint: { +@@ -29,7 +30,8 @@ module.exports = configure(function (/* ctx */) { + // app boot file (/src/boot) + // --> boot files are part of "main.js" + // https://v2.quasar.dev/quasar-cli/boot-files +- boot: ['i18n', 'axios', 'vnDate', 'validations'], ++ // ++ boot: ['i18n', 'axios', 'vnDate','quasar','quasar.defaults','setDefaults', 'validations'], + + // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css + css: ['app.scss'], +@@ -122,6 +124,33 @@ module.exports = configure(function (/* ctx */) { + // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#framework + framework: { + config: { ++ form:{ ++mixins:[{ ++ data(d) { ++ return { ++ title: 'Mixins are cool', ++ copyright: 'All rights reserved. Product of super awesome people' ++ }; ++ }, ++ created: function(data) { ++ console.log(this) ++ if(this.$el){ ++ ++ console.log(this.$el ++ ) ++ this.greetings(); ++ } ++ }, ++ methods: { ++ keyup:(event)=>{ ++ console.log(event) ++ }, ++ greetings: function() { ++ console.log('Howdy my good fellow!'); ++ } ++ } ++ }], ++ }, + config: { + brand: { + primary: 'orange', +diff --git a/src/App.vue b/src/App.vue +index d0d8c935..6a201045 100644 +--- a/src/App.vue ++++ b/src/App.vue +@@ -1,5 +1,5 @@ + + +