DevMamudul Setup
Publisher: DevMamudulsetupThemes in package: 1
A customized development setup for VS Code.
A customized development setup for VS Code.
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 | #6c7086 | italic |
| variable, string constant.other.placeholder | #f5c2e7 | — |
| constant.other.color | #89b4fa | — |
| invalid, invalid.illegal | #f38ba8 | — |
| keyword, storage.type, storage.modifier | #cba6f7 | — |
| keyword.control, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #89dceb | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #f38ba8 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #89b4fa | — |
| meta.block variable.other | #f5c2e7 | — |
| support.other.variable.use, string.other.link | #94e2d5 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other | #fab387 | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #a6e3a1 | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #f9e2af | — |
| entity.name.type | #f9e2af | — |
| entity.other.attribute-name.class, source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #94e2d5 | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #cba6f7 | — |
| variable.language | #f5c2e7 | italic |
| entity.name.method.js | #89b4fa | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #89b4fa | — |
| entity.other.attribute-name | #f9e2af | — |
| source.css support.type.property-name | #94e2d5 | — |
| string.regexp | #f2cdcd | — |
| constant.character.escape | #f2cdcd | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #89b4fa | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #f9e2af | — |
| meta.structure.dictionary.json string.quoted.double.json - meta.structure.dictionary.value.json string.quoted.double.json | #f9e2af | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json string.quoted.double.json - meta.structure.dictionary.value.json meta.structure.dictionary.value.json string.quoted.double.json | #94e2d5 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.value.json meta.structure.dictionary.json string.quoted.double.json - meta.structure.dictionary.value.json meta.structure.dictionary.value.json meta.structure.dictionary.value.json string.quoted.double.json | #f5c2e7 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.value.json meta.structure.dictionary.value.json meta.structure.dictionary.json string.quoted.double.json - meta.structure.dictionary.value.json meta.structure.dictionary.value.json meta.structure.dictionary.value.json meta.structure.dictionary.value.json string.quoted.double.json | #cba6f7 | — |
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}!`;
}