forked from MapComplete/MapComplete
Chore: update idPresets, include script to update the translation files
This commit is contained in:
parent
19b662273a
commit
55bf0fa2f1
16 changed files with 2179 additions and 441 deletions
1
assets/layers/id_presets/fas-hand-holding.svg
Normal file
1
assets/layers/id_presets/fas-hand-holding.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M66.7 384l42.5-42.5c24-24 56.6-37.5 90.5-37.5L352 304c17.7 0 32 14.3 32 32s-14.3 32-32 32l-72 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l112.6 0 119.7-88.2c17.8-13.1 42.8-9.3 55.9 8.5s9.3 42.8-8.5 55.9L433.1 485.5c-23.4 17.2-51.6 26.5-80.7 26.5L32 512c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l34.7 0z"/></svg>
|
After Width: | Height: | Size: 613 B |
2
assets/layers/id_presets/fas-hand-holding.svg.license
Normal file
2
assets/layers/id_presets/fas-hand-holding.svg.license
Normal file
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: Font-Awesome icon set
|
||||
SPDX-License-Identifier: CC-BY 4.0
|
1
assets/layers/id_presets/fas-palette.svg
Normal file
1
assets/layers/id_presets/fas-palette.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M512 256c0 .9 0 1.8 0 2.7-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48 0 3.4 .4 6.7 1 9.9 2.1 10.2 6.5 20 10.8 29.9 6.1 13.8 12.1 27.5 12.1 42 0 31.8-21.6 60.7-53.4 62-3.5 .1-7 .2-10.6 .2-141.4 0-256-114.6-256-256S114.6 0 256 0 512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"/></svg>
|
After Width: | Height: | Size: 738 B |
2
assets/layers/id_presets/fas-palette.svg.license
Normal file
2
assets/layers/id_presets/fas-palette.svg.license
Normal file
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: Font-Awesome icon set
|
||||
SPDX-License-Identifier: CC-BY 4.0
|
1
assets/layers/id_presets/fas-smoking.svg
Normal file
1
assets/layers/id_presets/fas-smoking.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M360 0c13.3 0 24 10.7 24 24l0 19c0 40.3 16 79 44.5 107.5l21 21C469 191 480 217.4 480 245l0 19c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-19c0-14.9-5.9-29.1-16.4-39.6l-21-21C357.1 146.9 336 96 336 43l0-19c0-13.3 10.7-24 24-24zM552 288c-13.3 0-24-10.7-24-24l0-19c0-40.3-16-79-44.5-107.5l-21-21C443 97 432 70.6 432 43l0-19c0-13.3 10.7-24 24-24s24 10.7 24 24l0 19c0 14.9 5.9 29.1 16.4 39.6l21 21C554.9 141.1 576 192 576 245l0 19c0 13.3-10.7 24-24 24zM320 448l96 0 0-32-96 0 0 32zM0 416c0-35.3 28.7-64 64-64l384 0c17.7 0 32 14.3 32 32l0 96c0 17.7-14.3 32-32 32L64 512c-35.3 0-64-28.7-64-64l0-32zm576-40l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24s24 10.7 24 24z"/></svg>
|
After Width: | Height: | Size: 987 B |
2
assets/layers/id_presets/fas-smoking.svg.license
Normal file
2
assets/layers/id_presets/fas-smoking.svg.license
Normal file
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: Font-Awesome icon set
|
||||
SPDX-License-Identifier: CC-BY 4.0
|
1
assets/layers/id_presets/fas-store-alt-slash.svg
Normal file
1
assets/layers/id_presets/fas-store-alt-slash.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Free 7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc. --><path fill="currentColor" d="M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-57-57 0-190.3c26.8-1.9 48-24.3 48-51.6 0-8-1.9-16-5.5-23.2L497.7 67.4C486.8 45.7 464.7 32 440.4 32L135.6 32c-10.7 0-21 2.7-30.2 7.6L41-24.9zM321.8 256L448 256 448 382.2 321.8 256zM352 421.8l-64-64 0 10.2c0 8.8-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16l0-112 58.2 0-134.8-134.8-29.9 59.9c-3.6 7.2-5.5 15.1-5.5 23.2 0 27.3 21.2 49.7 48 51.6L64 432c0 26.5 21.5 48 48 48l192 0c26.5 0 48-21.5 48-48l0-10.2z"/></svg>
|
After Width: | Height: | Size: 807 B |
2
assets/layers/id_presets/fas-store-alt-slash.svg.license
Normal file
2
assets/layers/id_presets/fas-store-alt-slash.svg.license
Normal file
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: Font-Awesome icon set
|
||||
SPDX-License-Identifier: CC-BY 4.0
|
File diff suppressed because it is too large
Load diff
|
@ -249,6 +249,16 @@
|
|||
"https://github.com/FortAwesome/Font-Awesome"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "fas-hand-holding.svg",
|
||||
"license": "CC-BY 4.0",
|
||||
"authors": [
|
||||
"Font-Awesome icon set"
|
||||
],
|
||||
"sources": [
|
||||
"https://github.com/FortAwesome/Font-Awesome"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "fas-hat-cowboy-side.svg",
|
||||
"license": "CC-BY 4.0",
|
||||
|
@ -349,6 +359,16 @@
|
|||
"https://github.com/FortAwesome/Font-Awesome"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "fas-palette.svg",
|
||||
"license": "CC-BY 4.0",
|
||||
"authors": [
|
||||
"Font-Awesome icon set"
|
||||
],
|
||||
"sources": [
|
||||
"https://github.com/FortAwesome/Font-Awesome"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "fas-paperclip.svg",
|
||||
"license": "CC-BY 4.0",
|
||||
|
@ -419,6 +439,16 @@
|
|||
"https://github.com/FortAwesome/Font-Awesome"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "fas-smoking.svg",
|
||||
"license": "CC-BY 4.0",
|
||||
"authors": [
|
||||
"Font-Awesome icon set"
|
||||
],
|
||||
"sources": [
|
||||
"https://github.com/FortAwesome/Font-Awesome"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "fas-snowflake.svg",
|
||||
"license": "CC-BY 4.0",
|
||||
|
@ -429,6 +459,16 @@
|
|||
"https://github.com/FortAwesome/Font-Awesome"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "fas-store-alt-slash.svg",
|
||||
"license": "CC-BY 4.0",
|
||||
"authors": [
|
||||
"Font-Awesome icon set"
|
||||
],
|
||||
"sources": [
|
||||
"https://github.com/FortAwesome/Font-Awesome"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "fas-store.svg",
|
||||
"license": "CC-BY 4.0",
|
||||
|
@ -559,6 +599,16 @@
|
|||
"https://github.com/mapbox/maki"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "maki-art-gallery.svg",
|
||||
"license": "CC0-1.0",
|
||||
"authors": [
|
||||
"Maki icon set"
|
||||
],
|
||||
"sources": [
|
||||
"https://github.com/mapbox/maki"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "maki-bakery.svg",
|
||||
"license": "CC0-1.0",
|
||||
|
@ -569,6 +619,16 @@
|
|||
"https://github.com/mapbox/maki"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "maki-bbq.svg",
|
||||
"license": "CC0-1.0",
|
||||
"authors": [
|
||||
"Maki icon set"
|
||||
],
|
||||
"sources": [
|
||||
"https://github.com/mapbox/maki"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "maki-bicycle.svg",
|
||||
"license": "CC0-1.0",
|
||||
|
|
4
assets/layers/id_presets/maki-art-gallery.svg
Normal file
4
assets/layers/id_presets/maki-art-gallery.svg
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg height="15" viewBox="0 0 15 15" width="15" xmlns="http://www.w3.org/2000/svg" id="art-gallery">
|
||||
<path d="m10.71 3-2.86-2.849996c-.1945-.1960996-.511-.1973996-.7071-.0029-.001.001-.0019.0019-.0029.0029l-2.85 2.849996h-2.79c-.2761 0-.5.2239-.5.5v9c0 .2761.2239.5.5.5h12c.2761 0 .5-.2239.5-.5v-9c0-.2761-.2239-.5-.5-.5zm-3.21-1.79 1.79 1.79h-3.58zm5.5 10.79h-11v-8h11zm-8-5c-.5523 0-1-.4477-1-1s.4477-1 1-1 1 .4477 1 1-.4477 1-1 1zm7 4h-7.5l1.5-3 1.25 2.5 2.25-4.5z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 518 B |
2
assets/layers/id_presets/maki-art-gallery.svg.license
Normal file
2
assets/layers/id_presets/maki-art-gallery.svg.license
Normal file
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: Maki icon set
|
||||
SPDX-License-Identifier: CC0
|
4
assets/layers/id_presets/maki-bbq.svg
Normal file
4
assets/layers/id_presets/maki-bbq.svg
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg id="bbq" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15">
|
||||
<path d="M9.32,7.655C10.8782,7.108,11.9471,5.6506,12,4H3c0.053,1.6299,1.0978,3.0728,2.63,3.631L4.923,9.044
	c-1.3571-0.2355-2.6482,0.6737-2.8837,2.0308s0.6737,2.6482,2.0308,2.8837C4.9927,14.1187,5.9273,13.7485,6.49,13h4.223l0.335,0.717
	c0.0836,0.1735,0.2594,0.2836,0.452,0.283c0.0733,0.0003,0.1457-0.0158,0.212-0.047c0.2497-0.117,0.3575-0.4141,0.241-0.664
	L9.32,7.655z M4.5,12.75c-0.6904,0-1.25-0.5596-1.25-1.25s0.5596-1.25,1.25-1.25s1.25,0.5596,1.25,1.25
	C5.7484,12.1897,5.1897,12.7484,4.5,12.75z M6.95,12c0.2066-1.007-0.2268-2.0374-1.091-2.594L6.6,7.923
	c0.577,0.1042,1.168,0.1042,1.745,0l1.9,4.07L6.95,12z M4.75,1C4.6119,1,4.5,1.1119,4.5,1.25c0,0.5-0.5,0.5-0.5,0.5c-1,0-1,1-1,1
	C3,2.8881,3.1119,3,3.25,3S3.5,2.8881,3.5,2.75c0-0.5,0.5-0.5,0.5-0.5c1,0,1-1,1-1C5,1.1119,4.8881,1,4.75,1z M6.75,1
	C6.6119,1,6.5,1.1119,6.5,1.25c0,0.5-0.5,0.5-0.5,0.5c-1,0-1,1-1,1C5,2.8881,5.1119,3,5.25,3S5.5,2.8881,5.5,2.75
	c0-0.5,0.5-0.5,0.5-0.5c1,0,1-1,1-1C7,1.1119,6.8881,1,6.75,1z M8.75,1C8.6119,1,8.5,1.1119,8.5,1.25c0,0.5-0.5,0.5-0.5,0.5
	c-1,0-1,1-1,1C7,2.8881,7.1119,3,7.25,3S7.5,2.8881,7.5,2.75c0-0.5,0.5-0.5,0.5-0.5c1,0,1-1,1-1C9,1.1119,8.8881,1,8.75,1z M10.75,1
	c-0.1381,0-0.25,0.1119-0.25,0.25c0,0.5-0.5,0.5-0.5,0.5c-1,0-1,1-1,1C9,2.8881,9.1119,3,9.25,3S9.5,2.8881,9.5,2.75
	c0-0.5,0.5-0.5,0.5-0.5c1,0,1-1,1-1C11,1.1119,10.8881,1,10.75,1z M12.75,1c-0.1381,0-0.25,0.1119-0.25,0.25c0,0.5-0.5,0.5-0.5,0.5
	c-1,0-1,1-1,1C11,2.8881,11.1119,3,11.25,3s0.25-0.1119,0.25-0.25c0-0.5,0.5-0.5,0.5-0.5c1,0,1-1,1-1C13,1.1119,12.8881,1,12.75,1z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.7 KiB |
2
assets/layers/id_presets/maki-bbq.svg.license
Normal file
2
assets/layers/id_presets/maki-bbq.svg.license
Normal file
|
@ -0,0 +1,2 @@
|
|||
SPDX-FileCopyrightText: Maki icon set
|
||||
SPDX-License-Identifier: CC0
|
10
scripts/thieves/prepareIdPresets.sh
Executable file
10
scripts/thieves/prepareIdPresets.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#! /bin/bash
|
||||
|
||||
cd ~/git/id-tagging-schema/
|
||||
git pull
|
||||
nvm use
|
||||
transifex_password="1/9b0a0299f5f9889a372842dc91ea956f4ab16a7b"
|
||||
export transifex_password
|
||||
npm run translations
|
||||
npm run build
|
||||
npm run dist
|
|
@ -305,10 +305,12 @@ class ReadIdPresets extends Script {
|
|||
}
|
||||
|
||||
async main(args: string[]): Promise<void> {
|
||||
console.log("Did you run 'prepareIdPresets.sh first?")
|
||||
const targetDir = args[1] ?? "./assets/layers/id_presets/"
|
||||
|
||||
const gitReposRoot = "../"
|
||||
const makiThief = new MakiThief(
|
||||
"../maki/icons/",
|
||||
gitReposRoot + "maki/icons/",
|
||||
targetDir + "maki-",
|
||||
{
|
||||
authors: ["Maki icon set"],
|
||||
|
@ -319,7 +321,7 @@ class ReadIdPresets extends Script {
|
|||
)
|
||||
|
||||
const temakiThief = new MakiThief(
|
||||
"../temaki/icons/",
|
||||
gitReposRoot + "temaki/icons/",
|
||||
targetDir + "temaki-",
|
||||
{
|
||||
authors: ["Temaki icon set"],
|
||||
|
@ -329,7 +331,7 @@ class ReadIdPresets extends Script {
|
|||
"temaki-"
|
||||
)
|
||||
const fasThief = new MakiThief(
|
||||
"../Font-Awesome/svgs/solid/",
|
||||
gitReposRoot + "Font-Awesome/svgs/solid/",
|
||||
targetDir + "fas-",
|
||||
{
|
||||
authors: ["Font-Awesome icon set"],
|
||||
|
@ -339,7 +341,7 @@ class ReadIdPresets extends Script {
|
|||
"fas-"
|
||||
)
|
||||
const roentgenThief = new MakiThief(
|
||||
"../Roentgen/icons/",
|
||||
gitReposRoot + "Roentgen/icons/",
|
||||
targetDir+"roentgen-",
|
||||
{
|
||||
authors: ["Roentgen icon set"],
|
||||
|
@ -351,7 +353,7 @@ class ReadIdPresets extends Script {
|
|||
|
||||
const iconThief = new AggregateIconThief([makiThief, temakiThief, fasThief, roentgenThief])
|
||||
|
||||
const thief = new IdThief(args[0] ?? "../id-tagging-schema/", iconThief)
|
||||
const thief = new IdThief(args[0] ?? gitReposRoot + "id-tagging-schema/", iconThief)
|
||||
|
||||
const id_presets_path = targetDir + "id_presets.json"
|
||||
const idPresets = <LayerConfigJson>JSON.parse(readFileSync(id_presets_path, "utf8"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue