Better loading of nested settings

-Improved loading of settings including warning of missing and/or invalid settings and the ability to load the explorer using defaults without a settings.json file
This commit is contained in:
joeuhren
2021-01-23 16:51:46 -07:00
parent 4790764e2c
commit a538be2dbb
2 changed files with 147 additions and 51 deletions
+5 -1
View File
@@ -1,3 +1,7 @@
#!/bin/bash
echo "\$theme-name: \"$(./node_modules/.bin/strip-json-comments settings.json | ./node_modules/.bin/json shared_pages.theme)\";" > ./public/css/_theme-selector.scss
if [ -f ./settings.json ]; then
echo "\$theme-name: \"$(./node_modules/.bin/strip-json-comments settings.json | ./node_modules/.bin/json shared_pages.theme)\";" > ./public/css/_theme-selector.scss
else
echo "\$theme-name: \"Exor\";" > ./public/css/_theme-selector.scss
fi