-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated plugin to utilize google workbox
- Loading branch information
Vishal Sanserwal
committed
Oct 29, 2020
1 parent
48cf68f
commit b0c1e74
Showing
10 changed files
with
195 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
cartridges/plugin_sf_pwa/cartridge/static/default/js/registerSW.js
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
cartridges/plugin_sf_pwa/cartridge/templates/default/pwa/excludes.isml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 47 additions & 1 deletion
48
cartridges/plugin_sf_pwa/cartridge/templates/default/pwa/offline.isml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,47 @@ | ||
<p>Seems Like you are offline</p> | ||
<iscontent type="text/html" charset="UTF-8" compact="true"/> | ||
|
||
<isinclude template="/components/modules" sf-toolkit="off" /> | ||
|
||
<!DOCTYPE html> | ||
<html lang="${require('dw/util/Locale').getLocale(request.getLocale()).getLanguage()}"> | ||
<head> | ||
<!--[if gt IE 9]><!--> | ||
<isinclude sf-toolkit="off" template="/common/scripts" /> | ||
<!--<![endif]--> | ||
<isinclude template="/common/htmlHead" /> | ||
<isactivedatahead/> | ||
<style> | ||
.brand { | ||
position: static !important; | ||
margin: 0 auto !important; | ||
padding: 0.5rem !important; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
${dw.system.HookMgr.callHook('app.template.beforeHeader', 'beforeHeader', pdict) || ''} | ||
|
||
<div class="page"> | ||
<isinclude template="/components/header/pageHeaderNomenu" /> | ||
<div role="main" id="maincontent"> | ||
<div class="container mb-5"> | ||
<div class="row pt-5"> | ||
<div class="col-12"> | ||
<h1 class="text-center"> | ||
Seems like you are offline | ||
</h1> | ||
</div> | ||
<div class="col-12 text-center"> | ||
<a class="btn btn-primary" href="${URLUtils.https('Home-Show')}">Go Home</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<isinclude template="/components/footer/pageFooter" /> | ||
</div> | ||
<!--[if lt IE 10]> | ||
<isinclude sf-toolkit="off" template="/common/scripts" /> | ||
<![endif]--> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
cartridges/plugin_sf_pwa/cartridge/templates/default/pwa/static_assets.isml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.