1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-18 04:11:48 +02:00

Merge pull request #2118 from Snailedlt/some-small-fixes

Some small fixes
This commit is contained in:
Jørgen Kalsnes Hagen
2024-02-16 20:21:26 +01:00
committed by GitHub
3 changed files with 9881 additions and 9531 deletions

View File

@@ -1,223 +1,224 @@
{ {
"$schema": "http://json-schema.org/draft-07/schema", "$schema": "http://json-schema.org/draft-07/schema",
"definitions": { "definitions": {
"IconVersions": { "IconVersions": {
"type": "string", "type": "string",
"enum": [ "enum": [
"original", "original",
"plain", "plain",
"line", "line",
"original-wordmark", "original-wordmark",
"plain-wordmark", "plain-wordmark",
"line-wordmark" "line-wordmark"
] ]
}, },
"IconVersionsArray": { "IconVersionsArray": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/definitions/IconVersions" "$ref": "#/definitions/IconVersions"
} }
}
},
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"title": "The official name of the technology.",
"description": "Pattern: Only lower-case letters and digits.",
"pattern": "^(dot-net|[0-9a-z]+)$"
},
"altnames": {
"type": "array",
"title": "List of alternative names for this technology.",
"description": "Used for the searchbar on the Devicon website. https://devicon.dev",
"uniqueItems": true,
"items": {
"type": "string"
} }
}, },
"tags": { "type": "array",
"type": "array", "items": {
"title": "List of tags relating to the technology for categorization/search purpose.",
"$ref": "./tags-enum.json/#/definitions/Tags"
},
"versions": {
"title": "Keeps track of the different versions that you have.",
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"svg": { "name": {
"title": "List all the SVGs that you have.", "type": "string",
"contains": { "title": "The official name of the technology.",
"$ref": "#/definitions/IconVersions" "description": "Pattern: Only lower-case letters and digits.",
"pattern": "^(dot-net|[0-9a-z]+)$"
}, },
"minItems": 1, "altnames": {
"uniqueItems": true, "type": "array",
"$ref": "#/definitions/IconVersionsArray" "title": "List of alternative names for this technology.",
}, "description": "Used for the searchbar on the Devicon website. https://devicon.dev",
"font": { "uniqueItems": true,
"title": "List only the SVGs that can be converted to fonts. Usually refers to \"plain\" and \"line\" versions but \"original\" can be accepted.", "items": {
"description": "DO NOT list aliases here! In this case use \"aliases\" property!", "type": "string"
"contains": { }
"$ref": "#/definitions/IconVersions"
}, },
"minItems": 1, "tags": {
"uniqueItems": true, "type": "array",
"$ref": "#/definitions/IconVersionsArray" "title": "List of tags relating to the technology for categorization/search purpose.",
} "$ref": "./tags-enum.json/#/definitions/Tags"
}
},
"color": {
"title": "The official/main hexadecimal color of the logo. [Case insensitive]",
"description": "Pattern example: #FFFFFF",
"type": "string",
"pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
},
"aliases": {
"title": "Keeps track of the aliases for the font versions ONLY.",
"description": "Can be empty, or contain objects, each with an alias and a base version. More info here: https://github.com/devicons/devicon/wiki/Updating-%60devicon.json%60#aliases-and-aliasobj",
"type": "array",
"items": {
"title": "AliasObj, an object containing an alias and a base version",
"type": "object",
"additionalProperties": false,
"properties": {
"base": {
"title": "The SVG file you are using as source for the alias.",
"$ref": "#/definitions/IconVersions"
}, },
"alias": { "versions": {
"title": "The new name (alias) that you want to generate.", "title": "Keeps track of the different versions that you have.",
"$ref": "#/definitions/IconVersions" "type": "object",
"additionalProperties": false,
"properties": {
"svg": {
"title": "List all the SVGs that you have.",
"contains": {
"$ref": "#/definitions/IconVersions"
},
"minItems": 1,
"uniqueItems": true,
"$ref": "#/definitions/IconVersionsArray"
},
"font": {
"title": "List only the SVGs that can be converted to fonts. Usually refers to \"plain\" and \"line\" versions but \"original\" can be accepted.",
"description": "DO NOT list aliases here! In this case use \"aliases\" property!",
"contains": {
"$ref": "#/definitions/IconVersions"
},
"minItems": 1,
"uniqueItems": true,
"$ref": "#/definitions/IconVersionsArray"
}
}
},
"color": {
"title": "The official/main hexadecimal color of the logo. [Case insensitive]",
"description": "Pattern example: #FFFFFF",
"type": "string",
"pattern": "^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$",
"format": "color"
},
"aliases": {
"title": "Keeps track of the aliases for the font versions ONLY.",
"description": "Can be empty, or contain objects, each with an alias and a base version. More info here: https://github.com/devicons/devicon/wiki/Updating-%60devicon.json%60#aliases-and-aliasobj",
"type": "array",
"items": {
"title": "AliasObj, an object containing an alias and a base version",
"type": "object",
"additionalProperties": false,
"properties": {
"base": {
"title": "The SVG file you are using as source for the alias.",
"$ref": "#/definitions/IconVersions"
},
"alias": {
"title": "The new name (alias) that you want to generate.",
"$ref": "#/definitions/IconVersions"
}
},
"required": [
"base",
"alias"
],
"allOf": [
{
"if": {
"properties": {
"base": {
"const": "original"
}
}
},
"then": {
"not": {
"properties": {
"alias": {
"const": "original"
}
}
}
}
},
{
"if": {
"properties": {
"base": {
"const": "plain"
}
}
},
"then": {
"not": {
"properties": {
"alias": {
"const": "plain"
}
}
}
}
},
{
"if": {
"properties": {
"base": {
"const": "line"
}
}
},
"then": {
"not": {
"properties": {
"alias": {
"const": "line"
}
}
}
}
},
{
"if": {
"properties": {
"base": {
"const": "original-wordmark"
}
}
},
"then": {
"not": {
"properties": {
"alias": {
"const": "original-wordmark"
}
}
}
}
},
{
"if": {
"properties": {
"base": {
"const": "plain-wordmark"
}
}
},
"then": {
"not": {
"properties": {
"alias": {
"const": "plain-wordmark"
}
}
}
}
},
{
"if": {
"properties": {
"base": {
"const": "line-wordmark"
}
}
},
"then": {
"not": {
"properties": {
"alias": {
"const": "line-wordmark"
}
}
}
}
}
]
}
} }
}, },
"required": [ "required": [
"base", "name",
"alias" "altnames",
], "tags",
"allOf": [ "versions",
{ "color",
"if": { "aliases"
"properties": { ]
"base": { }
"const": "original"
}
}
},
"then": {
"not": {
"properties": {
"alias": {
"const": "original"
}
}
}
}
},
{
"if": {
"properties": {
"base": {
"const": "plain"
}
}
},
"then": {
"not": {
"properties": {
"alias": {
"const": "plain"
}
}
}
}
},
{
"if": {
"properties": {
"base": {
"const": "line"
}
}
},
"then": {
"not": {
"properties": {
"alias": {
"const": "line"
}
}
}
}
},
{
"if": {
"properties": {
"base": {
"const": "original-wordmark"
}
}
},
"then": {
"not": {
"properties": {
"alias": {
"const": "original-wordmark"
}
}
}
}
},
{
"if": {
"properties": {
"base": {
"const": "plain-wordmark"
}
}
},
"then": {
"not": {
"properties": {
"alias": {
"const": "plain-wordmark"
}
}
}
}
},
{
"if": {
"properties": {
"base": {
"const": "line-wordmark"
}
}
},
"then": {
"not": {
"properties": {
"alias": {
"const": "line-wordmark"
}
}
}
}
}
]
}
}
},
"required": [
"name",
"altnames",
"tags",
"versions",
"color",
"aliases"
]
}
} }

