From 1b42d114ada64c026a3b184fcfb713e254fa68a3 Mon Sep 17 00:00:00 2001 From: Tobias Johansson Date: Wed, 3 Apr 2019 17:51:28 +0200 Subject: [PATCH] Whitespace cleanup --- .../vuecomponents/comments/AttachmentEditor.js | 8 ++++---- .../js/es6/common/vuecomponents/table/Table.js | 16 ++++++++-------- .../table/rows/filter/NameFilter.js | 4 ++-- .../table/rows/filter/StatusFilter.js | 4 ++-- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/scripts/js/es6/common/vuecomponents/comments/AttachmentEditor.js b/src/scripts/js/es6/common/vuecomponents/comments/AttachmentEditor.js index 72e86954..ae82c42b 100644 --- a/src/scripts/js/es6/common/vuecomponents/comments/AttachmentEditor.js +++ b/src/scripts/js/es6/common/vuecomponents/comments/AttachmentEditor.js @@ -104,8 +104,8 @@ Vue.component('comment-attachment-editor', { methods: { /** * Replaces all spaces with underscore and removes all o - * @param {String} unsafe - * @returns {String} + * @param {String} unsafe + * @returns {String} */ makeSafeAttachmentString(unsafe) { let candidate = (unsafe); @@ -113,8 +113,8 @@ Vue.component('comment-attachment-editor', { candidate = candidate .replace(matchSpace, '_') .replace(NON_VALID_NAME_REGEXP, '') - + return candidate || `${this.oid}` } } -}); \ No newline at end of file +}); diff --git a/src/scripts/js/es6/common/vuecomponents/table/Table.js b/src/scripts/js/es6/common/vuecomponents/table/Table.js index 603b31ae..c74633d4 100644 --- a/src/scripts/js/es6/common/vuecomponents/table/Table.js +++ b/src/scripts/js/es6/common/vuecomponents/table/Table.js @@ -7,7 +7,7 @@ import {RowFilter} from './rows/filter/RowFilter' /** * Table State - * + * * Used to restore a table to a given state. */ class TableState { @@ -17,7 +17,7 @@ class TableState { /** * Apply state to row - * @param {RowBase} rowObject + * @param {RowBase} rowObject */ applyRowState(rowObject) { rowObject.isSelected = this.selectedIds.includes(rowObject.getId()); @@ -27,7 +27,7 @@ class TableState { class ComponentState { /** * Serializable state of this component. - * + * * @param {Object} rowFilter * @param {Object} columnFilter */ @@ -79,15 +79,15 @@ const TEMPLATE =` /** * The table renders RowObject instances for the rows, and ColumnBase instances for the Columns. - * Extend the table to fit your needs. - * + * Extend the table to fit your needs. + * * Usage: * Extend RowBase to wrap the data you want in your row * Extend ColumnBase once per column type you need * Extend RowObjectsSourceBase to fetch and initialize your rows * Extend ColumnFactoryBase to create the rows for your table * Extend This Table with your ColumnFactory and RowSource - * + * * @emits isInitialized When all rows has been fetched, and are initialized. * @emits selectItemsChanged(selectedItems) When selected rows has changed. * @emits componentStateChanged(newState) When table state changed. Filtered rows, visible columns... @@ -263,8 +263,8 @@ let PillarTable = Vue.component('pillar-table-base', { }, /** * Get visible rows between id1 and id2 - * @param {String} id1 - * @param {String} id2 + * @param {String} id1 + * @param {String} id2 * @returns {Array(RowObjects)} */ rowsBetween(id1, id2) { diff --git a/src/scripts/js/es6/common/vuecomponents/table/rows/filter/NameFilter.js b/src/scripts/js/es6/common/vuecomponents/table/rows/filter/NameFilter.js index 0a2ab37a..958c2940 100644 --- a/src/scripts/js/es6/common/vuecomponents/table/rows/filter/NameFilter.js +++ b/src/scripts/js/es6/common/vuecomponents/table/rows/filter/NameFilter.js @@ -11,8 +11,8 @@ const TEMPLATE =` /> `; /** - * Filter row objects based on there name. - * + * Filter row objects based on there name. + * * @emits visibleRowObjectsChanged(rowObjects) When the objects to be visible has changed. * @emits componentStateChanged(newState) When row filter state changed. */ diff --git a/src/scripts/js/es6/common/vuecomponents/table/rows/filter/StatusFilter.js b/src/scripts/js/es6/common/vuecomponents/table/rows/filter/StatusFilter.js index c7efb573..a11f3a79 100644 --- a/src/scripts/js/es6/common/vuecomponents/table/rows/filter/StatusFilter.js +++ b/src/scripts/js/es6/common/vuecomponents/table/rows/filter/StatusFilter.js @@ -12,8 +12,8 @@ const TEMPLATE =` /> `; /** - * Filter row objects based on there status. - * + * Filter row objects based on there status. + * * @emits visibleRowObjectsChanged(rowObjects) When the objects to be visible has changed. * @emits componentStateChanged(newState) When row filter state changed. */