mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
do not import component dynamically
This commit is contained in:
parent
4dbfebf4be
commit
a9d2c8dddc
2 changed files with 14 additions and 7 deletions
|
@ -75,15 +75,22 @@ import dayjs from 'dayjs'
|
|||
|
||||
import { mdiFileImport, mdiFormatTitle, mdiTagMultiple, mdiCloseCircle } from '@mdi/js'
|
||||
|
||||
import List from '@/components/List'
|
||||
import Editor from '@/components/Editor'
|
||||
import ImportDialog from '@/components/ImportDialog'
|
||||
import MediaInput from '@/components/MediaInput'
|
||||
import WhereInput from '@/components/WhereInput'
|
||||
import DateInput from '@/components/DateInput'
|
||||
|
||||
export default {
|
||||
name: 'NewEvent',
|
||||
components: {
|
||||
List: () => import(/* webpackChunkName: "add" */'@/components/List'),
|
||||
Editor: () => import(/* webpackChunkName: "add" */'@/components/Editor'),
|
||||
ImportDialog: () => import(/* webpackChunkName: "add" */'@/components/ImportDialog.vue'),
|
||||
MediaInput: () => import(/* webpackChunkName: "add" */'@/components/MediaInput.vue'),
|
||||
WhereInput: () => import(/* webpackChunkName: "add" */'@/components/WhereInput.vue'),
|
||||
DateInput: () => import(/* webpackChunkName: "add" */'@/components/DateInput.vue')
|
||||
List,
|
||||
Editor,
|
||||
ImportDialog,
|
||||
MediaInput,
|
||||
WhereInput,
|
||||
DateInput
|
||||
},
|
||||
validate ({ store }) {
|
||||
return (store.state.auth.loggedIn || store.state.settings.allow_anon_event)
|
||||
|
|
|
@ -13,7 +13,7 @@ v-container#home(fluid)
|
|||
client-only(placeholder='Loading...')
|
||||
Calendar(@dayclick='dayChange' @monthchange='monthChange' :events='events')
|
||||
|
||||
.col.pt-0.pt-md-2.mt-4.pb-0
|
||||
.col.pt-0.pt-md-2.mt-4.ma-md-0.pb-0
|
||||
//- v-btn(to='/search' color='primary' ) {{$t('common.search')}}
|
||||
v-form(to='/search' action='/search' method='GET')
|
||||
v-text-field(name='search' :label='$t("common.search")' outlined rounded hide-details :append-icon='mdiMagnify')
|
||||
|
|
Loading…
Reference in a new issue