From daf739314d09d310f1e533da27235ec5258d3600 Mon Sep 17 00:00:00 2001 From: lodewiges Date: Sat, 26 Oct 2024 23:46:20 +0200 Subject: [PATCH 1/7] removed sog and changed authenticaiton routes --- app/abilities/quickpost-message.js | 11 -- .../quick-post-notification-button.hbs | 17 -- .../quick-post-notification-button.js | 27 --- app/components/quick-post.hbs | 135 ------------- app/components/quick-post.js | 183 ------------------ app/models/quickpost-message.js | 9 - app/router.js | 2 - app/routes/books.js | 4 +- app/routes/debit/collections.js | 4 +- app/routes/debit/mandates.js | 4 +- app/routes/debit/transactions.js | 4 +- app/routes/forum.js | 4 +- app/routes/forum/categories/category/index.js | 5 +- .../category/threads/thread/index.js | 4 +- app/routes/groups.js | 4 +- app/routes/polls.js | 4 +- app/routes/quickpost.js | 9 - app/routes/sog/index.js | 4 +- app/styles/app.scss | 1 - app/styles/components/quickpost.scss | 93 --------- app/templates/quickpost.hbs | 1 - mirage/config.js | 1 - mirage/scenarios/default.js | 1 - tests/unit/routes/quickpost-test.js | 11 -- 24 files changed, 21 insertions(+), 521 deletions(-) delete mode 100644 app/abilities/quickpost-message.js delete mode 100644 app/components/quick-post-notification-button.hbs delete mode 100644 app/components/quick-post-notification-button.js delete mode 100644 app/components/quick-post.hbs delete mode 100644 app/components/quick-post.js delete mode 100644 app/models/quickpost-message.js delete mode 100644 app/routes/quickpost.js delete mode 100644 app/styles/components/quickpost.scss delete mode 100644 app/templates/quickpost.hbs delete mode 100644 tests/unit/routes/quickpost-test.js diff --git a/app/abilities/quickpost-message.js b/app/abilities/quickpost-message.js deleted file mode 100644 index 5d6cdb029..000000000 --- a/app/abilities/quickpost-message.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Ability } from 'ember-can'; - -export default class QuickpostMessage extends Ability { - get canShow() { - return this.session.hasPermission('quickpost-message.read'); - } - - get canDestroy() { - return this.session.hasPermission('quickpost-message.destroy'); - } -} diff --git a/app/components/quick-post-notification-button.hbs b/app/components/quick-post-notification-button.hbs deleted file mode 100644 index 508aa76ec..000000000 --- a/app/components/quick-post-notification-button.hbs +++ /dev/null @@ -1,17 +0,0 @@ -{{#if notification.isSupported}} - {{#if notification.isEnabled}} - {{#if notification.isSoundEnabled}} - - {{else}} - - {{/if}} - {{else}} - - {{/if}} -{{/if}} \ No newline at end of file diff --git a/app/components/quick-post-notification-button.js b/app/components/quick-post-notification-button.js deleted file mode 100644 index 6be36ae2b..000000000 --- a/app/components/quick-post-notification-button.js +++ /dev/null @@ -1,27 +0,0 @@ -import { inject as service } from '@ember/service'; -import Component from '@ember/component'; - -export default Component.extend({ - session: service(), - notification: service(), - actions: { - sendTest() { - this.notification.new( - 'Test', - 'Dit is een test bericht', - '/images/alphalogonotext.png' - ); - }, - activate() { - this.notification.getPermission(); - }, - disable() { - this.notification.turnOff(); - this.send('sendTest'); - }, - soundOn() { - this.notification.toggleSound(); - this.send('sendTest'); - }, - }, -}); diff --git a/app/components/quick-post.hbs b/app/components/quick-post.hbs deleted file mode 100644 index 40ffd9576..000000000 --- a/app/components/quick-post.hbs +++ /dev/null @@ -1,135 +0,0 @@ -
-
-
-
- -
-
-
- - {{this.session.currentUser.fullName}} - -