mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
parent
b4275f44cb
commit
ff559e71db
@ -263,7 +263,7 @@ export default {
|
|||||||
return []
|
return []
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
eventStart: { required: !this.creatEvent },
|
eventStart: { required: !!this.creatEvent },
|
||||||
eventVenue: { required: !!this.creatEvent, min: 3, max: 100 },
|
eventVenue: { required: !!this.creatEvent, min: 3, max: 100 },
|
||||||
eventLocationName: { required: !!this.creatEvent, min: 3, max: 100 },
|
eventLocationName: { required: !!this.creatEvent, min: 3, max: 100 },
|
||||||
},
|
},
|
||||||
|
|||||||
@ -11,6 +11,7 @@
|
|||||||
}"
|
}"
|
||||||
:highlight="isPinned"
|
:highlight="isPinned"
|
||||||
>
|
>
|
||||||
|
<!-- {{ post }} -->
|
||||||
<template v-if="post.image" #heroImage>
|
<template v-if="post.image" #heroImage>
|
||||||
<img :src="post.image | proxyApiUrl" class="image" />
|
<img :src="post.image | proxyApiUrl" class="image" />
|
||||||
</template>
|
</template>
|
||||||
@ -188,7 +189,7 @@ export default {
|
|||||||
if (this.post.eventEnd) {
|
if (this.post.eventEnd) {
|
||||||
const eventStart = format(new Date(this.post.eventStart), 'dd.MM.')
|
const eventStart = format(new Date(this.post.eventStart), 'dd.MM.')
|
||||||
const eventEnd = format(new Date(this.post.eventEnd), 'dd.MM.yyyy')
|
const eventEnd = format(new Date(this.post.eventEnd), 'dd.MM.yyyy')
|
||||||
return eventStart + ' - ' + eventEnd
|
return `${eventStart} - ${eventEnd}`
|
||||||
} else {
|
} else {
|
||||||
return format(new Date(this.post.eventStart), 'dd.MM.yyyy')
|
return format(new Date(this.post.eventStart), 'dd.MM.yyyy')
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,6 +9,7 @@ export default () => {
|
|||||||
$slug: String
|
$slug: String
|
||||||
$content: String!
|
$content: String!
|
||||||
$categoryIds: [ID]
|
$categoryIds: [ID]
|
||||||
|
$image: ImageInput
|
||||||
$groupId: ID
|
$groupId: ID
|
||||||
$postType: PostType
|
$postType: PostType
|
||||||
$eventInput: _EventInput
|
$eventInput: _EventInput
|
||||||
@ -19,6 +20,7 @@ export default () => {
|
|||||||
slug: $slug
|
slug: $slug
|
||||||
content: $content
|
content: $content
|
||||||
categoryIds: $categoryIds
|
categoryIds: $categoryIds
|
||||||
|
image: $image
|
||||||
groupId: $groupId
|
groupId: $groupId
|
||||||
postType: $postType
|
postType: $postType
|
||||||
eventInput: $eventInput
|
eventInput: $eventInput
|
||||||
@ -27,6 +29,12 @@ export default () => {
|
|||||||
slug
|
slug
|
||||||
title
|
title
|
||||||
content
|
content
|
||||||
|
contentExcerpt
|
||||||
|
language
|
||||||
|
image {
|
||||||
|
url
|
||||||
|
sensitive
|
||||||
|
}
|
||||||
disabled
|
disabled
|
||||||
deleted
|
deleted
|
||||||
postType
|
postType
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
fullwidth
|
fullwidth
|
||||||
size="x-large"
|
size="x-large"
|
||||||
v-if="creatEvent"
|
v-if="creatEvent"
|
||||||
hover="false"
|
hover
|
||||||
style="background-color: #ff000000; color: whitesmoke"
|
style="background-color: #ff000000; color: whitesmoke"
|
||||||
>
|
>
|
||||||
{{ $t('post.createNewEvent.title') }}
|
{{ $t('post.createNewEvent.title') }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user