mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
icons ...
This commit is contained in:
parent
0e2f4d10f7
commit
bac0aa5b16
5 changed files with 24 additions and 10 deletions
|
@ -21,7 +21,7 @@
|
||||||
v-card-text
|
v-card-text
|
||||||
v-data-table(
|
v-data-table(
|
||||||
v-if='announcements.length'
|
v-if='announcements.length'
|
||||||
:hide-default-footer='announcements.length<10'
|
:footer-props='{ prevIcon: mdiChevronLeft, nextIcon: mdiChevronRight }'
|
||||||
:headers='headers'
|
:headers='headers'
|
||||||
:items='announcements')
|
:items='announcements')
|
||||||
template(v-slot:item.actions='{ item }')
|
template(v-slot:item.actions='{ item }')
|
||||||
|
@ -36,13 +36,13 @@ import { mapActions } from 'vuex'
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep'
|
||||||
import Editor from '../Editor'
|
import Editor from '../Editor'
|
||||||
import Announcement from '../Announcement'
|
import Announcement from '../Announcement'
|
||||||
import { mdiPlus } from '@mdi/js'
|
import { mdiPlus, mdiChevronRight, mdiChevronLeft } from '@mdi/js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { Editor, Announcement },
|
components: { Editor, Announcement },
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
mdiPlus,
|
mdiPlus, mdiChevronRight, mdiChevronLeft,
|
||||||
valid: false,
|
valid: false,
|
||||||
dialog: false,
|
dialog: false,
|
||||||
editing: false,
|
editing: false,
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
v-card-text
|
v-card-text
|
||||||
v-data-table(
|
v-data-table(
|
||||||
:hide-default-footer='unconfirmedEvents.length<10'
|
:hide-default-footer='unconfirmedEvents.length<10'
|
||||||
|
:footer-props='{ prevIcon: mdiChevronLeft, nextIcon: mdiChevronRight }'
|
||||||
:items='unconfirmedEvents'
|
:items='unconfirmedEvents'
|
||||||
:headers='headers')
|
:headers='headers')
|
||||||
template(v-slot:item.actions='{ item }')
|
template(v-slot:item.actions='{ item }')
|
||||||
|
@ -16,6 +17,7 @@
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import { mdiChevronLeft, mdiChevronRight } from '@mdi/js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -23,6 +25,7 @@ export default {
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
mdiChevronLeft, mdiChevronRight,
|
||||||
valid: false,
|
valid: false,
|
||||||
dialog: false,
|
dialog: false,
|
||||||
editing: false,
|
editing: false,
|
||||||
|
|
|
@ -60,6 +60,7 @@
|
||||||
v-data-table(
|
v-data-table(
|
||||||
v-if='settings.trusted_instances.length'
|
v-if='settings.trusted_instances.length'
|
||||||
:hide-default-footer='settings.trusted_instances.length<10'
|
:hide-default-footer='settings.trusted_instances.length<10'
|
||||||
|
:footer-props='{ prevIcon: mdiChevronLeft, nextIcon: mdiChevronRight }'
|
||||||
:headers='headers'
|
:headers='headers'
|
||||||
:items='settings.trusted_instances')
|
:items='settings.trusted_instances')
|
||||||
template(v-slot:item.actions="{item}")
|
template(v-slot:item.actions="{item}")
|
||||||
|
@ -70,13 +71,13 @@
|
||||||
<script>
|
<script>
|
||||||
import { mapActions, mapState } from 'vuex'
|
import { mapActions, mapState } from 'vuex'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import { mdiDeleteForever, mdiPlus } from '@mdi/js'
|
import { mdiDeleteForever, mdiPlus, mdiChevronLeft, mdiChevronRight } from '@mdi/js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Federation',
|
name: 'Federation',
|
||||||
data ({ $store, $options }) {
|
data ({ $store, $options }) {
|
||||||
return {
|
return {
|
||||||
mdiDeleteForever, mdiPlus,
|
mdiDeleteForever, mdiPlus, mdiChevronLeft, mdiChevronRight,
|
||||||
instance_url: '',
|
instance_url: '',
|
||||||
instance_name: $store.state.settings.instance_name,
|
instance_name: $store.state.settings.instance_name,
|
||||||
instance_place: $store.state.settings.instance_place,
|
instance_place: $store.state.settings.instance_place,
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
<template lang='pug'>
|
<template lang='pug'>
|
||||||
v-container
|
v-container
|
||||||
v-card-title {{$t('common.places')}}
|
v-card-title {{$t('common.places')}}
|
||||||
|
v-spacer
|
||||||
|
v-text-field(v-model='search'
|
||||||
|
:append-icon='mdiMagnify' outlined rounded
|
||||||
|
label='Search'
|
||||||
|
single-line hide-details)
|
||||||
v-card-subtitle(v-html="$t('admin.place_description')")
|
v-card-subtitle(v-html="$t('admin.place_description')")
|
||||||
|
|
||||||
v-dialog(v-model='dialog' width='600' :fullscreen='$vuetify.breakpoint.xsOnly')
|
v-dialog(v-model='dialog' width='600' :fullscreen='$vuetify.breakpoint.xsOnly')
|
||||||
|
@ -29,22 +34,26 @@
|
||||||
v-card-text
|
v-card-text
|
||||||
v-data-table(
|
v-data-table(
|
||||||
:headers='headers'
|
:headers='headers'
|
||||||
:items='places')
|
:items='places'
|
||||||
|
:hide-default-footer='places.length<5'
|
||||||
|
:footer-props='{ prevIcon: mdiChevronLeft, nextIcon: mdiChevronRight }'
|
||||||
|
:search='search')
|
||||||
template(v-slot:item.actions='{item}')
|
template(v-slot:item.actions='{item}')
|
||||||
v-btn(@click='editPlace(item)' color='primary' icon)
|
v-btn(@click='editPlace(item)' color='primary' icon)
|
||||||
v-icon(v-text='mdiPencil')
|
v-icon(v-text='mdiPencil')
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { mapState, mapActions } from 'vuex'
|
import { mapState, mapActions } from 'vuex'
|
||||||
import { mdiPencil } from '@mdi/js'
|
import { mdiPencil, mdiChevronLeft, mdiChevronRight } from '@mdi/js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
mdiPencil,
|
mdiPencil, mdiChevronRight, mdiChevronLeft,
|
||||||
loading: false,
|
loading: false,
|
||||||
dialog: false,
|
dialog: false,
|
||||||
valid: false,
|
valid: false,
|
||||||
|
search: '',
|
||||||
place: { name: '', address: '', id: null },
|
place: { name: '', address: '', id: null },
|
||||||
headers: [
|
headers: [
|
||||||
{ value: 'name', text: 'Name' },
|
{ value: 'name', text: 'Name' },
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
:headers='headers'
|
:headers='headers'
|
||||||
:items='users'
|
:items='users'
|
||||||
:hide-default-footer='users.length<5'
|
:hide-default-footer='users.length<5'
|
||||||
|
:footer-props='{ prevIcon: mdiChevronLeft, nextIcon: mdiChevronRight }'
|
||||||
:search='search')
|
:search='search')
|
||||||
template(v-slot:item.is_active='{item}')
|
template(v-slot:item.is_active='{item}')
|
||||||
v-icon(v-if='item.is_active' color='success' v-text='mdiCheck')
|
v-icon(v-if='item.is_active' color='success' v-text='mdiCheck')
|
||||||
|
@ -49,7 +50,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
import get from 'lodash/get'
|
import get from 'lodash/get'
|
||||||
import { mdiClose, mdiMagnify, mdiCheck, mdiPlus, mdiInformation } from '@mdi/js'
|
import { mdiClose, mdiMagnify, mdiCheck, mdiPlus, mdiInformation, mdiChevronLeft, mdiChevronRight } from '@mdi/js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Users',
|
name: 'Users',
|
||||||
|
@ -58,7 +59,7 @@ export default {
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
mdiClose, mdiMagnify, mdiCheck, mdiPlus, mdiInformation,
|
mdiClose, mdiMagnify, mdiCheck, mdiPlus, mdiInformation, mdiChevronLeft, mdiChevronRight,
|
||||||
newUserDialog: false,
|
newUserDialog: false,
|
||||||
valid: false,
|
valid: false,
|
||||||
new_user: {
|
new_user: {
|
||||||
|
|
Loading…
Reference in a new issue