Ver código fonte

Fix some lint errors.

Lauri Ojansivu 8 anos atrás
pai
commit
3b6c1baff3
3 arquivos alterados com 68 adições e 67 exclusões
  1. 59 58
      client/components/lists/listHeader.js
  2. 4 4
      i18n/fi.i18n.json
  3. 5 5
      i18n/fr.i18n.json

+ 59 - 58
client/components/lists/listHeader.js

@@ -1,72 +1,73 @@
 BlazeComponent.extendComponent({
-    editTitle(evt) {
-        evt.preventDefault();
-        const newTitle = this.childComponents('inlinedForm')[0].getValue().trim();
-        const list = this.currentData();
-        if (newTitle) {
-            list.rename(newTitle.trim());
-        }
-    },
+  editTitle(evt) {
+      evt.preventDefault();
+      const newTitle = this.childComponents('inlinedForm')[0].getValue().trim();
+      const list = this.currentData();
+      if (newTitle) {
+          list.rename(newTitle.trim());
+      }
+  },
 
-    isWatching() {
-        const list = this.currentData();
-        return list.findWatcher(Meteor.userId());
-    },
+  isWatching() {
+      const list = this.currentData();
+      return list.findWatcher(Meteor.userId());
+  },
 
-    limitToShowCardsCount() {
-        return Meteor.user().getLimitToShowCardsCount();
-    },
+  limitToShowCardsCount() {
+      return Meteor.user().getLimitToShowCardsCount();
+  },
 
-    showCardsCountForList(count) {
-        return count > this.limitToShowCardsCount();
-    },
+  showCardsCountForList(count) {
+      return count > this.limitToShowCardsCount();
+  },
 
-    events() {
-        return [{
-            'click .js-open-list-menu': Popup.open('listAction'),
-            submit: this.editTitle,
-        }];
-    },
+  events() {
+      return [{
+          'click .js-open-list-menu': Popup.open('listAction'),
+          submit: this.editTitle,
+      }];
+  },
 }).register('listHeader');
 
 Template.listActionPopup.helpers({
-    isWatching() {
-        return this.findWatcher(Meteor.userId());
-    },
+  isWatching() {
+      return this.findWatcher(Meteor.userId());
+  },
 });
 
 Template.listActionPopup.events({
-    'click .js-add-card' () {
-        const listDom = document.getElementById(`js-list-${this._id}`);
-        const listComponent = BlazeComponent.getComponentForElement(listDom);
-        listComponent.openForm({ position: 'top' });
-        Popup.close();
-    },
-    'click .js-list-subscribe' () {},
-    'click .js-select-cards' () {
-        const cardIds = this.allCards().map((card) => card._id);
-        MultiSelection.add(cardIds);
-        Popup.close();
-    },
-    'click .js-toggle-watch-list' () {
-        const currentList = this;
-        const level = currentList.findWatcher(Meteor.userId()) ? null : 'watching';
-        Meteor.call('watch', 'list', currentList._id, level, (err, ret) => {
-            if (!err && ret) Popup.close();
-        });
-    },
-    'click .js-close-list' (evt) {
-        evt.preventDefault();
-        this.archive();
-        Popup.close();
-    },
-    'click .js-more': Popup.open('listMore'),
+  'click .js-add-card' () {
+      const listDom = document.getElementById(`js-list-${this._id}`);
+      const listComponent = BlazeComponent.getComponentForElement(listDom);
+      listComponent.openForm({ position: 'top' });
+      Popup.close();
+  },
+  'click .js-list-subscribe' () {},
+  'click .js-select-cards' () {
+      const cardIds = this.allCards().map((card) => card._id);
+      MultiSelection.add(cardIds);
+      Popup.close();
+  },
+  'click .js-toggle-watch-list' () {
+      const currentList = this;
+      const level = currentList.findWatcher(Meteor.userId()) ? null : 'watching';
+      Meteor.call('watch', 'list', currentList._id, level, (err, ret) => {
+          if (!err && ret) Popup.close();
+      });
+  },
+  'click .js-close-list' (evt) {
+      evt.preventDefault();
+      this.archive();
+      Popup.close();
+  },
+  'click .js-more': Popup.open('listMore'),
 });
 
 Template.listMorePopup.events({
-    'click .js-delete': Popup.afterConfirm('listDelete', function() {
-        Popup.close();
-        Lists.remove(this._id);
-        Utils.goBoardId(this.boardId);
-    }),
-});
+  'click .js-delete': Popup.afterConfirm('listDelete', function() {
+      Popup.close();
+      Lists.remove(this._id);
+      Utils.goBoardId(this.boardId);
+  }),
+});
+

+ 4 - 4
i18n/fi.i18n.json

@@ -231,9 +231,9 @@
     "listActionPopup-title": "Listaa toimet",
     "listImportCardPopup-title": "Tuo Trello kortti",
     "listMorePopup-title": "Lisää",
-    "link-list": "Link to this list",
-    "list-delete-pop": "All actions will be removed from the activity feed and you won't be able to recover the list. There is no undo.",
-    "list-delete-suggest-archive": "You can archive a list to remove it from the board and preserve the activity.",
+    "link-list": "Linkki tähän listaan",
+    "list-delete-pop": "Kaikki toimet poistetaan toimintasyötteestä ja listan poistaminen on lopullista. Tätä ei pysty peruuttamaan.",
+    "list-delete-suggest-archive": "Voit arkistoida listan jolloin sen voi palauttaa sisältöineen.",
     "lists": "Listat",
     "log-out": "Kirjaudu ulos",
     "log-in": "Kirjaudu sisään",
@@ -279,7 +279,7 @@
     "remove-cover": "Poista kansi",
     "remove-from-board": "Poista taululta",
     "remove-label": "Poista tunniste",
-    "listDeletePopup-title": "Delete List ?",
+    "listDeletePopup-title": "Poista lista ?",
     "remove-member": "Poista jäsen",
     "remove-member-from-card": "Poista kortilta",
     "remove-member-pop": "Poista __name__ (__username__) taululta __boardTitle__? Jäsen poistetaan kaikilta taulun korteilta. Heille lähetetään ilmoitus.",

+ 5 - 5
i18n/fr.i18n.json

@@ -231,9 +231,9 @@
     "listActionPopup-title": "Actions sur la liste",
     "listImportCardPopup-title": "Importer une carte Trello",
     "listMorePopup-title": "Plus",
-    "link-list": "Link to this list",
-    "list-delete-pop": "All actions will be removed from the activity feed and you won't be able to recover the list. There is no undo.",
-    "list-delete-suggest-archive": "You can archive a list to remove it from the board and preserve the activity.",
+    "link-list": "Lien vers cette liste",
+    "list-delete-pop": "Toutes les actions seront supprimées du fil d'activité et il ne sera plus possible de les récupérer. Cette action ne peut pas être annulée.",
+    "list-delete-suggest-archive": "Vous pouvez archiver une liste pour la supprimer d'un tableau et conserver son activité.",
     "lists": "Listes",
     "log-out": "Déconnexion",
     "log-in": "Connexion",
@@ -278,8 +278,8 @@
     "quick-access-description": "Ajouter un tableau à vos favoris pour créer un raccourci dans cette barre.",
     "remove-cover": "Enlever la page de présentation",
     "remove-from-board": "Retirer du tableau",
-    "remove-label": "Retirer une étiquette",
-    "listDeletePopup-title": "Delete List ?",
+    "remove-label": "Retirer l'étiquette",
+    "listDeletePopup-title": "Supprimer la liste ?",
     "remove-member": "Supprimer le membre",
     "remove-member-from-card": "Supprimer de la carte",
     "remove-member-pop": "Supprimer __name__ (__username__) de __boardTitle__ ? Ce membre sera supprimé de toutes les cartes du tableau et recevra une notification.",