1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-09-03 10:53:47 +02:00

import tags

This commit is contained in:
codecalm
2023-04-10 11:37:13 +02:00
parent a24957dbdc
commit 904e288868
52 changed files with 61 additions and 15 deletions

View File

@@ -3,7 +3,8 @@ import fs from 'fs'
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 = ['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 = ['filled']
extensions.forEach(function (extension) {
@@ -22,16 +23,16 @@ extensions.forEach(function (extension) {
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]}`)
}
// if (tagsOriginal) {
// headerContent = headerContent.replace(/tags: .*\n/, '')
// headerContent = headerContent.replace(/---/, `---\ntags: ${tagsOriginal[1]}`)
// if (categoryOriginal) {
// headerContent = headerContent.replace(/category: .*\n/, '')
// headerContent = headerContent.replace(/---/, `---\ncategory: ${categoryOriginal[1]}`)
// }
if (tagsOriginal) {
headerContent = headerContent.replace(/tags: .*\n/, '')
headerContent = headerContent.replace(/---/, `---\ntags: ${tagsOriginal[1]}`)
}
return headerContent
})

View File

@@ -1,4 +1,5 @@
---
tags: [marketing, promotion, advertisement, shape]
category: Filled
version: "2.9"
unicode: "f7d3"

View File

@@ -1,4 +1,5 @@
---
tags: [text, type, line, horizontal ]
category: Filled
version: "2.9"
unicode: "f7d4"

View File

@@ -1,4 +1,5 @@
---
tags: [text, type, east ]
category: Filled
version: "2.9"
unicode: "f7d5"

View File

@@ -1,4 +1,5 @@
---
tags: [army, badge, military, rank, soldier, war, south, bottom]
category: Filled
version: "2.9"
unicode: "f7d6"

View File

@@ -1,4 +1,5 @@
---
tags: [army, badge, military, rank, soldier, war, west]
category: Filled
version: "2.9"
unicode: "f7d7"

View File

@@ -1,4 +1,5 @@
---
tags: [army, badge, military, rank, soldier, war, east]
category: Filled
version: "2.9"
unicode: "f7d8"

View File

@@ -1,4 +1,5 @@
---
tags: [army, badge, military, rank, soldier, war, north ]
category: Filled
version: "2.9"
unicode: "f7d9"

View File

@@ -1,4 +1,5 @@
---
tags: [size, dimension, width, height, orientation]
category: Filled
version: "2.9"
unicode: "f7db"

View File

@@ -1,4 +1,5 @@
---
tags: [delete, remove, eliminate]
category: Filled
version: "2.9"
unicode: "f7dc"

View File

@@ -1,4 +1,5 @@
---
tags: [army, badge, military, rank, soldier, war]
category: Filled
version: "2.9"
unicode: "f7dd"

View File

@@ -1,4 +1,5 @@
---
tags: [patch, wound, cut, pain]
category: Filled
version: "2.9"
unicode: "f7de"

View File

@@ -1,4 +1,5 @@
---
tags: [shop, store, online, shopping]
category: Filled
version: "2.9"
unicode: "f7df"

View File

@@ -1,4 +1,5 @@
---
tags: [sleep, night, bedroom, rest]
category: Filled
version: "2.9"
unicode: "f7e0"

View File

@@ -1,4 +1,5 @@
---
tags: [alcohol, drink, beverage, bar, pub]
category: Filled
version: "2.9"
unicode: "f7e1"

View File

@@ -1,4 +1,5 @@
---
tags: [razor, beard, barber, cut]
category: Filled
version: "2.9"
unicode: "f7e2"

View File

@@ -1,4 +1,5 @@
---
tags: [app, application, logo, communication, talks, gamers, freeware, platform]
category: Filled
version: "2.9"
unicode: "f7e4"

View File

@@ -1,4 +1,5 @@
---
tags: [logo, website, community, project, platform, self-promotion, designer, portfolio]
category: Filled
version: "2.9"
unicode: "f7e5"

View File

@@ -1,4 +1,5 @@
---
tags: [logo, app, application, community, social, communication, website, user, post, images, photos, comment, feedback, fb]
category: Filled
version: "2.9"
unicode: "f7e6"

View File

@@ -1,4 +1,5 @@
---
tags: [logo, website, hosting, project, programming, software, development]
category: Filled
version: "2.9"
unicode: "f7e7"

View File

@@ -1,4 +1,5 @@
---
tags: [logo, enterprise, service, payment, internet, businessman, consumer]
category: Filled
version: "2.9"
unicode: "f7e9"

View File

@@ -1,4 +1,5 @@
---
tags: [logo, app, application, community, social, communication, website, user, post, images, photos, comment, feedback]
category: Filled
version: "2.9"
unicode: "f7eb"

View File

@@ -1,4 +1,5 @@
---
tags: [video, photo, aperture]
category: Filled
---
<svg>

View File

@@ -1,5 +1,5 @@
---
tags: [shape, south, bottom, direction, ]
tags: [shape, direction, bottom, south]
category: Filled
version: "2.3"
unicode: "f6f4"

View File

@@ -1,5 +1,5 @@
---
tags: [shape, south, bottom, direction, west]
tags: [shape, direction, west, bottom, south]
category: Filled
version: "2.3"
unicode: "f6f5"

View File

@@ -1,5 +1,5 @@
---
tags: [shape, direction, bottom, south, east]
tags: [shape, direction, bottom, south, east ]
category: Filled
version: "2.3"
unicode: "f6f7"

View File

@@ -1,5 +1,5 @@
---
tags: [shape, direction, west ]
tags: [shape, direction, west]
category: Filled
version: "2.3"
unicode: "f6fa"

View File

@@ -1,4 +1,5 @@
---
tags: [hospital, rate, healthcare, health]
category: Filled
---
<svg>

View File

@@ -1,4 +1,5 @@
---
tags: [iphone, phone, smartphone, cellphone]
category: Filled
---
<svg>

View File

@@ -1,4 +1,5 @@
---
tags: [ipad, mobile, touchscreen, portable]
category: Filled
---
<svg>

View File

@@ -1,4 +1,5 @@
---
tags: [keypad, telephone, phone, call, number]
category: Filled
---
<svg>

View File

@@ -1,4 +1,5 @@
---
tags: [music, headset, audio, sound, customer]
category: Filled
---
<svg>

View File

@@ -1,4 +1,5 @@
---
tags: [support, question, shape, faq, info]
category: Filled
---
<svg>

View File

@@ -1,4 +1,5 @@
---
tags: [support, question, shape, faq, info]
category: Filled
---
<svg>

View File

@@ -1,4 +1,5 @@
---
tags: [help, support, shape, information, question]
category: Filled
---
<svg>

View File

@@ -1,4 +1,5 @@
---
tags: [help, support, shape, information, question]
category: Filled
---
<svg>

View File

@@ -1,4 +1,5 @@
---
tags: [information, advice, news, tip, sign]
category: Filled
---
<svg>

View File

@@ -1,4 +1,5 @@
---
tags: [inbox, gmail, email, envelope, message]
category: Filled
---
<svg>

View File

@@ -1,4 +1,5 @@
---
tags: [inbox, gmail, email, envelope, message, read]
category: Filled
---
<svg>

View File

@@ -1,4 +1,5 @@
---
tags: [face, emoji, emotion, frown]
category: Filled
version: "2.9"
unicode: "f7f2"

View File

@@ -1,4 +1,5 @@
---
tags: [face, emoji, emotion]
category: Filled
version: "2.9"
unicode: "f7f3"

View File

@@ -1,4 +1,5 @@
---
tags: [face, emoji, emotion]
category: Filled
version: "2.9"
unicode: "f7f4"

View File

@@ -1,4 +1,5 @@
---
tags: [face, emoji, emotion]
category: Filled
version: "2.9"
unicode: "f7f5"

View File

@@ -1,4 +1,5 @@
---
tags: [face, emoji, emotion]
category: Filled
version: "2.9"
unicode: "f7f6"

View File

@@ -1,4 +1,5 @@
---
tags: [face, emoji, emotion, mad]
category: Filled
version: "2.9"
unicode: "f7f7"

View File

@@ -1,4 +1,5 @@
---
tags: [face, emoji, emotion]
category: Filled
version: "2.9"
unicode: "f7f8"

View File

@@ -1,4 +1,5 @@
---
tags: [food, vegetable, cooking, fungus, mushrooming]
category: Filled
version: "2.9"
unicode: "f7f9"

View File

@@ -1,4 +1,5 @@
---
tags: [call, mobile, conversation, landline, answer, number]
category: Filled
---
<svg>

View File

@@ -1,4 +1,5 @@
---
tags: [image, picture, landscape, camera]
category: Filled
---
<svg>

View File

@@ -1,4 +1,5 @@
---
tags: [picture, photo, camera, polarization, develop, film, lens]
category: Filled
---
<svg>

View File

@@ -1,5 +1,5 @@
---
tags: [shape, south, bottom, direction, ]
tags: [shape, south, bottom, direction,]
category: Filled
version: "2.2"
unicode: "f6db"

View File

@@ -1,5 +1,5 @@
---
tags: [delta]
tags: [delta, shape]
category: Filled
version: "2.0"
unicode: "f6ad"