diff --git a/.editorconfig b/.editorconfig index 5289f4ec214bf7d0c919a905f454e9cc05fb30c1..b637fff837da3c7b53d7e51b9eb4e9f18c109edd 100644 --- a/.editorconfig +++ b/.editorconfig @@ -15,10 +15,14 @@ indent_size = 4 indent_style = unset indent_size = unset +[*.css] + [*.dia] indent_style = space indent_size = 2 +[*.js] + [*{.json,.ecrc}] indent_style = space indent_size = 2 diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css index b4fd25865df7910dd1fcb00ccf10b07d4d6ad95c..c9996e0eea5508b11dd43a6220c16614efa9f863 100644 --- a/docs/_static/css/custom.css +++ b/docs/_static/css/custom.css @@ -1,8 +1,8 @@ /* - This fixes the vertical position of list markers when the first - element in the <li> is a <pre> block + This fixes the vertical position of list markers when the first + element in the <li> is a <pre> block - Scrolling inside the <pre> block is still working as expected + Scrolling inside the <pre> block is still working as expected */ .rst-content pre.literal-block, .rst-content div[class^='highlight'] pre { diff --git a/package/gluon-status-page/Makefile b/package/gluon-status-page/Makefile index b4eea87439fcb83d2c784c6ec88f8eb017fa50d8..0b4bcb6d0e8411e2856e782b21181c142c0f86e2 100644 --- a/package/gluon-status-page/Makefile +++ b/package/gluon-status-page/Makefile @@ -17,8 +17,10 @@ define Package/gluon-status-page/install $(INSTALL_DIR) $(1)/lib/gluon/status-page/providers $(INSTALL_BIN) $(PKG_BUILD_DIR)/stations $(1)/lib/gluon/status-page/providers/ -ifndef CONFIG_GLUON_MINIFY - $(CP) ./javascript/status-page.js $(1)/lib/gluon/status-page/www/static/status-page.js +ifdef CONFIG_GLUON_MINIFY + $(INSTALL_DATA) ./javascript/status-page.min.js $(1)/lib/gluon/status-page/www/static/status-page.js +else + $(INSTALL_DATA) ./javascript/status-page.js $(1)/lib/gluon/status-page/www/static/status-page.js endif $(INSTALL_DIR) $(1)/lib/gluon/status-page/view/ diff --git a/package/gluon-status-page/javascript/status-page.js b/package/gluon-status-page/javascript/status-page.js index 1360253c6ccc7d95a90854adabf1fcd3bed02d89..016e20eebb28f2259e3690a17929812977c04091 100644 --- a/package/gluon-status-page/javascript/status-page.js +++ b/package/gluon-status-page/javascript/status-page.js @@ -1,7 +1,7 @@ /* Build using: - uglifyjs javascript/status-page.js -o files/lib/gluon/status-page/www/static/status-page.js -c -m + uglifyjs javascript/status-page.js -o javascript/status-page.min.js -c -m */ 'use strict'; diff --git a/package/gluon-status-page/files/lib/gluon/status-page/www/static/status-page.js b/package/gluon-status-page/javascript/status-page.min.js similarity index 100% rename from package/gluon-status-page/files/lib/gluon/status-page/www/static/status-page.js rename to package/gluon-status-page/javascript/status-page.min.js diff --git a/package/gluon-web-model/Makefile b/package/gluon-web-model/Makefile index 518a5b472fbf1dd652f8513773f7c5785ab99e8c..9b1b0e7ada4cd562520bb3f898f5b25ec54a5a07 100644 --- a/package/gluon-web-model/Makefile +++ b/package/gluon-web-model/Makefile @@ -9,4 +9,17 @@ define Package/gluon-web-model DEPENDS:=+gluon-web endef +PKG_CONFIG_DEPENDS += CONFIG_GLUON_MINIFY + +define Package/gluon-web-model/install + $(Gluon/Build/Install) + $(INSTALL_DIR) $(1)/lib/gluon/web/www/static/ + +ifdef CONFIG_GLUON_MINIFY + $(INSTALL_DATA) ./javascript/gluon-web-model.min.js $(1)/lib/gluon/web/www/static/gluon-web-model.js +else + $(INSTALL_DATA) ./javascript/gluon-web-model.js $(1)/lib/gluon/web/www/static/ +endif +endef + $(eval $(call BuildPackageGluon,gluon-web-model)) diff --git a/package/gluon-web-model/javascript/gluon-web-model.js b/package/gluon-web-model/javascript/gluon-web-model.js index d9a4bb2472f7e0597816402eef3deeb53a1fb217..ec9cdc4af3d7dfab4ee7eddaa8900c394219190d 100644 --- a/package/gluon-web-model/javascript/gluon-web-model.js +++ b/package/gluon-web-model/javascript/gluon-web-model.js @@ -13,7 +13,7 @@ /* Build using: - uglifyjs javascript/gluon-web-model.js -o files/lib/gluon/web/www/static/gluon-web-model.js -c -m --support-ie8 + uglifyjs javascript/gluon-web-model.js -o javascript/gluon-web-model.min.js -c -m --support-ie8 */ @@ -56,9 +56,9 @@ var match; if ((match = this.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/))) { return (match[1] >= 0) && (match[1] <= 255) && - (match[2] >= 0) && (match[2] <= 255) && - (match[3] >= 0) && (match[3] <= 255) && - (match[4] >= 0) && (match[4] <= 255); + (match[2] >= 0) && (match[2] <= 255) && + (match[3] >= 0) && (match[3] <= 255) && + (match[4] >= 0) && (match[4] <= 255); } return false; diff --git a/package/gluon-web-model/files/lib/gluon/web/www/static/gluon-web-model.js b/package/gluon-web-model/javascript/gluon-web-model.min.js similarity index 100% rename from package/gluon-web-model/files/lib/gluon/web/www/static/gluon-web-model.js rename to package/gluon-web-model/javascript/gluon-web-model.min.js diff --git a/package/gluon-web-osm/Makefile b/package/gluon-web-osm/Makefile index 3594da80347b274ff3be7a7e7a4f8bbd995d8b98..31f4b7b70da0e1261f1038d036291c08dbd13ff7 100644 --- a/package/gluon-web-osm/Makefile +++ b/package/gluon-web-osm/Makefile @@ -8,4 +8,17 @@ define Package/gluon-web-osm TITLE:=base src for OSM inlay endef +PKG_CONFIG_DEPENDS += CONFIG_GLUON_MINIFY + +define Package/gluon-web-osm/install + $(Gluon/Build/Install) + $(INSTALL_DIR) $(1)/lib/gluon/web/www/static/ + +ifdef CONFIG_GLUON_MINIFY + $(INSTALL_DATA) ./javascript/gluon-web-osm.min.js $(1)/lib/gluon/web/www/static/gluon-web-osm.js +else + $(INSTALL_DATA) ./javascript/gluon-web-osm.js $(1)/lib/gluon/web/www/static/ +endif +endef + $(eval $(call BuildPackageGluon,gluon-web-osm)) diff --git a/package/gluon-web-osm/javascript/gluon-web-osm.js b/package/gluon-web-osm/javascript/gluon-web-osm.js index b4acbf8b41830629209c4ca52846a45b33b68ad4..65d525abef1705cad51bd44a57cf182c342bf1c0 100644 --- a/package/gluon-web-osm/javascript/gluon-web-osm.js +++ b/package/gluon-web-osm/javascript/gluon-web-osm.js @@ -1,7 +1,7 @@ /* Build using: - uglifyjs javascript/gluon-web-osm.js -o files/lib/gluon/web/www/static/gluon-web-osm.js -c -m + uglifyjs javascript/gluon-web-osm.js -o javascript/gluon-web-osm.min.js -c -m */ 'use strict'; diff --git a/package/gluon-web-osm/files/lib/gluon/web/www/static/gluon-web-osm.js b/package/gluon-web-osm/javascript/gluon-web-osm.min.js similarity index 100% rename from package/gluon-web-osm/files/lib/gluon/web/www/static/gluon-web-osm.js rename to package/gluon-web-osm/javascript/gluon-web-osm.min.js