Skip to content
Snippets Groups Projects
Commit 7f210d55 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

first working version

parent a10388dc
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
...@@ -77,19 +77,20 @@ test-unit: $(CODECEPT) ...@@ -77,19 +77,20 @@ test-unit: $(CODECEPT)
catalogs: npm $(CATALOGS) catalogs: npm $(CATALOGS)
# black = #000000 clean-icons:
# blue = #28497c find public/assets/images/icons -type f -not -path '*blue*' -delete
# green = #00962d
# grey = #6e6e6e
# red = #cb1800
# white = #ffffff
# yellow = #ffad00
icons:
declare -A colorMap=(["black"]="#000000" ["green"]="#00962d" ["grey"]="#6e6e6e" ["red"]="#cb1800" ["white"]="#ffffff" ["yellow"]="#ffad00")
optimize-icons: npm optimize-icons: npm
find public/assets/images/icons -type f | xargs -P0 npx svgo -q --config=config/svgo.config.js find public/assets/images/icons -type f | xargs -P0 npx svgo -q --config=config/svgo.config.js
icons: optimize-icons
find public/assets/images/icons/blue -type f -print0 | xargs -0 -n1 -I{} echo 'sed "s/#28497c/#000000/" {} > {}' | sed 's#icons/blue#icons/black#2' | sh
find public/assets/images/icons/blue -type f -print0 | xargs -0 -n1 -I{} echo 'sed "s/#28497c/#00962d/" {} > {}' | sed 's#icons/blue#icons/green#2' | sh
find public/assets/images/icons/blue -type f -print0 | xargs -0 -n1 -I{} echo 'sed "s/#28497c/#6e6e6e/" {} > {}' | sed 's#icons/blue#icons/grey#2' | sh
find public/assets/images/icons/blue -type f -print0 | xargs -0 -n1 -I{} echo 'sed "s/#28497c/#cb1800/" {} > {}' | sed 's#icons/blue#icons/red#2' | sh
find public/assets/images/icons/blue -type f -print0 | xargs -0 -n1 -I{} echo 'sed "s/#28497c/#ffffff/" {} > {}' | sed 's#icons/blue#icons/white#2' | sh
find public/assets/images/icons/blue -type f -print0 | xargs -0 -n1 -I{} echo 'sed "s/#28497c/#ffad00/" {} > {}' | sed 's#icons/blue#icons/yellow#2' | sh
# default rules for gettext handling # default rules for gettext handling
js-%.pot: $(VUE_SOURCES) js-%.pot: $(VUE_SOURCES)
npx gettext-extract --attribute v-translate --output $@ $(VUE_SOURCES) npx gettext-extract --attribute v-translate --output $@ $(VUE_SOURCES)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment