Pārlūkot izejas kodu

Do those imports!

David Arnold 4 gadi atpakaļ
vecāks
revīzija
2cddcd60a1

+ 2 - 0
client/components/cards/attachments.js

@@ -1,3 +1,5 @@
+import Attachments from '../../../models/attachments';
+
 Template.attachmentsGalery.events({
   'click .js-add-attachment': Popup.open('cardAttachments'),
   'click .js-confirm-delete': Popup.afterConfirm(

+ 2 - 0
client/components/main/editor.js

@@ -1,3 +1,5 @@
+import Attachments from '/models/attachments';
+
 const specialHandles = [
   {userId: 'board_members', username: 'board_members'},
   {userId: 'card_members', username: 'card_members'}

+ 1 - 0
client/components/users/userAvatar.js

@@ -3,6 +3,7 @@ import Avatars from '/models/avatars';
 import Users from '/models/users';
 import Org from '/models/org';
 import Team from '/models/team';
+import Avatars from '/models/avatars';
 
 Template.userAvatar.helpers({
   userData() {

+ 2 - 0
models/activities.js

@@ -1,3 +1,5 @@
+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

+ 1 - 0
models/boards.js

@@ -8,6 +8,7 @@ import {
   TYPE_TEMPLATE_CONTAINER,
 } from '/config/const';
 import Users from "./users";
+import Attachments from './attachments';
 
 Boards = new Mongo.Collection('boards');
 

+ 3 - 0
models/exporter.js

@@ -1,6 +1,9 @@
 import moment from 'moment';
 const Papa = require('papaparse');
 import { TAPi18n } from '/imports/i18n';
+import Attachments from './attachments';
+
+//const stringify = require('csv-stringify');
 
 // exporter maybe is broken since Gridfs introduced, add fs and path
 export class Exporter {

+ 2 - 0
server/publications/boards.js

@@ -1,3 +1,5 @@
+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