easy_develop
Publisher: fghkThemes in package: 1
easy_develop
easy_develop
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 | #acacac | bold |
| string.quoted, string.template, punctuation.definition.string, punctuation.definition.block, source | #d4ffc7b8 | bold |
| string.template meta.embedded.line | #f3f3f3 | — |
| variable, entity.name.variable | #85EEA7 | — |
| variable.language, variable.other.object.js | #85EEA7 | — |
| variable.parameter | #68d88e | bold |
| storage.type, storage.modifier | #12a182 | italic underline |
| constant | #85EEA7 | — |
| string.regexp | #85EEA7 | — |
| constant.numeric | #b9dec9 | bold |
| constant.language | #b9dec9 | — |
| constant.character.escape | #b2cf87 | — |
| entity.name | #87d9a2 | — |
| entity.name.tag | #68d88e | italic bold |
| punctuation.definition.tag | #6ab58362 | — |
| entity.other.attribute-name | #8cffd5bb | — |
| entity.name.type | #77ffa4 | italic bold |
| entity.other.inherited-class | #b2cf87 | — |
| entity.name.function, variable.function | #d6ffb0 | italic |
| keyword | #5f7f78 | italic bold |
| keyword.control | #d6ffc4 | italic bold |
| keyword.operator | #b9dec9 | bold |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical | #12a182 | italic bold |
| keyword.other.unit | #85EEA7 | — |
| support | #68d88e | italic |
| support.function | #d6ffb0 | italic underline |
| support.variable | #d6ffb0 | bold |
| meta.object-literal.key, support.type.property-name | #68d88e | — |
| variable.other.property.js | #d6ffb0 | italic |
| punctuation.separator.key-value | #b9dec9 | bold |
| punctuation.section.embedded | #b2cf87 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #b9dec9 | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #b2cf87 | |
| constant.other.color | #b9dec9 | bold |
| support.constant.font-name | #85EEA7 | — |
| entity.other.attribute-name.id | #b9dec9 | italic bold |
| entity.other.attribute-name.class | #b9dec9 | italic |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #b2cf87 | — |
| support.function.misc.css | #b9dec9 | bold |
| markup.heading, entity.name.section | #85EEA7 | — |
| markup.quote | #FF407B | bold |
| beginning.punctuation.definition.list | #85EEA7 | — |
| markup.underline.link | #b2cf87 | — |
| string.other.link.description | #85EEA7 | — |
| meta.function-call.generic.python | #fcfcfc | — |
| storage.type.cs | #b9dec9 | bold |
| entity.name.variable.local.cs | #85EEA7 | — |
| entity.name.variable.field.cs, entity.name.variable.property.cs | #85EEA7 | — |
| source.cpp keyword.operator | #b9dec9 | bold |
| punctuation.definition.heading.markdown | #b9dec9 | — |
| punctuation.definition.bold.markdown | #85EEA7 | — |
| punctuation.definition.italic.markdown | #ffffff7e | — |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
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}!`;
}