Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions services/site/script/css-variants-plugin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
// Production CSS plugins shared by the site's build (vite.config.ts) and the docs' own build
// (src/docs/script/build.ts), so both ship the same stylesheets for the same settings.
import type { PluginOption } from "vite"
import variants from "../src/component/site/css-variants.json"

/**
* Production only: a stylesheet named *.dev.css is for development tools (Settings, Design mode) and
* builds empty, so its rules never reach a page's render-blocking CSS.
*/
export function devOnlyCss(): PluginOption {
return {
name: "dev-only-css",
apply: "build",
enforce: "pre",
load: (id) => (/\.dev\.css(\?|$)/.test(id) ? "" : undefined),
}
}

/**
* Production only: Settings and Design mode are development tools, so the site root's settings
* attributes always carry the default settings' values (src/component/site/css-variants.json). This
* drops, from the production CSS, each selector that needs another value of one of them, and each
* rule left with none; the development server keeps every variant for Design mode. Only attributes
* outside parentheses count (an attribute inside :not(), :is() or :has() keeps its selector).
*/
export function cssVariantsForProduction(): PluginOption {
const fixed = variants as Record<string, string | null>
const impossible = (selector: string) => {
let depth = 0
let top = ""
for (const char of selector) {
if (char === "(") depth++
if (depth === 0) top += char
if (char === ")") depth--
}
return [...top.matchAll(/\[(data-[\w-]+)(~?=)["']?([^"'\]]*)["']?\]/g)].some((match) => {
if (!(match[1] in fixed)) return false
const value = fixed[match[1]]
if (value === null) return true
return match[2] === "~=" ? !value.split(" ").includes(match[3]) : value !== match[3]
})
}
const split = (selector: string) => {
const parts: string[] = []
let depth = 0
let quote = ""
let start = 0
for (let i = 0; i < selector.length; i++) {
const char = selector[i]
if (quote) {
if (char === quote) quote = ""
continue
}
if (char === '"' || char === "'") quote = char
else if (char === "(" || char === "[") depth++
else if (char === ")" || char === "]") depth--
else if (char === "," && depth === 0) {
parts.push(selector.slice(start, i))
start = i + 1
}
}
return [...parts, selector.slice(start)]
}
return {
name: "css-variants-for-production",
apply: "build",
config: () => ({
css: {
postcss: {
plugins: [
{
postcssPlugin: "css-variants-for-production",
Rule(rule: { selector: string; remove(): void }) {
const selectors = split(rule.selector)
const kept = selectors.filter((selector) => !impossible(selector))
if (kept.length === selectors.length) return
if (!kept.length) return rule.remove()
rule.selector = kept.join(",")
},
},
],
},
},
}),
}
}
2 changes: 1 addition & 1 deletion services/site/script/css-variants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Writes src/component/site/css-variants.json: each settings attribute and the one value production
// renders for it (the default settings; null when it is left off). vite.config.ts drops, from the
// renders for it (the default settings; null when it is left off). script/css-variants-plugin.ts drops, from the
// production CSS only, every rule that needs another value. Run after changing a setting's default
// or adding a settings attribute; test/css-variants.test.ts fails while the file is out of date.
import path from "node:path"
Expand Down
33 changes: 24 additions & 9 deletions services/site/script/docs-file-icons.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
// Writes src/component/site/docs-file-icons.ts: the file-type icons the docs use, cut from the
// desktop app's sprite (@opencode/ui), so the site bundles a dozen icons instead of 1,089.
// The names come from the shared mapping (chooseIconName) applied to every code block title in
// the docs content and the filenames on /dev/docs-components, plus each icon's _light variant.
// The names come from the shared mapping (chooseIconName) applied to every code block title and
// every file and folder in a file tree ("├── name" lines) in the docs content, and the filenames on
// /dev/docs-components, plus each icon's _light variant.
// Run after adding a new kind of file to the docs: bun script/docs-file-icons.ts
import { chooseIconName } from "@opencode/ui/icons/file-type-name"
import { readdirSync } from "node:fs"
import path from "node:path"

const app = path.resolve(import.meta.dir, "..")
const content = path.resolve(app, "src/docs/content")
const sprite = await Bun.file(path.resolve(app, "../../ui/src/components/file-icons/sprite.svg")).text()
const sprite = await Bun.file(path.resolve(app, "../../packages/ui/src/components/file-icons/sprite.svg")).text()

const walk = (dir: string): string[] =>
readdirSync(dir, { withFileTypes: true }).flatMap((entry) =>
Expand All @@ -19,20 +20,34 @@ const walk = (dir: string): string[] =>
? [path.join(dir, entry.name)]
: [],
)
const titles = (
await Promise.all(
walk(content).map(async (file) => [...(await Bun.file(file).text()).matchAll(/```\w*\s+title="([^"]+)"/g)]),
)
const sources = await Promise.all(walk(content).map((file) => Bun.file(file).text()))
const titles = sources.flatMap((text) =>
[...text.matchAll(/```\w*\s+title="([^"]+)"/g)].map((match) => match[1].replace(/ \(excerpt\)$/, "")),
)
.flat()
.map((match) => match[1])
// File trees: the name after the "├── " prefix, without the note after it (two spaces or "←").
const tree = sources
.flatMap((text) => [...text.matchAll(/```text\n([\s\S]*?)```/g)].map((match) => match[1]))
.filter((block) => /[├└]──/.test(block))
.flatMap((block) => block.split("\n"))
.map((line) => line.replace(/^[│├└─\s]+/, "").replace(/(\s{2,}|\s+←).*$/, ""))
.filter(Boolean)
.flatMap((name) =>
name
.replace(/\/$/, "")
.split("/")
.map((part, index, parts) => ({
name: part,
directory: index < parts.length - 1 || name.endsWith("/"),
})),
)
// Filenames and folders shown on the site that aren't titles in the docs content.
const site = [".env", ".github/workflows/opencode.yml", "mise.toml", "install.sh", "count-lines.ts", "release.md"]
const folders = [".opencode", "agents", "commands", "plugins", "tools", ".github", "workflows"]

const names = new Set([
...[...titles, ...site].map((name) => chooseIconName(name, "file", false)),
...folders.map((name) => chooseIconName(name, "directory", false)),
...tree.map((entry) => chooseIconName(entry.name, entry.directory ? "directory" : "file", false)),
// The fallbacks.
chooseIconName("unknown", "file", false),
chooseIconName("unknown", "directory", false),
Expand Down
2 changes: 1 addition & 1 deletion services/site/script/fold-settings.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Production only: Settings and Design mode are development tools, so a production page always
// renders the default settings (settings-defaults.json) with Design mode off. This is the JavaScript
// counterpart of cssVariantsForProduction() in vite.config.ts: before Solid compiles a module, it
// counterpart of cssVariantsForProduction() (script/css-variants-plugin.ts): before Solid compiles a module, it
// reads every `siteSettings.<key>` as the default's literal, `designMode()` as false and
// `import.meta.env.DEV` as false, then folds what that decides (`<Show>`, `<Switch>`/`<Match>`,
// ternaries, `&&`/`||`, `if`), so the branches production never takes, and everything only they
Expand Down
14 changes: 10 additions & 4 deletions services/site/src/component/site/code-frame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export function CodeFrame(props: {
copy?: string
/** A different terminal mark, for the icon options in the code gallery. */
icon?: "window" | "prompt" | "titlebar"
/** The block's language, which the funnel reports with a copy (data-funnel-method). */
method?: string
children: JSX.Element
}) {
return (
Expand All @@ -26,7 +28,7 @@ export function CodeFrame(props: {
<Show when={props.kind === "file" && props.label}>{(label) => <FileTypeIcon path={label()} />}</Show>
{props.label}
</span>
<Show when={props.copy}>{(text) => <CopyButton text={text()} />}</Show>
<Show when={props.copy}>{(text) => <CopyButton text={text()} method={props.method} />}</Show>
</div>
{props.children}
</div>
Expand All @@ -37,9 +39,10 @@ export function CodeFrame(props: {
* Copy with visible feedback, text only: "Copy" turns to "Copied" for 1.5s (or "Failed" when the
* clipboard refuses), and a polite live region says what happened. The three labels share one
* right-aligned grid cell, so the button keeps the longest label's width and the text's right edge
* never moves.
* never moves. Pages that never hydrate (the docs) copy `data-code` from a delegated listener and
* set `data-state` themselves (src/docs/client.ts).
*/
export function CopyButton(props: { text: string; slot?: "code-copy" | "copy" }) {
export function CopyButton(props: { text: string; slot?: "code-copy" | "copy"; method?: string }) {
const i18n = useI18n()
const [state, setState] = createSignal<"idle" | "copied" | "failed">("idle")
let timer: ReturnType<typeof setTimeout> | undefined
Expand All @@ -49,8 +52,9 @@ export function CopyButton(props: { text: string; slot?: "code-copy" | "copy" })
clearTimeout(timer)
timer = setTimeout(() => setState("idle"), 1500)
}
const text = () => props.text.replace(/^\$ /gm, "")
const copy = () => {
const write = navigator.clipboard?.writeText(props.text.replace(/^\$ /gm, ""))
const write = navigator.clipboard?.writeText(text())
if (!write) return show("failed")
write.then(
() => show("copied"),
Expand All @@ -64,6 +68,8 @@ export function CopyButton(props: { text: string; slot?: "code-copy" | "copy" })
data-slot={props.slot ?? "code-copy"}
data-state={state()}
data-funnel-copy="snippet"
data-funnel-method={props.method}
data-code={text()}
aria-label={i18n.t("site.code.copy")}
onClick={copy}
>
Expand Down
21 changes: 17 additions & 4 deletions services/site/src/component/site/docs-file-icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ export const docsFileIcons: Partial<Record<IconName, string>> = {
Json: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path fill="#f9a825" d="M560-160v-80h120q17 0 28.5-11.5T720-280v-80q0-38 22-69t58-44v-14q-36-13-58-44t-22-69v-80q0-17-11.5-28.5T680-720H560v-80h120q50 0 85 35t35 85v80q0 17 11.5 28.5T840-560h40v160h-40q-17 0-28.5 11.5T800-360v80q0 50-35 85t-85 35zm-280 0q-50 0-85-35t-35-85v-80q0-17-11.5-28.5T120-400H80v-160h40q17 0 28.5-11.5T160-600v-80q0-50 35-85t85-35h120v80H280q-17 0-28.5 11.5T240-680v80q0 38-22 69t-58 44v14q36 13 58 44t22 69v80q0 17 11.5 28.5T280-240h120v80z" ></path></svg>',
Document:
'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path d="M0 0h24v24H0z"></path><path fill="#42a5f5" d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z" ></path></svg>',
Typescript:
'<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 16 16"><path fill="#0288d1" d="M2 2v12h12V2zm4 6h3v1H8v4H7V9H6zm5 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1" ></path></svg>',
React_ts:
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#0288d1" d="M16 12c7.444 0 12 2.59 12 4s-4.556 4-12 4-12-2.59-12-4 4.556-4 12-4m0-2c-7.732 0-14 2.686-14 6s6.268 6 14 6 14-2.686 14-6-6.268-6-14-6" ></path><path fill="#0288d1" d="M16 14a2 2 0 1 0 2 2 2 2 0 0 0-2-2"></path><path fill="#0288d1" d="M10.458 5.507c2.017 0 5.937 3.177 9.006 8.493 3.722 6.447 3.757 11.687 2.536 12.392a.9.9 0 0 1-.457.1c-2.017 0-5.938-3.176-9.007-8.492C8.814 11.553 8.779 6.313 10 5.608a.9.9 0 0 1 .458-.1m-.001-2A2.87 2.87 0 0 0 9 3.875C6.13 5.532 6.938 12.304 10.804 19c3.284 5.69 7.72 9.493 10.74 9.493A2.87 2.87 0 0 0 23 28.124c2.87-1.656 2.062-8.428-1.804-15.124-3.284-5.69-7.72-9.493-10.74-9.493Z" ></path><path fill="#0288d1" d="M21.543 5.507a.9.9 0 0 1 .457.1c1.221.706 1.186 5.946-2.536 12.393-3.07 5.316-6.99 8.493-9.007 8.493a.9.9 0 0 1-.457-.1C8.779 25.686 8.814 20.446 12.536 14c3.07-5.316 6.99-8.493 9.007-8.493m0-2c-3.02 0-7.455 3.804-10.74 9.493C6.939 19.696 6.13 26.468 9 28.124a2.87 2.87 0 0 0 1.457.369c3.02 0 7.455-3.804 10.74-9.493C25.061 12.304 25.87 5.532 23 3.876a2.87 2.87 0 0 0-1.457-.369" ></path></svg>',
Nodejs:
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#8bc34a" d="M16 20.003v2h4a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2h-2v-2h4v-2h-4a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2v2Z" ></path><path fill="#8bc34a" d="m16 3.003-12 7v14l4 2h6v-13.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v11.5H8l-2-1.034V11.15l10-5.833 10 5.833v11.703l-10 5.833-1.745-1.022L13 29.253l3 1.75 12-7v-14Z" ></path></svg>',
Typescript:
'<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 16 16"><path fill="#0288d1" d="M2 2v12h12V2zm4 6h3v1H8v4H7V9H6zm5 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1" ></path></svg>',
Vite: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#ffab00" d="M10 2v16h4v12l9-16h-6l5-12Z"></path></svg>',
Readme:
'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path d="M0 0h24v24H0z"></path><path fill="#42a5f5" d="M8 1C4.136 1 1 4.136 1 8s3.136 7 7 7 7-3.136 7-7-3.136-7-7-7m1 11H7V7.5h2zm0-6H7V4h2z" ></path></svg>',
Tune: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#fbc02d" d="M12 10h10v2H12z"></path><path fill="#fbc02d" d="M16 4h2v8h-2zm4 18h10v2H20zm4 2h2v4h-2zm0-20h2v14h-2zM2 18h10v2H2z"></path><path fill="#fbc02d" d="M6 18h2v10H6zM6 4h2v10H6zm10 12h2v12h-2z"></path></svg>',
Yaml: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#ff5252" d="M13 9h5.5L13 3.5zM6 2h8l6 6v12c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2m12 16v-2H9v2zm-4-4v-2H6v2z" ></path></svg>',
Toml: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#cfd8dc" d="M4 6V4h8v2H9v7H7V6z"></path><path fill="#ef5350" d="M4 1v1H2v12h2v1H1V1zm8 0v1h2v12h-2v1h3V1z"></path></svg>',
Yaml: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#ff5252" d="M13 9h5.5L13 3.5zM6 2h8l6 6v12c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2m12 16v-2H9v2zm-4-4v-2H6v2z" ></path></svg>',
Tune: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#fbc02d" d="M12 10h10v2H12z"></path><path fill="#fbc02d" d="M16 4h2v8h-2zm4 18h10v2H20zm4 2h2v4h-2zm0-20h2v14h-2zM2 18h10v2H2z"></path><path fill="#fbc02d" d="M6 18h2v10H6zM6 4h2v10H6zm10 12h2v12h-2z"></path></svg>',
Console:
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#ff7043" d="M20 19V7H4v12zm0-16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-7 14v-2h5v2zm-3.42-4L5.57 9H8.4l3.3 3.3c.39.39.39 1.03 0 1.42L8.42 17H5.59z" ></path></svg>',
Folder:
Expand All @@ -26,6 +29,16 @@ export const docsFileIcons: Partial<Record<IconName, string>> = {
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="currentColor" d="m13.844 7.536-1.288-1.072A2 2 0 0 0 11.276 6H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H15.124a2 2 0 0 1-1.28-.464" ></path><path fill="#eceff1" d="M23 10a9.03 9.03 0 0 0-9 9.063 9.08 9.08 0 0 0 6.157 8.609c.45.072.593-.21.593-.453v-1.532c-2.493.544-3.024-1.214-3.024-1.214a2.42 2.42 0 0 0-.998-1.333c-.82-.561.062-.544.062-.544a1.9 1.9 0 0 1 1.377.933 1.925 1.925 0 0 0 2.62.754 1.96 1.96 0 0 1 .566-1.215c-1.998-.227-4.094-1.007-4.094-4.459a3.52 3.52 0 0 1 .927-2.456 3.26 3.26 0 0 1 .09-2.392s.754-.245 2.474.924a8.6 8.6 0 0 1 4.5 0c1.718-1.169 2.476-.924 2.476-.924a3.26 3.26 0 0 1 .088 2.392 3.52 3.52 0 0 1 .927 2.456c0 3.462-2.105 4.223-4.112 4.45a2.17 2.17 0 0 1 .622 1.676v2.484c0 .244.143.533.602.453A9.08 9.08 0 0 0 23 10" ></path></svg>',
FolderGhWorkflows:
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="currentColor" d="m13.844 7.536-1.288-1.072A2 2 0 0 0 11.276 6H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H15.124a2 2 0 0 1-1.28-.464" ></path><path fill="#eceff1" d="M24 22v2h-2a2 2 0 0 1-2-2v-4h2v-6h-6v6h2v4a4.004 4.004 0 0 0 4 4h2v2h6v-6Zm-6-6v-2h2v2Zm10 10h-2v-2h2Z" ></path></svg>',
FolderPackages:
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#1e88e5" d="m13.844 7.536-1.288-1.072A2 2 0 0 0 11.276 6H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H15.124a2 2 0 0 1-1.28-.464" ></path><path fill="#bbdefb" d="M31.2 12.933 29.6 10.8A2 2 0 0 0 28 10h-8a2 2 0 0 0-1.6.8l-1.6 2.133a4 4 0 0 0-.8 2.4V26a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V15.333a4 4 0 0 0-.8-2.4M20 12h8l1.5 2h-11Zm6 10v4h-4v-4h-4l6-6 6 6Z" ></path></svg>',
FolderSrc:
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#4caf50" d="m13.844 7.536-1.288-1.072A2 2 0 0 0 11.276 6H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H15.124a2 2 0 0 1-1.28-.464" ></path><path fill="#c8e6c9" d="M18.435 30a1 1 0 0 1-.238-.028 1.137 1.137 0 0 1-.828-1.323l3.093-15.744a1.13 1.13 0 0 1 .507-.744 1.06 1.06 0 0 1 .8-.134 1.14 1.14 0 0 1 .828 1.324l-3.1 15.744a1.12 1.12 0 0 1-.505.743 1.06 1.06 0 0 1-.557.162m6.2-2h-.077a1.08 1.08 0 0 1-.762-.412 1.164 1.164 0 0 1 .113-1.548l5.32-4.967-5.297-4.623a1.165 1.165 0 0 1-.162-1.544 1.08 1.08 0 0 1 .754-.437 1.06 1.06 0 0 1 .81.258l6.244 5.455a1.156 1.156 0 0 1 .004 1.723l-6.22 5.808a1.07 1.07 0 0 1-.728.289Zm-9.31 0a1.07 1.07 0 0 1-.728-.292l-6.225-5.811a1.16 1.16 0 0 1-.01-1.692l.02-.018 6.246-5.454a1.03 1.03 0 0 1 .8-.26 1.08 1.08 0 0 1 .758.436 1.165 1.165 0 0 1-.16 1.547l-5.293 4.62 5.32 4.964a1.156 1.156 0 0 1 .112 1.548 1.07 1.07 0 0 1-.762.412Z" ></path></svg>',
Javascript:
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#ffca28" d="M2 2v12h12V2zm6 6h1v4a1.003 1.003 0 0 1-1 1H7a1.003 1.003 0 0 1-1-1v-1h1v1h1zm3 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1" ></path></svg>',
FolderScripts:
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="currentColor" d="m13.844 7.536-1.288-1.072A2 2 0 0 0 11.276 6H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H15.124a2 2 0 0 1-1.28-.464" ></path><path fill="#cfd8dc" d="M28 12h-6a4 4 0 0 0-4 4v8h2v-8h8v9.893a2.074 2.074 0 0 1-1.664 2.08A2 2 0 0 1 24 26h-8a4 4 0 0 0 4 4h6a4 4 0 0 0 4-4V16h2a4 4 0 0 0-4-4" ></path></svg>',
FolderI18n:
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#5c6bc0" d="m13.844 7.536-1.288-1.072A2 2 0 0 0 11.276 6H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H15.124a2 2 0 0 1-1.28-.464" ></path><path fill="#c5cae9" d="m22.79 23.762-2.308-2.259.027-.026a15.7 15.7 0 0 0 3.373-5.877h2.663v-1.8h-6.363V12h-1.819v1.8H12v1.8h10.155a14.2 14.2 0 0 1-2.882 4.814 14 14 0 0 1-2.1-3.014h-1.819a15.8 15.8 0 0 0 2.71 4.103l-4.629 4.518 1.292 1.278 4.545-4.5 2.828 2.799zm5.12-4.562h-1.82L22 30h1.818l1.017-2.7h4.32l1.025 2.699H32zm-2.384 6.3L27 21.602l1.473 3.897Z" ></path></svg>',
Toml_light:
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#455a64" d="M4 6V4h8v2H9v7H7V6z"></path><path fill="#ef5350" d="M4 1v1H2v12h2v1H1V1zm8 0v1h2v12h-2v1h3V1z"></path></svg>',
}
Loading
Loading