1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-09-01 18:04:10 +02:00

update icons tags

This commit is contained in:
codecalm
2022-07-25 11:13:04 +02:00
parent d5b2c66b3c
commit 03ea769a13
198 changed files with 782 additions and 678 deletions

View File

@@ -20,32 +20,32 @@ const gulp = require('gulp'),
const compileOptions = {
includeIcons: [],
strokeWidth: null,
fontForge: "fontforge"
fontForge: 'fontforge'
}
if (fs.existsSync('./compile-options.json')) {
try {
const tempOptions = require('./compile-options.json')
if (typeof tempOptions !== "object") {
throw "Compile options file does not contain an json object"
if (typeof tempOptions !== 'object') {
throw 'Compile options file does not contain an json object'
}
if (typeof tempOptions.includeIcons !== "undefined") {
if (typeof tempOptions.includeIcons !== 'undefined') {
if (!Array.isArray(tempOptions.includeIcons)) {
throw "property inludeIcons is not an array"
throw 'property inludeIcons is not an array'
}
compileOptions.includeIcons = tempOptions.includeIcons
}
if (typeof tempOptions.includeCategories !== "undefined") {
if (typeof tempOptions.includeCategories === "string") {
if (typeof tempOptions.includeCategories !== 'undefined') {
if (typeof tempOptions.includeCategories === 'string') {
tempOptions.includeCategories = tempOptions.includeCategories.split(' ')
}
if (!Array.isArray(tempOptions.includeCategories)) {
throw "property includeCategories is not an array or string"
throw 'property includeCategories is not an array or string'
}
const tags = Object.entries(require('./tags.json'))
tempOptions.includeCategories.forEach(function (category) {
tempOptions.includeCategories.forEach(function(category) {
category = category.charAt(0).toUpperCase() + category.slice(1)
for (const [icon, data] of tags) {
if (data.category === category && compileOptions.includeIcons.indexOf(icon) === -1) {
@@ -55,32 +55,32 @@ if (fs.existsSync('./compile-options.json')) {
})
}
if (typeof tempOptions.excludeIcons !== "undefined") {
if (typeof tempOptions.excludeIcons !== 'undefined') {
if (!Array.isArray(tempOptions.excludeIcons)) {
throw "property excludeIcons is not an array"
throw 'property excludeIcons is not an array'
}
compileOptions.includeIcons = compileOptions.includeIcons.filter(function (icon) {
compileOptions.includeIcons = compileOptions.includeIcons.filter(function(icon) {
return tempOptions.excludeIcons.indexOf(icon) === -1
})
}
if (typeof tempOptions.excludeOffIcons !== "undefined" && tempOptions.excludeOffIcons) {
if (typeof tempOptions.excludeOffIcons !== 'undefined' && tempOptions.excludeOffIcons) {
// Exclude `*-off` icons
compileOptions.includeIcons = compileOptions.includeIcons.filter(function (icon) {
return !icon.endsWith('-off');
compileOptions.includeIcons = compileOptions.includeIcons.filter(function(icon) {
return !icon.endsWith('-off')
})
}
if (typeof tempOptions.strokeWidth !== "undefined") {
if (typeof tempOptions.strokeWidth !== "string" && typeof tempOptions.strokeWidth !== "number") {
throw "property strokeWidth is not a string or number"
if (typeof tempOptions.strokeWidth !== 'undefined') {
if (typeof tempOptions.strokeWidth !== 'string' && typeof tempOptions.strokeWidth !== 'number') {
throw 'property strokeWidth is not a string or number'
}
compileOptions.strokeWidth = tempOptions.strokeWidth.toString()
}
if (typeof tempOptions.fontForge !== "undefined") {
if (typeof tempOptions.fontForge !== "string") {
throw "property fontForge is not a string"
if (typeof tempOptions.fontForge !== 'undefined') {
if (typeof tempOptions.fontForge !== 'string') {
throw 'property fontForge is not a string'
}
compileOptions.fontForge = tempOptions.fontForge
}
@@ -91,7 +91,7 @@ if (fs.existsSync('./compile-options.json')) {
}
async function asyncForEach (array, callback) {
async function asyncForEach(array, callback) {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array)
}
@@ -108,19 +108,19 @@ const createScreenshot = async (filePath) => {
await cp.exec(`rsvg-convert -x 4 -y 4 ${filePath} > ${filePath.replace('.svg', '@2x.png')}`)
}
const printChangelog = function (newIcons, modifiedIcons, renamedIcons, pretty = false) {
const printChangelog = function(newIcons, modifiedIcons, renamedIcons, pretty = false) {
if (newIcons.length > 0) {
if (pretty) {
console.log(`### ${newIcons.length} new icons:`)
newIcons.forEach(function (icon, i) {
newIcons.forEach(function(icon, i) {
console.log(`- \`${icon}\``)
})
} else {
let str = ''
str += `${newIcons.length} new icons: `
newIcons.forEach(function (icon, i) {
newIcons.forEach(function(icon, i) {
str += `\`${icon}\``
if ((i + 1) <= newIcons.length - 1) {
@@ -138,7 +138,7 @@ const printChangelog = function (newIcons, modifiedIcons, renamedIcons, pretty =
let str = ''
str += `Fixed icons: `
modifiedIcons.forEach(function (icon, i) {
modifiedIcons.forEach(function(icon, i) {
str += `\`${icon}\``
if ((i + 1) <= modifiedIcons.length - 1) {
@@ -153,13 +153,13 @@ const printChangelog = function (newIcons, modifiedIcons, renamedIcons, pretty =
if (renamedIcons.length > 0) {
console.log(`Renamed icons: `)
renamedIcons.forEach(function (icon, i) {
renamedIcons.forEach(function(icon, i) {
console.log(`- \`${icon[0]}\` renamed to \`${icon[1]}\``)
})
}
}
const generateIconsPreview = function (files, destFile, cb, columnsCount = 19, paddingOuter = 7) {
const generateIconsPreview = function(files, destFile, cb, columnsCount = 19, paddingOuter = 7) {
const padding = 20,
iconSize = 24
@@ -174,17 +174,16 @@ const generateIconsPreview = function (files, destFile, cb, columnsCount = 19, p
x = paddingOuter,
y = paddingOuter
files.forEach(function (file, i) {
files.forEach(function(file, i) {
let name = path.basename(file, '.svg')
let svgFile = fs.readFileSync(file),
svgFileContent = svgFile.toString()
svgFileContent = svgFileContent
.replace('<svg xmlns="http://www.w3.org/2000/svg"', `<symbol id="${name}"`)
.replace(' width="24" height="24"', '')
.replace('</svg>', '</symbol>')
.replace(/\n\s+/g, '')
svgFileContent = svgFileContent.replace('<svg xmlns="http://www.w3.org/2000/svg"', `<symbol id="${name}"`).
replace(' width="24" height="24"', '').
replace('</svg>', '</symbol>').
replace(/\n\s+/g, '')
svgContentSymbols += `\t${svgFileContent}\n`
svgContentIcons += `\t<use xlink:href="#${name}" x="${x}" y="${y}" width="${iconSize}" height="${iconSize}" />\n`
@@ -207,22 +206,22 @@ const generateIconsPreview = function (files, destFile, cb, columnsCount = 19, p
//*********************************************************************************************
gulp.task('iconfont-prepare', function (cb) {
cp.exec('mkdir -p icons-outlined/ && rm -fd ./icons-outlined/* && mkdir -p && rm -fd ./iconfont/*', function () {
gulp.task('iconfont-prepare', function(cb) {
cp.exec('mkdir -p icons-outlined/ && rm -fd ./icons-outlined/* && mkdir -p && rm -fd ./iconfont/*', function() {
cb()
})
})
gulp.task('iconfont-clean', function (cb) {
cp.exec('rm -rf ./icons-outlined', function () {
gulp.task('iconfont-clean', function(cb) {
cp.exec('rm -rf ./icons-outlined', function() {
cb()
})
})
gulp.task('iconfont-svg-outline', function (cb) {
gulp.task('iconfont-svg-outline', function(cb) {
cp.exec('mkdir -p icons-outlined/ && rm -fd ./icons-outlined/*', async () => {
let files = glob.sync("./icons/*.svg")
let files = glob.sync('./icons/*.svg')
let iconfontUnicode = {}
@@ -230,7 +229,7 @@ gulp.task('iconfont-svg-outline', function (cb) {
iconfontUnicode = require('./.build/iconfont-unicode')
}
await asyncForEach(files, async function (file) {
await asyncForEach(files, async function(file) {
const name = path.basename(file, '.svg')
@@ -242,9 +241,7 @@ gulp.task('iconfont-svg-outline', function (cb) {
let strokedSVG = fs.readFileSync(file).toString()
strokedSVG = strokedSVG
.replace('width="24"', 'width="1000"')
.replace('height="24"', 'height="1000"')
strokedSVG = strokedSVG.replace('width="24"', 'width="1000"').replace('height="24"', 'height="1000"')
if (compileOptions.strokeWidth) {
strokedSVG = strokedSVG.replace('stroke-width="2"', `stroke-width="${compileOptions.strokeWidth}"`)
@@ -272,18 +269,16 @@ gulp.task('iconfont-svg-outline', function (cb) {
})
})
gulp.task('iconfont-optimize', function () {
return gulp.src('icons-outlined/*')
.pipe(svgo())
.pipe(gulp.dest('icons-outlined'))
gulp.task('iconfont-optimize', function() {
return gulp.src('icons-outlined/*').pipe(svgo()).pipe(gulp.dest('icons-outlined'))
})
gulp.task('iconfont-fix-outline', function (cb) {
gulp.task('iconfont-fix-outline', function(cb) {
var fontForge = compileOptions.fontForge
// correct svg outline directions in a child process using fontforge
const generate = cp.spawn(fontForge, ["-lang=py", "-script", "./fix-outline.py"], { stdio: 'inherit' })
generate.on("close", function (code) {
const generate = cp.spawn(fontForge, ['-lang=py', '-script', './fix-outline.py'], { stdio: 'inherit' })
generate.on('close', function(code) {
console.log(`Correcting svg outline directions exited with code ${code}`)
if (!code) {
cb()
@@ -291,7 +286,7 @@ gulp.task('iconfont-fix-outline', function (cb) {
})
})
gulp.task('iconfont', function () {
gulp.task('iconfont', function() {
let maxUnicode = 59905
if (fs.existsSync('./.build/iconfont-unicode.json')) {
@@ -306,8 +301,7 @@ gulp.task('iconfont', function () {
maxUnicode = maxUnicode + 1
return gulp.src(['icons-outlined/*.svg'])
.pipe(iconfont({
return gulp.src(['icons-outlined/*.svg']).pipe(iconfont({
fontName: 'tabler-icons',
prependUnicode: true,
formats: ['ttf', 'eot', 'woff', 'woff2', 'svg'],
@@ -316,17 +310,16 @@ gulp.task('iconfont', function () {
fontHeight: 1000,
descent: 100,
ascent: 986.5
}))
.on('glyphs', function (glyphs, options) {
})).on('glyphs', function(glyphs, options) {
//glyphs json
let glyphsObject = {}
//sort glypht
glyphs = glyphs.sort(function (a, b) {
glyphs = glyphs.sort(function(a, b) {
return ('' + a.name).localeCompare(b.name)
})
glyphs.forEach(function (glyph) {
glyphs.forEach(function(glyph) {
glyphsObject[glyph.name] = glyph.unicode[0].codePointAt(0).toString(16)
})
@@ -346,15 +339,14 @@ gulp.task('iconfont', function () {
const resultHtml = compiledHtml(options)
fs.writeFileSync('iconfont/tabler-icons.html', resultHtml)
})
.pipe(gulp.dest('iconfont/fonts'))
}).pipe(gulp.dest('iconfont/fonts'))
})
gulp.task('iconfont-css', function (cb) {
gulp.task('iconfont-css', function(cb) {
sass.render({
file: 'iconfont/tabler-icons.scss',
outputStyle: 'expanded'
}, function (err, result) {
}, function(err, result) {
fs.writeFileSync('iconfont/tabler-icons.css', result.css)
const cleanOutput = new cleanCSS({}).minify(result.css)
@@ -364,14 +356,14 @@ gulp.task('iconfont-css', function (cb) {
})
})
gulp.task('update-tags-unicode', function (cb) {
gulp.task('update-tags-unicode', function(cb) {
let tags = require('./tags.json'),
unicodes = require('./.build/iconfont-unicode.json')
for (let i in tags) {
tags[i] = {
...tags[i],
unicode: unicodes[i],
unicode: unicodes[i]
}
}
@@ -382,19 +374,21 @@ gulp.task('update-tags-unicode', function (cb) {
cb()
})
gulp.task('build-iconfont', gulp.series('iconfont-prepare', 'iconfont-svg-outline', 'iconfont-fix-outline', 'iconfont-optimize', 'iconfont', 'iconfont-css', 'iconfont-clean', 'update-tags-unicode'))
gulp.task('build-iconfont',
gulp.series('iconfont-prepare', 'iconfont-svg-outline', 'iconfont-fix-outline', 'iconfont-optimize', 'iconfont', 'iconfont-css', 'iconfont-clean',
'update-tags-unicode'))
gulp.task('build-zip', function () {
gulp.task('build-zip', function() {
const version = p.version
return gulp.src('{icons/**/*,icons-png/**/*,icons-react/**/*,iconfont/**/*,tabler-sprite.svg,tabler-sprite-nostroke.svg}')
.pipe(zip(`tabler-icons-${version}.zip`))
.pipe(gulp.dest('packages-zip'))
return gulp.src('{icons/**/*,icons-png/**/*,icons-react/**/*,iconfont/**/*,tabler-sprite.svg,tabler-sprite-nostroke.svg}').
pipe(zip(`tabler-icons-${version}.zip`)).
pipe(gulp.dest('packages-zip'))
})
gulp.task('build-jekyll', function (cb) {
const jekyll = cp.spawn("bundle", ["exec", "jekyll", "build"], { stdio: 'inherit' })
jekyll.on("close", function (code) {
gulp.task('build-jekyll', function(cb) {
const jekyll = cp.spawn('bundle', ['exec', 'jekyll', 'build'], { stdio: 'inherit' })
jekyll.on('close', function(code) {
console.log(`Jekyll build exited with code ${code}`)
if (!code) {
cb()
@@ -402,34 +396,29 @@ gulp.task('build-jekyll', function (cb) {
})
})
gulp.task('build-copy', function (cb) {
cp.exec('mkdir -p icons/ && rm -fd ./icons/* && cp ./_site/icons/* ./icons && cp ./_site/tags.json .', function () {
gulp.task('build-copy', function(cb) {
cp.exec('mkdir -p icons/ && rm -fd ./icons/* && cp ./_site/icons/* ./icons && cp ./_site/tags.json .', function() {
cb()
})
})
gulp.task('clean-png', function (cb) {
cp.exec('rm -fd ./icons-png/*', function () {
gulp.task('clean-png', function(cb) {
cp.exec('rm -fd ./icons-png/*', function() {
cb()
})
})
gulp.task('icons-sprite', function (cb) {
glob("_site/icons/*.svg", {}, function (er, files) {
gulp.task('icons-sprite', function(cb) {
glob('_site/icons/*.svg', {}, function(er, files) {
let svgContent = ''
files.forEach(function (file, i) {
files.forEach(function(file, i) {
let name = path.basename(file, '.svg'),
svgFile = fs.readFileSync(file),
svgFileContent = svgFile.toString()
svgFileContent = svgFileContent
.replace(/<svg[^>]+>/g, '')
.replace(/<\/svg>/g, '')
.replace(/\n+/g, '')
.replace(/>\s+</g, '><')
.trim()
svgFileContent = svgFileContent.replace(/<svg[^>]+>/g, '').replace(/<\/svg>/g, '').replace(/\n+/g, '').replace(/>\s+</g, '><').trim()
svgContent += `<symbol id="tabler-${name}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${svgFileContent}</symbol>`
})
@@ -442,15 +431,15 @@ gulp.task('icons-sprite', function (cb) {
})
})
gulp.task('icons-preview', function (cb) {
glob("icons/*.svg", {}, function (er, files) {
gulp.task('icons-preview', function(cb) {
glob('icons/*.svg', {}, function(er, files) {
generateIconsPreview(files, '.github/icons.svg', cb)
})
})
gulp.task('icons-stroke', gulp.series('build-jekyll', function (cb) {
gulp.task('icons-stroke', gulp.series('build-jekyll', function(cb) {
const icon = "disabled",
const icon = 'disabled',
strokes = ['.5', '1', '1.5', '2', '2.75'],
svgFileContent = fs.readFileSync(`icons/${icon}.svg`).toString(),
padding = 16,
@@ -463,13 +452,12 @@ gulp.task('icons-stroke', gulp.series('build-jekyll', function (cb) {
svgContentIcons = '',
x = paddingOuter
strokes.forEach(function (stroke) {
let svgFileContentStroked = svgFileContent
.replace('<svg xmlns="http://www.w3.org/2000/svg"', `<symbol id="icon-${stroke}"`)
.replace(' width="24" height="24"', '')
.replace(' stroke-width="2"', ` stroke-width="${stroke}"`)
.replace('</svg>', '</symbol>')
.replace(/\n\s+/g, '')
strokes.forEach(function(stroke) {
let svgFileContentStroked = svgFileContent.replace('<svg xmlns="http://www.w3.org/2000/svg"', `<symbol id="icon-${stroke}"`).
replace(' width="24" height="24"', '').
replace(' stroke-width="2"', ` stroke-width="${stroke}"`).
replace('</svg>', '</symbol>').
replace(/\n\s+/g, '')
svgContentSymbols += `\t${svgFileContentStroked}\n`
svgContentIcons += `\t<use xlink:href="#icon-${stroke}" x="${x}" y="${paddingOuter}" width="${iconSize}" height="${iconSize}" />\n`
@@ -484,59 +472,50 @@ gulp.task('icons-stroke', gulp.series('build-jekyll', function (cb) {
cb()
}))
gulp.task('optimize', function (cb) {
const addFloats = function (n1, n2) {
gulp.task('optimize', function(cb) {
const addFloats = function(n1, n2) {
return Math.round((parseFloat(n1) + parseFloat(n2)) * 1000) / 1000
}
const optimizePath = function (path) {
let transformed = svgpath(path)
.rel()
.round(3)
.toString()
const optimizePath = function(path) {
let transformed = svgpath(path).rel().round(3).toString()
return svgParse(transformed).map(function (a) {
return svgParse(transformed).map(function(a) {
return a.join(' ')
}).join(' ')
}
glob("src/_icons/*.svg", {}, function (er, files) {
glob('src/_icons/*.svg', {}, function(er, files) {
files.forEach(function (file, i) {
files.forEach(function(file, i) {
let svgFile = fs.readFileSync(file),
svgFileContent = svgFile.toString()
svgFileContent = svgFileContent
.replace(/><\/(polyline|line|rect|circle|path)>/g, '/>')
.replace(/rx="([^"]+)"\s+ry="\1"/g, 'rx="$1"')
.replace(/<path stroke="red" stroke-width="\.1"([^>]+)?\/>/g, '')
.replace(/\s?\/>/g, ' />')
.replace(/\n\s*<(line|circle|path|polyline|rect)/g, "\n <$1")
.replace(/polyline points="([0-9.]+)\s([0-9.]+)\s([0-9.]+)\s([0-9.]+)"/g, 'line x1="$1" y1="$2" x2="$3" y2="$4"')
.replace(/<path d="([^"]+)"/g, function (f, r1) {
svgFileContent = svgFileContent.replace(/><\/(polyline|line|rect|circle|path)>/g, '/>').
replace(/rx="([^"]+)"\s+ry="\1"/g, 'rx="$1"').
replace(/<path stroke="red" stroke-width="\.1"([^>]+)?\/>/g, '').
replace(/\s?\/>/g, ' />').
replace(/\n\s*<(line|circle|path|polyline|rect)/g, '\n <$1').
replace(/polyline points="([0-9.]+)\s([0-9.]+)\s([0-9.]+)\s([0-9.]+)"/g, 'line x1="$1" y1="$2" x2="$3" y2="$4"').
replace(/<path d="([^"]+)"/g, function(f, r1) {
r1 = optimizePath(r1)
return `<path d="${r1}"`
})
.replace(/d="m/g, 'd="M')
.replace(/([Aa])\s?([0-9.]+)\s([0-9.]+)\s([0-9.]+)\s?([0-1])\s?([0-1])\s?(-?[0-9.]+)\s?(-?[0-9.]+)/gi, '$1$2 $3 $4 $5 $6 $7 $8')
.replace(/\n\s+\n+/g, "\n")
.replace(/<path d="M([0-9.]*) ([0-9.]*)l\s?([-0-9.]*) ([-0-9.]*)"/g, function (f, r1, r2, r3, r4) {
}).
replace(/d="m/g, 'd="M').
replace(/([Aa])\s?([0-9.]+)\s([0-9.]+)\s([0-9.]+)\s?([0-1])\s?([0-1])\s?(-?[0-9.]+)\s?(-?[0-9.]+)/gi, '$1$2 $3 $4 $5 $6 $7 $8').
replace(/\n\s+\n+/g, '\n').
replace(/<path d="M([0-9.]*) ([0-9.]*)l\s?([-0-9.]*) ([-0-9.]*)"/g, function(f, r1, r2, r3, r4) {
return `<line x1="${r1}" y1="${r2}" x2="${addFloats(r1, r3)}" y2="${addFloats(r2, r4)}"`
})
.replace(/<path d="M([0-9.]*) ([0-9.]*)v\s?([-0-9.]*)"/g, function (f, r1, r2, r3) {
}).
replace(/<path d="M([0-9.]*) ([0-9.]*)v\s?([-0-9.]*)"/g, function(f, r1, r2, r3) {
return `<line x1="${r1}" y1="${r2}" x2="${r1}" y2="${addFloats(r2, r3)}"`
})
.replace(/<path d="M([0-9.]*) ([0-9.]*)h\s?([-0-9.]*)"/g, function (f, r1, r2, r3) {
}).
replace(/<path d="M([0-9.]*) ([0-9.]*)h\s?([-0-9.]*)"/g, function(f, r1, r2, r3) {
return `<line x1="${r1}" y1="${r2}" x2="${addFloats(r1, r3)}" y2="${r2}"`
})
.replace(/<path d="([^"]+)"/g, function (f, r1) {
r1 = r1
.replace(/ -0\./g, " -.")
.replace(/ 0\./g, " .")
.replace(/\s([a-z])/gi, "$1")
.replace(/([a-z])\s/gi, "$1")
}).
replace(/<path d="([^"]+)"/g, function(f, r1) {
r1 = r1.replace(/ -0\./g, ' -.').replace(/ 0\./g, ' .').replace(/\s([a-z])/gi, '$1').replace(/([a-z])\s/gi, '$1')
return `<path d="${r1}"`
})
@@ -549,23 +528,23 @@ gulp.task('optimize', function (cb) {
})
})
gulp.task('changelog-commit', function (cb) {
cp.exec('git status', function (err, ret) {
gulp.task('changelog-commit', function(cb) {
cp.exec('git status', function(err, ret) {
let newIcons = [], modifiedIcons = [], renamedIcons = []
ret.replace(/new file:\s+src\/_icons\/([a-z0-9-]+)\.svg/g, function (m, fileName) {
ret.replace(/new file:\s+src\/_icons\/([a-z0-9-]+)\.svg/g, function(m, fileName) {
newIcons.push(fileName)
})
ret.replace(/modified:\s+src\/_icons\/([a-z0-9-]+)\.svg/g, function (m, fileName) {
ret.replace(/modified:\s+src\/_icons\/([a-z0-9-]+)\.svg/g, function(m, fileName) {
modifiedIcons.push(fileName)
})
ret.replace(/renamed:\s+src\/_icons\/([a-z0-9-]+).svg -> src\/_icons\/([a-z0-9-]+).svg/g, function (m, fileNameBefore, fileNameAfter) {
ret.replace(/renamed:\s+src\/_icons\/([a-z0-9-]+).svg -> src\/_icons\/([a-z0-9-]+).svg/g, function(m, fileNameBefore, fileNameAfter) {
renamedIcons.push([fileNameBefore, fileNameAfter])
})
modifiedIcons = modifiedIcons.filter(function (el) {
modifiedIcons = modifiedIcons.filter(function(el) {
return newIcons.indexOf(el) < 0
})
@@ -575,27 +554,27 @@ gulp.task('changelog-commit', function (cb) {
})
})
gulp.task('changelog', function (cb) {
gulp.task('changelog', function(cb) {
const version = argv['latest-tag'] || `v${p.version}`
if (version) {
cp.exec(`git diff ${version} HEAD --name-status`, function (err, ret) {
cp.exec(`git diff ${version} HEAD --name-status`, function(err, ret) {
let newIcons = [], modifiedIcons = [], renamedIcons = []
ret.replace(/A\s+src\/_icons\/([a-z0-9-]+)\.svg/g, function (m, fileName) {
ret.replace(/A\s+src\/_icons\/([a-z0-9-]+)\.svg/g, function(m, fileName) {
newIcons.push(fileName)
})
ret.replace(/M\s+src\/_icons\/([a-z0-9-]+)\.svg/g, function (m, fileName) {
ret.replace(/M\s+src\/_icons\/([a-z0-9-]+)\.svg/g, function(m, fileName) {
modifiedIcons.push(fileName)
})
ret.replace(/R[0-9]+\s+src\/_icons\/([a-z0-9-]+)\.svg\s+src\/_icons\/([a-z0-9-]+).svg/g, function (m, fileNameBefore, fileNameAfter) {
ret.replace(/R[0-9]+\s+src\/_icons\/([a-z0-9-]+)\.svg\s+src\/_icons\/([a-z0-9-]+).svg/g, function(m, fileNameBefore, fileNameAfter) {
renamedIcons.push([fileNameBefore, fileNameAfter])
})
modifiedIcons = modifiedIcons.filter(function (el) {
modifiedIcons = modifiedIcons.filter(function(el) {
return newIcons.indexOf(el) < 0
})
@@ -606,20 +585,20 @@ gulp.task('changelog', function (cb) {
}
})
gulp.task('changelog-image', function (cb) {
gulp.task('changelog-image', function(cb) {
const version = argv['latest-version'] || `${p.version}`,
newVersion = argv['new-version'] || `${p.version}`
if (version) {
cp.exec(`git diff v${version} HEAD --name-status`, function (err, ret) {
cp.exec(`git diff v${version} HEAD --name-status`, function(err, ret) {
let newIcons = []
ret.replace(/[A]\s+src\/_icons\/([a-z0-9-]+)\.svg/g, function (m, fileName) {
ret.replace(/[A]\s+src\/_icons\/([a-z0-9-]+)\.svg/g, function(m, fileName) {
newIcons.push(fileName)
})
newIcons = newIcons.map(function (icon) {
newIcons = newIcons.map(function(icon) {
return `./icons/${icon}.svg`
})
@@ -635,9 +614,9 @@ gulp.task('changelog-image', function (cb) {
})
gulp.task('svg-to-png', gulp.series('build-jekyll', 'clean-png', async (cb) => {
let files = glob.sync("./icons/*.svg")
let files = glob.sync('./icons/*.svg')
await asyncForEach(files, async function (file, i) {
await asyncForEach(files, async function(file, i) {
let name = path.basename(file, '.svg')
console.log('name', name)
@@ -648,38 +627,38 @@ gulp.task('svg-to-png', gulp.series('build-jekyll', 'clean-png', async (cb) => {
cb()
}))
gulp.task('clean-react', function (cb) {
cp.exec('rm -fd ./icons-react/* && mkdir icons-react/icons-js', function () {
gulp.task('clean-react', function(cb) {
cp.exec('rm -fd ./icons-react/* && mkdir icons-react/icons-js', function() {
cb()
})
})
gulp.task('svg-to-react', gulp.series('clean-react', async function (cb) {
let files = glob.sync("./icons/*.svg")
gulp.task('svg-to-react', gulp.series('clean-react', async function(cb) {
let files = glob.sync('./icons/*.svg')
const camelize = function (str) {
const camelize = function(str) {
str = str.replace(/-/g, ' ')
return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function (word, index) {
return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
return word.toUpperCase()
}).replace(/\s+/g, '')
}
const componentName = function (file) {
const componentName = function(file) {
file = path.basename(file, '.svg')
file = camelize(`Icon ${file}`)
return file
}
const optimizeSvgCode = function (svgCode) {
const optimizeSvgCode = function(svgCode) {
return svgCode.replace('<path stroke="none" d="M0 0h24v24H0z"/>', '')
}
let indexCode = '',
indexDCode = `import { FC, SVGAttributes } from 'react';\n\ninterface TablerIconProps extends SVGAttributes<SVGElement> { color?: string; size?: string | number; stroke?: string | number; }\n\ntype TablerIcon = FC<TablerIconProps>;\n\n`
await asyncForEach(files, async function (file) {
await asyncForEach(files, async function(file) {
const svgCode = optimizeSvgCode(fs.readFileSync(file).toString()),
fileName = path.basename(file, '.svg') + '.js',
iconComponentName = componentName(file)
@@ -701,7 +680,7 @@ gulp.task('svg-to-react', gulp.series('clean-react', async function (cb) {
cb()
}))
const setVersions = function (version, files) {
const setVersions = function(version, files) {
for (const i in files) {
const file = files[i]
@@ -709,7 +688,7 @@ const setVersions = function (version, files) {
let svgFile = fs.readFileSync(`src/_icons/${file}.svg`).toString()
if (!svgFile.match(/version: ([0-9.]+)/i)) {
svgFile = svgFile.replace(/---\n<svg>/i, function (m) {
svgFile = svgFile.replace(/---\n<svg>/i, function(m) {
return `version: "${version}"\n${m}`
})
@@ -724,17 +703,17 @@ const setVersions = function (version, files) {
}
}
gulp.task('update-icons-version', function (cb) {
gulp.task('update-icons-version', function(cb) {
const version = argv['latest-version'] || `${p.version}`,
newVersion = argv['new-version'] || `${p.version}`
if (version) {
cp.exec(`grep -RiL "version: " ./src/_icons/*.svg`, function (err, ret) {
cp.exec(`grep -RiL "version: " ./src/_icons/*.svg`, function(err, ret) {
let newIcons = []
ret.replace(/src\/_icons\/([a-z0-9-]+)\.svg/g, function (m, fileName) {
ret.replace(/src\/_icons\/([a-z0-9-]+)\.svg/g, function(m, fileName) {
newIcons.push(fileName)
})
@@ -747,19 +726,49 @@ gulp.task('update-icons-version', function (cb) {
cb()
})
gulp.task('import-tags', function (cb) {
fs.createReadStream('./_import.csv')
.pipe(csv({
gulp.task('import-categories', function(cb) {
let files = glob.sync('./src/_icons/*-off.svg')
files.forEach(function(file, i) {
const fileOriginal = file.replace(/\-off.svg$/, '.svg')
if (fs.existsSync(fileOriginal)) {
const dataOriginal = fs.readFileSync(fileOriginal).toString()
const categoryOriginal = dataOriginal.match(/category: ([a-zA-Z-]+)/)
if(categoryOriginal) {
console.log('categoryOriginal', categoryOriginal[1])
let data = fs.readFileSync(fileOriginal).toString()
data = data.replace(/(---[\s\S]+?---)/, function(m, headerContent) {
headerContent = headerContent.replace(/category: .*\n/, '')
headerContent = headerContent.replace(/---/, `---\ncategory: ${categoryOriginal[1]}`)
return headerContent
})
fs.writeFileSync(fileOriginal, data)
}
}
})
cb()
})
gulp.task('import-tags', function(cb) {
fs.createReadStream('./_import.csv').pipe(csv({
headers: false,
separator: "\t"
}))
.on('data', (row) => {
separator: '\t'
})).on('data', (row) => {
console.log(row[0], row[1])
const filename = `src/_icons/${row[0]}.svg`
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: [${row[1]}]`)
@@ -769,17 +778,18 @@ gulp.task('import-tags', function (cb) {
fs.writeFileSync(filename, data)
})
.on('end', () => {
}).on('end', () => {
console.log('CSV file successfully processed')
})
cb()
})
gulp.task("build-react", function (cb) {
cp.exec("npm run build-react", function () {
gulp.task('build-react', function(cb) {
cp.exec('npm run build-react', function() {
cb()
})
})
gulp.task('build', gulp.series('optimize', 'update-icons-version', 'build-jekyll', 'build-copy', 'icons-sprite', 'svg-to-react', 'build-react', 'icons-preview', 'svg-to-png', 'build-iconfont', 'changelog-image', 'build-zip'))
gulp.task('build',
gulp.series('optimize', 'update-icons-version', 'build-jekyll', 'build-copy', 'icons-sprite', 'svg-to-react', 'build-react', 'icons-preview', 'svg-to-png',
'build-iconfont', 'changelog-image', 'build-zip'))

View File

@@ -1,5 +1,6 @@
---
version: "1.58"
category: Math
---
<svg>
<path d="M5 3v18" />

View File

@@ -1,6 +1,6 @@
---
tags: [device, hosts, airwaves, wireless, network]
category: Devices
tags: [device, hosts, airwaves, wireless, network]
version: "1.25"
---
<svg>

View File

@@ -1,4 +1,5 @@
---
category: System
version: "1.62"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.65"
category: Map
---
<svg>
<path d="M12 12v9" />

View File

@@ -1,5 +1,6 @@
---
version: "1.62"
category: Document
---
<svg>
<path d="M8 4h11a2 2 0 1 1 0 4h-7m-4 0h-3a2 2 0 0 1 -.826 -3.822" />

View File

@@ -1,4 +1,5 @@
---
category: Document
tags: [box, index, records, old, collect]
version: "1.0"
---

View File

@@ -1,4 +1,5 @@
---
category: Design
version: "1.62"
---
<svg>

View File

@@ -1,4 +1,5 @@
---
category: Design
tags: [graphics, drawing, design, art, canvas]
version: "1.1"
---

View File

@@ -1,6 +1,6 @@
---
tags: [size, dimension, width, height, orientation]
category: Media
tags: [size, dimension, width, height, orientation]
version: "1.27"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [sport, game, sportsman, play, match, pitch]
category: Sport
tags: [sport, game, sportsman, play, match, pitch]
version: "1.39"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.55"
category: Text
---
<svg>
<path d="M4 20h16" />

View File

@@ -1,6 +1,6 @@
---
tags: [cycling, bicycle, sport, wheel]
category: Vehicles
tags: [cycling, bicycle, sport, wheel]
version: "1.0"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [danger, radioactive, toxic, microbe, virus, biotoxin]
category: Symbols
tags: [danger, radioactive, toxic, microbe, virus, biotoxin]
version: "1.18"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [font, style, boldface]
category: Text
tags: [font, style, boldface]
version: "1.3"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.50"
category: Document
---
<svg>
<path d="M19 4v16h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12z" />

View File

@@ -1,5 +1,6 @@
---
version: "1.59"
category: Document
---
<svg>
<path d="M12 20h-6a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12v5" />

View File

@@ -1,5 +1,6 @@
---
version: "1.63"
category: Document
---
<svg>
<path d="M3 19a9 9 0 0 1 9 0a8.999 8.999 0 0 1 5.899 -1.096" />

View File

@@ -1,5 +1,6 @@
---
version: "1.59"
category: Document
---
<svg>
<path d="M14 20h-8a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12v5" />

View File

@@ -1,5 +1,6 @@
---
version: "1.63"
category: Document
---
<svg>
<path d="M11 7h2a2 2 0 0 1 2 2v2m0 4v6l-5 -3l-5 3v-12a2 2 0 0 1 2 -2" />

View File

@@ -1,6 +1,6 @@
---
tags: [read, clip, marker, tag]
category: Document
tags: [read, clip, marker, tag]
version: "1.24"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.63"
category: Document
---
<svg>
<path d="M9 9v10a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-14" />

View File

@@ -1,4 +1,5 @@
---
category: Document
version: "1.52"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.63"
category: Math
---
<svg>
<path d="M5.176 5.177c-.113 .251 -.176 .53 -.176 .823v3c0 1.657 -.895 3 -2 3c1.105 0 2 1.343 2 3v3a2 2 0 0 0 2 2" />

View File

@@ -1,7 +1,7 @@
---
category: Math
tags: [punctuation, additional, information]
version: "1.6"
category: Math
---
<svg>
<path d="M7 4a2 2 0 0 0 -2 2v3a2 3 0 0 1 -2 3a2 3 0 0 1 2 3v3a2 2 0 0 0 2 2" />

View File

@@ -1,5 +1,6 @@
---
version: "1.63"
category: Math
---
<svg>
<path d="M5 5v15h3" />

View File

@@ -1,7 +1,7 @@
---
category: Math
tags: [punctuation, additional, information]
version: "1.6"
category: Math
---
<svg>
<path d="M8 4h-3v16h3" />

View File

@@ -1,5 +1,6 @@
---
version: "1.53"
category: Brand
---
<svg>
<path d="M20 8c-.83 -1 -1.388 -1 -2 -1c-.612 0 -2 .271 -2 2s1.384 2.233 3 3c1.616 .767 2.125 1.812 2 3s-1 2 -3 2s-3 -1 -3.5 -2s-1.585 -4.78 -2.497 -5.997a5 5 0 1 0 -1.003 6.997" />

View File

@@ -1,5 +1,6 @@
---
version: "1.63"
category: Devices
---
<svg>
<path d="M8 4h11a1 1 0 0 1 1 1v11m-.288 3.702a0.997 .997 0 0 1 -.712 .298h-14a1 1 0 0 1 -1 -1v-14c0 -.276 .112 -.526 .293 -.707" />

View File

@@ -1,7 +1,7 @@
---
category: Devices
tags: [internet, web, display]
version: "1.5"
category: Devices
---
<svg>
<rect x="4" y="4" width="16" height="16" rx="1" />

View File

@@ -1,6 +1,6 @@
---
tags: [photo, photographer, sharpen]
category: Media
tags: [photo, photographer, sharpen]
version: "1.11"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [vehicle, drive, driver, engine, motor, journey, trip]
category: Vehicles
tags: [vehicle, drive, driver, engine, motor, journey, trip]
version: "1.5"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.63"
category: Devices
---
<svg>
<path d="M20.96 16.953c.026 -.147 .04 -.298 .04 -.453v-8.5a2 2 0 0 0 -2 -2h-9m-4 0h-1a2 2 0 0 0 -2 2v8.5a2.5 2.5 0 0 0 2.5 2.5h1.06a3 3 0 0 0 2.34 -1.13l1.54 -1.92a2 2 0 0 1 3.12 0l1.54 1.92a3 3 0 0 0 2.34 1.13h1.06c.155 0 .307 -.014 .454 -.041" />

View File

@@ -1,4 +1,5 @@
---
category: Devices
tags: [vr, virtual reality, watch, viewer, technology]
version: "1.33"
---

View File

@@ -1,6 +1,6 @@
---
tags: [sign, marking, administration, administrative, conformity, health, safety, environment, protection, standards, product, europe, eea, economic, area, manufacture]
category: Symbols
tags: [sign, marking, administration, administrative, conformity, health, safety, environment, protection, standards, product, europe, eea, economic, area, manufacture]
version: "1.33"
---
<svg>

View File

@@ -1,7 +1,7 @@
---
category: Document
tags: [document, official, attest, signature, birth, death, gift, authenticity, seal, course, complete, qualification]
version: "1.33"
category: Document
---
<svg>
<circle cx="15" cy="15" r="3" />

View File

@@ -1,4 +1,5 @@
---
category: Electrical
version: "1.74"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.61"
category: System
---
<svg>
<rect x="4" y="4" width="16" height="16" rx="1" />

View File

@@ -1,5 +1,6 @@
---
version: "1.63"
category: System
---
<svg>
<path d="M12 7v1" />

View File

@@ -1,4 +1,5 @@
---
category: System
tags: [time, watch, alarm]
version: "1.0"
---

View File

@@ -1,6 +1,6 @@
---
tags: [weather, online]
category: Weather
tags: [weather, online]
version: "1.0"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.65"
category: Food
---
<svg>
<path d="M3 14c.83 .642 2.077 1.017 3.5 1c1.423 .017 2.67 -.358 3.5 -1c.73 -.565 1.783 -.923 2.994 -.99" />

View File

@@ -1,6 +1,6 @@
---
tags: [timbre, saturation, paint, image, brush, choice, selection, sample]
category: Design
tags: [timbre, saturation, paint, image, brush, choice, selection, sample]
version: "1.7"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [text, gap, table]
category: Text
tags: [text, gap, table]
version: "1.3"
---
<svg>

View File

@@ -1,4 +1,5 @@
---
category: Design
version: "1.63"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [element, html, block, store, inside]
category: Design
tags: [element, html, block, store, inside]
version: "1.39"
---
<svg>

View File

@@ -1,7 +1,7 @@
---
category: Symbols
tags: [licence, license]
version: "1.11"
category: Symbols
---
<svg>
<circle cx="12" cy="12" r="9" />

View File

@@ -1,7 +1,7 @@
---
category: Symbols
tags: [licence, license]
version: "1.0"
category: Symbols
---
<svg>
<circle cx="12" cy="12" r="9" />

View File

@@ -1,6 +1,6 @@
---
version: "1.47"
category: Symbols
version: "1.47"
---
<svg>
<path d="M10 21h4v-9h5v-4h-5v-5h-4v5h-5v4h5z" />

View File

@@ -1,6 +1,6 @@
---
tags: [localization, maps, navigation, pin, target]
category: Map
tags: [localization, maps, navigation, pin, target]
version: "1.22"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
version: "1.55"
category: Health
version: "1.55"
---
<svg>
<path d="M12 5.5c-1.074 -.586 -2.583 -1.5 -4 -1.5c-2.1 -.001 -4 1.247 -4 5c0 4.899 1.056 8.41 2.671 10.537c.573 .756 1.97 .521 2.567 -.236c.398 -.505 .819 -1.439 1.262 -2.801c.292 -.771 .892 -1.504 1.5 -1.5c.602 .004 1.21 .737 1.5 1.5c.443 1.362 .864 2.295 1.262 2.8c.597 .759 1.994 .993 2.567 .237c1.615 -2.127 2.671 -5.637 2.671 -10.537c0 -3.74 -1.908 -4.994 -4 -5c-1.423 -.004 -2.92 .911 -4 1.5z" />

View File

@@ -1,6 +1,6 @@
---
tags: [video, meeting, record, recording, webcam]
category: Devices
tags: [video, meeting, record, recording, webcam]
version: "1.39"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [monitor, computer, imac]
category: Devices
tags: [monitor, computer, imac]
version: "1.0"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.58"
category: Devices
---
<svg>
<rect x="4" y="4" width="16" height="16" rx="2" />

View File

@@ -1,6 +1,6 @@
---
tags: [workstation, mac, notebook, portable, screen, computer]
category: Devices
tags: [workstation, mac, notebook, portable, screen, computer]
version: "1.2"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [iphone, phone, smartphone, cellphone]
category: Devices
tags: [iphone, phone, smartphone, cellphone]
version: "1.0"
---
<svg>

View File

@@ -1,4 +1,5 @@
---
category: Devices
version: "1.65"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.65"
category: Devices
---
<svg>
<path d="M7 3h10a2 2 0 0 1 2 2v10m0 4a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-14" />

View File

@@ -1,6 +1,6 @@
---
tags: [sound, music, loud, audio, media]
category: Devices
tags: [sound, music, loud, audio, media]
version: "1.1"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [ipad, mobile, touchscreen, portable]
category: Devices
tags: [ipad, mobile, touchscreen, portable]
version: "1.0"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [screen, display, movie, film, watch, audio, video, media]
category: Devices
tags: [screen, display, movie, film, watch, audio, video, media]
version: "1.0"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [arm, hour, date, minutes, sec., timer]
category: Devices
tags: [arm, hour, date, minutes, sec., timer]
version: "1.8"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.58"
category: Devices
---
<svg>
<path d="M13 9a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v8m-1 3h-6a1 1 0 0 1 -1 -1v-6" />

View File

@@ -1,6 +1,6 @@
---
tags: [computer, monitor, keyboard]
category: Devices
tags: [computer, monitor, keyboard]
version: "1.39"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [computer, laptop, notebook, tablet, phone, mobile, mac, iphone]
category: Devices
tags: [computer, laptop, notebook, tablet, phone, mobile, mac, iphone]
version: "1.3"
---
<svg>

View File

@@ -1,7 +1,7 @@
---
category: Health
tags: [wheelchair, handicapped]
version: "1.0"
category: Health
---
<svg>
<circle cx="11" cy="5" r="2" />

View File

@@ -1,7 +1,7 @@
---
category: Health
tags: [genetics, biology, chain, genetic, code, virus, organism]
version: "1.39"
category: Health
---
<svg>
<circle transform="rotate(-45 12 12)" cx="12" cy="12" r="4" />

View File

@@ -1,6 +1,6 @@
---
tags: [device, fly, aircraft, surveillance, control, autonomous]
category: Vehicles
tags: [device, fly, aircraft, surveillance, control, autonomous]
version: "1.33"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [delete, remove, eliminate, wipe-out]
category: Text
tags: [delete, remove, eliminate, wipe-out]
version: "1.3"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
version: "1.49"
category: Health
version: "1.49"
---
<svg>
<path d="M5.002 14.5h-.222c-1.535 0 -2.778 -1.12 -2.778 -2.5s1.243 -2.5 2.778 -2.5h.222" />

View File

@@ -1,7 +1,7 @@
---
category: Nature
tags: [bird, animal, nature]
version: "1.39"
category: Nature
---
<svg>
<path d="M4 20l10 -10m0 -5v5h5m-9 -1v5h5m-9 -1v5h5m-5 -5l4 -4l4 -4" />

View File

@@ -1,6 +1,6 @@
---
tags: [paper, new]
category: Document
tags: [paper, new]
version: "1.0"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [forms, documents, stack, letter]
category: Document
tags: [forms, documents, stack, letter]
version: "1.38"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [banner, pin, report, map, warning, alert]
category: Map
tags: [banner, pin, report, map, warning, alert]
version: "1.39"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [banner, pin, report, map, warning, alert]
category: Map
tags: [banner, pin, report, map, warning, alert]
version: "1.0"
---
<svg>

View File

@@ -1,7 +1,7 @@
---
category: Health
tags: [liquid, container, glass, chemistry]
version: "1.6"
category: Health
---
<svg>
<line x1="9" y1="3" x2="15" y2="3" />

View File

@@ -1,6 +1,6 @@
---
tags: [cancel, "no", directory, dir]
category: Document
tags: [cancel, "no", directory, dir]
version: "1.0"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [directory, dir, clone, copy]
category: Document
tags: [directory, dir, clone, copy]
version: "1.0"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.66"
category: Math
---
<svg>
<path d="M9 16v-5a2 2 0 1 0 -4 0" />

View File

@@ -1,4 +1,5 @@
---
category: Math
version: "1.61"
---
<svg>

View File

@@ -1,4 +1,5 @@
---
category: Math
version: "1.72"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [fuel, oil, cars, vehicles, shop, distributor]
category: Map
tags: [fuel, oil, cars, vehicles, shop, distributor]
category: Vehicles
version: "1.14"
---

View File

@@ -1,6 +1,6 @@
---
tags: [game, ball, play, hole, club-and-ball, stroke, luxury, pitch]
category: Sport
tags: [game, ball, play, hole, club-and-ball, stroke, luxury, pitch]
version: "1.34"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [point, show, index, forefinger, body, human, palm]
category: Gestures
tags: [point, show, index, forefinger, body, human, palm]
version: "1.39"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: [main, text, headline, style, styling, html]
category: Text
tags: [main, text, headline, style, styling, html]
version: "1.39"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.66"
category: Shapes
---
<svg>
<path d="M3 3l18 18" />

View File

@@ -1,6 +1,6 @@
---
tags: [shape, geometric, math, 2D]
category: Shapes
tags: [shape, geometric, math, 2D]
version: "1.8"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.66"
category: System
---
<svg>
<path d="M6 20v-2a6 6 0 1 1 12 0v2a1 1 0 0 1 -1 1h-10a1 1 0 0 1 -1 -1z" />

View File

@@ -1,5 +1,6 @@
---
version: "1.60"
category: System
---
<svg>
<path d="M6.5 7h11" />

View File

@@ -1,5 +1,6 @@
---
version: "1.60"
category: System
---
<svg>
<path d="M6.5 17h11" />

View File

@@ -1,5 +1,6 @@
---
version: "1.66"
category: System
---
<svg>
<path d="M18 18v2a1 1 0 0 1 -1 1h-10a1 1 0 0 1 -1 -1v-2a6 6 0 0 1 6 -6" />

View File

@@ -1,4 +1,5 @@
---
category: System
version: "1.47"
---
<svg>

View File

@@ -1,7 +1,7 @@
---
category: Food
tags: [candy, dessert, frozen, sweet]
version: "1.0"
category: Food
---
<svg>
<path d="M12 21.5v-4.5" />

View File

@@ -1,6 +1,6 @@
---
tags: [computer, laptop, device, type]
category: Devices
tags: [computer, laptop, device, type]
version: "1.6"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.66"
category: Nature
---
<svg>
<path d="M5 21c.474 -4.264 2.294 -7.63 6.313 -9.673" />

View File

@@ -1,6 +1,6 @@
---
tags: [nature, plant, tree, autumn, fall, greenery, flower, forest, garden]
category: Nature
tags: [nature, plant, tree, autumn, fall, greenery, flower, forest, garden]
version: "1.29"
---
<svg>

View File

@@ -1,5 +1,6 @@
---
version: "1.58"
category: Communication
---
<svg>
<path d="M3 7h3" />

View File

@@ -1,5 +1,6 @@
---
version: "1.66"
category: Communication
---
<svg>
<path d="M9 5h10a2 2 0 0 1 2 2v10m-2 2h-14a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2" />

View File

@@ -1,6 +1,6 @@
---
tags: [edit, layer, mask, tool, design]
category: Design
tags: [edit, layer, mask, tool, design]
version: "1.39"
---
<svg>

View File

@@ -1,6 +1,6 @@
---
tags: sdfsfg
category: Math
tags: sdfsfg
version: "1.39"
---
<svg>

Some files were not shown because too many files have changed in this diff Show More