diff --git a/README.md b/README.md index dca45d8..0178562 100644 --- a/README.md +++ b/README.md @@ -209,17 +209,9 @@ Camera Icon, Dave Gandy, CC-BY-SA 3.0 https://commons.wikimedia.org/wiki/File:OOjs_UI_indicator_search-rtl.svg Search Icon, MIT -https://commons.wikimedia.org/wiki/File:Trash_font_awesome.svg -Trash icon by Dave Gandy, CC-BY-SA - -https://commons.wikimedia.org/wiki/File:Home-icon.svg -Home icon by Timothy Miller, CC-BY-SA 3.0 - https://commons.wikimedia.org/wiki/File:Map_icons_by_Scott_de_Jonge_-_bicycle-store.svg Bicycle logo, Scott de Jonge -Nature Reserve icon via http://www.onlinewebfonts.com/icon/389579, CC BY 3.0 (@ Эдуард Черных) - Park icon via http://www.onlinewebfonts.com/icon/425974, CC BY 3.0 (@sterankofrank) Forest icon via https://www.onlinewebfonts.com/icon/498112, CC BY @@ -236,6 +228,4 @@ Urinal icon: https://thenounproject.com/term/urinal/1307984/ 24/7 icon: https://www.vecteezy.com/vector-art/1394992-24-7-service-and-support-icon-set -Translation-icon: https://commons.wikimedia.org/wiki/File:OOjs_UI_icon_language-ltr.svg - -PingPong-table icon: Font Awesome Free 5.2.0 by @fontawesome - https://fontawesome.com +Translation-icon: https://commons.wikimedia.org/wiki/File:OOjs_UI_icon_language-ltr.svg \ No newline at end of file diff --git a/assets/layers/maps/map-stickered.svg.license_info.json b/assets/layers/maps/map-stickered.svg.license_info.json index 4eae06a..5e1bcae 100644 --- a/assets/layers/maps/map-stickered.svg.license_info.json +++ b/assets/layers/maps/map-stickered.svg.license_info.json @@ -10,4 +10,4 @@ "https://OpenStreetMap.org", " https://wiki.openstreetmap.org/wiki/Logos" ] -} \ No newline at end of file +} diff --git a/scripts/generateLicenseInfo.ts b/scripts/generateLicenseInfo.ts index edc9c5d..8279f18 100644 --- a/scripts/generateLicenseInfo.ts +++ b/scripts/generateLicenseInfo.ts @@ -107,6 +107,10 @@ knownLicenses.set("na", { function promptLicenseFor(path): SmallLicense { + console.log("License abbreviations:") + knownLicenses.forEach((value, key) => { + console.log(key, " => ", value) + }) const author = prompt("What is the author for artwork " + path + "? (or: [Q]uit, [S]kip) > ") path = path.substring(path.lastIndexOf("/") + 1) @@ -122,6 +126,10 @@ function promptLicenseFor(path): SmallLicense { if (author == "Q" || author == "q" || author == "") { throw "Quitting now!" } + let authors = author.split(";") + if(author.toLowerCase() == "none"){ + authors = [] + } return { authors: author.split(";"), path: path, @@ -169,7 +177,7 @@ const missingLicenses = missingLicenseInfos(licenseInfos, artwork) console.log(`There are ${missingLicenses.length} licenses missing.`) -shuffle(missingLicenses) +// shuffle(missingLicenses) let i = 1; for (const missingLicens of missingLicenses) {