You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2019/07/08 14:56:55 UTC

[sling-org-apache-sling-app-cms] 02/02: Making the branding resource publically readable so it can be read before login and adding missing web manifest

This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit 2e9b5928383e4d2941d070abf5de42615ba25584
Author: Dan Klco <dk...@apache.org>
AuthorDate: Mon Jul 8 10:56:28 2019 -0400

    Making the branding resource publically readable so it can be read
    before login and adding missing web manifest
---
 ui/src/main/frontend/src/img/site.webmanifest       | 21 +++++++++++++++++++++
 .../jcr_root/libs/sling-cms/content/branding.json   | 10 +++++++++-
 2 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/ui/src/main/frontend/src/img/site.webmanifest b/ui/src/main/frontend/src/img/site.webmanifest
new file mode 100644
index 0000000..16ba967
--- /dev/null
+++ b/ui/src/main/frontend/src/img/site.webmanifest
@@ -0,0 +1,21 @@
+{
+    "name": "Apache Sling CMS",
+    "short_name": "Apache Sling CMS",
+    "icons": [
+        {
+            "src": "/static/clientlibs/sling-cms/img/android-chrome-192x192.png",
+            "sizes": "192x192",
+            "type": "image/png"
+        },
+        {
+            "src": "/static/clientlibs/sling-cms/img/android-chrome-512x512.png",
+            "sizes": "512x512",
+            "type": "image/png"
+        }
+    ],
+    "theme_color": "#662f8f",
+    "background_color": "#ffffff",
+    "display": "standalone",
+    "start_url": "/cms/start.html",
+    "scope": "/"
+}
diff --git a/ui/src/main/resources/jcr_root/libs/sling-cms/content/branding.json b/ui/src/main/resources/jcr_root/libs/sling-cms/content/branding.json
index e9ad0b7..450cd91 100644
--- a/ui/src/main/resources/jcr_root/libs/sling-cms/content/branding.json
+++ b/ui/src/main/resources/jcr_root/libs/sling-cms/content/branding.json
@@ -10,5 +10,13 @@
     "tileColor": "#662f8f",
     "browserConfig": "/static/clientlibs/sling-cms/img/browserconfig.xml",
     "webManifest": "/static/clientlibs/sling-cms/img/site.webmanifest",
-    "css": "/static/clientlibs/sling-cms/css/styles.min.css"
+    "css": "/static/clientlibs/sling-cms/css/styles.min.css",
+    "security:acl": [
+        {
+            "principal": "everyone",
+            "granted": [
+                "jcr:read"
+            ]
+        }
+    ]
 }
\ No newline at end of file