fix: eslint #47

Merged
palid merged 1 commit from fix/build into main 2025-08-28 16:36:06 +00:00
Showing only changes of commit cd3e323464 - Show all commits

View file

@ -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(),
} };
} }