From c9310dbda0174e4d04d284a809573615aa7fe931 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Wed, 16 Sep 2020 18:40:17 -0500 Subject: [PATCH] Revert "Do those imports!" This reverts commit 64dcc70bd271d827c1639f8c847543a6d2ede713. --- client/components/cards/attachments.js | 2 -- client/components/main/editor.js | 2 -- client/components/users/userAvatar.js | 1 - models/activities.js | 2 -- models/boards.js | 2 -- models/cards.js | 2 -- models/exporter.js | 2 -- server/publications/boards.js | 2 -- 8 files changed, 15 deletions(-) diff --git a/client/components/cards/attachments.js b/client/components/cards/attachments.js index 35dd4a9b8..b17d032dd 100644 --- a/client/components/cards/attachments.js +++ b/client/components/cards/attachments.js @@ -1,5 +1,3 @@ -import Attachments from '../../../models/attachments'; - Template.attachmentsGalery.events({ 'click .js-add-attachment': Popup.open('cardAttachments'), 'click .js-confirm-delete': Popup.afterConfirm( diff --git a/client/components/main/editor.js b/client/components/main/editor.js index e71829c05..61daa2bfc 100755 --- a/client/components/main/editor.js +++ b/client/components/main/editor.js @@ -1,5 +1,3 @@ -import Attachments from '../../../models/attachments'; - Template.editor.onRendered(() => { const textareaSelector = 'textarea'; const mentions = [ diff --git a/client/components/users/userAvatar.js b/client/components/users/userAvatar.js index 73a6cad27..87b918107 100644 --- a/client/components/users/userAvatar.js +++ b/client/components/users/userAvatar.js @@ -1,4 +1,3 @@ -import Avatars from '../../../models/avatars'; Template.userAvatar.helpers({ userData() { // We need to handle a special case for the search results provided by the diff --git a/models/activities.js b/models/activities.js index 2a7f1574b..2663dd299 100644 --- a/models/activities.js +++ b/models/activities.js @@ -1,5 +1,3 @@ -import Attachments from './attachments'; - // Activities don't need a schema because they are always set from the a trusted // environment - the server - and there is no risk that a user change the logic // we use with this collection. Moreover using a schema for this collection diff --git a/models/boards.js b/models/boards.js index 7f514182e..306bae134 100644 --- a/models/boards.js +++ b/models/boards.js @@ -1,5 +1,3 @@ -import Attachments from './attachments'; - Boards = new Mongo.Collection('boards'); /** diff --git a/models/cards.js b/models/cards.js index 82a4b7327..96fa85ca4 100644 --- a/models/cards.js +++ b/models/cards.js @@ -1,5 +1,3 @@ -import Attachments from './attachments'; - Cards = new Mongo.Collection('cards'); // XXX To improve pub/sub performances a card document should include a diff --git a/models/exporter.js b/models/exporter.js index 7acfbecc2..637e9dc65 100644 --- a/models/exporter.js +++ b/models/exporter.js @@ -1,5 +1,3 @@ -import Attachments from './attachments'; - //const stringify = require('csv-stringify'); // exporter maybe is broken since Gridfs introduced, add fs and path diff --git a/server/publications/boards.js b/server/publications/boards.js index a21703103..ae82d28ca 100644 --- a/server/publications/boards.js +++ b/server/publications/boards.js @@ -1,5 +1,3 @@ -import Attachments from '../../models/attachments'; - // This is the publication used to display the board list. We publish all the // non-archived boards: // 1. that the user is a member of