all repos — websitemeow @ 0a0bdf06936d21b38c83ffce1aaff761ebea9b59

src/constants.ts (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
export type Language<T extends string = string> = {
	name: T;
	short: string;
	colour: string;
};

export const LANGUAGES = {
	TypeScript: {
		name: "TypeScript",
		short: "TS",
		colour: "blue",
	},
	HTML: {
		name: "HTML",
		short: "HTML",
		colour: "red",
	},
	CSS: {
		name: "CSS",
		short: "CSS",
		colour: "blue",
	},
	Rust: {
		name: "Rust",
		short: "Rust",
		colour: "orange",
	},
	Vue: {
		name: "Vue",
		short: "Vue",
		colour: "green",
	},
	Astro: {
		name: "Astro",
		short: "Astro",
		colour: "green",
	},
	Nix: {
		name: "Nix",
		short: "Nix",
		colour: "blue",
	},
} as const satisfies Record<string, Language>;

export const LANGUAGE_KEYS = Object.keys(LANGUAGES) as [
	keyof typeof LANGUAGES,
	...Array<keyof typeof LANGUAGES>,
];