Browse Source

added configured pwa module

bach 3 years ago
parent
commit
70b36d9f55

+ 1 - 0
composer.json

@@ -66,6 +66,7 @@
         "drupal/payment_commerce": "2.x-dev@dev",
         "drupal/permissions_filter": "^1.1",
         "drupal/printable": "^2.0",
+        "drupal/pwa": "^1.5",
         "drupal/recurring_period": "^1.0",
         "drupal/redis": "^1.5",
         "drupal/restui": "^1.16",

+ 57 - 1
composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "d1b8403c7c149b7c30ff036ccfe1fbe3",
+    "content-hash": "2b6c97c508e1b1b31b24c28d1aa1d636",
     "packages": [
         {
             "name": "alchemy/zippy",
@@ -10325,6 +10325,62 @@
                 "source": "https://git.drupalcode.org/project/profile"
             }
         },
+        {
+            "name": "drupal/pwa",
+            "version": "1.5.0",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupalcode.org/project/pwa.git",
+                "reference": "8.x-1.5"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://ftp.drupal.org/files/projects/pwa-8.x-1.5.zip",
+                "reference": "8.x-1.5",
+                "shasum": "f18902ee0dc852e017e3b9c74c3fef92b70e11de"
+            },
+            "require": {
+                "drupal/core": "^8 || ^9"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "drupal": {
+                    "version": "8.x-1.5",
+                    "datestamp": "1616783886",
+                    "security-coverage": {
+                        "status": "covered",
+                        "message": "Covered by Drupal's security advisory policy"
+                    }
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0-or-later"
+            ],
+            "authors": [
+                {
+                    "name": "AlexBorsody",
+                    "homepage": "https://www.drupal.org/user/473596"
+                },
+                {
+                    "name": "ChristophWeber",
+                    "homepage": "https://www.drupal.org/user/281751"
+                },
+                {
+                    "name": "nod_",
+                    "homepage": "https://www.drupal.org/user/598310"
+                },
+                {
+                    "name": "rupl",
+                    "homepage": "https://www.drupal.org/user/411999"
+                }
+            ],
+            "description": "Make the website installable on mobile.",
+            "homepage": "https://www.drupal.org/project/pwa",
+            "support": {
+                "source": "https://git.drupalcode.org/project/pwa"
+            }
+        },
         {
             "name": "drupal/recurring_period",
             "version": "1.0.0",

+ 1 - 0
config/sync/core.extension.yml

@@ -148,6 +148,7 @@ module:
   printable: 0
   printable_pdf: 0
   profile: 0
+  pwa: 0
   recurring_period: 0
   redirect: 0
   redis: 0

+ 3 - 0
config/sync/language/fr/pwa.config.yml

@@ -0,0 +1,3 @@
+description: 'L''inspiration par la matière'
+lang: fr
+urls_to_cache: "/fr/pricing\r\n/fr/blabla\r\n/fr/base\r\n/fr/showrooms"

+ 20 - 0
config/sync/pwa.config.yml

@@ -0,0 +1,20 @@
+site_name: materiO’
+short_name: materiO’
+description: 'The material library your projects deserve'
+start_url: /
+lang: en
+theme_color: '#ffffff'
+background_color: '#ffffff'
+display: fullscreen
+default_image: '0'
+urls_to_cache: "/en/pricing\r\n/en/blabla\r\n/en/base\r\n/en/showrooms"
+urls_to_exclude: "admin/.*\r\nuser/.*"
+offline_page: /offline
+cache_version: '1'
+cross_origin: false
+skip_waiting: false
+_core:
+  default_config_hash: cP1TZQyv1WdET3iepl2QoyOPK7VeO0xHm0lU_FU1Wmc
+image: /sites/default/files/pwa/PWA-icon.png
+image_small: /sites/default/files/pwa/PWA-icon.pngcopy.png
+image_very_small: /sites/default/files/pwa/PWA-icon.pngcopy2.png

+ 1 - 0
config/sync/user.role.anonymous.yml

@@ -12,6 +12,7 @@ permissions:
   - 'access checkout'
   - 'access content'
   - 'access kint'
+  - 'access pwa'
   - 'access synonyms entity autocomplete'
   - 'access webprofiler'
   - 'create corpus_documents workflow_transition'

File diff suppressed because it is too large
+ 25 - 0
web/themes/custom/materiotheme/assets/dist/main.js


Some files were not shown because too many files changed in this diff