Trackmania 2020 theme
Publisher: AessiThemes in package: 1
A Visual Studio Code theme based on Trackmania 2020's maniascript editor theme
A Visual Studio Code theme based on Trackmania 2020's maniascript editor theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment | #b3b3b3 | italic |
| string | #ffff80 | — |
| punctuation.definition.template-expression | #ccffff | — |
| constant.character.escape | #ccffff | — |
| punctuation.definition.translate support.function.translate | #ccffff | — |
| punctuation.definition.translate | #ffffff | — |
| keyword.other.directive | #ffccff | — |
| variable | #ffffff | — |
| keyword, keyword.operator.expression | #b3b3ff | — |
| keyword.operator | #ccffff | — |
| constant | #ffff80 | — |
| variable.language | #ffff80 | — |
| support.function.object | #ccffff | — |
| punctuation.definition.label, punctuation.label | #80ff80 | — |
| entity.name.tag, entity.name.type.struct, entity.name.member, entity.name.function | #ffffff | — |
| punctuation.definition.struct | #ffffff | — |
| punctuation.squarebracket | #ffffff | — |
| punctuation.parenthesis | #ffffff | — |
| punctuation.terminator | #ffffff | — |
| punctuation.accessor | #ffffff | — |
| punctuation.separator.coloncolon | #ccffff | — |
| punctuation.separator.colon | #ccffff | — |
| punctuation.definition.vector | #ccffff | — |
| punctuation.separator.comma | #ffffff | — |
| storage.type | #80ff80 | — |
| meta.struct.maniascript entity.name.type.struct | #80ff80 | — |
| entity.name.type.class | #80ff80 | — |
| meta.literal.enum entity.name.type.class, meta.type.name variable.other.namespace | #80ff80 | — |
| meta.literal.enum entity.name.type.enum-name, meta.literal.enum entity.name.type.enum-value, storage.type.with-namespace | #ffffff | — |
| keyword.other.comment-tag.debug | #ffaa00 |
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}