This commit is contained in:
parent
7bceaab551
commit
cd3e323464
|
|
@ -1,35 +1,35 @@
|
||||||
import { Lang } from '@/i18n/locales'
|
import { Lang } from "@/i18n/locales";
|
||||||
|
|
||||||
export const EXTERNAL_URLS = {
|
export const EXTERNAL_URLS = {
|
||||||
email: 'orga@cebula.camp',
|
email: "orga@cebula.camp",
|
||||||
} as const
|
} as const;
|
||||||
|
|
||||||
export function getWikiUrl(locale: Lang): string {
|
export function getWikiUrl(locale: Lang): string {
|
||||||
return `https://wiki.cebula.camp/${locale}/home`
|
return `https://wiki.cebula.camp/${locale}/home`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getCfpScheduleUrl(locale: Lang): string {
|
export function getCfpScheduleUrl(locale: Lang): string {
|
||||||
return `https://cfp.cebula.camp/camp-2025/locale/set?locale=${locale}&next=/camp-2025/schedule/`
|
return `https://cfp.cebula.camp/camp-2025/locale/set?locale=${locale}&next=/camp-2025/schedule/`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getCfpUrl(locale: Lang): string {
|
export function getCfpUrl(): string {
|
||||||
return `https://cfp.cebula.camp/camp-2025/cfp`
|
return `https://cfp.cebula.camp/camp-2025/cfp`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getCfpArtUrl(locale: Lang): string {
|
export function getCfpArtUrl(): string {
|
||||||
return `https://cfp.cebula.camp/camp-2025-art/cfp`
|
return `https://cfp.cebula.camp/camp-2025-art/cfp`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getEmailUrl(): string {
|
export function getEmailUrl(): string {
|
||||||
return `mailto:${EXTERNAL_URLS.email}`
|
return `mailto:${EXTERNAL_URLS.email}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getExternalLinks(locale: Lang) {
|
export function getExternalLinks(locale: Lang) {
|
||||||
return {
|
return {
|
||||||
wiki: getWikiUrl(locale),
|
wiki: getWikiUrl(locale),
|
||||||
cfpSchedule: getCfpScheduleUrl(locale),
|
cfpSchedule: getCfpScheduleUrl(locale),
|
||||||
cfp: getCfpUrl(locale),
|
cfp: getCfpUrl(),
|
||||||
cfpArt: getCfpArtUrl(locale),
|
cfpArt: getCfpArtUrl(),
|
||||||
email: getEmailUrl(),
|
email: getEmailUrl(),
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue