From fb54d5e5e0ff2716a218edeada22492988bfb80e Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Tue, 1 Oct 2019 16:00:26 +0300 Subject: [PATCH] Removed spaces with lint --- .eslintrc.js | 4 +- build-lib.js | 2 +- gulpfile.js | 3 +- src/AppTopBar.vue | 2 +- src/components/accordion/Accordion.vue | 40 +-- src/components/autocomplete/AutoComplete.vue | 30 +-- src/components/button/Button.vue | 2 +- src/components/calendar/Calendar.vue | 180 +++++++------- src/components/checkbox/Checkbox.vue | 4 +- src/components/chips/Chips.vue | 6 +- src/components/datatable/DataTable.vue | 70 +++--- src/components/dataview/DataView.vue | 4 +- .../deferredcontent/DeferredContent.vue | 6 +- src/components/dropdown/Dropdown.vue | 12 +- src/components/fieldset/Fieldset.vue | 2 +- src/components/fileupload/FileUpload.vue | 46 ++-- src/components/inplace/Inplace.vue | 2 +- src/components/inputmask/InputMask.vue | 6 +- src/components/inputswitch/InputSwitch.vue | 2 +- src/components/listbox/Listbox.vue | 30 +-- src/components/menu/Menu.vue | 2 +- src/components/message/Message.vue | 2 +- src/components/multiselect/MultiSelect.vue | 12 +- src/components/orderlist/OrderList.vue | 50 ++-- .../organizationchart/OrganizationChart.vue | 4 +- .../OrganizationChartNode.vue | 2 +- src/components/overlaypanel/OverlayPanel.vue | 4 +- .../paginator/RowsPerPageDropdown.vue | 2 +- src/components/panel/Panel.vue | 2 +- src/components/password/Password.vue | 6 +- src/components/picklist/PickList.vue | 46 ++-- src/components/progressbar/ProgressBar.vue | 18 +- src/components/selectbutton/SelectButton.vue | 2 +- src/components/slider/Slider.vue | 24 +- src/components/spinner/Spinner.vue | 4 +- src/components/tabview/TabView.vue | 80 +++--- src/components/toast/Toast.vue | 4 +- src/components/toast/ToastService.js | 2 +- src/components/togglebutton/ToggleButton.vue | 2 +- src/components/toolbar/Toolbar.vue | 2 +- src/components/tree/Tree.vue | 18 +- src/components/tree/TreeNode.vue | 14 +- src/components/treetable/TreeTable.vue | 52 ++-- src/components/treetable/TreeTableRow.vue | 20 +- .../treetable/TreeTableRowLoader.vue | 6 +- src/components/utils/DomHandler.js | 16 +- src/service/CountryService.js | 2 +- src/service/EventService.js | 2 +- src/service/NodeService.js | 4 +- src/views/accordion/AccordionDemo.vue | 50 ++-- src/views/calendar/CalendarDemo.vue | 4 +- src/views/calendar/CalendarDoc.vue | 4 +- src/views/chart/BarChartDemo.vue | 4 +- src/views/chart/ChartDemo.vue | 2 +- src/views/chart/DoughnutChartDemo.vue | 2 +- src/views/chart/LineChartDemo.vue | 2 +- src/views/chart/PieChartDemo.vue | 2 +- .../datatable/DataTableColResizeDemo.vue | 4 +- .../datatable/DataTableColToggleDemo.vue | 2 +- src/views/datatable/DataTableCrudDemo.vue | 10 +- src/views/datatable/DataTableDemo.vue | 2 +- src/views/datatable/DataTableDoc.vue | 34 +-- src/views/datatable/DataTableExportDemo.vue | 2 +- src/views/datatable/DataTableLazyDemo.vue | 6 +- .../datatable/DataTableResponsiveDemo.vue | 2 +- .../datatable/DataTableSelectionDemo.vue | 6 +- src/views/datatable/DataTableSubMenu.vue | 2 +- .../datatable/DataTableTemplatingDemo.vue | 4 +- src/views/dataview/DataViewDemo.vue | 2 +- src/views/dataview/DataViewDoc.vue | 2 +- src/views/dialog/DialogDemo.vue | 6 +- src/views/fieldset/FieldsetDemo.vue | 12 +- src/views/fileupload/FileUploadDemo.vue | 2 +- src/views/flexgrid/FlexGridDemo.vue | 10 +- src/views/flexgrid/FlexGridDoc.vue | 2 +- src/views/fullcalendar/FullCalendarDoc.vue | 4 +- src/views/icons/Icons.vue | 6 +- src/views/inputgroup/InputGroupDemo.vue | 4 +- src/views/inputmask/InputMaskDoc.vue | 2 +- src/views/menu/MenuDemo.vue | 16 +- src/views/menu/MenuDoc.vue | 22 +- src/views/menumodel/MenuModel.vue | 14 +- src/views/message/MessageDoc.vue | 4 +- src/views/orderlist/OrderListDoc.vue | 2 +- .../OrganizationChartDoc.vue | 2 +- src/views/paginator/PaginatorDemo.vue | 2 +- src/views/paginator/PaginatorDoc.vue | 12 +- src/views/panel/PanelDemo.vue | 12 +- src/views/picklist/PickListDoc.vue | 4 +- src/views/progressbar/ProgressBarDemo.vue | 2 +- src/views/rating/RatingDemo.vue | 6 +- src/views/setup/Setup.vue | 12 +- src/views/slider/SliderDemo.vue | 2 +- src/views/splitbutton/SplitButtonDemo.vue | 14 +- src/views/support/Support.vue | 14 +- src/views/tabview/TabViewDemo.vue | 56 ++--- src/views/tabview/TabViewDoc.vue | 2 +- src/views/theming/Theming.vue | 4 +- src/views/toast/ToastDemo.vue | 2 +- src/views/toast/ToastDoc.vue | 2 +- src/views/toolbar/ToolbarDemo.vue | 14 +- src/views/toolbar/ToolbarDoc.vue | 12 +- src/views/tree/TreeDemo.vue | 2 +- src/views/tree/TreeDoc.vue | 34 +-- src/views/tree/TreeFilterDemo.vue | 4 +- src/views/tree/TreeLazyDemo.vue | 24 +- src/views/tree/TreeSubMenu.vue | 2 +- .../treetable/TreeTableColResizeDemo.vue | 2 +- src/views/treetable/TreeTableDoc.vue | 232 +++++++++--------- src/views/treetable/TreeTableLazyDemo.vue | 26 +- .../treetable/TreeTablePaginatorDemo.vue | 8 +- src/views/treetable/TreeTableSubMenu.vue | 2 +- vue.config.js | 4 +- 113 files changed, 812 insertions(+), 813 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 43c95fb69..a5411a83c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -9,10 +9,10 @@ module.exports = { ], rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', - 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' + 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', + 'no-trailing-spaces': 'error' }, parserOptions: { parser: 'babel-eslint' } } - \ No newline at end of file diff --git a/build-lib.js b/build-lib.js index 387bd64c9..881219744 100644 --- a/build-lib.js +++ b/build-lib.js @@ -20,7 +20,7 @@ fs.readdirSync(path.resolve(__dirname, './src/components/')).forEach(folder => { execSync( `node ${vueCliServicePath} build src/components/${folder}/${file} --target lib --name ${filename} --dest components/${folder} --no-clean ` ) - + execSync( `node ${babelPath} src/components/${folder}/${file} --out-file components/${folder}/${file} --config-file=./.babelrc-lib` ) diff --git a/gulpfile.js b/gulpfile.js index 12999c27d..6967a88b5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -10,7 +10,7 @@ gulp.task('copy-components', function() { return gulp.src(['src/components/**/!(*.js)*']) .pipe(gulp.dest('./components')); }); - + gulp.task('build-css', function() { return gulp.src([ 'src/components/common/Common.css', @@ -44,4 +44,3 @@ gulp.task('build-exports', function() { //Building project with run sequence gulp.task('build-resources', ['build-css','images', 'build-themes']); - \ No newline at end of file diff --git a/src/AppTopBar.vue b/src/AppTopBar.vue index c27f6d339..df0e42680 100644 --- a/src/AppTopBar.vue +++ b/src/AppTopBar.vue @@ -55,7 +55,7 @@ export default { let themeElement = document.getElementById('theme-link'); themeElement.setAttribute('href', themeElement.getAttribute('href').replace(this.theme, theme)); this.theme = theme; - + if (dark) { if (!this.darkDemoStyle) { this.darkDemoStyle = document.createElement('style'); diff --git a/src/components/accordion/Accordion.vue b/src/components/accordion/Accordion.vue index 739d923d0..14d9b182a 100644 --- a/src/components/accordion/Accordion.vue +++ b/src/components/accordion/Accordion.vue @@ -52,7 +52,7 @@ export default { }, methods: { onTabClick(event, tab) { - if (!tab.disabled) { + if (!tab.disabled) { if (!this.multiple && !tab.d_active) { this.tabs.forEach(tab => tab.d_active = false); } @@ -73,7 +73,7 @@ export default { } }, isSelected(index) { - return this.props.multiple ? (this.d_activeTabIndex && this.d_activeTabIndex.indexOf(index) >= 0) : this.d_activeTabIndex === index; + return this.props.multiple ? (this.d_activeTabIndex && this.d_activeTabIndex.indexOf(index) >= 0) : this.d_activeTabIndex === index; } }, components: { @@ -83,41 +83,41 @@ export default { diff --git a/src/components/selectbutton/SelectButton.vue b/src/components/selectbutton/SelectButton.vue index 52c05bf02..03bd4569f 100644 --- a/src/components/selectbutton/SelectButton.vue +++ b/src/components/selectbutton/SelectButton.vue @@ -48,7 +48,7 @@ export default { let selected = this.isSelected(option); let optionValue = this.getOptionValue(option); let newValue; - + if(this.multiple) { if (selected) newValue = this.value.filter(val => !ObjectUtils.equals(val, optionValue, this.dataKey)); diff --git a/src/components/slider/Slider.vue b/src/components/slider/Slider.vue index 42c8f02cb..f84ee81d6 100644 --- a/src/components/slider/Slider.vue +++ b/src/components/slider/Slider.vue @@ -66,11 +66,11 @@ export default { else this.updateModel(event, newValue); } - else { + else { if (this.step) this.handleStepChange(event, newValue, this.value); else - this.updateModel(event, newValue); + this.updateModel(event, newValue); } }, onSlide(event) { @@ -80,12 +80,12 @@ export default { handleStepChange(event, newValue, oldValue) { let diff = (newValue - oldValue); let val = oldValue; - + if (diff < 0) val = oldValue + Math.ceil(newValue / this.step - oldValue / this.step) * this.step; else if (diff > 0) val = oldValue + Math.floor(newValue / this.step - oldValue / this.step) * this.step; - + this.updateModel(event, val); }, updateModel(event, value) { @@ -105,7 +105,7 @@ export default { else if (newValue < this.value[0]) newValue = this.value[0]; } - + modelValue = [...this.value]; modelValue[this.handleIndex] = Math.floor(value); } @@ -114,7 +114,7 @@ export default { newValue = this.min; else if (newValue > this.max) newValue = this.max; - + modelValue = Math.floor(newValue); } @@ -125,7 +125,7 @@ export default { if (this.disabled) { return; } - + if (!DomHandler.hasClass(event.target, 'p-slider-handle')) { this.updateDomData(); this.onSlide(event); @@ -135,7 +135,7 @@ export default { if (this.disabled) { return; } - + this.dragging = true; this.updateDomData(); this.handleIndex = index; @@ -237,7 +237,7 @@ export default { this.mouseupListener = (event) => { if (this.dragging) { this.dragging = false; - this.$emit('slideend', {originalEvent: event, values: this.value}); + this.$emit('slideend', {originalEvent: event, values: this.value}); } }; @@ -249,7 +249,7 @@ export default { document.removeEventListener('mousemove', this.dragListener); this.dragListener = null; } - + if (this.mouseupListener) { document.removeEventListener('mouseup', this.mouseupListener); this.mouseupListener = null; @@ -289,7 +289,7 @@ export default { return {'left': this.handlePosition + '%'}; else return {'bottom': this.handlePosition + '%'}; - + }, handlePosition() { if (this.value === 0) @@ -319,7 +319,7 @@ export default { else return {'bottom': this.rangeStartPosition + '%'}; }, - rangeEndHandleStyle() { + rangeEndHandleStyle() { if (this.horizontal) return {'left': this.rangeEndPosition + '%'}; else diff --git a/src/components/spinner/Spinner.vue b/src/components/spinner/Spinner.vue index ee5ef26a7..d8a1b0029 100644 --- a/src/components/spinner/Spinner.vue +++ b/src/components/spinner/Spinner.vue @@ -1,11 +1,11 @@ - Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, TheGodfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall, - deepening The Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills + Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, TheGodfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall, + deepening The Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy. @@ -98,9 +98,9 @@ Godfather III - - The Godfather Part III is set in 1979 and 1980. Michael has moved back to New York and taken great strides to remove the family from crime. He turns over his New York criminal - interests to longtime enforcer Joey Zasa. He uses his wealth in an attempt to rehabilitate his reputation through numerous philanthropic acts, administered by a foundation named after his father. + + The Godfather Part III is set in 1979 and 1980. Michael has moved back to New York and taken great strides to remove the family from crime. He turns over his New York criminal + interests to longtime enforcer Joey Zasa. He uses his wealth in an attempt to rehabilitate his reputation through numerous philanthropic acts, administered by a foundation named after his father. A decade earlier, he gave custody of his two children to Kay, who has since remarried. diff --git a/src/views/calendar/CalendarDemo.vue b/src/views/calendar/CalendarDemo.vue index ddc85db6c..522cb14d0 100644 --- a/src/views/calendar/CalendarDemo.vue +++ b/src/views/calendar/CalendarDemo.vue @@ -102,7 +102,7 @@ export default { this.maxDate = new Date(); this.maxDate.setMonth(nextMonth); this.maxDate.setFullYear(nextYear); - + let invalidDate = new Date(); invalidDate.setDate(today.getDate() - 1); this.invalidDates = [today,invalidDate]; @@ -155,7 +155,7 @@ export default { border-radius: 50%; width: 2em; height: 2em; - line-height: 2em; + line-height: 2em; padding: 0; display: inline-block; } diff --git a/src/views/calendar/CalendarDoc.vue b/src/views/calendar/CalendarDoc.vue index efaf27fc1..d7dfd6e8f 100644 --- a/src/views/calendar/CalendarDoc.vue +++ b/src/views/calendar/CalendarDoc.vue @@ -131,7 +131,7 @@ export default {

