2021-08-09 14:26:11 +02:00
|
|
|
|
import {
|
|
|
|
|
EventMetadataType,
|
|
|
|
|
EventMetadataKeyType,
|
|
|
|
|
EventMetadataCategories,
|
|
|
|
|
} from "@/types/enums";
|
|
|
|
|
import { IEventMetadataDescription } from "@/types/event-metadata";
|
|
|
|
|
import { i18n } from "@/utils/i18n";
|
|
|
|
|
|
2022-07-12 10:55:28 +02:00
|
|
|
|
const t = i18n.global.t;
|
|
|
|
|
|
2021-08-09 14:26:11 +02:00
|
|
|
|
export const eventMetaDataList: IEventMetadataDescription[] = [
|
|
|
|
|
{
|
|
|
|
|
icon: "wheelchair-accessibility",
|
|
|
|
|
key: "mz:accessibility:wheelchairAccessible",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Wheelchair accessibility") as string,
|
|
|
|
|
description: t(
|
2021-08-09 14:26:11 +02:00
|
|
|
|
"Whether the event is accessible with a wheelchair"
|
|
|
|
|
) as string,
|
2021-11-22 10:02:57 +01:00
|
|
|
|
value: "no",
|
2021-08-09 14:26:11 +02:00
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.CHOICE,
|
|
|
|
|
choices: {
|
2022-07-12 10:55:28 +02:00
|
|
|
|
no: t("Not accessible with a wheelchair") as string,
|
|
|
|
|
partially: t("Partially accessible with a wheelchair") as string,
|
|
|
|
|
fully: t("Fully accessible with a wheelchair") as string,
|
2021-08-09 14:26:11 +02:00
|
|
|
|
},
|
|
|
|
|
category: EventMetadataCategories.ACCESSIBILITY,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "subtitles",
|
|
|
|
|
key: "mz:accessibility:live:subtitle",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Subtitles") as string,
|
|
|
|
|
description: t("Whether the event live video is subtitled") as string,
|
2021-11-22 10:02:57 +01:00
|
|
|
|
value: "false",
|
2021-08-09 14:26:11 +02:00
|
|
|
|
type: EventMetadataType.BOOLEAN,
|
|
|
|
|
keyType: EventMetadataKeyType.PLAIN,
|
|
|
|
|
choices: {
|
2022-07-12 10:55:28 +02:00
|
|
|
|
true: t("The event live video contains subtitles") as string,
|
|
|
|
|
false: t("The event live video does not contain subtitles") as string,
|
2021-08-09 14:26:11 +02:00
|
|
|
|
},
|
|
|
|
|
category: EventMetadataCategories.ACCESSIBILITY,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "mz:icon:sign_language",
|
|
|
|
|
key: "mz:accessibility:live:sign_language",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Sign Language") as string,
|
|
|
|
|
description: t(
|
2021-08-09 14:26:11 +02:00
|
|
|
|
"Whether the event is interpreted in sign language"
|
|
|
|
|
) as string,
|
2021-11-22 10:02:57 +01:00
|
|
|
|
value: "false",
|
2021-08-09 14:26:11 +02:00
|
|
|
|
type: EventMetadataType.BOOLEAN,
|
|
|
|
|
keyType: EventMetadataKeyType.PLAIN,
|
|
|
|
|
choices: {
|
2022-07-12 10:55:28 +02:00
|
|
|
|
true: t("The event has a sign language interpreter") as string,
|
|
|
|
|
false: t("The event hasn't got a sign language interpreter") as string,
|
2021-08-09 14:26:11 +02:00
|
|
|
|
},
|
|
|
|
|
category: EventMetadataCategories.ACCESSIBILITY,
|
|
|
|
|
},
|
2022-05-24 16:48:20 +02:00
|
|
|
|
{
|
|
|
|
|
icon: "smoking-off",
|
|
|
|
|
key: "mz:accessibility:smokeFree",
|
2022-10-03 14:01:57 +02:00
|
|
|
|
label: t("Smoke free") as string,
|
2022-10-05 12:13:19 +02:00
|
|
|
|
description: t("Whether smoking is prohibited during the event") as string,
|
2022-05-24 16:48:20 +02:00
|
|
|
|
value: "false",
|
|
|
|
|
type: EventMetadataType.BOOLEAN,
|
|
|
|
|
keyType: EventMetadataKeyType.PLAIN,
|
|
|
|
|
choices: {
|
2022-10-03 14:01:57 +02:00
|
|
|
|
true: t("Smoke free") as string,
|
|
|
|
|
false: t("Smoking allowed") as string,
|
2022-05-24 16:48:20 +02:00
|
|
|
|
},
|
|
|
|
|
category: EventMetadataCategories.ACCESSIBILITY,
|
|
|
|
|
},
|
2021-08-09 14:26:11 +02:00
|
|
|
|
{
|
|
|
|
|
icon: "youtube",
|
|
|
|
|
key: "mz:replay:youtube:url",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("YouTube replay") as string,
|
|
|
|
|
description: t(
|
2021-08-09 14:26:11 +02:00
|
|
|
|
"The URL where the event live can be watched again after it has ended"
|
|
|
|
|
) as string,
|
|
|
|
|
value: "",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
pattern:
|
|
|
|
|
/http(?:s?):\/\/(?:www\.)?youtu(?:be\.com\/watch\?v=|\.be\/)([\w\-_]*)(&(amp;)?[\w?=]*)?/,
|
|
|
|
|
category: EventMetadataCategories.REPLAY,
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// icon: "twitch",
|
|
|
|
|
// key: "mz:replay:twitch:url",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
// label: t("Twitch replay") as string,
|
|
|
|
|
// description: t(
|
2021-08-09 14:26:11 +02:00
|
|
|
|
// "The URL where the event live can be watched again after it has ended"
|
|
|
|
|
// ) as string,
|
|
|
|
|
// value: "",
|
|
|
|
|
// type: EventMetadataType.STRING,
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
icon: "mz:icon:peertube",
|
|
|
|
|
key: "mz:replay:peertube:url",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("PeerTube replay") as string,
|
|
|
|
|
description: t(
|
2021-08-09 14:26:11 +02:00
|
|
|
|
"The URL where the event live can be watched again after it has ended"
|
|
|
|
|
) as string,
|
|
|
|
|
value: "",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
pattern: /^https?:\/\/([^/]+)\/(?:videos\/(?:watch|embed)|w)\/([^/]+)$/,
|
|
|
|
|
category: EventMetadataCategories.REPLAY,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "mz:icon:peertube",
|
|
|
|
|
key: "mz:live:peertube:url",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("PeerTube live") as string,
|
|
|
|
|
description: t("The URL where the event can be watched live") as string,
|
2021-08-09 14:26:11 +02:00
|
|
|
|
value: "",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
pattern: /^https?:\/\/([^/]+)\/(?:videos\/(?:watch|embed)|w)\/([^/]+)$/,
|
|
|
|
|
category: EventMetadataCategories.LIVE,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "twitch",
|
|
|
|
|
key: "mz:live:twitch:url",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Twitch live") as string,
|
|
|
|
|
description: t("The URL where the event can be watched live") as string,
|
2021-08-09 14:26:11 +02:00
|
|
|
|
value: "",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
placeholder: "https://www.twitch.tv/",
|
|
|
|
|
pattern: /^(?:https?:\/\/)?(?:www\.|go\.)?twitch\.tv\/([a-z0-9_]+)($|\?)/,
|
|
|
|
|
category: EventMetadataCategories.LIVE,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "youtube",
|
|
|
|
|
key: "mz:live:youtube:url",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("YouTube live") as string,
|
|
|
|
|
description: t("The URL where the event can be watched live") as string,
|
2021-08-09 14:26:11 +02:00
|
|
|
|
value: "",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
pattern:
|
|
|
|
|
/http(?:s?):\/\/(?:www\.)?youtu(?:be\.com\/watch\?v=|\.be\/)([\w\-_]*)(&(amp;)?[\w?=]*)?/,
|
|
|
|
|
category: EventMetadataCategories.LIVE,
|
|
|
|
|
},
|
2022-06-02 22:14:34 +02:00
|
|
|
|
{
|
|
|
|
|
icon: "mz:icon:owncast",
|
|
|
|
|
key: "mz:live:owncast:url",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Owncast") as string,
|
|
|
|
|
description: t("The URL where the event can be watched live") as string,
|
2022-06-02 22:14:34 +02:00
|
|
|
|
value: "",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
pattern: /^https?:\/\/(([^/.]+)\.)+([a-z]+)\/?/,
|
|
|
|
|
category: EventMetadataCategories.LIVE,
|
|
|
|
|
},
|
2021-08-09 14:26:11 +02:00
|
|
|
|
{
|
|
|
|
|
icon: "calendar-check",
|
|
|
|
|
key: "mz:poll:framadate:url",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Framadate poll") as string,
|
|
|
|
|
description: t(
|
2021-08-09 14:26:11 +02:00
|
|
|
|
"The URL of a poll where the choice for the event date is happening"
|
|
|
|
|
) as string,
|
|
|
|
|
value: "",
|
|
|
|
|
placeholder: "https://framadate.org/",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
category: EventMetadataCategories.TOOLS,
|
|
|
|
|
},
|
2021-08-17 10:41:39 +02:00
|
|
|
|
{
|
|
|
|
|
icon: "file-document-edit",
|
|
|
|
|
key: "mz:notes:etherpad:url",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Etherpad notes") as string,
|
|
|
|
|
description: t(
|
2021-08-17 10:41:39 +02:00
|
|
|
|
"The URL of a pad where notes are being taken collaboratively"
|
|
|
|
|
) as string,
|
|
|
|
|
value: "",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
placeholder: t(
|
2021-08-17 10:41:39 +02:00
|
|
|
|
"https://mensuel.framapad.org/p/some-secret-token"
|
|
|
|
|
) as string,
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
category: EventMetadataCategories.TOOLS,
|
|
|
|
|
},
|
2021-08-09 14:26:11 +02:00
|
|
|
|
{
|
|
|
|
|
icon: "twitter",
|
|
|
|
|
key: "mz:social:twitter:account",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Twitter account") as string,
|
|
|
|
|
description: t(
|
2021-08-09 14:26:11 +02:00
|
|
|
|
"A twitter account handle to follow for event updates"
|
|
|
|
|
) as string,
|
|
|
|
|
value: "",
|
|
|
|
|
placeholder: "@JoinMobilizon",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.HANDLE,
|
|
|
|
|
category: EventMetadataCategories.SOCIAL,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "mz:icon:fediverse",
|
|
|
|
|
key: "mz:social:fediverse:account_url",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Fediverse account") as string,
|
|
|
|
|
description: t(
|
2021-08-09 14:26:11 +02:00
|
|
|
|
"A fediverse account URL to follow for event updates"
|
|
|
|
|
) as string,
|
|
|
|
|
value: "",
|
|
|
|
|
placeholder: "https://framapiaf.org/@mobilizon",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
category: EventMetadataCategories.SOCIAL,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "ticket-confirmation",
|
|
|
|
|
key: "mz:ticket:external_url",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Online ticketing") as string,
|
|
|
|
|
description: t("An URL to an external ticketing platform") as string,
|
2021-08-09 14:26:11 +02:00
|
|
|
|
value: "",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
category: EventMetadataCategories.BOOKING,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "cash",
|
|
|
|
|
key: "mz:ticket:price_url",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Price sheet") as string,
|
|
|
|
|
description: t("A link to a page presenting the price options") as string,
|
2021-08-09 14:26:11 +02:00
|
|
|
|
value: "",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
category: EventMetadataCategories.DETAILS,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "calendar-text",
|
|
|
|
|
key: "mz:schedule_url",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Schedule") as string,
|
|
|
|
|
description: t("A link to a page presenting the event schedule") as string,
|
2021-08-09 14:26:11 +02:00
|
|
|
|
value: "",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
category: EventMetadataCategories.DETAILS,
|
|
|
|
|
},
|
2021-08-17 10:28:03 +02:00
|
|
|
|
{
|
|
|
|
|
icon: "webcam",
|
|
|
|
|
key: "mz:visio:jitsi_meet",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Jitsi Meet") as string,
|
|
|
|
|
description: t("The Jitsi Meet video teleconference URL") as string,
|
2021-08-17 10:28:03 +02:00
|
|
|
|
value: "",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
category: EventMetadataCategories.VIDEO_CONFERENCE,
|
|
|
|
|
placeholder: "https://meet.jit.si/AFewWords",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "webcam",
|
|
|
|
|
key: "mz:visio:zoom",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Zoom") as string,
|
|
|
|
|
description: t("The Zoom video teleconference URL") as string,
|
2021-08-17 10:28:03 +02:00
|
|
|
|
value: "",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
category: EventMetadataCategories.VIDEO_CONFERENCE,
|
|
|
|
|
pattern: /https:\/\/.*\.?zoom.us\/.*/,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "microsoft-teams",
|
|
|
|
|
key: "mz:visio:microsoft_teams",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Microsoft Teams") as string,
|
|
|
|
|
description: t("The Microsoft Teams video teleconference URL") as string,
|
2021-08-17 10:28:03 +02:00
|
|
|
|
value: "",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
category: EventMetadataCategories.VIDEO_CONFERENCE,
|
|
|
|
|
pattern: /https:\/\/teams\.live\.com\/meet\/.+/,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "google-hangouts",
|
|
|
|
|
key: "mz:visio:google_meet",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Google Meet") as string,
|
|
|
|
|
description: t("The Google Meet video teleconference URL") as string,
|
2021-08-17 10:28:03 +02:00
|
|
|
|
value: "",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
category: EventMetadataCategories.VIDEO_CONFERENCE,
|
|
|
|
|
pattern: /https:\/\/meet\.google\.com\/.+/,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
icon: "webcam",
|
|
|
|
|
key: "mz:visio:big_blue_button",
|
2022-07-12 10:55:28 +02:00
|
|
|
|
label: t("Big Blue Button") as string,
|
|
|
|
|
description: t("The Big Blue Button video teleconference URL") as string,
|
2021-08-17 10:28:03 +02:00
|
|
|
|
value: "",
|
|
|
|
|
type: EventMetadataType.STRING,
|
|
|
|
|
keyType: EventMetadataKeyType.URL,
|
|
|
|
|
category: EventMetadataCategories.VIDEO_CONFERENCE,
|
|
|
|
|
},
|
2021-08-09 14:26:11 +02:00
|
|
|
|
];
|