EC-Council Dark
Publisher: Pujari NiteeshThemes in package: 1
Dark theme for EC-Council research and CTF development.
Dark theme for EC-Council research and CTF development.
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, comment.block, comment.line | #4a5568 | italic |
| string, string.quoted, string.template, string.interpolated, string.regexp, meta.template.expression | #9fef00 | — |
| constant.character.escape, constant.other.placeholder | #ff8c42 | — |
| keyword.control, keyword.control.flow, keyword.control.import, keyword.other, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.wordlike | #bd93f9 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, punctuation.separator, punctuation.accessor | #e2e8f0 | — |
| storage.type, storage.modifier, keyword.declaration, keyword.declaration.function, keyword.declaration.class | #f4c430 | bold |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #00d4ff | — |
| entity.name.function, support.function, meta.function-call, meta.method-call entity.name.function | #9fef00 | bold |
| entity.name.class, entity.name.type.class, entity.other.inherited-class, support.class | #f4c430 | — |
| variable.parameter, entity.name.variable.parameter, meta.function.parameters variable.other | #ff8c42 | — |
| constant.language, constant.character, constant.other, variable.other.constant | #e63946 | bold |
| support.type, support.type.primitive, keyword.type | #00d4ff | — |
| meta.decorator, entity.name.function.decorator, punctuation.definition.decorator | #bd93f9 | italic |
| support.type.exception, invalid, invalid.illegal, meta.embedded invalid | #ff4d5e | bold |
| entity.name.tag, meta.tag.sgml | #e63946 | — |
| entity.other.attribute-name, entity.other.attribute-name.html | #ff8c42 | — |
| support.type.property-name, meta.property-name | #00d4ff | — |
| support.constant.property-value, meta.property-value | #9fef00 | — |
| punctuation.definition.block, punctuation.section.block, meta.brace.round, meta.brace.square | #64748b | — |
| variable, variable.other, variable.other.readwrite | #e2e8f0 | — |
| variable.language.self, variable.language.this, variable.language.super | #bd93f9 | italic |
| support.function.builtin.shell, entity.name.command.shell | #9fef00 | — |
| string.regexp, constant.other.character-class.regexp, constant.character.numeric.regexp | #ff8c42 | — |
| markup.heading, entity.name.section.markdown | #e63946 | bold |
| markup.bold | #f4c430 | bold |
| markup.inline.raw | #9fef00 | — |
| markup.underline.link, string.other.link.title | #00d4ff | — |
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}!`;
}