Dialogue Scenario
Publisher: Ivan GusevThemes in package: 14
Syntax highlighting and Noctis color themes for Dialogue Scenario (.sc/.f) files
Syntax highlighting and Noctis color themes for Dialogue Scenario (.sc/.f) files
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown | #D4D4D4 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #af678d | — |
| constant.language | #F695C6 | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #cec4a8 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #F695C6 | — |
| entity.name.tag.css | #d7ba7d | — |
| entity.other.attribute-name | #9cdcfe | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #d7ba7d | — |
| invalid | #e83c92 | — |
| markup.underline | — | underline |
| markup.bold | #F695C6 | bold |
| markup.heading | #F695C6 | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #cec4a8 | — |
| markup.deleted | #e99a9a | — |
| markup.changed | #F695C6 | — |
| punctuation.definition.quote.begin.markdown | #6A9955 | — |
| punctuation.definition.list.begin.markdown | #6796e6 | — |
| markup.inline.raw | #e99a9a | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor, entity.name.function.preprocessor | #F695C6 | — |
| meta.preprocessor.string | #e99a9a | — |
| meta.preprocessor.numeric | #cec4a8 | — |
| meta.structure.dictionary.key.python | #9cdcfe | — |
| meta.diff.header | #F695C6 | — |
| storage | #F695C6 | — |
| storage.type | #F695C6 | — |
| storage.modifier, keyword.operator.noexcept | #F695C6 | — |
| string, meta.embedded.assembly | #e99a9a | — |
| string.tag | #e99a9a | — |
| string.value | #e99a9a | — |
| string.regexp | #d16969 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #F695C6 | — |
| meta.template.expression | #d4d4d4 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #c0caf5 | — |
| keyword | #d1b7f1 | — |
| keyword.control | #d1b7f1 | — |
| keyword.operator | #d4d4d4 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #F695C6 | — |
| keyword.other.unit | #cec4a8 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #F695C6 | — |
| support.function.git-rebase | #9cdcfe | — |
| constant.sha.git-rebase | #cec4a8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #d4d4d4 | — |
| variable.language | #F695C6 | — |
| keyword.control.state-theme.ds | #e83c92 | — |
| support.type.property-name.q.ds | #F695C6 | — |
| support.type.property-name.answer.ds | #d1b7f1 | — |
| support.type.property-name.qa.ds | #9cdcfe | — |
| support.type.property-name.reaction.ds | #d1b7f1 | — |
| string.unquoted.answer-text.ds | #cec4a8 | — |
| keyword.other.go.ds | #d7ba7d | — |
| keyword.other.go-immediate.ds | #e83c92 | bold |
| keyword.other.action.ds | #d7ba7d | — |
| keyword.other.button.ds | #F695C6 | — |
| keyword.control.flow.ds | #9cdcfe | — |
| keyword.control.if-else.ds | #e83c92 | italic |
| keyword.other.integration.ds | #9cdcfe | — |
| keyword.other.modifier.ds | #d7ba7d | — |
| support.type.property-name.data.ds | #F695C6 | — |
| keyword.other.form.ds | #d1b7f1 | — |
| punctuation.definition.group.begin.ds | #e83c92 | — |
| punctuation.definition.group.end.ds | #e83c92 | — |
| meta.group.alternatives.ds | #e83c92 | — |
| punctuation.definition.optional.begin.ds | #d1b7f1 | — |
| punctuation.definition.optional.end.ds | #d1b7f1 | — |
| meta.group.optional.ds | #d1b7f1 | — |
| punctuation.definition.permutation.begin.ds | #d7ba7d | — |
| punctuation.definition.permutation.end.ds | #d7ba7d | — |
| meta.group.permutation.ds | #d7ba7d | — |
| keyword.operator.wildcard.ds | #e83c92 | — |
| keyword.operator.wildcard.suffix.ds | #5ad4e6 | — |
| keyword.operator.wildcard.prefix.ds | #5ad4e6 | — |
| punctuation.separator.path.ds | #3a5fa8 | — |
| string.other.path.segment-1.ds | #6796e6 | — |
| string.other.path.segment-2.ds | #88aeec | — |
| string.other.path.segment-3.ds | #a9c6f2 | — |
| string.other.path.segment-4.ds | #c0d1f5 | — |
| keyword.operator.fromstate.ds | #9cdcfe | — |
| comment.line.number-sign.ds | #af678d | italic |
| constant.numeric.state-number.ds | #d7ba7d | — |
| variable.other.named-pattern.ds | #e83c92 | — |
| variable.other.answer.ds | #cec4a8 | — |
| support.class.data-object.ds | #9cdcfe | — |
| string.quoted.ds | #cec4a8 | — |
| constant.character.escape.ds | #e83c92 | — |
| punctuation.separator.pipe.ds | #d7ba7d | — |
| meta.embedded.block.ds-script | #c9a870 | — |
| support.class.data-object.script.ds | #f0c060 | bold |
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}!`;
}