-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtemplate.html
244 lines (222 loc) · 11.3 KB
/
template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<!DOCTYPE html>
<html lang="<%= global.LOCALE %>" data-image-optimizing-origin="<%= process.env.IMAGE_OPTIMIZING_ORIGIN %>"
data-media-backend="<%= global.MAGENTO_MEDIA_BACKEND_URL %>">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="theme-color" content="#ff6334">
<link rel="manifest" href="/manifest.json">
<title>SimiCart Demo PWA</title>
<!--
Apple Specific Tags
To be included until Safari supports WebAppManifest
See Docs:
- https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html
- https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html
-->
<!--
Apple Icons for Homescreen
Sizes: https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/app-icon/
-->
<link rel="preconnect" href="<%= process.env.MAGENTO_BACKEND_URL %>">
<script type="text/javascript">
window.smIsLightHouse = false;
if (navigator && navigator.userAgent) {
var botPattern = "(Lighthouse)";
var re = new RegExp(botPattern, 'i');
var userAgent = navigator.userAgent;
if (re.test(userAgent)) {
window.smIsLightHouse = true;
}
}
</script>
<script type="text/javascript">
var SMCONFIGS = {
//magento url, end with slash
merchant_url: "<%= process.env.MAGENTO_BACKEND_URL %>",
//for pwastudio, call api directly to merchant instead of calling via upward
directly_request: false,
simicart_url: "https://www.simicart.com/appdashboard/rest/app_configs/",
simicart_authorization: "Qg5xhysRKGQe2K01n2qg7KL8rKpO9GmZXsxf0Z6",
notification_api: "/rest/V1/simiconnector/",
logo_url: "https://www.simicart.com/skin/frontend/default/simicart2.1/images/simicart/new_logo_small.png",
//eg. url is https://codymap.com/magento23 and media url must include pub, value should be 'magento23/pub/'
media_url_prefix: 'pub/',
plugins: {
'SM_ENABLE_CONNECTOR': 1, //https://github.com/Simicart/SimiCart-Magento2.x-GraphQl
'SM_ENABLE_META_PACKAGES': 0, //https://github.com/magento/magento2-pwa
'SM_ENABLE_PRODUCT_LABEL': 0, //disable
'SM_ENABLE_SHOP_BY_BRAND': 0,
'SM_ENABLE_REWARD_POINTS': 0, //disable
'SM_ENABLE_REWARD_POINTS_PRO': 0,
'SM_ENABLE_DELIVERY_TIME': 0,
'SM_ENABLE_SIZE_CHART': 0, //disable
'SM_ENABLE_SOCIAL_LOGIN': 0,
'SM_ENABLE_MAGEWORX_SEO': 0,
'SM_ENABLE_FAQS': 0, //disable
'SM_ENABLE_BETTER_BLOG': 0,
'SM_ENABLE_CALL_FOR_PRICE': 0, //disable
'SM_ENABLE_MEGA_MENU': 0,
'SM_ENABLE_GIFT_CARD': 0, //disable
'SM_ENABLE_FORCE_LOGIN': 0,
'SM_ENABLE_FREQUENTLY_BOUGHT_TOGETHER': 0, //disable
'SM_ENABLE_CHECKOUT_CUSTOM_FIELD': 0 //disable
}
};
var tapitaIntegrationToken = '149NbMq20jsTkleXftqn3hNh2Epj17TMV1641796505';
</script>
<!-- <script
src="https://www.simicart.com/appdashboard/rest/app_configs?source=<%= process.env.MAGENTO_BACKEND_URL %>&bear_token=Qg5xhysRKGQe2K01n2qg7KL8rKpO9GmZXsxf0Z6&pwa=1&js=1"></script> -->
<script src="/static/app_configs.js?v=12.0.0"></script>
<script type="text/javascript">
window.addEventListener('error', function (e) {
if (
e && e.target &&
(
(e.target.src && (typeof e.target.src === 'string') && e.target.src.indexOf('runtime') !== -1) ||
(e.target.src && (typeof e.target.src === 'string') && e.target.src.indexOf('client') !== -1) ||
(e.target.src && (typeof e.target.src === 'string') && e.target.src.indexOf('vendors') !== -1) ||
(e.message && e.message == 'Script error.')
)
) {
console.log('Version is outdated - old client file not found')
try {
if (typeof (caches) !== "undefined") {
caches.keys().then(function (names) {
for (const name of names)
caches.delete(name);
});
}
navigator.serviceWorker.getRegistrations().then(
function (registrations) {
for (let registration of registrations) {
registration.unregister();
}
});
} catch (err) {
console.log(err)
}
try {
sessionStorage.clear();
localStorage.setItem("CLIENT_VER", null);
window.location.reload();
} catch (err) {
console.log(err)
}
}
}, true);
</script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<style>
/* override & pre-styling containers for cls opmization purpose */
.container {
display: block;
}
#root .container,
#root .container-fluid {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
@media (min-width: 768px) {
#root .container {
width: 750px;
}
}
@media (min-width: 1024px) {
#root .container {
width: 1024px;
}
}
@media (min-width: 1280px) {
#root .container {
width: 1310px;
}
}
/* @media (min-width: 992px) {
#root .container {
width: 970px;
}
}
@media (min-width: 1200px) {
#root .container {
width: 1170px;
}
}
@media (min-width: 1440px) {
#root .container {
width: 1370px;
}
}
@media (min-width: 1620px) {
#root .container {
width: 1430px;
}
} */
@media (max-width: 1024px) {
/* native style */
a,
input,
button,
span,
div {
-webkit-tap-highlight-color: transparent;
}
div,
span,
p,
table {
user-select: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
}
</style>
<link rel="stylesheet" href="/static/core-theme-style.css?v=12.0.0" media="print" onload="this.media='all'">
</link>
</head>
<body>
<script type="text/javascript">/*precache*//*endprecache*/</script>
<div style="display: none">
<div class="addthis_inline_share_toolbox" id="social-share"></div>
</div>
<div id="root"></div>
<div class="splash-screen" id="splash-screen" style="margin-top:0;text-align:center;width: 100%;top: 0;left: 0;">
<div style="width: 100%; height: auto; margin: 0 auto 0;">
<img id="splash-img" alt="Splash Img"
style="position: absolute; left: 50%; top: 50%; -webkit-transform: translateY(-50%) translateX(-50%); z-index:-1; width: 100%; max-width: 1024px;"
src="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciDQogICAgICAgICAgICAgICAgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNzY4IDc2OCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSINCiAgICAgICAgICAgICAgICBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3NjggNzY4OyI+DQogICAgICAgICAgICAgICAgPGc+DQogICAgICAgICAgICAgICAgICAgIDxlbGxpcHNlIHRyYW5zZm9ybT0ibWF0cml4KDAuOTk4NiAtNS4zMjA3MzNlLTAyIDUuMzIwNzMzZS0wM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jcsMjkxLjcsMjg2LjF6IiAvPg0KICAgICAgICAgICAgICAgICAgICA8cGF0aCBjbGFzcz0ic3QwIiBmaWxsPSIjRkFBNDIzIiBkPSJNNTExLjksNTIyLjlsLTIxMC4yLDM0LjhjLTcuOSwxLjQtMTUuNS0zLjktMTYuOS0xMS44Yy0wLjYtMy41LDAuMS03LjEsMS45LTEwLjFsNTQuNy04OS4xbDI0LjksMTUuNQ0KCQlsLTM3LjksNjEuNWwxNzguOC0yOS42TDUxMS45LDUyMi45eiIgLz4NCiAgICAgICAgICAgICAgICAgICAgPHBhdGggY2xhc3M9InN0MCIgZmlsbD0iI0ZBQTQyMyINCiAgICAgICAgICAgICAgICAgICAgICAgIGQ9Ik0yNjkuMywyNzcuN2wtNDYuNS0yMy44Yy04LjUtNC0xOC42LTAuNC0yMi42LDguMWMtMy44LDguMS0wLjcsMTcuNyw3LjEsMjIuMWw1Mi4yLDI2LjhMMjY5LjMsMjc3Ljd6IiAvPg0KICAgICAgICAgICAgICAgIDwvZz4NCiAgICAgICAgICAgIDwvc3ZnPg==" />
</div>
</div>
<!-- Fallback for when JavaScript is disabled. -->
<noscript>
<style>
.fallback-nojs {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.fallback-nojs a {
color: currentColor;
}
.fallback-closed {
height: 40vh;
}
</style>
<div class="fallback-nojs">
<h1 class="fallback-heading">Oops! JavaScript is disabled</h1>
<div>
To browse the Venia store,<br>
<a href="https://www.enable-javascript.com">enable JavaScript in your browser.</a>
</div>
</div>
</noscript>
</body>
</html>