From e275c5a0442ef41395b10b9c2279c7d0a752bb8d Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Mon, 27 Mar 2023 18:57:31 +0200 Subject: [PATCH] Clean up toasts. --- gymboard-app/quasar.config.js | 6 +-- .../src/components/AccountMenuItem.vue | 4 ++ gymboard-app/src/i18n/en-US/index.ts | 6 +++ gymboard-app/src/i18n/nl-NL/index.ts | 6 +++ gymboard-app/src/pages/SubmissionPage.vue | 32 +++++++++---- .../src/pages/auth/UserSettingsPage.vue | 25 +++-------- .../src/pages/gym/GymSubmissionPage.vue | 4 +- gymboard-app/src/pages/user/UserPage.vue | 12 ++--- .../src/pages/user/UserSubmissionsPage.vue | 12 +---- gymboard-app/src/utils.ts | 45 ++++++++++++++----- 10 files changed, 90 insertions(+), 62 deletions(-) diff --git a/gymboard-app/quasar.config.js b/gymboard-app/quasar.config.js index a4d2740..f18590d 100644 --- a/gymboard-app/quasar.config.js +++ b/gymboard-app/quasar.config.js @@ -10,8 +10,6 @@ const { configure } = require('quasar/wrappers'); const path = require('path'); -const { withCtx } = require('vue'); - // Load environment variables from different files depending on if we're in development. let envPath = '.env.production'; if (process.env.NODE_ENV === 'development') { @@ -22,7 +20,7 @@ if (result.error) { throw result.error; } -module.exports = configure(function (ctx) { +module.exports = configure(function () { return { eslint: { // fix: true, @@ -123,7 +121,7 @@ module.exports = configure(function (ctx) { // directives: [], // Quasar plugins - plugins: ['Notify'], + plugins: ['Notify', 'Dialog'], }, // animations: 'all', // --- includes all animations diff --git a/gymboard-app/src/components/AccountMenuItem.vue b/gymboard-app/src/components/AccountMenuItem.vue index a55f932..a3e551b 100644 --- a/gymboard-app/src/components/AccountMenuItem.vue +++ b/gymboard-app/src/components/AccountMenuItem.vue @@ -1,3 +1,7 @@ +