Custom Content

Calendar UI accepts custom content using header and footer templates.

- + <Calendar v-model="value"> <template #header>Header Content</template> @@ -623,7 +623,7 @@ export default { this.maxDate = new Date(); this.maxDate.setMonth(nextMonth); this.maxDate.setFullYear(nextYear); - + let invalidDate = new Date(); invalidDate.setDate(today.getDate() - 1); this.invalidDates = [today,invalidDate]; diff --git a/src/views/chart/BarChartDemo.vue b/src/views/chart/BarChartDemo.vue index 059bfcab1..f69bb51a0 100644 --- a/src/views/chart/BarChartDemo.vue +++ b/src/views/chart/BarChartDemo.vue @@ -44,7 +44,7 @@ export default { backgroundColor: '#9CCC65', data: [28, 48, 40, 19, 86, 27, 90] } - ] + ] }, multiAxisData: { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], @@ -84,7 +84,7 @@ export default { min: 0, max: 100 } - }, + }, { type: 'linear', display: true, diff --git a/src/views/chart/ChartDemo.vue b/src/views/chart/ChartDemo.vue index 021d03344..4780b5663 100644 --- a/src/views/chart/ChartDemo.vue +++ b/src/views/chart/ChartDemo.vue @@ -33,7 +33,7 @@ export default { "#FFCE56" ] } - ] + ] } } }, diff --git a/src/views/chart/DoughnutChartDemo.vue b/src/views/chart/DoughnutChartDemo.vue index 0d906507f..c931417b8 100644 --- a/src/views/chart/DoughnutChartDemo.vue +++ b/src/views/chart/DoughnutChartDemo.vue @@ -37,7 +37,7 @@ export default { "#FFCE56" ] } - ] + ] } } }, diff --git a/src/views/chart/LineChartDemo.vue b/src/views/chart/LineChartDemo.vue index b461033e6..fe57f2d57 100644 --- a/src/views/chart/LineChartDemo.vue +++ b/src/views/chart/LineChartDemo.vue @@ -109,7 +109,7 @@ export default { borderColor: '#FFA726', backgroundColor: '#FFCC80' } - ] + ] } } }, diff --git a/src/views/chart/PieChartDemo.vue b/src/views/chart/PieChartDemo.vue index df2aaf1b8..f19d0da9e 100644 --- a/src/views/chart/PieChartDemo.vue +++ b/src/views/chart/PieChartDemo.vue @@ -37,7 +37,7 @@ export default { "#FFCE56" ] } - ] + ] } } }, diff --git a/src/views/datatable/DataTableColResizeDemo.vue b/src/views/datatable/DataTableColResizeDemo.vue index 918975d92..ba33690e5 100644 --- a/src/views/datatable/DataTableColResizeDemo.vue +++ b/src/views/datatable/DataTableColResizeDemo.vue @@ -1,11 +1,11 @@