-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.index.capacitor
546 lines (492 loc) · 31.5 KB
/
.index.capacitor
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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>eCommerce Firebase back office</title>
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="Format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<script type="Module" src="https://unpkg.com/@ionic/pwa-elements@latest/dist/ionicpwaelements/ionicpwaelements.esm.js"></script>
<script nomodule src="https://unpkg.com/@ionic/pwa-elements@latest/dist/ionicpwaelements/ionicpwaelements.js"></script>
<meta name="theme-color" content="">
<link rel="manifest" href="manifest.webmanifest">
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="css/framework7-bundle.min.css">
<link rel="stylesheet" href="css/thorium.min.css">
<link rel="stylesheet" href="css/pages/index.css?r=82248">
<link rel="stylesheet" href="css/pages/productdetail.css?r=56578">
<link rel="stylesheet" href="css/pages/newproduct.css?r=26687">
<link rel="stylesheet" href="css/pages/history.css?r=97787">
<link rel="stylesheet" href="css/pages/orderdetail.css?r=51514">
<link rel="stylesheet" href="css/classes.css">
<link rel="stylesheet" href="css/custom.css">
</head>
<body class=" color-theme-blue" >
<div class="apploader"></div>
<div id="app" class="framework7-root">
<div class="panel-backdrop"></div>
<div id="panel-left" class="panel panel-left panel-init panel-cover" data-swipe="true">
<div id="left-panel-page-o-jjgigo652" class="page">
<div id="left-panel-page-content" class="page-content"></div>
</div>
</div>
<div id="panel-right" class="panel panel-right panel-init panel-cover" data-swipe="true">
<div id="right-panel-page-o-rujlrj589" class="page">
<div id="right-panel-page-content" class="page-content"></div>
</div>
</div>
<div id="view-main" class="view view-main view-init ios-edges" data-url="/">
<div id="page" class="page page-with-subnavbar" data-name="index">
<div id="navbar-o-jcmaex097" class="navbar"><div id="navbg-navbar-o-jcmaex097" class="navbar-bg"></div><div id="navbar-inner-o-yorvko337" class="navbar-inner ">
<div id="left-o-wtscer269" class="left">
</div>
<div id="title-o-wxnflf499" class="title ">Shopping App<span id="obj-yddmaq562" class="subtitle">eCommerce App BackOffice</span>
</div>
<div id="right-o-xasgzn467" class="right">
<img id="obj-fpsrqn609" src="img/defaultavatar.png" alt="..." class="img avatar rounded-circle firebase_avatar"></div>
<div id="obj-zjnqzg750" class="subnavbar">
<div id="obj-faqzed529" class="subnavbar-inner">
<a id="obj-ihwmym980" class="col button text-white button-raised button-fill" data-transition="f7-cover-v" href="/newproduct/">NEw Product</a><a id="obj-dibuqh535" class="col button text-white button-raised button-fill" data-transition="f7-cover-v" href="/history/">Orders List</a></div>
</div>
</div>
</div>
<div id="page-contents-o-dclbnq121" class="page-content ptr-content" data-ptr-distance="44" data-ptr-mousewheel="false" data-ptr-repeater="virtual-list-productlist"> <div id="page-contents-o-dclbnq121-preloader" class="ptr-preloader"><div class="preloader"></div><div class="ptr-arrow"></div></div><div id="obj-uvnuim512" class="toolbar firebase-virtual-list-searchbar"><form id="search-obj-uvnuim512" data-search-container="#virtual-list-productlist" data-search-item="li" class="searchbar searchbar-init"><div class="searchbar-inner"><div class="searchbar-input-wrap"><input type="search" spellcheck="false" placeholder="Search"><i class="searchbar-icon"></i><span class="input-clear-button"></span></div><span class="searchbar-disable-button if-not-aurora">Cancel</span></div></form></div><div id="productlist" class="firebase-virtual-list" data-self-scroll=""> <div id="virtual-list-productlist" class="list virtual-list searchbar-found firebase-virtual-list-content no-hairlines-between row no-gap multicol" data-collection="products" data-filter-field="" data-filter-operator="==" data-filter-value="" data-filter-field2="" data-filter-operator2="==" data-filter-value2="" data-order-field="" data-order-way="asc" data-limit="0" data-user-data="false" data-col-count="2" data-col-count-tablet="4" data-detail="productdetail"><div class="searchbar-backdrop"></div>
<div id="virtual-list-productlist-template" class="virtuallist-template" data-line-height="281">
<li id="li_productlist" class="item-firebase col-50 medium-25" href="#" data-index="{{dataindex}}" data-key="{{uid}}">
<div id="obj-zgqvan227" class="card m-1"><div id="obj-efalnv806" class="card-content card-content-padding"><div id="obj-ffgigz449" class="firebase-field firebase-img embed-responsive embed-responsive-1by1"><div class="embed-responsive-item" id="img-obj-ffgigz449" data-firebase-field="productimage" style="background-image:url({{productimage}});"></div></div><div id="obj-ehegrk840" class="firebase-field mt-2 text-center text-nowrap" data-firebase-field="productname"><p id="p-obj-ehegrk840">{{productname}}</p> </div><div id="obj-ejwcph638" class="firebase-field text-center text-muted" data-firebase-field="productsubtitle"><p id="p-obj-ejwcph638" class="">{{productsubtitle}}</p> </div><div id="obj-cmkdua389" class="flexbox display-flex flex-row justify-content-center align-items-center flex-nowrap"><div id="obj-flkvap320" class="firebase-field text-center m-0 p-0 text-danger font-weight-bold" data-firebase-field="producprice"><p id="p-obj-flkvap320" class="">{{producprice}}</p> </div><h6 id="obj-gmcrym118" class="h6 font-weight-bold m-0 p-0 text-danger">$</h6></div></div>
<div id="card-footer-qdzdrj950" class="card-footer"><a id="obj-fapxte580" class="col button firebase-action-button btn-firebase-page" role="button" data-filter-field2="" data-filter-operator2="==" data-filter-value2="" data-target="productdetail" data-transition="f7-cover-v" data-index="{{dataindex}}" data-key="{{uid}}">Edit</a><a id="obj-fnaccp483" class="col button firebase-action-button btn-firebase-delete" role="button" data-filter-field2="" data-filter-operator2="==" data-filter-value2="" data-index="{{dataindex}}" data-key="{{uid}}" data-confirm-message="Are you sure?">Delete</a></div>
</div>
</li>
</div>
</div></div></div>
</div>
</div>
</div>
<div class="login-screen">
<div class="view">
<div class="page">
<div class="page-content login-screen-content">
<div class="login-screen-title">eCommerce</div>
<div class="block text-center">
<h1 data-translate="signin">Sign In</h1>
</div>
<form id="firebase-signin-form" name="firebase-signin-form"
class="list no-hairlines-md firebase-signin-form form-ajax-submit ">
<ul>
<li class="item-content item-input">
<div class="item-inner">
<div data-translate="email" class="item-title item-label" autocomplete="on">email</div>
<div class="item-input-wrap">
<input data-translate="enteryouremail" id="firebase_email" name="firebase_email"
class="firebase_email" type="email" maxlength="255" required
placeholder="Enter your email">
</div>
</div>
</li>
<li class="item-content item-input">
<div class="item-inner">
<div data-translate="password" class="item-title item-label">password</div>
<div class="item-input-wrap">
<input id="firebase_password" name="firebase_password" autocomplete="on"
class="firebase_password" data-translate="enteryourpassword" maxlength="255"
type="password" required placeholder="Enter your password">
</div>
</div>
</li>
</ul>
<div class="block custom-block">
<button type="submit" class="col button button-raised button-fill submit_firebase-signin"
id="submit_firebase-signin" data-translate="signin">Sign In</button>
</div>
<div class="block custom-block">
<button class="col button button-raised firebase_register" data-translate="register" href="#">Register</button>
</div>
<div class="block custom-block text-center mt-3">
<a class="link firebase_resetpasswword" data-translate="resetpassword" href="#"><small>Reset my
Password</small></a>
</div>
</form>
<div class="block-footer mt-3 mb-0">
</div>
<div class="flexbox display-flex flex-row justify-content-center align-items-center flex-nowrap">
</div>
</div>
</div>
</div>
</div>
<div class="popup popup-tablet-fullscreen resetpassword-screen">
<div class="view">
<div class="page">
<div class="navbar">
<div class="navbar-inner">
<div class="left">
<a class="link popup-close" data-translate="close">Close</a>
</div>
<div class="title" data-translate="resetpassword">Reset Password</div>
<div class="right">
</div>
</div>
</div>
<div class="page-content login-screen-content">
<form id="firebase-resetpw-form" name="firebase-resetpw-form"
class="list firebase-resetpw-form form-ajax-submit ">
<div class="item-content item-input">
<div class="item-inner">
<div class="item-input-wrap">
<input id="firebase_resetpw_email" name="firebase_resetpw_email"
class="firebase_resetpw_email" type="email" required=""
data-translate="enteryouremail" placeholder="Enter your email" maxlength="255"
autocomplete="on" required>
</div>
</div>
</div>
<div class="block custom-block">
<button type="submit" class="button button-raised button-fill resetpassword-submit"
id="resetpassword-submit" data-translate="resetpassword">Reset Password</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="popup popup-tablet-fullscreen register-screen">
<div class="view">
<div class="page">
<div class="navbar">
<div class="navbar-inner">
<div class="left">
<a class="link popup-close" data-translate="close">Close</a>
</div>
<div class="title" data-translate="register">Register</div>
<div class="right">
<a id="submit_firebase-register" class="link submit_firebase-register"
data-translate="register">Register</a>
</div>
</div>
</div>
<div class="page-content login-screen-content">
<div class="block text-center">
</div>
<form id="firebase-register-form" name="firebase-register-form" class="list firebase-register-form"
autocomplete="on">
<ul>
<li class="item-content item-input">
<div class="item-inner">
<div class="item-title item-label" data-translate="email">email</div>
<div class="item-input-wrap">
<input id="firebase_register_email" name="firebase_register_email"
class="firebase_register_email" type="email" required
data-translate="enteryouremail" placeholder="Enter your email" maxlength="255"
autocomplete="on">
</div>
</div>
</li>
<li class="item-content item-input">
<div class="item-inner">
<div class="item-title item-label" data-translate="displayname">Display Name</div>
<div class="item-input-wrap">
<input id="firebase_register_displayname" name="firebase_register_displayname"
class="firebase_register_displayname" type="text" required
data-translate="enteryourname" placeholder="Enter your Name" maxlength="255">
</div>
</div>
</li>
<li class="item-content item-input">
<div class="item-inner">
<div class="item-title item-label" data-translate="password">Password</div>
<div class="item-input-wrap">
<input id="firebase_register_password" name="firebase_register_password"
class="firebase_register_password" type="password" required
data-translate="enteryourpassword" placeholder="Enter your Password"
maxlength="255" autocomplete="on">
</div>
</div>
</li>
<li class="item-content item-input">
<div class="item-inner">
<div class="item-title item-label" data-translate="passwordverification">Password
Verification</div>
<div class="item-input-wrap">
<input id="firebase_register_password_verification"
name="firebase_register_password_verification"
class="firebase_register_password_verification" type="password" required
data-translate="verifyyourpassword" placeholder="Verify your Password"
maxlength="255" autocomplete="on">
</div>
</div>
</li>
</ul>
</form>
</div>
</div>
</div>
</div>
<div class="popup popup-tablet-fullscreen profile-screen">
<div class="view">
<div class="page">
<div class="navbar">
<div class="navbar-inner">
<div class="left">
<a class="link popup-close" data-translate="close">Close</a>
</div>
<div class="title" data-translate="profile">Profile
</div>
<div class="right">
<a class="link submit_firebase-profile" id="submit_firebase-profile"
data-translate="save">Save</a>
</div>
</div>
</div>
<div class="page-content login-screen-content">
<form id="firebase-profile-form" name="firebase-profile-form"
class="list firebase-profile-form form-ajax-submit ">
<div class="block custom-block text-center">
<img src="img/defaultavatar.png"
class="img rounded-circle img-thumbnail firebase_profile_avatar">
<input type="file" name="firebase_profile_avatar_input" accept="image/png, image/jpeg"
class="firebase_profile_avatar_input" id="firebase_profile_avatar_input">
</div>
<div class="block custom-block text-center">
<progress value="0" id="firebase-upload-progress" class="firebase-upload-progress"
max="100">0%</progress>
<h3 class="firebase-displayname"></h3>
</div>
<ul>
<li class="item-content item-input">
<div class="item-inner">
<div class="item-title item-label" data-translate="email">email</div>
<div class="item-input-wrap">
<input id="firebase_profile_email" name="firebase_profile_email"
class="firebase_profile_email" type="email" maxlength="255" required readonly
disabled>
</div>
</div>
</li>
<li class="item-content item-input">
<div class="item-inner">
<div class="item-title item-label" data-translate="displayname">Display Name</div>
<div class="item-input-wrap">
<input id="firebase_profile_displayname" name="firebase_profile_displayname"
class="firebase_profile_displayname" type="text" required
data-translate="enteryourname" placeholder="Enter your Name" maxlength="255">
</div>
</div>
</li>
</ul>
</form>
</div>
</div>
</div>
</div>
<div class="popover firebase-popover">
<div class="popover-inner">
<div class="list">
<ul>
<li><a class="list-button item-link firebase_editprofile popover-close" href="#"
data-translate="editprofile">Edit My Profile</a></li>
<li><a id="firebasecustomprofile" class="list-button item-link popover-close" href="#" data-transition="f7-cover-v" >Profile Detail</a></li>
<li><a class="list-button item-link firebase_resetpasswword popover-close" href="#"
data-translate="resetpassword">Reset Password</a></li>
<li><a class="list-button item-link firebase-user-logout popover-close" href="#"
data-translate="logout">Logout</a></li>
</ul>
</div>
</div>
</div>
<div class="popup popup-tablet-fullscreen shoppingcartpopup" data-currency="USD"
data-currency-symbol="$" data-symbol-left="true" data-payment-provider="payPalCheckoutGateway"
data-delivery="20,00" data-address-pane="true" data-skip-payment="false">
<div class="view">
<div class="page navbar-fixed">
<div class="navbar">
<div class="navbar-bg"></div>
<div class="navbar-inner">
<div class="left"><a href="#" class="link popup-close">Close</a></div>
<div class="center" style="left: 107.5px;">Shopping Cart</div>
<div class="right"><a href="#" class="link shoppingcart-clear">Clear</a></div>
</div>
</div>
<div id="shoppingcartpopup-content" class="page-content">
<div class="shoppingcart-template">
<li data-object-id="{objectid}">
<div class="item-content">
<div class="item-media">
<div class="item-media-img" style="{image}">
</div>
</div>
<div class="item-inner">
<div class="item-title-row">{title}</div>
<div class="item-subtitle">{price}</div>
<div class="item-text">
<div data-object-id="{objectid}"
class="stepper stepper-small stepper-init stepper-fill stepper-shoppingcart color-gray stepper-init"
data-value="{qty}" data-min="0" data-step="1" data-wraps="true">
<div class="stepper-button-minus"></div>
<div class="stepper-value">{qty}</div>
<div class="stepper-button-plus"></div>
</div>
</div>
</div>
</li>
</div>
<!-- TabsBlock-->
<div class="tabs">
<!-- each tabs is a "page-content" -->
<div class="page-content tab tab-active pt-3" id="shoppingCartTab1">
<div class="block block-strong inset mt-0">
<h1>Products</h1>
</div>
<div class="list media-list no-hairlines-between no-hairlines">
<ul id="shoppingcartcontents" class="shoppingcartcontents">
</ul>
</div>
<div class="block">
<div class="deliveryblock flexbox flex-row mb-3 justify-content-space-between align-items-center flex-nowrap shoppingcartsummary">
<p class="shoppingcartlabel">Delivery Fees</p>
<p class="shoppingcartdelivery"><span>$</span>0.00</p>
</div>
<div
class="flexbox display-flex flex-row justify-content-space-between align-items-center flex-nowrap shoppingcartsummary">
<p class="shoppingcartlabel">Order Total</p>
<p class="shoppingcarttotal"><span>$</span>0.00</p>
</div>
<div class="shoppingcartbuttonblock">
<a id="shoppingcartbutton1"
class="col button button-fill button-large shoppingcartbutton">Continue</a>
</div>
</div>
</div>
<!-- Page 2 - Customer Address -->
<div class="page-content tab pt-3" id="shoppingCartTab2">
<div class="block block-strong inset mt-0">
<h1>Address</h1>
</div>
<form id="shoppingcartform" name="shoppingcartform"
class="list form pb-0 inline-labels no-hairlines">
<ul>
<li class="item-content item-input">
<div class="item-inner">
<div class="item-title item-label">Full Name
</div>
<div class="item-input-wrap">
<input id="shoppingcart-fullname" name="shoppingcart-fullname"
class="no-store-data" value="" type="text" placeholder="" required
validate>
</div>
</div>
</li>
<li class="item-content item-input">
<div class="item-inner">
<div class="item-title item-label">email
</div>
<div class="item-input-wrap">
<input id="shoppingcart-email" name="shoppingcart-email"
class="no-store-data" value="" type="email" placeholder="" required
validate>
</div>
</div>
</li>
<li class="item-content item-input">
<div id="obj-omrpdw436" class="item-inner">
<div id="obj-lrsvxz378" class="item-title item-label">Address
</div>
<div id="form_-pehfhx520" class="item-input-wrap">
<textarea id="shoppingcart-address" class="no-store-data"
name="shoppingcart-address" rows="3" placeholder="" required
validate></textarea>
</div>
</div>
</li>
<li class="item-content item-input">
<div id="obj-nysasv577" class="item-inner">
<div id="obj-ziyxxt540" class="item-title item-label">Zip Code
</div>
<div id="form_-cvnhhr791" class="item-input-wrap">
<input id="shoppingcart-zipcode" class="no-store-data"
name="shoppingcart-zipcode" value="" type="text" placeholder="" required
validate>
</div>
</div>
</li>
<li class="item-content item-input">
<div id="obj-vkqapb307" class="item-inner">
<div id="obj-bwzgnk947" class="item-title item-label">City
</div>
<div id="form_-ekdrrq459" class="item-input-wrap">
<input id="shoppingcart-city" class="no-store-data" name="shoppingcart-city"
value="" type="text" placeholder="" required validate>
</div>
</div>
</li>
<li class="item-content item-input">
<div class="item-inner">
<div class="item-title item-label">Country
</div>
<div class="item-input-wrap">
<input id="shoppingcart-country" class="no-store-data"
name="shoppingcart-country" value="" type="text" placeholder="" required
validate>
</div>
</div>
</li>
<li class="item-content item-input">
<div class="item-inner">
<div id="obj-cuvzet415" class="item-title item-label">Notes
</div>
<div id="form_-eiakiy918" class="item-input-wrap">
<textarea id="shoppingcart-notes" class="no-store-data"
name="shoppingcart-notes" rows="3" placeholder=""></textarea>
</div>
</div>
</li>
</ul>
</form>
<div class="block">
<a id="shoppingcartbutton3"
class="col button button-fill button-large shoppingcartbutton">Continue</a>
</div>
</div>
<!-- Third tab, should have "tab" class and unique id attribute -->
<div class="page-content tab pt-0" id="shoppingCartTab3">
<div class="block block-strong inset">
<h1>Payment</h1>
</div>
<div class="block">
<div
class="flexbox display-flex flex-row justify-content-space-between align-items-center flex-nowrap shoppingcartsummary">
<p class="shoppingcartlabel">Order Total</p>
<p class="shoppingcarttotal">0.00</p>
</div>
</div>
<div id="paymentprocessor" class="paymentprocessor block block-strong inset">
<a id="saveorderbtn" class="col button button-fill button-large saveorderbtn" >Order</a>
</div>
</div>
<!-- 4th tab, should have "tab" class and unique id attribute -->
<div class="page-content tab pt-0" id="shoppingCartTab4">
<div class="block block-strong inset">
<h1>Payment</h1>
<p>Merci pour votre commande</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="js/framework/framework7-bundle.min.js"></script>
<script type="text/javascript" src="js/framework/framework7-keypad.min.js"></script>
<script type="text/javascript" src="https://www.gstatic.com/firebasejs/8.6.2/firebase-app.js"></script>
<script type="text/javascript" src="https://www.gstatic.com/firebasejs/8.6.2/firebase-auth.js"></script>
<script type="text/javascript" src="https://www.gstatic.com/firebasejs/8.6.2/firebase-firestore.js"></script>
<script type="text/javascript" src="https://www.gstatic.com/firebasejs/8.6.2/firebase-storage.js"></script>
<script type="text/javascript" src="js/thorium.config.js"></script>
<script type="text/javascript" src="js/plugins/thorium.core.min.js"></script>
<script type="text/javascript" src="js/plugins/thorium.firebase.locales.js"></script>
<script type="text/javascript" src="js/plugins/thorium.firebase.min.js"></script>
<script type="text/javascript" src="js/plugins/thorium.firestore.min.js"></script>
<script type="text/javascript" src="js/plugins/thorium.firestore.ecommerce.min.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
<script src="capacitor.js"></script>
</body>
</html>