hapsida.securisec
Publisher: securisecThemes in package: 18
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 |
|---|---|---|
| keyword.operator.type, keyword.operator.logical | #ed858a | |
| keyword.control.conditional | #eda685 | |
| entity.name.type.class | #eda685 | italic |
| variable.parameter | #eda685 | italic |
| constant.language.boolean | #ed858a | |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #85b8ed | — |
| keyword.control.export | #ed858a | italic |
| support.variable.object, support.variable.property | #85edb3 | italic |
| entity.name.tag.yaml | #eda685 | italic |
| comment, punctuation.definition.comment | #6d8996 | italic |
| variable.other.assignment, variable, string constant.other.placeholder | #e8ddc3 | — |
| constant.other.color | #ffffff | — |
| invalid, invalid.illegal | #F687B3 | — |
| storage.type, storage.modifier, keyword | #85edb3 | italic |
| keyword.operator | #ed858a | |
| keyword.control | #ed858a | bold |
| constant.other.color, 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 | #eda685 | italic |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #85b8ed | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #85b8ed | — |
| meta.block, variable.other | #e8e8e8 | — |
| support.other.variable, string.other.link | #85b8ed | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, keyword.other.unit, keyword.other | #85edb3 | — |
| 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, string.quoted.double.json | #85e8ed | — |
| support.class.builtin, entity.name.type | #eda685 | — |
| entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #85edb3 | — |
| support.type | #B2CCD6 | — |
| 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 | #85e8ed | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #f8bbd0 | — |
| variable.language | #f8bbd0 | italic |
| entity.name.method.js | #74dff5 | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #85edb3 | — |
| meta.tag.block.any.html, source.vue, entity.name.tag.block.any.html | #85edb3 | italic |
| entity.other.attribute-name | #eda685 | italic |
| entity.other.attribute-name.class | #fff0a6 | — |
| source.sass keyword.control | #74dff5 | — |
| markup.inserted | #C3E88D | — |
| markup.deleted | #f8bbd0 | — |
| markup.changed | #eda685 | — |
| string.regexp | #89DDFF | — |
| constant.character.escape | #89DDFF | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #74dff5 | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #f8bbd0 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #ed858a | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #85b8ed | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #85edb3 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #85b8ed | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #eda685 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #ed858a | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #85b8ed | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #eda685 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #85edb3 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #e8e8e8 | — |
| text.html.markdown markup.inline.raw.markdown | #eda685 | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #65737E | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #C3E88D | — |
| markup.italic | #85b8ed | italic |
| markup.bold, markup.bold string | #85b8ed | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #85b8ed | bold |
| markup.underline | #85edb3 | underline |
| markup.quote punctuation.definition.blockquote.markdown | #65737E | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #74dff5 | — |
| string.other.link.description.title.markdown | #eda685 | — |
| constant.other.reference.link.markdown | #fff0a6 | — |
| markup.raw.block | #eda685 | — |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #EEFFFF | — |
| variable.language.fenced.markdown | #65737E | — |
| meta.separator | #65737E | bold |
| markup.table | #EEFFFF | — |
| constant.other.placeholder.go | #85edb3 | — |
| meta.item-access.python | #85edb3 | — |
| meta.function-call.arguments.python | #85edb3 | — |
| variable.language.special.self.python | #ffccbc | italic |
| support.type.python | #a4eaf8 | — |
| string.quoted.docstring.multi.python | #6d8996 | italic |
| entity.name.tag.other.html | #eda685 | — |
| support.function.builtin | #eda685 | — |
| meta.function-call.generic | #fffde7 | — |
| constant.character.set.regexp | #85edb3 | — |
| constant.other.set.regexp | #6ff9ff | — |
| keyword.operator.quantifier.regexp | #ffee58 | |
| constant.other.character-class.regexp | #c6ff00 | |
| punctuation.parenthesis.begin.regexp, punctuation.parenthesis.end.regexp, punctuation.parenthesis.non-capturing.begin.regexp, punctuation.parenthesis.non-capturing.end.regexp, keyword.operator.disjunction.regexp | #ff7043 | |
| support.other.escape.special.regexp | #b2ff59 | |
| keyword.operator.negation.regexp, keyword.operator.disjunction.regexp, keyword.control.anchor.regexp | #ff6e40 | |
| meta.assertion.negative-look-ahead.regexp, meta.assertion.negative-look-behind.regexp, meta.assertion.look-ahead.regexp, meta.assertion.look-behind.regexp | #eda685 | — |
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}!`;
}