Skip to content

Commit

Permalink
- Linting: Trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Oct 6, 2020
1 parent 019cf27 commit e8ce787
Show file tree
Hide file tree
Showing 21 changed files with 35 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
dist
*.ps1
*.ps1
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/src
/public
/public
2 changes: 1 addition & 1 deletion helper/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -795,4 +795,4 @@
"small",
"textarea"
]
}
}
2 changes: 1 addition & 1 deletion src/components/compounds/Accordion/Accordion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default Accordion
<div v-else>
<div
:class="headerClasses"
class="accordion-header"
class="accordion-header"
@click="state.headerIsTrigger ? toggle() : null">
<slot name="header" />
<div
Expand Down
8 changes: 4 additions & 4 deletions src/components/compounds/Dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Component = {
default: true
},
ariaRole: String,
closeOnClick: {
closeOnClick: {
type: Boolean,
default: true
},
Expand Down Expand Up @@ -76,10 +76,10 @@ export default Component
<slot name="trigger" />
</div>
<transition name="fade">
<div
<div
v-show="(!disabled && (state.isActive || hoverable)) || inline"
class="dropdown-menu"
role="menu"
class="dropdown-menu"
role="menu"
:aria-hidden="!state.isActive">
<div class="dropdown-content" :role="ariaRole">
<slot />
Expand Down
2 changes: 1 addition & 1 deletion src/components/compounds/Menu/MenuList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ export default Component
<ul class="menu-list" :role="ariaRole">
<slot />
</ul>
</template>
</template>
2 changes: 1 addition & 1 deletion src/components/compounds/Navbar/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Component = {
fixedTop: Boolean,
fixedBottom: Boolean,
wrapperClass: String,
closeOnClick: { // TODO
closeOnClick: { // TODO
type: Boolean,
default: true
},
Expand Down
1 change: 0 additions & 1 deletion src/components/compounds/Navbar/NavbarItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ export default Component
<slot />
</component>
</template>

4 changes: 2 additions & 2 deletions src/components/compounds/Sidebar/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const Sidebar = {
const isAbsolute = computed(() => {
return props.position === 'absolute'
})
watchEffect(() => {
const open = props.right ? !props.open : props.open
state.transitionName = !open ? 'slide-right' : 'slide-left'
Expand Down Expand Up @@ -106,4 +106,4 @@ export default Sidebar
</div>
</transition>
</div>
</template>
</template>
16 changes: 8 additions & 8 deletions src/components/compounds/Table/DataGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,25 +109,25 @@ class DataGrid {
return this.columns.filter(column => column.show)
}

onDragStartRow(evt: Event, row: Row, idx: number) {
onDragStartRow(_evt: Event, row: Row, idx: number) {
this.draggingRow = row;
this.draggingRowIdx = idx;
}

onDropRow(evt: Event, row: Row, idx: number) {
onDropRow(_evt: Event, _row: Row, idx: number) {
const chunk = this.rows.splice(this.draggingRowIdx, 1)
this.rows.splice(idx, 0, chunk[0])
this.resetDraggingRow()
}

onDragOverRow(evt: Event, row: Row, idx: number) {
onDragOverRow(evt: Event, _row: Row, idx: number) {
if (this.draggingRowIdx === null) return;

this.rows[idx].selected = true
evt.preventDefault()
}

onDragLeaveRow(evt: Event, row: Row, idx: number) {
onDragLeaveRow(_evt: Event, _row: Row, idx: number) {
this.rows[idx].selected = false
}

Expand All @@ -139,27 +139,27 @@ class DataGrid {
this.draggingRowIdx = null;
}

onDragStartColumn(evt: Event, column: Column, idx: number) {
onDragStartColumn(_evt: Event, column: Column, idx: number) {
this.draggingColumn = column;
this.draggingColumnIdx = idx;
}

// callback called when user drops a column
onDropColumn(evt: Event, column: Column, idx: number) {
onDropColumn(_evt: Event, _column: Column, idx: number) {
const chunk = this.columns.splice(this.draggingColumnIdx, 1)
this.columns.splice(idx, 0, chunk[0])
this.resetDraggingColumn()
}

// the event must be prevented for the onDrop method to get called
onDragOverColumn(evt: Event, column: Column, idx: number) {
onDragOverColumn(evt: Event, _column: Column, idx: number) {
if (this.draggingColumnIdx === null) return;

this.columns[idx].selected = true
evt.preventDefault()
}

onDragLeaveColumn(evt: Event, column: Column, idx: number) {
onDragLeaveColumn(_evt: Event, _column: Column, idx: number) {
this.columns[idx].selected = false
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/primitives/Columns/Column.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
<div class="column" :class="computedClasses">
<slot />
</div>
</template>
</template>
2 changes: 1 addition & 1 deletion src/components/primitives/Columns/Columns.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
<div class="columns" :class="computedClasses">
<slot />
</div>
</template>
</template>
2 changes: 1 addition & 1 deletion src/components/primitives/Container/Container.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Component = {
props: {
type: String,
bg: Object,
}
}
export default Component
Expand Down
2 changes: 1 addition & 1 deletion src/components/primitives/Field/Field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { computed } from "vue"
return { rootClasses }
}
}
export default Field;
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/components/primitives/FileInput/FileInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default FileInput
</script>

<template>
<div
<div
class="file"
:class="[size, color, alignment, {
'has-name': hasName,
Expand All @@ -37,4 +37,4 @@ export default FileInput
</span>
</label>
</div>
</template>
</template>
4 changes: 2 additions & 2 deletions src/components/primitives/Progress/Progress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Progress = {
return fixed
}
watchEffect(() =>
watchEffect(() =>
nextTick(() => {
if (isIndeterminate.value) {
progress.value.removeAttribute('value')
Expand All @@ -45,7 +45,7 @@ const Progress = {
}
})
)
const isIndeterminate = computed(() => {
return props.value === undefined || props.value === null
});
Expand Down
4 changes: 2 additions & 2 deletions src/components/primitives/Select/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Select = {
'is-empty': props.selected === null
}]
})
watchEffect(() => {
watchEffect(() => {
emit('update:modelValue', value.value)
})
return { value, spanClasses }
Expand Down Expand Up @@ -68,4 +68,4 @@ export default Select
</select>
</span>
</div>
</template>
</template>
4 changes: 2 additions & 2 deletions src/components/primitives/Textarea/Textarea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
});
const inputClasses = computed(() => {
return [
props.size,
props.color,
props.size,
props.color,
{
'is-hovered': props.hovered,
'is-focused': props.focused,
Expand Down
2 changes: 1 addition & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
height: 30px;
fill: red;
background: url(./assets/vue.svg);
}
}
2 changes: 1 addition & 1 deletion src/mixins/CheckRadio.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ const checkRadioMixin = {
}
}

export default checkRadioMixin
export default checkRadioMixin
2 changes: 1 addition & 1 deletion src/views/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const Component = {
state,
setRounded() {
settings.button.rounded = true;
}
}
}
}
}
Expand Down

0 comments on commit e8ce787

Please sign in to comment.