do not import component dynamically

This commit is contained in:
lesion 2022-06-06 16:56:10 +02:00
parent 4dbfebf4be
commit a9d2c8dddc
No known key found for this signature in database
GPG key ID: 352918250B012177
2 changed files with 14 additions and 7 deletions

View file

@ -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)

View file

@ -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')