Skip to content

Commit

Permalink
Fix demo linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrekalo committed Oct 26, 2019
1 parent 846ab23 commit a2d69cf
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 37 deletions.
2 changes: 1 addition & 1 deletion demo/controllers/article/imageInContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
return [{
icon: 'move',
isSortHandle:true
isSortHandle: true
}, this.alignment === 'central' ? {
icon: 'arrowLeft',
action: () => this.updateComponent({alignment: 'left'})
Expand Down
1 change: 0 additions & 1 deletion demo/controllers/article/quoteInContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,4 @@ export default {
border: 0; color: $colorGrayDark2; background: #fff;
}
</style>
59 changes: 30 additions & 29 deletions demo/controllers/article/tableInContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,34 +44,36 @@
</tr>
</thead>
<tbody>
<tr v-for="(row, rowIndex) in rows" v-if="rowIndex !== 0">
<td v-for="(cell, cellIndex) in row" :key="cellIndex">
<textarea-form-element
:value="cell" :attributes="getInputAttributes('cell')"
@input="updateCell(rowIndex, cellIndex, $event)"
></textarea-form-element>
</td>
<td class="dropdownCell">
<div class="dropdown" :class="{
active: activeDropdown === 'row' + rowIndex
}">
<button
type="button" @click="toggleDropdown('row' + rowIndex)"
class="dropdownToggle nBtn icr iconMoreHorizontal"
tabindex="-1"
>More</button>
<ul
class="dropdownList"
v-if="activeDropdown === 'row' + rowIndex"
v-on-dismiss="closeDropdown"
>
<li @click="removeRow(rowIndex)">Remove row</li>
<li @click="addRow(rowIndex)">Insert row above</li>
<li @click="addRow(rowIndex + 1)">Insert row bellow</li>
</ul>
</div>
</td>
</tr>
<template v-for="(row, rowIndex) in rows">
<tr v-if="rowIndex !== 0" :key="rowIndex">
<td v-for="(cell, cellIndex) in row" :key="cellIndex">
<textarea-form-element
:value="cell" :attributes="getInputAttributes('cell')"
@input="updateCell(rowIndex, cellIndex, $event)"
></textarea-form-element>
</td>
<td class="dropdownCell">
<div class="dropdown" :class="{
active: activeDropdown === 'row' + rowIndex
}">
<button
type="button" @click="toggleDropdown('row' + rowIndex)"
class="dropdownToggle nBtn icr iconMoreHorizontal"
tabindex="-1"
>More</button>
<ul
class="dropdownList"
v-if="activeDropdown === 'row' + rowIndex"
v-on-dismiss="closeDropdown"
>
<li @click="removeRow(rowIndex)">Remove row</li>
<li @click="addRow(rowIndex)">Insert row above</li>
<li @click="addRow(rowIndex + 1)">Insert row bellow</li>
</ul>
</div>
</td>
</tr>
</template>
</tbody>
</table>
</div>
Expand All @@ -89,7 +91,6 @@
<script>
import TextareaFormElement from 'trim/formElements/textarea';
import baseComponent from 'trim/formElements/htmlComponents/baseComponent';
import ExternalAdmin from 'trim/formElements/externalAdmin';
import vueDismiss from 'vue-dismiss';
export default {
Expand Down
3 changes: 2 additions & 1 deletion demo/controllers/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export default {
return sibling.get('position') !== index + 1
? updatePosition(sibling, index + 1)
: null
;
})).then(() => {
const oldPosition = model.get('position');
const newPosition = oldPosition + offset;
Expand All @@ -179,7 +180,7 @@ export default {
return Promise.all([
updatePosition(model, newPosition),
updatePosition(otherModel, oldPosition)
])
]);
});
};

Expand Down
2 changes: 1 addition & 1 deletion demo/dummy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
data: () => ({
isDummy: true
})
}
};
</script>

<style lang="scss" scoped>
Expand Down
4 changes: 2 additions & 2 deletions demo/mainNavigation.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import auth from './auth';
// import auth from './auth';
import server from 'apiServer';
import DummyComponent from './dummy';

Expand Down Expand Up @@ -76,7 +76,7 @@ export default {

{
caption: 'My settings',
url: router.url('mySettings'),
url: router.url('mySettings')
},

{
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ module.exports = {
enforce: 'pre',
include: [
path.join(__dirname, 'src'),
path.join(__dirname, 'src/demo'),
path.join(__dirname, 'spec'),
path.join(__dirname, 'demo'),
path.join(__dirname, 'spec')
],
},
{
Expand Down

0 comments on commit a2d69cf

Please sign in to comment.