Merge branch 'main' into 'main'

add owncast to event meta data

See merge request framasoft/mobilizon!1252
This commit is contained in:
Thomas Citharel
2022-06-07 14:09:25 +00:00
2 changed files with 101 additions and 0 deletions

View File

@@ -136,6 +136,19 @@ export const eventMetaDataList: IEventMetadataDescription[] = [
/http(?:s?):\/\/(?:www\.)?youtu(?:be\.com\/watch\?v=|\.be\/)([\w\-_]*)(&(amp;)?[\w?=]*)?/,
category: EventMetadataCategories.LIVE,
},
{
icon: "mz:icon:owncast",
key: "mz:live:owncast:url",
label: i18n.t("Owncast") as string,
description: i18n.t(
"The URL where the event can be watched live"
) as string,
value: "",
type: EventMetadataType.STRING,
keyType: EventMetadataKeyType.URL,
pattern: /^https?:\/\/(([^/.]+)\.)+([a-z]+)\/?/,
category: EventMetadataCategories.LIVE,
},
{
icon: "calendar-check",
key: "mz:poll:framadate:url",