pixflow-upgrade-planning 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +18 -6
- package/package.json +1 -1
- package/styles/pixflow.css +51 -26
- package/template.html +6 -2
package/index.js
CHANGED
|
@@ -47,12 +47,24 @@ class PixflowUpgradePlanning extends HTMLElement {
|
|
|
47
47
|
|
|
48
48
|
async purchase_code_click(e){
|
|
49
49
|
e.preventDefault();
|
|
50
|
-
const purchase_code_activate = new PurchaseCodeActivate(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
const purchase_code_activate = new PurchaseCodeActivate(e.target.parentNode.parentNode.querySelector("input[type='text']").value);
|
|
51
|
+
const result = await purchase_code_activate.check_user_license_type();
|
|
52
|
+
var index = 3;
|
|
53
|
+
if(result.license_type == "single" || result.license_type == "team"){
|
|
54
|
+
const check_device_query = await purchase_code_activate.check_device_query(result.license_type);
|
|
55
|
+
if(check_device_query.error == 0){
|
|
56
|
+
index = 1;
|
|
57
|
+
localStorage.setItem("active", result.license_type);
|
|
58
|
+
} else if(check_device_query.error == -2){
|
|
59
|
+
index = 2;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
e.target.parentNode.querySelector(`div.message > p:nth-child(${index})`).classList.add("active");
|
|
63
|
+
if(index == 1){
|
|
64
|
+
setTimeout(() => {
|
|
65
|
+
window.location.href = "./index.html";
|
|
66
|
+
}, 1200);
|
|
67
|
+
}
|
|
56
68
|
}
|
|
57
69
|
|
|
58
70
|
activate_code_block_click(e){
|
package/package.json
CHANGED
package/styles/pixflow.css
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
pixflow-upgrade-planning > div.pixflow > div.plan > div, div.purchase-code button {
|
|
10
|
+
pixflow-upgrade-planning > div.pixflow > div.plan > div, pixflow-upgrade-planning > div.purchase-code button {
|
|
11
11
|
cursor: pointer;
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -238,7 +238,7 @@ pixflow-upgrade-planning > div.pixflow > img:nth-child(2) {
|
|
|
238
238
|
margin-top: 12px;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
div.close {
|
|
241
|
+
pixflow-upgrade-planning div.close {
|
|
242
242
|
background-image: url(./images/drawer.svg);
|
|
243
243
|
background-repeat: no-repeat;
|
|
244
244
|
background-position: center center;
|
|
@@ -246,7 +246,7 @@ div.close {
|
|
|
246
246
|
height: 27px;
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
div.purchase-code {
|
|
249
|
+
pixflow-upgrade-planning > div.purchase-code {
|
|
250
250
|
display: none;
|
|
251
251
|
flex-direction: column;
|
|
252
252
|
position: fixed;
|
|
@@ -260,6 +260,7 @@ div.purchase-code {
|
|
|
260
260
|
border-radius: 17px 17px 0px 0px;
|
|
261
261
|
z-index: 1001;
|
|
262
262
|
align-items: center;
|
|
263
|
+
justify-content: space-between;
|
|
263
264
|
font-family: 'Inter';
|
|
264
265
|
font-style: normal;
|
|
265
266
|
font-weight: 700;
|
|
@@ -268,46 +269,46 @@ div.purchase-code {
|
|
|
268
269
|
background: linear-gradient(180deg, #005DFF -86.53%, #2273FF -13.89%, #0C0C0C 47.55%, rgb(221 0 27) 47.56%, #0C0C0C 47.57%);
|
|
269
270
|
}
|
|
270
271
|
|
|
271
|
-
div.purchase-code.active {
|
|
272
|
+
pixflow-upgrade-planning > div.purchase-code.active {
|
|
272
273
|
top: calc(100vh - 95%);
|
|
273
274
|
}
|
|
274
275
|
|
|
275
|
-
div.purchase-code > form > input[type=text]:nth-child(1) {
|
|
276
|
+
pixflow-upgrade-planning > div.purchase-code > div.form > input[type=text]:nth-child(1) {
|
|
276
277
|
margin-top: 39px;
|
|
277
278
|
background: rgb(185 210 255 / 10%);
|
|
278
279
|
}
|
|
279
280
|
|
|
280
|
-
div.purchase-code > form > div {
|
|
281
|
+
pixflow-upgrade-planning > div.purchase-code > div.form > div {
|
|
281
282
|
color: #7C879A;
|
|
282
283
|
margin: 15px 0;
|
|
283
284
|
cursor: pointer;
|
|
284
285
|
}
|
|
285
286
|
|
|
286
|
-
div.purchase-code > img:nth-child(1) {
|
|
287
|
+
pixflow-upgrade-planning > div.purchase-code > img:nth-child(1) {
|
|
287
288
|
position: absolute;
|
|
288
289
|
z-index: -1;
|
|
289
290
|
top: -8px;
|
|
290
291
|
}
|
|
291
292
|
|
|
292
|
-
div.purchase-code > img:nth-child(2) {
|
|
293
|
+
pixflow-upgrade-planning > div.purchase-code > img:nth-child(2) {
|
|
293
294
|
margin-top: 8px;
|
|
295
|
+
position: absolute;
|
|
294
296
|
}
|
|
295
297
|
|
|
296
|
-
div.purchase-code > img:nth-child(3) {
|
|
298
|
+
pixflow-upgrade-planning > div.purchase-code > img:nth-child(3) {
|
|
297
299
|
margin-top: 82px;
|
|
298
300
|
}
|
|
299
301
|
|
|
300
|
-
div.purchase-code.active, div#block.active, div#logout.active, div#revoke-access.active, div#store.active, #font-selector.active {
|
|
302
|
+
pixflow-upgrade-planning > div.purchase-code.active, div#block.active, div#logout.active, div#revoke-access.active, div#store.active, #font-selector.active {
|
|
301
303
|
opacity: 1;
|
|
302
304
|
display: flex!important;
|
|
303
305
|
}
|
|
304
306
|
|
|
305
|
-
div.purchase-code > div {
|
|
306
|
-
margin-top: 136px;
|
|
307
|
+
pixflow-upgrade-planning > div.purchase-code > div {
|
|
307
308
|
color: #7C879A;
|
|
308
309
|
}
|
|
309
310
|
|
|
310
|
-
div.purchase-code > p.describe {
|
|
311
|
+
pixflow-upgrade-planning > div.purchase-code > p.describe {
|
|
311
312
|
font-family: Inter;
|
|
312
313
|
font-style: normal;
|
|
313
314
|
font-weight: bold;
|
|
@@ -319,18 +320,18 @@ div.purchase-code > p.describe {
|
|
|
319
320
|
margin-top: 69px;
|
|
320
321
|
}
|
|
321
322
|
|
|
322
|
-
div.purchase-code > p {
|
|
323
|
+
pixflow-upgrade-planning > div.purchase-code > p {
|
|
323
324
|
width: fit-content;
|
|
324
325
|
}
|
|
325
326
|
|
|
326
|
-
div.purchase-code > form {
|
|
327
|
+
pixflow-upgrade-planning > div.purchase-code > div.form {
|
|
327
328
|
display: flex;
|
|
328
329
|
justify-content: space-between;
|
|
329
330
|
align-items: center;
|
|
330
331
|
flex-direction: column;
|
|
331
332
|
}
|
|
332
333
|
|
|
333
|
-
div.purchase-code > form > input[type="text"] {
|
|
334
|
+
pixflow-upgrade-planning > div.purchase-code > div.form > input[type="text"] {
|
|
334
335
|
background-color: rgba(226, 226, 226, 0.6);
|
|
335
336
|
border: 0;
|
|
336
337
|
color: #8D8D8D;
|
|
@@ -347,21 +348,21 @@ div.purchase-code > form > input[type="text"] {
|
|
|
347
348
|
margin: 0;
|
|
348
349
|
}
|
|
349
350
|
|
|
350
|
-
div.purchase-code > form > input[type="text"]::selection {
|
|
351
|
+
pixflow-upgrade-planning > div.purchase-code > div.form > input[type="text"]::selection {
|
|
351
352
|
filter: invert(1);
|
|
352
353
|
}
|
|
353
354
|
|
|
354
|
-
div.purchase-code > form > p {
|
|
355
|
+
pixflow-upgrade-planning > div.purchase-code > div.form > p {
|
|
355
356
|
color: #fff;
|
|
356
357
|
height: 15px;
|
|
357
358
|
}
|
|
358
359
|
|
|
359
|
-
div.purchase-code > p {
|
|
360
|
+
pixflow-upgrade-planning > div.purchase-code > p {
|
|
360
361
|
width: fit-content;
|
|
361
362
|
text-align: center;
|
|
362
363
|
}
|
|
363
364
|
|
|
364
|
-
div.purchase-code > p.buy {
|
|
365
|
+
pixflow-upgrade-planning > div.purchase-code > p.buy {
|
|
365
366
|
font-family: Inter;
|
|
366
367
|
font-style: normal;
|
|
367
368
|
font-weight: 500;
|
|
@@ -372,26 +373,50 @@ div.purchase-code > p.buy {
|
|
|
372
373
|
color: #FFFFFF;
|
|
373
374
|
}
|
|
374
375
|
|
|
375
|
-
div.purchase-code > p.buy > a {
|
|
376
|
+
pixflow-upgrade-planning > div.purchase-code > p.buy > a {
|
|
376
377
|
color: #5c92ff;
|
|
377
378
|
text-decoration: underline;
|
|
378
379
|
transition: color 0.2s;
|
|
379
380
|
}
|
|
380
381
|
|
|
381
|
-
div.purchase-code > p.buy > a:hover {
|
|
382
|
+
pixflow-upgrade-planning > div.purchase-code > p.buy > a:hover {
|
|
382
383
|
color: #0A48C4;
|
|
383
384
|
}
|
|
384
385
|
|
|
385
|
-
div.purchase-code > p.help > a {
|
|
386
|
+
pixflow-upgrade-planning > div.purchase-code > p.help > a {
|
|
386
387
|
text-decoration: underline;
|
|
387
388
|
}
|
|
388
389
|
|
|
389
|
-
div.purchase-code > p.buy > a {
|
|
390
|
+
pixflow-upgrade-planning > div.purchase-code > p.buy > a {
|
|
390
391
|
color: #5c92ff;
|
|
391
392
|
text-decoration: underline;
|
|
392
393
|
display: contents;
|
|
393
394
|
}
|
|
394
395
|
|
|
395
|
-
div.purchase-code div.result {
|
|
396
|
+
pixflow-upgrade-planning > div.purchase-code div.result {
|
|
397
|
+
color: #FFFFFF;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
pixflow-upgrade-planning > div.purchase-code > div.form > div.message > p {
|
|
401
|
+
display: none;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
pixflow-upgrade-planning > div.purchase-code > div.form > div.message > p.active {
|
|
405
|
+
display: block;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
pixflow-upgrade-planning > div.purchase-code button {
|
|
396
409
|
color: #FFFFFF;
|
|
397
|
-
|
|
410
|
+
font-family: Inter;
|
|
411
|
+
font-style: normal;
|
|
412
|
+
font-weight: 500;
|
|
413
|
+
font-size: 14px;
|
|
414
|
+
border: 0;
|
|
415
|
+
outline: none;
|
|
416
|
+
transition: background-color 0.2s;
|
|
417
|
+
cursor: pointer;
|
|
418
|
+
padding: 9px;
|
|
419
|
+
margin: 9px;
|
|
420
|
+
border-radius: 7px;
|
|
421
|
+
background-color: #005dff;
|
|
422
|
+
}
|
package/template.html
CHANGED
|
@@ -60,9 +60,13 @@
|
|
|
60
60
|
<img src="./node_modules/pixflow-upgrade-planning/images/drawer.svg" class="close">
|
|
61
61
|
<img src="./node_modules/pixflow-upgrade-planning/images/pixflow/purchase-code.svg">
|
|
62
62
|
<p class="describe">Use the code you received after the purchase process to activate the plugin</p>
|
|
63
|
-
<div>
|
|
63
|
+
<div class="form">
|
|
64
64
|
<input type="text" spellcheck="false" placeholder="Purchase code">
|
|
65
|
-
<
|
|
65
|
+
<div class="message">
|
|
66
|
+
<p>Activation was successful</p>
|
|
67
|
+
<p>Your code has been activated on 1 machines. Revoke them and try again.</p>
|
|
68
|
+
<p>Invalid purchase code!</p>
|
|
69
|
+
</div>
|
|
66
70
|
<button>ACTIVATE</button>
|
|
67
71
|
<div class="back-upgrade-plan">Purchase Pro Membership</div>
|
|
68
72
|
</div>
|