Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e490bc35b8 | ||
|
|
496058cc15 | ||
|
|
4ee46673af | ||
|
|
5a46f4b87c | ||
|
|
875e8a2d06 | ||
|
|
e006a171c1 | ||
|
|
606706e8e0 |
35
docs/.vitepress/api/gh-icon/stroke-width/[...data].get.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import { eventHandler, setResponseHeader, defaultContentType } from 'h3'
|
||||
import { renderToString } from 'react-dom/server'
|
||||
import { createElement } from 'react'
|
||||
import SvgPreview from '../../../lib/SvgPreview/index.tsx';
|
||||
import createLucideIcon, { IconNode } from 'lucide-react/src/createLucideIcon'
|
||||
import { parseSync } from 'svgson';
|
||||
|
||||
export default eventHandler((event) => {
|
||||
const { params } = event.context
|
||||
|
||||
const [strokeWidth, svgData] = params.data.split('/');
|
||||
const data = svgData.slice(0, -4);
|
||||
|
||||
const src = Buffer.from(data, 'base64').toString('utf8');
|
||||
|
||||
const Icon = createLucideIcon(
|
||||
'icon',
|
||||
parseSync(src.includes('<svg') ? src : `<svg>${src}</svg>`).children.map(
|
||||
({ name, attributes }) => [name, attributes]
|
||||
) as IconNode
|
||||
);
|
||||
|
||||
const svg = Buffer.from(
|
||||
// We can't use jsx here, is not supported here by nitro.
|
||||
renderToString(createElement(Icon, { strokeWidth })).replace(
|
||||
/>/,
|
||||
'><style>@media screen and (prefers-color-scheme: dark) { svg { stroke: #fff } }</style>'
|
||||
)
|
||||
).toString('utf8');
|
||||
|
||||
defaultContentType(event, 'image/svg+xml')
|
||||
setResponseHeader(event, 'Cache-Control', 'public,max-age=31536000')
|
||||
|
||||
return svg
|
||||
})
|
||||
@@ -16,7 +16,7 @@
|
||||
"postbuild:vercelJson": "node ../scripts/writeVercelOutput.mjs",
|
||||
"dev": "npx nitropack dev",
|
||||
"build:api": "npx nitropack build",
|
||||
"prebuild": "pnpm build:iconNodes && pnpm build:metaJson && pnpm build:releaseJson && pnpm build:relatedIcons && pnpm build:iconDetails",
|
||||
"prebuild": "pnpm prebuild:iconNodes && pnpm prebuild:metaJson && pnpm prebuild:releaseJson && pnpm prebuild:relatedIcons && pnpm prebuild:iconDetails",
|
||||
"build": "pnpm run \"/^prebuild:.*/\" && pnpm build:api && pnpm build:docs && pnpm postbuild:vercelJson",
|
||||
"preview": "node .output/server/index.mjs"
|
||||
},
|
||||
@@ -47,6 +47,7 @@
|
||||
"shiki-processor": "^0.1.3",
|
||||
"simple-git": "^3.18.0",
|
||||
"svg-pathdata": "^6.0.3",
|
||||
"svgson": "^5.2.1",
|
||||
"vue": "^3.2.47"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,9 +5,19 @@
|
||||
"ericfennis"
|
||||
],
|
||||
"tags": [
|
||||
"reference"
|
||||
"reference",
|
||||
"times",
|
||||
"multiply",
|
||||
"multiplication",
|
||||
"operator",
|
||||
"code",
|
||||
"glob pattern",
|
||||
"wildcard",
|
||||
"*"
|
||||
],
|
||||
"categories": [
|
||||
"text"
|
||||
"text",
|
||||
"maths",
|
||||
"development"
|
||||
]
|
||||
}
|
||||
@@ -10,7 +10,8 @@
|
||||
"mention",
|
||||
"at",
|
||||
"email",
|
||||
"message"
|
||||
"message",
|
||||
"@"
|
||||
],
|
||||
"categories": [
|
||||
"text",
|
||||
|
||||
@@ -10,7 +10,9 @@
|
||||
"code",
|
||||
"token",
|
||||
"curly brackets",
|
||||
"data"
|
||||
"data",
|
||||
"{",
|
||||
"}"
|
||||
],
|
||||
"categories": [
|
||||
"development",
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
"token",
|
||||
"array",
|
||||
"list",
|
||||
"square"
|
||||
"square",
|
||||
"[",
|
||||
"]"
|
||||
],
|
||||
"categories": [
|
||||
"development",
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
"tags": [
|
||||
"pending",
|
||||
"ellipsis",
|
||||
"progress"
|
||||
"progress",
|
||||
"…",
|
||||
"..."
|
||||
],
|
||||
"categories": [
|
||||
"shapes"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
],
|
||||
"tags": [
|
||||
"calculate",
|
||||
"maths",
|
||||
"shape"
|
||||
"shape",
|
||||
"="
|
||||
],
|
||||
"categories": [
|
||||
"maths",
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="m2 2 20 20" />
|
||||
<path d="M8.4 2.7c1.2-.4 2.4-.7 3.7-.7 5.5 0 10 4.5 10 10 0 1.3-.2 2.5-.7 3.6" />
|
||||
<path d="M19.1 19.1C17.3 20.9 14.8 22 12 22 6.5 22 2 17.5 2 12c0-2.7 1.2-5.2 3-7" />
|
||||
<path d="M8.35 2.69A10 10 0 0 1 21.3 15.65" />
|
||||
<path d="M19.08 19.08A10 10 0 1 1 4.92 4.92" />
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 405 B After Width: | Height: | Size: 333 B |
@@ -10,7 +10,8 @@
|
||||
"Ø",
|
||||
"null",
|
||||
"nothing",
|
||||
"maths"
|
||||
"maths",
|
||||
"/"
|
||||
],
|
||||
"categories": [
|
||||
"shapes"
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
"stop",
|
||||
"forbidden",
|
||||
"prohibited",
|
||||
"error"
|
||||
"error",
|
||||
"/"
|
||||
],
|
||||
"categories": [
|
||||
"shapes"
|
||||
|
||||
@@ -10,9 +10,12 @@
|
||||
"remove",
|
||||
"delete",
|
||||
"collapse",
|
||||
"multiple"
|
||||
"subtract",
|
||||
"multiple",
|
||||
"-"
|
||||
],
|
||||
"categories": [
|
||||
"text"
|
||||
"text",
|
||||
"maths"
|
||||
]
|
||||
}
|
||||
@@ -8,9 +8,12 @@
|
||||
"clone",
|
||||
"duplicate",
|
||||
"add",
|
||||
"multiple"
|
||||
"multiple",
|
||||
"expand",
|
||||
"+"
|
||||
],
|
||||
"categories": [
|
||||
"text"
|
||||
"text",
|
||||
"maths"
|
||||
]
|
||||
}
|
||||
@@ -14,9 +14,14 @@
|
||||
"forbidden",
|
||||
"prohibited",
|
||||
"error",
|
||||
"multiple"
|
||||
"multiple",
|
||||
"divide",
|
||||
"division",
|
||||
"split",
|
||||
"/"
|
||||
],
|
||||
"categories": [
|
||||
"text"
|
||||
"text",
|
||||
"maths"
|
||||
]
|
||||
}
|
||||
@@ -10,9 +10,13 @@
|
||||
"delete",
|
||||
"remove",
|
||||
"clear",
|
||||
"multiple"
|
||||
"multiple",
|
||||
"multiply",
|
||||
"multiplication",
|
||||
"times"
|
||||
],
|
||||
"categories": [
|
||||
"notifications"
|
||||
"notifications",
|
||||
"maths"
|
||||
]
|
||||
}
|
||||
@@ -6,7 +6,9 @@
|
||||
],
|
||||
"tags": [
|
||||
"calculate",
|
||||
"maths"
|
||||
"maths",
|
||||
"÷",
|
||||
"/"
|
||||
],
|
||||
"categories": [
|
||||
"maths",
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
],
|
||||
"tags": [
|
||||
"calculate",
|
||||
"maths"
|
||||
"maths",
|
||||
"÷",
|
||||
"/"
|
||||
],
|
||||
"categories": [
|
||||
"maths",
|
||||
|
||||
@@ -6,9 +6,15 @@
|
||||
],
|
||||
"tags": [
|
||||
"calculate",
|
||||
"maths"
|
||||
"maths",
|
||||
"division",
|
||||
"operator",
|
||||
"code",
|
||||
"÷",
|
||||
"/"
|
||||
],
|
||||
"categories": [
|
||||
"maths"
|
||||
"maths",
|
||||
"development"
|
||||
]
|
||||
}
|
||||
@@ -10,12 +10,17 @@
|
||||
"middot",
|
||||
"step",
|
||||
"punctuation",
|
||||
"period",
|
||||
"full stop",
|
||||
"end",
|
||||
"finish",
|
||||
"final",
|
||||
"characters",
|
||||
"font",
|
||||
"typography",
|
||||
"type",
|
||||
"text",
|
||||
"center"
|
||||
"center",
|
||||
"."
|
||||
],
|
||||
"categories": [
|
||||
"shapes",
|
||||
|
||||
@@ -6,9 +6,13 @@
|
||||
"tags": [
|
||||
"calculate",
|
||||
"off",
|
||||
"maths"
|
||||
"maths",
|
||||
"operator",
|
||||
"code",
|
||||
"≠"
|
||||
],
|
||||
"categories": [
|
||||
"maths"
|
||||
"maths",
|
||||
"development"
|
||||
]
|
||||
}
|
||||
@@ -5,9 +5,14 @@
|
||||
],
|
||||
"tags": [
|
||||
"calculate",
|
||||
"maths"
|
||||
"maths",
|
||||
"operator",
|
||||
"assignment",
|
||||
"code",
|
||||
"="
|
||||
],
|
||||
"categories": [
|
||||
"maths"
|
||||
"maths",
|
||||
"development"
|
||||
]
|
||||
}
|
||||
16
icons/file-stack.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"tags": [
|
||||
"versions",
|
||||
"multiple",
|
||||
"copy",
|
||||
"documents",
|
||||
"revisions",
|
||||
"version control",
|
||||
"history"
|
||||
],
|
||||
"categories": [
|
||||
"files",
|
||||
"development"
|
||||
]
|
||||
}
|
||||
16
icons/file-stack.svg
Normal file
@@ -0,0 +1,16 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M16 2v5h5" />
|
||||
<path d="M21 6v6.5c0 .8-.7 1.5-1.5 1.5h-7c-.8 0-1.5-.7-1.5-1.5v-9c0-.8.7-1.5 1.5-1.5H17l4 4z" />
|
||||
<path d="M7 8v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H15" />
|
||||
<path d="M3 12v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H11" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 437 B |
10
icons/goal.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"tags": [
|
||||
"flag",
|
||||
"bullseye"
|
||||
],
|
||||
"categories": [
|
||||
"gaming"
|
||||
]
|
||||
}
|
||||
15
icons/goal.svg
Normal file
@@ -0,0 +1,15 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M12 13V2l8 4-8 4" />
|
||||
<path d="M20.55 10.23A9 9 0 1 1 8 4.94" />
|
||||
<path d="M8 10a5 5 0 1 0 8.9 2.02" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 324 B |
14
icons/key-round.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"tags": [
|
||||
"password",
|
||||
"login",
|
||||
"authentication",
|
||||
"secure",
|
||||
"unlock"
|
||||
],
|
||||
"categories": [
|
||||
"security",
|
||||
"account"
|
||||
]
|
||||
}
|
||||
14
icons/key-round.svg
Normal file
@@ -0,0 +1,14 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z" />
|
||||
<circle cx="16.5" cy="7.5" r=".5" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 322 B |
15
icons/key-square.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"tags": [
|
||||
"password",
|
||||
"login",
|
||||
"authentication",
|
||||
"secure",
|
||||
"unlock",
|
||||
"car key"
|
||||
],
|
||||
"categories": [
|
||||
"security",
|
||||
"account"
|
||||
]
|
||||
}
|
||||
15
icons/key-square.svg
Normal file
@@ -0,0 +1,15 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M12.4 2.7c.9-.9 2.5-.9 3.4 0l5.5 5.5c.9.9.9 2.5 0 3.4l-3.7 3.7c-.9.9-2.5.9-3.4 0L8.7 9.8c-.9-.9-.9-2.5 0-3.4Z" />
|
||||
<path d="m14 7 3 3" />
|
||||
<path d="M9.4 10.6 2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 423 B |
@@ -11,7 +11,11 @@
|
||||
"password",
|
||||
"login",
|
||||
"authentication",
|
||||
"secure"
|
||||
"secure",
|
||||
"unlock",
|
||||
"keychain",
|
||||
"key ring",
|
||||
"fob"
|
||||
],
|
||||
"categories": [
|
||||
"security",
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"tags": [
|
||||
"subtract",
|
||||
"calculate",
|
||||
"maths"
|
||||
"maths",
|
||||
"-"
|
||||
],
|
||||
"categories": [
|
||||
"maths",
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"tags": [
|
||||
"subtract",
|
||||
"calculate",
|
||||
"maths"
|
||||
"maths",
|
||||
"-"
|
||||
],
|
||||
"categories": [
|
||||
"maths",
|
||||
|
||||
@@ -10,11 +10,16 @@
|
||||
"maths",
|
||||
"line",
|
||||
"divide",
|
||||
"division",
|
||||
"horizontal rule",
|
||||
"hr"
|
||||
"hr",
|
||||
"operator",
|
||||
"code",
|
||||
"-"
|
||||
],
|
||||
"categories": [
|
||||
"maths",
|
||||
"shapes"
|
||||
"shapes",
|
||||
"development"
|
||||
]
|
||||
}
|
||||
@@ -6,9 +6,16 @@
|
||||
"tags": [
|
||||
"ellipsis",
|
||||
"menu",
|
||||
"options"
|
||||
"options",
|
||||
"operator",
|
||||
"code",
|
||||
"spread",
|
||||
"rest",
|
||||
"…",
|
||||
"..."
|
||||
],
|
||||
"categories": [
|
||||
"layout"
|
||||
"layout",
|
||||
"development"
|
||||
]
|
||||
}
|
||||
@@ -8,9 +8,11 @@
|
||||
"tags": [
|
||||
"planet",
|
||||
"space",
|
||||
"physics"
|
||||
"physics",
|
||||
"satellites",
|
||||
"moons",
|
||||
],
|
||||
"categories": [
|
||||
"science"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,9 @@
|
||||
"call",
|
||||
"maths",
|
||||
"formula",
|
||||
"function"
|
||||
"function",
|
||||
"(",
|
||||
")"
|
||||
],
|
||||
"categories": [
|
||||
"development",
|
||||
|
||||
@@ -5,9 +5,15 @@
|
||||
"ericfennis"
|
||||
],
|
||||
"tags": [
|
||||
"discount"
|
||||
"discount",
|
||||
"percentage",
|
||||
"modulo",
|
||||
"modulus",
|
||||
"remainder",
|
||||
"%"
|
||||
],
|
||||
"categories": [
|
||||
"maths"
|
||||
"maths",
|
||||
"development"
|
||||
]
|
||||
}
|
||||
@@ -7,7 +7,8 @@
|
||||
"tags": [
|
||||
"add",
|
||||
"new",
|
||||
"maths"
|
||||
"maths",
|
||||
"+"
|
||||
],
|
||||
"categories": [
|
||||
"maths",
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"tags": [
|
||||
"add",
|
||||
"new",
|
||||
"maths"
|
||||
"maths",
|
||||
"+"
|
||||
],
|
||||
"categories": [
|
||||
"maths",
|
||||
|
||||
@@ -7,9 +7,15 @@
|
||||
"tags": [
|
||||
"add",
|
||||
"new",
|
||||
"maths"
|
||||
"maths",
|
||||
"operator",
|
||||
"join",
|
||||
"concatenate",
|
||||
"code",
|
||||
"+"
|
||||
],
|
||||
"categories": [
|
||||
"maths"
|
||||
"maths",
|
||||
"development"
|
||||
]
|
||||
}
|
||||
@@ -7,11 +7,18 @@
|
||||
"password",
|
||||
"secret",
|
||||
"access",
|
||||
"key"
|
||||
"key",
|
||||
"multiply",
|
||||
"multiplication",
|
||||
"glob pattern",
|
||||
"wildcard",
|
||||
"*"
|
||||
],
|
||||
"categories": [
|
||||
"text",
|
||||
"security",
|
||||
"account"
|
||||
"account",
|
||||
"maths",
|
||||
"development"
|
||||
]
|
||||
}
|
||||
@@ -8,7 +8,8 @@
|
||||
"tags": [
|
||||
"git",
|
||||
"diff",
|
||||
"modified"
|
||||
"modified",
|
||||
"."
|
||||
],
|
||||
"categories": [
|
||||
"shapes",
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
"ericfennis"
|
||||
],
|
||||
"tags": [
|
||||
"calculate"
|
||||
"calculate",
|
||||
"="
|
||||
],
|
||||
"categories": [
|
||||
"maths",
|
||||
|
||||
@@ -8,10 +8,14 @@
|
||||
"tags": [
|
||||
"git",
|
||||
"diff",
|
||||
"ignored"
|
||||
"ignored",
|
||||
"divide",
|
||||
"division",
|
||||
"shortcut",
|
||||
"/"
|
||||
],
|
||||
"categories": [
|
||||
"shapes",
|
||||
"development"
|
||||
"maths"
|
||||
]
|
||||
}
|
||||
19
icons/square-stack.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "../icon.schema.json",
|
||||
"tags": [
|
||||
"versions",
|
||||
"clone",
|
||||
"copy",
|
||||
"duplicate",
|
||||
"multiple",
|
||||
"revisions",
|
||||
"version control",
|
||||
"backup",
|
||||
"history"
|
||||
],
|
||||
"categories": [
|
||||
"text",
|
||||
"files",
|
||||
"development"
|
||||
]
|
||||
}
|
||||
15
icons/square-stack.svg
Normal file
@@ -0,0 +1,15 @@
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2" />
|
||||
<path d="M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2" />
|
||||
<rect width="8" height="8" x="14" y="14" rx="2" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 403 B |
@@ -14,7 +14,10 @@
|
||||
"x",
|
||||
"parentheses",
|
||||
"parenthesis",
|
||||
"brackets"
|
||||
"brackets",
|
||||
"parameter",
|
||||
"(",
|
||||
")"
|
||||
],
|
||||
"categories": [
|
||||
"development",
|
||||
|
||||
@@ -11,7 +11,9 @@
|
||||
"remove",
|
||||
"times",
|
||||
"clear",
|
||||
"maths"
|
||||
"maths",
|
||||
"multiply",
|
||||
"multiplication"
|
||||
],
|
||||
"categories": [
|
||||
"maths",
|
||||
|
||||
@@ -11,7 +11,9 @@
|
||||
"remove",
|
||||
"times",
|
||||
"clear",
|
||||
"maths"
|
||||
"maths",
|
||||
"multiply",
|
||||
"multiplication"
|
||||
],
|
||||
"categories": [
|
||||
"maths",
|
||||
|
||||
@@ -11,7 +11,9 @@
|
||||
"remove",
|
||||
"times",
|
||||
"clear",
|
||||
"maths"
|
||||
"maths",
|
||||
"multiply",
|
||||
"multiplication"
|
||||
],
|
||||
"categories": [
|
||||
"notifications",
|
||||
|
||||
3
pnpm-lock.yaml
generated
@@ -111,6 +111,9 @@ importers:
|
||||
svg-pathdata:
|
||||
specifier: ^6.0.3
|
||||
version: 6.0.3
|
||||
svgson:
|
||||
specifier: ^5.2.1
|
||||
version: 5.2.1
|
||||
vue:
|
||||
specifier: ^3.2.47
|
||||
version: 3.2.47
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
packages:
|
||||
- 'packages/*'
|
||||
- 'tools/*'
|
||||
- 'site'
|
||||
- 'docs'
|
||||
|
||||