diff --git a/package.json b/package.json index 893492b6..f40151c0 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "./assets" ], "scripts": { - "fetch": "node ./bin/fetch.js && yarn format", + "fetch": "node ./scripts/fetch.js && yarn format", "format": "prettier --write ./src/**", "build": "vite build && tsc --emitDeclarationOnly" }, diff --git a/bin/fetch.js b/scripts/fetch.js similarity index 93% rename from bin/fetch.js rename to scripts/fetch.js index 56232a37..c0273af4 100644 --- a/bin/fetch.js +++ b/scripts/fetch.js @@ -8,7 +8,7 @@ const chalk = require("chalk"); const { Command } = require("commander"); const { version } = require("../package.json"); -const { CATEGORY_MAP, ALIASES } = require("."); +const { CATEGORY_MAP } = require("."); const ICON_API_URL = "https://api.phosphoricons.com"; @@ -66,10 +66,10 @@ export const icons: ReadonlyArray = [ { name: "${icon.name}", pascal_name: "${pascalize(icon.name)}",${ - !!ALIASES[icon.name] - ? `alias: { name: "${ - ALIASES[icon.name] - }", pascal_name: "${pascalize(ALIASES[icon.name])}" },` + !!icon.alias + ? `alias: { name: "${icon.alias}", pascal_name: "${pascalize( + icon.alias + )}" },` : "" } categories: ${categories}, diff --git a/bin/index.js b/scripts/index.js similarity index 53% rename from bin/index.js rename to scripts/index.js index 66c05aa4..81de3cbc 100644 --- a/bin/index.js +++ b/scripts/index.js @@ -21,18 +21,4 @@ const CATEGORY_MAP = { "Weather & Nature": "WEATHER", }; -const ALIASES = { - "file-dashed": "file-dotted", - "file-magnifying-glass": "file-search", - "folder-dashed": "folder-dotted", - "folder-simple-dashed": "folder-simple-dotted", - infinity: "lemniscate", - pulse: "activity", - seal: "circle-wavy", - "seal-check": "circle-wavy-check", - "seal-question": "circle-wavy-question", - "seal-warning": "circle-wavy-warning", - "text-b": "text-bolder", -}; - -module.exports = { CATEGORY_MAP, ALIASES }; +module.exports = { CATEGORY_MAP }; diff --git a/src/icons.ts b/src/icons.ts index 8bbd6b91..95f2985d 100644 --- a/src/icons.ts +++ b/src/icons.ts @@ -433,7 +433,7 @@ export const icons: ReadonlyArray = [ pascal_name: "ArrowBendDoubleUpLeft", categories: [IconCategory.ARROWS], figma_category: FigmaCategory.ARROWS, - tags: ["directional", "pointer", "pointing", "arrowhead"], + tags: ["directional", "pointer", "pointing", "arrowhead", "reply-all"], published_in: 1.0, updated_in: 1.0, }, @@ -505,7 +505,7 @@ export const icons: ReadonlyArray = [ pascal_name: "ArrowBendUpLeft", categories: [IconCategory.ARROWS], figma_category: FigmaCategory.ARROWS, - tags: ["directional", "pointer", "pointing", "arrowhead"], + tags: ["directional", "pointer", "pointing", "arrowhead", "reply", "re"], published_in: 1.0, updated_in: 1.0, }, @@ -514,7 +514,7 @@ export const icons: ReadonlyArray = [ pascal_name: "ArrowBendUpRight", categories: [IconCategory.ARROWS], figma_category: FigmaCategory.ARROWS, - tags: ["directional", "pointer", "pointing", "arrowhead"], + tags: ["directional", "pointer", "pointing", "arrowhead", "forward", "fwd"], published_in: 1.0, updated_in: 1.0, }, @@ -4676,7 +4676,16 @@ export const icons: ReadonlyArray = [ pascal_name: "Cross", categories: [IconCategory.DESIGN, IconCategory.COMMUNICATION], figma_category: FigmaCategory.COMMUNICATION, - tags: ["*new*", "dagger"], + tags: [ + "*new*", + "dagger", + "crucifix", + "christ", + "christianity", + "religion", + "worship", + "symbol", + ], published_in: 2.0, updated_in: 2.0, }, @@ -6161,6 +6170,10 @@ export const icons: ReadonlyArray = [ { name: "file-search", pascal_name: "FileSearch", + alias: { + name: "file-magnifying-glass", + pascal_name: "FileMagnifyingGlass", + }, categories: [IconCategory.OFFICE, IconCategory.EDITOR], figma_category: FigmaCategory.OFFICE, tags: ["documents", "files", "find", "locate", "browse", "missing"], @@ -7941,7 +7954,18 @@ export const icons: ReadonlyArray = [ pascal_name: "Headset", categories: [IconCategory.MEDIA, IconCategory.GAMES, IconCategory.OBJECTS], figma_category: FigmaCategory.MEDIA, - tags: ["music", "audio", "listening", "gaming", "voice chat", "microphone"], + tags: [ + "music", + "audio", + "listening", + "gaming", + "voice chat", + "microphone", + "headphones", + "support", + "customer-service", + "call-center", + ], published_in: 1.1, updated_in: 1.1, }, @@ -13626,6 +13650,7 @@ export const icons: ReadonlyArray = [ "video games", "rpg", "gaming", + "war", ], published_in: 1.1, updated_in: 1.1,