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

update tags

This commit is contained in:
codecalm
2024-08-26 14:01:53 +02:00
parent 7efd83d2de
commit f737a5793f
31 changed files with 53 additions and 12 deletions

View File

@@ -4,11 +4,11 @@ import { resolve, join, basename } from 'path'
import { ICONS_SRC_DIR } from './helpers.mjs'
// const extensions = ['heart', 'star', 'off', 'bolt', 'cancel', 'check', 'cog', 'dollar', 'dot', 'eco', 'edit', 'x', 'plus', 'minus', 'shield', 'up', 'down', 'move', 'link', 'ribbon', 'question', 'exclamation', '2', '3', 'code', 'pause', 'pin', 'search', 'share', 'hand', 'infinity', 'ai']
const extensions = ['off', 'spark']
const extensions = ['off', 'ai', 'spark']
extensions.forEach(function (extension) {
glob.sync(join(ICONS_SRC_DIR, `*-${extension}.svg`)).forEach(function (file, i) {
glob.sync(join(ICONS_SRC_DIR, `outline/*-${extension}.svg`)).forEach(function (file, i) {
const fileOriginal = file.replace(`-${extension}.svg`, '.svg')
if (fs.existsSync(fileOriginal)) {
@@ -20,17 +20,17 @@ extensions.forEach(function (extension) {
if (categoryOriginal || tagsOriginal) {
let data = fs.readFileSync(file).toString()
data = data.replace(/(---[\s\S]+?---)/, function (m, headerContent) {
data = data.replace(/(\<\!--[\s\S]+?-->)/, function (m, headerContent) {
console.log('categoryOriginal', fileOriginal, categoryOriginal && categoryOriginal[1], tagsOriginal && tagsOriginal[1])
if (categoryOriginal) {
headerContent = headerContent.replace(/category: .*\n/, '')
headerContent = headerContent.replace(/---/, `---\ncategory: ${categoryOriginal[1]}`)
headerContent = headerContent.replace(/\<\!--/, `<!--\ncategory: ${categoryOriginal[1]}`)
}
if (tagsOriginal) {
headerContent = headerContent.replace(/tags: .*\n/, '')
headerContent = headerContent.replace(/---/, `---\ntags: ${tagsOriginal[1]}`)
headerContent = headerContent.replace(/\<\!--/, `<!--\ntags: ${tagsOriginal[1]}`)
}
return headerContent

View File

@@ -1,4 +1,6 @@
<!--
tags: [equalizer, sliders, controls, settings, filter]
category: System
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 610 B

After

Width:  |  Height:  |  Size: 682 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [shape, marketing, media, promotion, advertising, advertisement]
category: Badges
version: "2.46"
unicode: "fd8f"
-->

Before

Width:  |  Height:  |  Size: 531 B

After

Width:  |  Height:  |  Size: 619 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [energy, power, electricity]
category: Devices
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 458 B

After

Width:  |  Height:  |  Size: 511 B

View File

@@ -1,6 +1,6 @@
<!--
category: Devices
tags: [energy, power, electricity]
category: Devices
unicode: "ff14"
version: "3.7"
-->

Before

Width:  |  Height:  |  Size: 499 B

After

Width:  |  Height:  |  Size: 499 B

View File

@@ -1,5 +1,5 @@
<!--
tags: [sleep, night, bedroom, rest]
tags: [furniture, sleeping, comfortable, bedroom, mattress, resting, relax, sleep, futon, cozy]
category: Map
version: "1.65"
unicode: "f100"

Before

Width:  |  Height:  |  Size: 472 B

After

Width:  |  Height:  |  Size: 532 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [read, clip, marker, tag]
category: Document
version: "2.35"
unicode: "fc8a"
-->

Before

Width:  |  Height:  |  Size: 416 B

After

Width:  |  Height:  |  Size: 467 B

View File

@@ -1,5 +1,5 @@
<!--
tags: [bag, baggage, folder, carrier, documents]
tags: [bag, baggage, folder, carrier, documents, suitcase, job, work, luggage]
unicode: "f3cc"
version: "1.94"
-->

Before

Width:  |  Height:  |  Size: 623 B

After

Width:  |  Height:  |  Size: 653 B

View File

@@ -1,4 +1,5 @@
<!--
tags: [video, photo, aperture]
category: Media
unicode: "ffa8"
version: "3.12"

Before

Width:  |  Height:  |  Size: 545 B

After

Width:  |  Height:  |  Size: 576 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [video, photo, aperture]
category: Media
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 534 B

After

Width:  |  Height:  |  Size: 581 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [3d, pattern, abstract, geometric, shape]
category: Shapes
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 621 B

After

Width:  |  Height:  |  Size: 686 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [view, watch]
category: System
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 466 B

After

Width:  |  Height:  |  Size: 503 B

View File

@@ -1,4 +1,5 @@
<!--
tags: [paper, new]
category: Document
unicode: "ffa1"
version: "3.12"

Before

Width:  |  Height:  |  Size: 464 B

After

Width:  |  Height:  |  Size: 483 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [paper, new]
category: Document
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 450 B

After

Width:  |  Height:  |  Size: 488 B

View File

@@ -1,4 +1,5 @@
<!--
tags: [data, pdf, txt]
category: Document
version: "2.14"
unicode: "fa27"

Before

Width:  |  Height:  |  Size: 536 B

After

Width:  |  Height:  |  Size: 559 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [data, pdf, txt]
category: Document
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 518 B

After

Width:  |  Height:  |  Size: 560 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [banner, pin, report, map, warning, alert]
category: Map
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 469 B

After

Width:  |  Height:  |  Size: 532 B

View File

@@ -1,5 +1,5 @@
<!--
tags: [liquid, container, glass, chemistry]
tags: [liquid, container, glass, chemistry, test, laboratory, experimental, beta]
category: Health
version: "1.65"
unicode: "f130"

Before

Width:  |  Height:  |  Size: 512 B

After

Width:  |  Height:  |  Size: 550 B

View File

@@ -1,6 +1,6 @@
<!--
tags: [fuel, oil, cars, vehicles, shop, distributor]
category: Map
category: Vehicles
version: "1.66"
unicode: "f137"
-->

Before

Width:  |  Height:  |  Size: 569 B

After

Width:  |  Height:  |  Size: 574 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [love, emotion, like, favorite, relationship]
category: Shapes
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 427 B

After

Width:  |  Height:  |  Size: 496 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [house, dashboard, living, building]
category: Buildings
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 471 B

After

Width:  |  Height:  |  Size: 534 B

View File

@@ -1,4 +1,5 @@
<!--
tags: [inbox, gmail, email, envelope, message]
category: Communication
version: "2.14"
unicode: "fa31"

Before

Width:  |  Height:  |  Size: 483 B

After

Width:  |  Height:  |  Size: 530 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [inbox, gmail, email, envelope, message]
category: Communication
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 453 B

After

Width:  |  Height:  |  Size: 524 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [call, mobile, conversation, landline, answer, number]
category: Devices
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 461 B

After

Width:  |  Height:  |  Size: 540 B

View File

@@ -1,4 +1,5 @@
<!--
tags: [image, picture, landscape, camera]
category: Media
version: "2.14"
unicode: "fa32"

Before

Width:  |  Height:  |  Size: 515 B

After

Width:  |  Height:  |  Size: 557 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [image, picture, landscape, camera]
category: Media
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 568 B

After

Width:  |  Height:  |  Size: 626 B

View File

@@ -1,5 +1,5 @@
<!--
tags: [reduction, price, cost, money, shopping, bargain, tick, done, verified, certificate, valid, official, success, invalid]
tags: [reduction, price, cost, money, shopping, bargain, tick, done, verified, certificate, valid, official, success]
category: E-commerce
unicode: "ff10"
version: "3.7"

Before

Width:  |  Height:  |  Size: 970 B

After

Width:  |  Height:  |  Size: 961 B

View File

@@ -1,5 +1,5 @@
<!--
tags: [path, navigation, map]
tags: [path, journey, direction, trail, navigate, travel, way, road, travel-route, route-way]
category: Map
version: "1.66"
unicode: "f194"

Before

Width:  |  Height:  |  Size: 589 B

After

Width:  |  Height:  |  Size: 653 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [storage, hosting, www]
category: Devices
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 544 B

After

Width:  |  Height:  |  Size: 592 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [cog, edit, gear, preferences, tools]
category: System
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 839 B

After

Width:  |  Height:  |  Size: 900 B

View File

@@ -1,4 +1,6 @@
<!--
tags: [spreadsheet, layout, grid, arrange, row, column]
category: Database
-->
<svg
xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 468 B

After

Width:  |  Height:  |  Size: 543 B