fix pug indent issue

This commit is contained in:
lesion
2022-07-01 15:55:09 +02:00
parent baeb141ccd
commit 1ca44cf048
31 changed files with 888 additions and 894 deletions

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
#calendar #calendar
vc-date-picker( vc-date-picker(
v-model='selectedDate' v-model='selectedDate'
title-position='left' title-position='left'

View File

@@ -1,6 +1,6 @@
<template lang="pug"> <template lang="pug">
v-dialog(v-model='show' v-dialog(v-model='show'
:fullscreen='$vuetify.breakpoint.xsOnly' :fullscreen='$vuetify.breakpoint.xsOnly'
:color='options.color' :color='options.color'
:title='title' :title='title'

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
v-container v-container
v-card-title.text-h5 Database v-card-title.text-h5 Database
v-card-text v-card-text
v-form v-form

View File

@@ -1,5 +1,5 @@
<template lang='pug'> <template lang='pug'>
.editor(:class='focused') .editor(:class='focused')
.label {{label}} .label {{label}}
editor-menu-bar.menubar.is-hidden(:editor='editor' editor-menu-bar.menubar.is-hidden(:editor='editor'
:keep-in-bounds='true' v-slot='{ commands, isActive, getMarkAttrs, focused }') :keep-in-bounds='true' v-slot='{ commands, isActive, getMarkAttrs, focused }')

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
v-card.h-event.event.d-flex(itemscope itemtype="https://schema.org/Event") v-card.h-event.event.d-flex(itemscope itemtype="https://schema.org/Event")
nuxt-link(:to='`/event/${event.slug || event.id}`' itemprop="url") nuxt-link(:to='`/event/${event.slug || event.id}`' itemprop="url")
MyPicture(:event='event' thumb :lazy='lazy') MyPicture(:event='event' thumb :lazy='lazy')
v-icon.float-right.mr-1(v-if='event.parentId' color='success' v-text='mdiRepeat') v-icon.float-right.mr-1(v-if='event.parentId' color='success' v-text='mdiRepeat')

View File

@@ -1,5 +1,5 @@
<template lang='pug'> <template lang='pug'>
v-card v-card
v-card-title(v-text="$t('common.follow_me_title')") v-card-title(v-text="$t('common.follow_me_title')")
v-card-text v-card-text
p(v-html="$t('event.follow_me_description', { title: settings.title, account: `@${settings.instance_name}@${settings.hostname}`})") p(v-html="$t('event.follow_me_description', { title: settings.title, account: `@${settings.instance_name}@${settings.hostname}`})")

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
v-footer(aria-label='Footer') v-footer(aria-label='Footer')
v-dialog(v-model='showFollowMe' destroy-on-close max-width='700px' :fullscreen='$vuetify.breakpoint.xsOnly') v-dialog(v-model='showFollowMe' destroy-on-close max-width='700px' :fullscreen='$vuetify.breakpoint.xsOnly')
FollowMe(@close='showFollowMe=false' is-dialog) FollowMe(@close='showFollowMe=false' is-dialog)

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
v-card v-card
v-card-title {{$t('common.import')}} v-card-title {{$t('common.import')}}
v-card-text v-card-text
p(v-html="$t('event.import_description')") p(v-html="$t('event.import_description')")
@@ -30,7 +30,6 @@
<script> <script>
import ical from 'ical.js' import ical from 'ical.js'
import get from 'lodash/get' import get from 'lodash/get'
import { mapState } from 'vuex'
export default { export default {
name: 'ImportDialog', name: 'ImportDialog',

View File

@@ -1,5 +1,5 @@
<template lang='pug'> <template lang='pug'>
.loading-page(:class='{ loading }') .loading-page(:class='{ loading }')
v-progress-circular(:size="100" :width="10" style='color: orangered;' indeterminate) v-progress-circular(:size="100" :width="10" style='color: orangered;' indeterminate)
</template> </template>

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
span span
v-dialog(v-model='openMediaDetails' :fullscreen="$vuetify.breakpoint.xsOnly" width='1000px') v-dialog(v-model='openMediaDetails' :fullscreen="$vuetify.breakpoint.xsOnly" width='1000px')
v-card v-card
v-card-title {{$t('common.media')}} v-card-title {{$t('common.media')}}

View File

@@ -1,5 +1,5 @@
<template lang='pug'> <template lang='pug'>
v-snackbar( v-snackbar(
v-model="active" v-model="active"
:color="color" :color="color"
:bottom="bottom" :bottom="bottom"
@@ -19,7 +19,7 @@ import { mdiAlert, mdiCloseCircle, mdiInformation } from '@mdi/js'
export default { export default {
data () { data () {
return { return {
mdiAlert, mdiAlert, mdiCloseCircle, mdiInformation, mdiAlert, mdiCloseCircle, mdiInformation,
icon: mdiInformation, icon: mdiInformation,
color: 'secondary', color: 'secondary',
bottom: true, bottom: true,

View File

@@ -1,5 +1,5 @@
<template lang='pug'> <template lang='pug'>
v-container v-container
v-card-title {{$t('common.announcements')}} v-card-title {{$t('common.announcements')}}
v-card-subtitle(v-html="$t('admin.announcement_description')") v-card-subtitle(v-html="$t('admin.announcement_description')")
v-dialog(v-model='dialog' width='800px' :fullscreen='$vuetify.breakpoint.xsOnly') v-dialog(v-model='dialog' width='800px' :fullscreen='$vuetify.breakpoint.xsOnly')
@@ -29,7 +29,6 @@
:color='item.visible?"warning":"success"') {{item.visible?$t('common.disable'):$t('common.enable')}} :color='item.visible?"warning":"success"') {{item.visible?$t('common.disable'):$t('common.enable')}}
v-btn(text small @click='edit(item)' color='primary') {{$t('common.edit')}} v-btn(text small @click='edit(item)' color='primary') {{$t('common.edit')}}
v-btn(text small @click='remove(item)' color='error') {{$t('common.delete')}} v-btn(text small @click='remove(item)' color='error') {{$t('common.delete')}}
</template> </template>
<script> <script>
import { mapActions } from 'vuex' import { mapActions } from 'vuex'

View File

@@ -1,5 +1,5 @@
<template lang='pug'> <template lang='pug'>
v-container v-container
v-card-title {{$t('common.events')}} v-card-title {{$t('common.events')}}
v-card-subtitle {{$t('admin.event_confirm_description')}} v-card-subtitle {{$t('admin.event_confirm_description')}}
v-card-text v-card-text
@@ -15,7 +15,6 @@
v-btn(text small :to='`/add/${item.id}`' color='warning') {{$t('common.edit')}} v-btn(text small :to='`/add/${item.id}`' color='warning') {{$t('common.edit')}}
v-btn(text small @click='remove(item)' v-btn(text small @click='remove(item)'
color='error') {{$t('common.delete')}} color='error') {{$t('common.delete')}}
</template> </template>
<script> <script>
import { mdiChevronLeft, mdiChevronRight } from '@mdi/js' import { mdiChevronLeft, mdiChevronRight } from '@mdi/js'

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
v-container v-container
v-card-title {{$t('common.federation')}} v-card-title {{$t('common.federation')}}
v-card-text v-card-text
v-switch(v-model='enable_federation' v-switch(v-model='enable_federation'

View File

@@ -1,5 +1,5 @@
<template lang='pug'> <template lang='pug'>
v-container v-container
v-card-title {{$t('common.moderation')}} v-card-title {{$t('common.moderation')}}
v-card-text v-card-text
v-row v-row

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
v-card v-card
v-card-title SMTP Email configuration v-card-title SMTP Email configuration
v-card-text v-card-text
p(v-html="$t('admin.smtp_description')") p(v-html="$t('admin.smtp_description')")

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
v-container v-container
v-card-title {{$t('common.settings')}} v-card-title {{$t('common.settings')}}
v-card-text v-card-text
@@ -57,7 +57,6 @@
v-btn(text @click='$emit("complete")' color='primary' v-if='setup') {{$t('common.next')}} v-btn(text @click='$emit("complete")' color='primary' v-if='setup') {{$t('common.next')}}
v-icon(v-text='mdiArrowRight') v-icon(v-text='mdiArrowRight')
</template> </template>
<script> <script>
import SMTP from './SMTP.vue' import SMTP from './SMTP.vue'

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
v-container v-container
v-card-title {{$t('common.theme')}} v-card-title {{$t('common.theme')}}
v-card-text v-card-text
//- LOGO //- LOGO

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
v-container v-container
v-card-title {{$t('common.users')}} v-card-title {{$t('common.users')}}
v-spacer v-spacer
v-text-field(v-model='search' v-text-field(v-model='search'

View File

@@ -1,5 +1,5 @@
<template lang='pug'> <template lang='pug'>
v-app(app) v-app(app)
Snackbar Snackbar
Confirm Confirm

View File

@@ -1,5 +1,5 @@
<template lang='pug'> <template lang='pug'>
v-app(app) v-app(app)
Snackbar Snackbar
Confirm Confirm
Nav Nav

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
v-container.container.pa-0.pa-md-3 v-container.container.pa-0.pa-md-3
v-card v-card
v-alert(v-if='url!==settings.baseurl' outlined type='warning' color='red' show-icon :icon='mdiAlert') v-alert(v-if='url!==settings.baseurl' outlined type='warning' color='red' show-icon :icon='mdiAlert')
span(v-html="$t('admin.wrong_domain_warning', { url, baseurl: settings.baseurl })") span(v-html="$t('admin.wrong_domain_warning', { url, baseurl: settings.baseurl })")
@@ -52,7 +52,6 @@
v-tab(v-if='settings.enable_federation') {{$t('common.moderation')}} v-tab(v-if='settings.enable_federation') {{$t('common.moderation')}}
v-tab-item v-tab-item
Moderation Moderation
</template> </template>
<script> <script>
import { mapState } from 'vuex' import { mapState } from 'vuex'

View File

@@ -1,5 +1,5 @@
<template lang='pug'> <template lang='pug'>
.d-flex.justify-space-around .d-flex.justify-space-around
v-card.mt-5(max-width='600px') v-card.mt-5(max-width='600px')
v-card-title {{settings.title}} - {{$t('common.authorize')}} v-card-title {{settings.title}} - {{$t('common.authorize')}}
v-card-text v-card-text

View File

@@ -1,5 +1,5 @@
<template lang='pug'> <template lang='pug'>
v-container.pa-0.pa-md-3 v-container.pa-0.pa-md-3
v-row.mt-md-5.ma-0(align='center' justify='center') v-row.mt-md-5.ma-0(align='center' justify='center')
v-col.pa-0.pa-md-3(cols='12' md="6" lg="5" xl="4") v-col.pa-0.pa-md-3(cols='12' md="6" lg="5" xl="4")
v-form(v-model='valid' ref='form' lazy-validation @submit.prevent='submit') v-form(v-model='valid' ref='form' lazy-validation @submit.prevent='submit')

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
v-container v-container
v-card v-card
v-card-text(v-if='$auth.user && $auth.user.is_admin') v-card-text(v-if='$auth.user && $auth.user.is_admin')
Editor(v-model='about' label="About") Editor(v-model='about' label="About")

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
v-container.container.pa-0.pa-md-3 v-container.container.pa-0.pa-md-3
v-card v-card
v-card-title v-card-title
h4 {{edit?$t('common.edit_event'):$t('common.add_event')}} h4 {{edit?$t('common.edit_event'):$t('common.add_event')}}

View File

@@ -1,16 +1,15 @@
<template lang="pug"> <template lang="pug">
v-container v-container
v-card v-card
v-card-title {{announcement.title}} v-card-title {{announcement.title}}
v-card-text(v-html='announcement.announcement') v-card-text(v-html='announcement.announcement')
</template> </template>
<script> <script>
import { mapState } from 'vuex' import { mapState } from 'vuex'
export default { export default {
name: 'Announcement', name: 'Announcement',
asyncData ({ $axios, params, error, store }) { asyncData ({ params, error, store }) {
try { try {
const id = Number(params.id) const id = Number(params.id)
const announcement = store.state.announcements.find(a => a.id === id) const announcement = store.state.announcements.find(a => a.id === id)

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
nuxt-link.embed_event(:to='`/event/${event.slug || event.id}`' target='_blank' :class='{ withImg: event.media }') nuxt-link.embed_event(:to='`/event/${event.slug || event.id}`' target='_blank' :class='{ withImg: event.media }')
//- image //- image
img.float-left(:src='event | mediaURL("thumb")') img.float-left(:src='event | mediaURL("thumb")')
@@ -15,7 +15,7 @@
export default { export default {
layout: 'iframe', layout: 'iframe',
async asyncData ({ $axios, params, error, store }) { async asyncData ({ $axios, params, error }) {
try { try {
const event = await $axios.$get(`/event/${params.event_id}`) const event = await $axios.$get(`/event/${params.event_id}`)
return { event } return { event }

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template>
List(:events="events" :title='title') <List :events="events" :title='title'/>
</template> </template>
<script> <script>
import List from '../../components/List' import List from '../../components/List'

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
v-container.pa-0.pa-md-3 v-container.pa-0.pa-md-3
v-card v-card
v-card-title {{$t('common.share')}} v-card-title {{$t('common.share')}}
v-card-text v-card-text

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
v-container v-container
v-card v-card
v-card-title.text-h5 {{$auth.user.email}} v-card-title.text-h5 {{$auth.user.email}}
v-card-text v-card-text