VS saBOR Cursor
Publisher: KalloyerThemes in package: 1
Tema escuro moderno para VS Code inspirado em um visual clean e produtivo
Tema escuro moderno para VS Code inspirado em um visual clean e produtivo
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, punctuation.definition.comment | #7f8fa3 | italic |
| keyword, storage, keyword.control, keyword.operator.logical | #ff8da1 | |
| string, string.quoted, string.template, string.interpolated | #c3e88d | |
| constant.numeric, constant.language, constant.character, constant.other | #f78c6c | — |
| entity.name.function, meta.function-call, support.function, support.function.builtin, variable.function | #8be9a8 | — |
| entity.name.type, entity.name.class, support.type, storage.type | #7ad7ff | — |
| variable, meta.definition.variable, meta.object-literal.key | #d6deeb | — |
| variable.parameter | #ffcb8b | — |
| variable.other.property, support.variable.property, entity.other.attribute-name | #b8c7ff | — |
| punctuation, meta.brace, meta.delimiter | #88a4bf | — |
| markup.heading.markdown, entity.name.section.markdown | #68d5ff | bold |
| markup.italic.markdown, markup.bold.markdown, markup.inline.raw.string.markdown | #ffcb8b | — |
| support.type.property-name.json, meta.structure.dictionary.json string.quoted.double.json | #68d5ff | — |
| meta.function.decorator.python, entity.name.function.decorator.python | #c792ea | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.authorization.sql | #ff8da1 | bold |
| entity.name.function.sql, entity.name.type.sql, variable.other.readwrite.sql | #8be9a8 | — |
| keyword, storage.type | #ff8da1 | — |
| string, string.quoted | #c3e88d | — |
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}!`;
}