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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,5 @@
|
||||
---
|
||||
tags: [alternative, substitute, replacement, variant, different, alternate, variation, stand-in, option, choice]
|
||||
version: "2.32"
|
||||
unicode: "fc54"
|
||||
---
|
||||
|
@@ -1,4 +1,5 @@
|
||||
---
|
||||
tags: [bow, target, shoot, sports, archer, hunting, bullseye, flight, quiver, precision]
|
||||
version: "2.32"
|
||||
unicode: "fc55"
|
||||
---
|
||||
|
@@ -1,4 +1,5 @@
|
||||
---
|
||||
tags: [large, sizeable, oversized, big, bulky, massive, huge, gigantic, substantial, enormous]
|
||||
version: "2.11"
|
||||
unicode: "f9f0"
|
||||
category: Text
|
||||
|
@@ -1,4 +1,5 @@
|
||||
---
|
||||
tags: [medium, average, moderate, middle, intermediate, standard, midsize, usual, typical, regular]
|
||||
version: "2.11"
|
||||
unicode: "f9f1"
|
||||
category: Text
|
||||
|
@@ -1,4 +1,5 @@
|
||||
---
|
||||
tags: [small, tiny, little, miniature, compact, petite, mini, micro, diminutive, wee]
|
||||
version: "2.11"
|
||||
unicode: "f9f2"
|
||||
category: Text
|
||||
|
@@ -1,4 +1,5 @@
|
||||
---
|
||||
tags: [microsoft, azure, cloud, computing, technology, services, software, platform, it, digital]
|
||||
category: Brand
|
||||
version: "2.16"
|
||||
unicode: "fa4d"
|
||||
|
@@ -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"
|
||||
|
@@ -1,4 +1,5 @@
|
||||
---
|
||||
tags: [databricks, data, analytics, big, science, machine, learning, platform, engineering, processing, ai]
|
||||
category: Brand
|
||||
version: "2.31"
|
||||
unicode: "fc41"
|
||||
|
@@ -1,4 +1,5 @@
|
||||
---
|
||||
tags: [feedly, rss, reader, news, aggregator, content, discovery, information, consumption, feed, newsfeed, app]
|
||||
category: Brand
|
||||
version: "2.18"
|
||||
unicode: "fa75"
|
||||
|
@@ -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"
|
||||
---
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
---
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
|
@@ -1,4 +1,5 @@
|
||||
---
|
||||
tags: [point, fraction, numeric, number, mathematics, decimal-point, decimal-system, fractional, math, dot]
|
||||
category: Math
|
||||
version: "2.14"
|
||||
unicode: "fa26"
|
||||
|
@@ -1,4 +1,5 @@
|
||||
---
|
||||
tags: [unselect, clear-selection, deselection, unpick, uncheck, deactivate, unmark, remove-selection, untag, unchoose]
|
||||
version: "2.11"
|
||||
unicode: "f9f3"
|
||||
---
|
||||
|
@@ -1,4 +1,5 @@
|
||||
---
|
||||
tags: [equine, equestrian, stallion, mare, pony, steed, riding, hoofed-animal, horseback, thoroughbred]
|
||||
version: "2.31"
|
||||
unicode: "fc46"
|
||||
---
|
||||
|
Reference in New Issue
Block a user