2026-07-10 13:38:43 -04:00
|
|
|
/** Constantes du site — un seul endroit à changer si la forge bouge. */
|
|
|
|
|
export const REPO_URL = 'https://labola.o-k-i.net/cyber-mawonaj/lage-chat-control'
|
2026-07-21 13:50:03 -04:00
|
|
|
|
|
|
|
|
/** Origine de production — base des URL absolues SEO (canonical, OG, sitemap). */
|
|
|
|
|
export const SITE_URL = 'https://chatcontrol.o-k-i.net'
|
2026-07-10 13:38:43 -04:00
|
|
|
export const NEW_TOOL_ISSUE_URL = `${REPO_URL}/issues/new?template=.gitea/ISSUE_TEMPLATE/nouvo-zouti.yaml`
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Les trois arcs du chimen (sommaire) : progression Fondations →
|
|
|
|
|
* Reprendre le contrôle → Autodéfense avancée. Une catégorie appartient
|
|
|
|
|
* au premier arc dont `maxPart` couvre son `part`.
|
|
|
|
|
*/
|
|
|
|
|
export const ARCS = [
|
|
|
|
|
{ id: 'fondations', maxPart: 4, difficulty: 'beginner' },
|
|
|
|
|
{ id: 'controle', maxPart: 9, difficulty: 'intermediate' },
|
|
|
|
|
{ id: 'avance', maxPart: 99, difficulty: 'advanced' }
|
|
|
|
|
] as const
|
|
|
|
|
|
|
|
|
|
export type ArcId = (typeof ARCS)[number]['id']
|
|
|
|
|
|
|
|
|
|
export function arcOf(part: number): ArcId {
|
|
|
|
|
return (ARCS.find((a) => part <= a.maxPart) ?? ARCS[ARCS.length - 1]).id
|
|
|
|
|
}
|