diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc/config.js b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc/config.js index f978ee6b65a4407c82b10886b38d3f3e208a574f..03dd417dae32cdbe5dc7bee36a56c33c1cd42cdf 100644 --- a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc/config.js +++ b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc/config.js @@ -14,10 +14,24 @@ var loadJSResorce = function(pathToResource, onLoad) { var setFavicons = function(img) { var head = document.getElementsByTagName('head')[0]; - var iconLink= document.createElement('link'); - iconLink.setAttribute('rel', 'icon'); - iconLink.setAttribute('href', img); - head.appendChild(iconLink); + + if(_.isString(img)){ + var iconLink= document.createElement('link'); + iconLink.setAttribute('rel', 'icon'); + iconLink.setAttribute('href', img); + head.appendChild(iconLink); + }else if(_.isObject(img)){ + Object.keys(img).forEach(function(linkKey){ + var linkDefinition = img[linkKey] + var linkElement = document.createElement('link'); + if(_.isObject(linkDefinition)){ + Object.keys(linkDefinition).forEach(function(attributeName){ + linkElement.setAttribute(attributeName, linkDefinition[attributeName]); + }) + head.appendChild(linkElement); + } + }) + } }; var setHelp = function(url) { @@ -42,7 +56,12 @@ var onLoadInstanceProfileResorceFunc = function() { //<PROFILE_PLACEHOLDER> loadJSResorce("./etc/InstanceProfile.js", onLoadInstanceProfileResorceFunc); -setFavicons("./img/favicon.ico"); +setFavicons({ + appleTouchIcon : { href : "./img/apple-touch-icon.png", rel: "apple-touch-icon", sizes: "180x180" }, + favicon32 : { href : "./img/favicon-32x32.png", rel: "icon", type: "image/png", sizes: "32x32" }, + favicon16 : { href : "./img/favicon-16x16.png", rel: "icon", type: "image/png", sizes: "16x16" }, + manifest : { href : "./site.webmanifest", rel: "manifest" } +}); //</PROFILE_PLACEHOLDER> var PLUGINS_CONFIGURATION = { diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/android-chrome-192x192.png b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/android-chrome-192x192.png new file mode 100644 index 0000000000000000000000000000000000000000..9aef78560a168f796c5eab75b9c4ce90b3c1982a Binary files /dev/null and b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/android-chrome-192x192.png differ diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/android-chrome-512x512.png b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/android-chrome-512x512.png new file mode 100644 index 0000000000000000000000000000000000000000..0b3deb1eccccf2d2beb1f54c4cf08d5cc7b4a315 Binary files /dev/null and b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/android-chrome-512x512.png differ diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/apple-touch-icon.png b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/apple-touch-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..18b3c3910a9386af28f417ca7a49d01e2b61c084 Binary files /dev/null and b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/apple-touch-icon.png differ diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon-16x16.png b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon-16x16.png new file mode 100644 index 0000000000000000000000000000000000000000..7eb83e01f159c0e9fe7461d29c7247434f09d173 Binary files /dev/null and b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon-16x16.png differ diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon-32x32.png b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon-32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..5a491d52936732e7860c5f38cee403c7544e3231 Binary files /dev/null and b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon-32x32.png differ diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon.ico b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon.ico index 5d077385c909f1be1f4d7a98b193ed1c7bca72d1..ffcca176c4d277b422b5b684653f14121e10dbc8 100644 Binary files a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon.ico and b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/favicon.ico differ diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/openbis-favicon-transparent.png b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/openbis-favicon-transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..fe713173d1119882ebdefe49cb1aae98396da327 Binary files /dev/null and b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/openbis-favicon-transparent.png differ diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/openbis-logo-transparent.png b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/openbis-logo-transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..ef957be5357ad53a53ae26968538476337db7712 Binary files /dev/null and b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/img/openbis-logo-transparent.png differ diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/site.webmanifest b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/site.webmanifest new file mode 100644 index 0000000000000000000000000000000000000000..8e64f8db93758a6f8a99e9146009977ac020d5c7 --- /dev/null +++ b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "openBIS ELN UI", + "short_name": "ELN UI", + "icons": [ + { + "src": "img/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "img/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +}