mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-22 03:49:21 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
875e8a2d06 | ||
|
|
e006a171c1 | ||
|
|
606706e8e0 |
35
docs/.vitepress/api/gh-icon/stroke-width/[...data].get.ts
Normal file
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,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
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
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 |
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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
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
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
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'
|
||||
|
||||
Reference in New Issue
Block a user