-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: dev optimizations + improvements
- Loading branch information
Showing
31 changed files
with
1,388 additions
and
1,008 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
**/node_modules/** | ||
**/*.min.js | ||
assets/** | ||
client/libs/** | ||
coverage/** | ||
repo/** | ||
data/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<template lang='pug'> | ||
v-card(flat) | ||
v-card(color='grey lighten-5') | ||
.pa-3.pt-4 | ||
.headline.primary--text Editor | ||
.subheading.grey--text Configure the content editor | ||
v-tabs(color='grey lighten-4', fixed-tabs, slider-color='primary', show-arrows) | ||
v-tab(key='settings'): v-icon settings | ||
v-tab(key='code') Markdown | ||
|
||
v-tab-item(key='settings', :transition='false', :reverse-transition='false') | ||
v-card.pa-3 | ||
v-form | ||
v-radio-group(v-model='selectedEditor') | ||
v-radio(v-for='(editor, n) in editors', :key='n', :label='editor.text', :value='editor.value', color='primary') | ||
v-divider | ||
v-btn(color='primary') | ||
v-icon(left) chevron_right | ||
| Set Editor | ||
v-btn(icon) | ||
v-icon.grey--text refresh | ||
v-tab-item(key='code', :transition='false', :reverse-transition='false') | ||
v-card.pa-3 | ||
v-form | ||
v-subheader Editor Configuration | ||
.body-1 This editor has no configuration options you can modify. | ||
|
||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
editors: [ | ||
{ text: 'Markdown (default)', value: 'code' } | ||
], | ||
selectedEditor: 'code' | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang='scss'> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<template lang='pug'> | ||
v-card(flat) | ||
v-card(flat, color='grey lighten-5').pa-3.pt-4 | ||
.headline.blue--text.text--darken-2 Groups | ||
.subheading.grey--text Manage groups | ||
v-card | ||
v-card-title | ||
v-btn(color='primary', dark) | ||
v-icon(left) add | ||
| New Group | ||
v-btn(icon) | ||
v-icon.grey--text refresh | ||
v-spacer | ||
v-text-field(append-icon='search', label='Search', single-line, hide-details, v-model='search') | ||
v-data-table( | ||
v-model='selected' | ||
:items='items', | ||
:headers='headers', | ||
:search='search', | ||
:pagination.sync='pagination', | ||
:rows-per-page-items='[15]' | ||
select-all, | ||
hide-actions, | ||
disable-initial-sort | ||
) | ||
template(slot='headers', slot-scope='props') | ||
tr | ||
th(width='50') | ||
th.text-xs-right( | ||
width='80' | ||
:class='[`column sortable`, pagination.descending ? `desc` : `asc`, pagination.sortBy === `id` ? `active` : ``]' | ||
@click='changeSort(`id`)' | ||
) | ||
v-icon(small) arrow_upward | ||
| ID | ||
th.text-xs-left( | ||
v-for='header in props.headers' | ||
:key='header.text' | ||
:width='header.width' | ||
:class='[`column sortable`, pagination.descending ? `desc` : `asc`, header.value === pagination.sortBy ? `active` : ``]' | ||
@click='changeSort(header.value)' | ||
) | ||
| {{ header.text }} | ||
v-icon(small) arrow_upward | ||
template(slot='items', slot-scope='props') | ||
tr(:active='props.selected') | ||
td | ||
v-checkbox(hide-details, :input-value='props.selected', color='blue darken-2', @click='props.selected = !props.selected') | ||
td.text-xs-right {{ props.item.id }} | ||
td {{ props.item.name }} | ||
td {{ props.item.userCount }} | ||
td: v-btn(icon): v-icon.grey--text.text--darken-1 more_horiz | ||
template(slot='no-data') | ||
v-alert(icon='warning', :value='true') No users to display! | ||
.text-xs-center.py-2(v-if='items.length > 15') | ||
v-pagination(v-model='pagination.page', :length='pages') | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
selected: [], | ||
pagination: {}, | ||
items: [ | ||
{ id: 1, name: 'Administrators', userCount: 1 }, | ||
{ id: 2, name: 'Users', userCount: 23 } | ||
], | ||
headers: [ | ||
{ text: 'Name', value: 'name' }, | ||
{ text: 'Users', value: 'userCount', width: 200 }, | ||
{ text: '', value: 'actions', sortable: false, width: 50 } | ||
], | ||
search: '' | ||
} | ||
}, | ||
computed: { | ||
pages () { | ||
if (this.pagination.rowsPerPage == null || this.pagination.totalItems == null) { | ||
return 0 | ||
} | ||
return Math.ceil(this.pagination.totalItems / this.pagination.rowsPerPage) | ||
} | ||
}, | ||
methods: { | ||
changeSort (column) { | ||
if (this.pagination.sortBy === column) { | ||
this.pagination.descending = !this.pagination.descending | ||
} else { | ||
this.pagination.sortBy = column | ||
this.pagination.descending = false | ||
} | ||
}, | ||
toggleAll () { | ||
if (this.selected.length) { | ||
this.selected = [] | ||
} else { | ||
this.selected = this.items.slice() | ||
} | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang='scss'> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<template lang='pug'> | ||
v-container(fluid, fill-height) | ||
v-layout(row wrap) | ||
v-flex(xs12) | ||
.headline.primary--text Content Rendering | ||
.subheading.grey--text Configure how content is rendered | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return {} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang='scss'> | ||
</style> |
Oops, something went wrong.