Skip to content

Commit

Permalink
Merge branch 'main' into icons_vue_default_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
codecalm authored Sep 26, 2024
2 parents 9cac89d + ef15fca commit b84d907
Show file tree
Hide file tree
Showing 453 changed files with 8,052 additions and 114 deletions.
10 changes: 5 additions & 5 deletions .build/import-categories.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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']
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)) {
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .build/validate-icons.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ types.forEach(type => {
error = true
}

if (data.unicode.length !== 4) {
if (data.unicode.length !== 4 && data.unicode.length !== 5) {
console.log(`⛔️ Icon \`${iconName}\` has invalid unicode \`${data.unicode}\``)
error = true
}
Expand Down
1 change: 1 addition & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ module.exports = function (eleventyConfig) {
},
};
};

Binary file added .github/tabler-icons-3.10.0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
148 changes: 148 additions & 0 deletions .github/tabler-icons-3.10.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/tabler-icons-3.11.0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
216 changes: 216 additions & 0 deletions .github/tabler-icons-3.11.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/tabler-icons-3.12.0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 76 additions & 0 deletions .github/tabler-icons-3.12.0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/tabler-icons-3.13.0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b84d907

Please sign in to comment.