IOLOII-Theme
Publisher: IOLOIIThemes in package: 1
🙏非常感谢对这个主题的喜爱,但是这个主题今后在 IOLOII.Oh-Theme 中维护,请在插件商店下载并安装最新版本
🙏非常感谢对这个主题的喜爱,但是这个主题今后在 IOLOII.Oh-Theme 中维护,请在插件商店下载并安装最新版本
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, string.comment | #6A737D | — |
| constant, entity.name.constant, variable.other.constant, variable.language | #79B8FF | — |
| entity.name | #00ffa6 | — |
| entity | #ff6369 | — |
| variable.parameter.function | #E1E4E8 | — |
| entity.name.tag | #00ffa6 | — |
| keyword | #F97583 | — |
| storage, storage.type | #ff6369 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #E1E4E8 | — |
| string, punctuation.definition.string, string punctuation.section.embedded source | #98c2f8dc | — |
| support | #79B8FF | — |
| meta.property-name | #79B8FF | — |
| variable | #FFAB70 | — |
| variable.other | #E1E4E8 | — |
| invalid.broken | #FDAEB7 | italic |
| invalid.deprecated | #FDAEB7 | italic |
| invalid.illegal | #FDAEB7 | italic |
| invalid.unimplemented | #FDAEB7 | italic |
| carriage-return | #24292E | italic underline |
| message.error | #FDAEB7 | — |
| string source | #E1E4E8 | — |
| string variable | #79B8FF | — |
| source.regexp, string.regexp | #DBEDFF | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #DBEDFF | — |
| string.regexp constant.character.escape | #85E89D | bold |
| support.constant | #79B8FF | — |
| support.variable | #79B8FF | — |
| meta.module-reference | #79B8FF | — |
| punctuation.definition.list.begin.markdown | #FFAB70 | — |
| markup.heading, markup.heading entity.name | #79B8FF | bold |
| markup.quote | #85E89D | — |
| markup.italic | #E1E4E8 | italic |
| markup.bold | #E1E4E8 | bold |
| markup.raw | #79B8FF | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #FDAEB7 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #85E89D | — |
| markup.changed, punctuation.definition.changed | #FFAB70 | — |
| markup.ignored, markup.untracked | #2F363D | — |
| meta.diff.range | #B392F0 | bold |
| meta.diff.header | #79B8FF | — |
| meta.separator | #79B8FF | bold |
| meta.output | #79B8FF | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #D1D5DA | — |
| brackethighlighter.unmatched | #FDAEB7 | — |
| constant.other.reference.link, string.other.link | #DBEDFF | underline |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| comment.block.documentation variable | #FFB86C | italic |
| variable.parameter | #ffe669 | italic |
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}!`;
}