1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-08-31 01:30:04 +02:00

update icons tags

This commit is contained in:
codecalm
2023-09-27 22:18:52 +02:00
parent 09b4b24892
commit 22d70b2db0
18 changed files with 26 additions and 4 deletions

View File

@@ -8,19 +8,24 @@ const data = JSON.parse(fs.readFileSync(join(HOME_DIR, 'new/tags.json'), 'utf-8'
for (const [key, tags] of Object.entries(data)) {
const filename = join(HOME_DIR, `src/_icons/${key}.svg`)
const filename = join(HOME_DIR, `src/_icons/${key}.svg`), tagsInline = tags
.join(' ')
.toLowerCase()
.split(' ')
.filter((value, index, array) => array.indexOf(value) === index)
.join(', ')
if (key && tags.length) {
let data = fs.readFileSync(filename).toString()
data = data.replace(/(---[\s\S]+?---)/, function(m, headerContent) {
data = data.replace(/(---[\s\S]+?---)/, function (m, headerContent) {
headerContent = headerContent.replace(/tags: .*\n/, '')
headerContent = headerContent.replace(/---/, `---\ntags: [${tags.join(', ')}]`)
headerContent = headerContent.replace(/---/, `---\ntags: [${tagsInline}]`)
return headerContent
})
console.log(`Updating ${key} with tags: ${tags.join(', ')}`)
console.log(`Updating ${key} with tags: ${tagsInline}`)
fs.writeFileSync(filename, data)
}
}

View File

@@ -1,4 +1,5 @@
---
tags: [alternative, substitute, replacement, variant, different, alternate, variation, stand-in, option, choice]
version: "2.32"
unicode: "fc54"
---

View File

@@ -1,4 +1,5 @@
---
tags: [bow, target, shoot, sports, archer, hunting, bullseye, flight, quiver, precision]
version: "2.32"
unicode: "fc55"
---

View File

@@ -1,4 +1,5 @@
---
tags: [large, sizeable, oversized, big, bulky, massive, huge, gigantic, substantial, enormous]
version: "2.11"
unicode: "f9f0"
category: Text

View File

@@ -1,4 +1,5 @@
---
tags: [medium, average, moderate, middle, intermediate, standard, midsize, usual, typical, regular]
version: "2.11"
unicode: "f9f1"
category: Text

View File

@@ -1,4 +1,5 @@
---
tags: [small, tiny, little, miniature, compact, petite, mini, micro, diminutive, wee]
version: "2.11"
unicode: "f9f2"
category: Text

View File

@@ -1,4 +1,5 @@
---
tags: [microsoft, azure, cloud, computing, technology, services, software, platform, it, digital]
category: Brand
version: "2.16"
unicode: "fa4d"

View File

@@ -1,4 +1,5 @@
---
tags: [cloudflare, web, security, content, delivery, ddos, protection, network, internet, performance, firewall, cdn, website]
category: Brand
version: "2.16"
unicode: "fa4e"

View File

@@ -1,4 +1,5 @@
---
tags: [databricks, data, analytics, big, science, machine, learning, platform, engineering, processing, ai]
category: Brand
version: "2.31"
unicode: "fc41"

View File

@@ -1,4 +1,5 @@
---
tags: [feedly, rss, reader, news, aggregator, content, discovery, information, consumption, feed, newsfeed, app]
category: Brand
version: "2.18"
unicode: "fa75"

View File

@@ -1,4 +1,5 @@
---
tags: [auto-shop, vehicle-repair, automobile-maintenance, parking-garage, car-storage, automotive, garage-service, car-park, vehicle-maintenance, car-repair]
version: "2.34"
unicode: "fc77"
---

View File

@@ -1,4 +1,5 @@
---
tags: [sport-utility, crossover, automobile, suv, off-road, four-wheel-drive, vehicle, transportation, auto, truck]
category: Vehicles
version: "2.35"
unicode: "fc8b"

View File

@@ -1,4 +1,5 @@
---
tags: [arrow-horizontal, double-arrow, side-arrow, left-right, horizontal-pointer, directional, horizontal-caret, bidirectional, opposite, horizontal-arrow]
version: "2.31"
unicode: "fc43"
---

View File

@@ -1,4 +1,5 @@
---
tags: [time, hour, watch, timepiece, twelve-hour, am/pm, noon, midday, daytime, clock-face]
category: System
version: "2.32"
unicode: "fc56"

View File

@@ -1,4 +1,5 @@
---
tags: [time, hour, watch, timepiece, twenty-four-hour, 24-hour, military, clock-face, round-clock, day-night]
category: System
version: "2.32"
unicode: "fc57"

View File

@@ -1,4 +1,5 @@
---
tags: [point, fraction, numeric, number, mathematics, decimal-point, decimal-system, fractional, math, dot]
category: Math
version: "2.14"
unicode: "fa26"

View File

@@ -1,4 +1,5 @@
---
tags: [unselect, clear-selection, deselection, unpick, uncheck, deactivate, unmark, remove-selection, untag, unchoose]
version: "2.11"
unicode: "f9f3"
---

View File

@@ -1,4 +1,5 @@
---
tags: [equine, equestrian, stallion, mare, pony, steed, riding, hoofed-animal, horseback, thoroughbred]
version: "2.31"
unicode: "fc46"
---