枫原万叶印象主题 · 枫
Publisher: XiaoShiThemes in package: 1
一款枫原万叶印象主题
一款枫原万叶印象主题
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 | #505050 | italic |
| comment.block.preprocessor | #505050 | |
| comment.documentation, comment.block.documentation | #357a1a | — |
| constant.character.escape | #FF0000 | bold |
| invalid.illegal | #9d0000 | — |
| keyword.operator | #016f75 | — |
| keyword, storage | #00747a | — |
| storage.type, support.type | #940000 | — |
| constant.language, support.constant, variable.language | #006b69 | — |
| variable, support.variable | #430069 | — |
| entity.name.function, support.function | #a92923 | bold |
| entity.name.type, entity.other.inherited-class, support.class | #a04300 | bold |
| entity.name.exception | #9d0000 | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #305100 | — |
| string | #004669 | — |
| constant.character.escape | #8B5E00 | bold |
| variable.parameter | #006b69 | — |
| string.regexp | #4B83CD | — |
| constant.other.symbol | #AB6526 | — |
| punctuation | #2e2e2e | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #939393 | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #808080 | — |
| entity.name.tag | #024398 | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #c84f0a | italic |
| constant.character.entity, punctuation.definition.entity | #d23a26 | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #67433f | — |
| meta.property-name, support.type.property-name | #0a4b7a | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #19767d | — |
| keyword.other.important | #ff0000 | bold |
| markup.changed | #009180 | — |
| markup.deleted | #c80000 | — |
| markup.italic | — | italic |
| markup.error | #ef0000 | — |
| markup.inserted | #00752b | — |
| meta.link | #3775c6 | underline |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #605e5e | — |
| markup.heading | #AA3731 | — |
| markup.bold | — | bold |
| markup.traceback | #660000 | — |
| markup.underline | — | underline |
| markup.quote | #6600a1 | — |
| markup.list | #39649b | — |
| markup.inline.raw | #a25614 | |
| meta.diff.range, meta.diff.index, meta.separator | #434343 | — |
| meta.diff.header.from-file | #434343 | — |
| meta.diff.header.to-file | #434343 | — |
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}!`;
}