18909
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,38 +1,42 @@
{ {
"name": "devicon", "name": "devicon",
"version": "2.16.0", "version": "2.16.0",
"description": "Programming related icons collection", "description": "Programming related icons collection",
"main": "devicon.min.css", "main": "devicon.min.css",
"scripts": { "scripts": {
"build-css": "gulp updateCss && gulp clean", "build-css": "gulp updateCss && gulp clean",
"peek-test": "python ./.github/scripts/icomoon_peek.py ./.github/scripts/build_assets/geckodriver-v0.32.2-linux64/geckodriver ./icomoon.json ./devicon.json ./icons ./ --pr_title \"$PR_TITLE\"", "peek-test": "python ./.github/scripts/icomoon_peek.py ./.github/scripts/build_assets/geckodriver-v0.32.2-linux64/geckodriver ./icomoon.json ./devicon.json ./icons ./ --pr_title \"$PR_TITLE\"",
"optimize-svg": "gulp optimizeSvg", "optimize-svg": "gulp optimizeSvg",
"bump": "gulp bumpVersion", "bump": "gulp bumpVersion",
"build-icons": "python3 ./.github/scripts/icomoon_build_githubless.py ./.github/scripts/build_assets/geckodriver-v0.32.2-linux64/geckodriver ./icomoon.json ./devicon.json ./icons ./ --headless", "build-icons": "python3 ./.github/scripts/icomoon_build_githubless.py ./.github/scripts/build_assets/geckodriver-v0.32.2-linux64/geckodriver ./icomoon.json ./devicon.json ./icons ./ --headless",
"dev": "python3 -m http.server 8000 -d ./docs/" "dev": "concurrently \"npm:open-browser\" \"npm:start-local-server\"",
}, "start-local-server": "python3 -m http.server 8000",
"repository": { "open-browser": "node -e \"import('open').then(pkg => pkg.default('http://localhost:8000/docs'))\""
"type": "git", },
"url": "https://github.com/devicons/devicon.git" "repository": {
}, "type": "git",
"keywords": [ "url": "https://github.com/devicons/devicon.git"
"programming", },
"icons", "keywords": [
"svg", "programming",
"font" "icons",
], "svg",
"author": "devicons", "font"
"license": "MIT", ],
"bugs": { "author": "devicons",
"url": "https://github.com/devicons/devicon/issues" "license": "MIT",
}, "bugs": {
"homepage": "https://devicon.dev", "url": "https://github.com/devicons/devicon/issues"
"devDependencies": { },
"gulp": "^4.0.2", "homepage": "https://devicon.dev",
"gulp-footer": "^2.0.2", "devDependencies": {
"gulp-sass": "^5.0.0", "concurrently": "^8.2.2",
"gulp-svgmin": "^3.0.0", "gulp": "^4.0.2",
"sass": "^1.26.10", "gulp-footer": "^2.0.2",
"yargs": "^17.0.0" "gulp-sass": "^5.0.0",
} "gulp-svgmin": "^3.0.0",
"open": "^10.0.3",
"sass": "^1.26.10",
"yargs": "^17.0.0"
}
} }