@necrolab/dashboard 0.4.54 → 0.4.56

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.
@@ -3,8 +3,8 @@ const queueStats = false;
3
3
  export default {
4
4
  Profile: {
5
5
  name: "Admin",
6
- profileTags: ["Debug1", "Debug2", "Debug3"],
7
- accountTags: ["Debug4", "Debug5", "Debug6"],
6
+ tags: ["Set1", "Set2"],
7
+ profileTags: ["Revolut"],
8
8
  admin: true,
9
9
  proxyList: { checkout: "admin-proxies", queue: "admin-recaptcha" },
10
10
  profilePicture: "https://cdn.discordapp.com/avatars/435549216304267264/6cfd74ad7c5939a0bcbf218aa08be8cb.png"
@@ -22,7 +22,6 @@ export default {
22
22
  inQueue: queueStats,
23
23
  statusColor: "red",
24
24
  manual: false,
25
- incapsulaBypass: false,
26
25
  quickQueue: false,
27
26
  loginAfterCart: false,
28
27
  quantity: 8,
@@ -57,7 +56,6 @@ export default {
57
56
  status: "Waiting",
58
57
  statusColor: "white",
59
58
  manual: true,
60
- incapsulaBypass: false,
61
59
  quickQueue: false,
62
60
  loginAfterCart: true,
63
61
  quantity: 8,
@@ -91,7 +89,6 @@ export default {
91
89
  status: "Waiting for Stock",
92
90
  statusColor: "white",
93
91
  manual: false,
94
- incapsulaBypass: false,
95
92
  quickQueue: false,
96
93
  loginAfterCart: false,
97
94
  quantity: 8,
@@ -125,7 +122,6 @@ export default {
125
122
  status: "Waiting for Stock",
126
123
  statusColor: "white",
127
124
  manual: false,
128
- incapsulaBypass: false,
129
125
  quickQueue: false,
130
126
  loginAfterCart: false,
131
127
  quantity: 8,
@@ -159,7 +155,6 @@ export default {
159
155
  status: "Waiting for Stock",
160
156
  statusColor: "white",
161
157
  manual: false,
162
- incapsulaBypass: false,
163
158
  quickQueue: false,
164
159
  loginAfterCart: false,
165
160
  quantity: 8,
@@ -193,7 +188,6 @@ export default {
193
188
  status: "Waiting for Stock",
194
189
  statusColor: "white",
195
190
  manual: true,
196
- incapsulaBypass: false,
197
191
  quickQueue: false,
198
192
  loginAfterCart: true,
199
193
  quantity: 8,
@@ -227,7 +221,6 @@ export default {
227
221
  status: "Waiting for Stock",
228
222
  statusColor: "white",
229
223
  manual: false,
230
- incapsulaBypass: false,
231
224
  quickQueue: false,
232
225
  loginAfterCart: false,
233
226
  quantity: 8,
@@ -261,7 +254,6 @@ export default {
261
254
  status: "Waiting for Stock",
262
255
  statusColor: "white",
263
256
  manual: true,
264
- incapsulaBypass: false,
265
257
  quickQueue: false,
266
258
  loginAfterCart: true,
267
259
  quantity: 8,
@@ -295,7 +287,6 @@ export default {
295
287
  status: "Waiting for Stock",
296
288
  statusColor: "white",
297
289
  manual: false,
298
- incapsulaBypass: false,
299
290
  quickQueue: false,
300
291
  loginAfterCart: false,
301
292
  quantity: 8,
@@ -329,7 +320,6 @@ export default {
329
320
  status: queueStats ? "Waiting for Queue" : "Waiting for Stock",
330
321
  statusColor: "white",
331
322
  manual: false,
332
- incapsulaBypass: false,
333
323
  quickQueue: false,
334
324
  loginAfterCart: false,
335
325
  quantity: 8,
@@ -363,7 +353,6 @@ export default {
363
353
  status: "Error in Enqueue",
364
354
  statusColor: "red",
365
355
  manual: false,
366
- incapsulaBypass: false,
367
356
  quickQueue: false,
368
357
  loginAfterCart: false,
369
358
  quantity: 8,
@@ -397,7 +386,6 @@ export default {
397
386
  status: "Waiting for Stock",
398
387
  statusColor: "white",
399
388
  manual: false,
400
- incapsulaBypass: false,
401
389
  quickQueue: false,
402
390
  loginAfterCart: false,
403
391
  quantity: 8,
@@ -431,7 +419,6 @@ export default {
431
419
  status: "5500 users ahead - ETA: 4min",
432
420
  statusColor: "white",
433
421
  manual: false,
434
- incapsulaBypass: false,
435
422
  quickQueue: false,
436
423
  loginAfterCart: false,
437
424
  quantity: 8,
@@ -462,7 +449,6 @@ export default {
462
449
  status: "5000 users ahead - ETA: 3min",
463
450
  statusColor: "white",
464
451
  manual: false,
465
- incapsulaBypass: false,
466
452
  quickQueue: false,
467
453
  loginAfterCart: false,
468
454
  quantity: 8,
@@ -493,7 +479,6 @@ export default {
493
479
  status: "400 users ahead - ETA: less than 1 minute",
494
480
  statusColor: "white",
495
481
  manual: false,
496
- incapsulaBypass: false,
497
482
  quickQueue: false,
498
483
  loginAfterCart: false,
499
484
  quantity: 8,
@@ -524,7 +509,6 @@ export default {
524
509
  status: "400 users ahead - ETA: less than 1 minute",
525
510
  statusColor: "white",
526
511
  manual: false,
527
- incapsulaBypass: false,
528
512
  quickQueue: false,
529
513
  loginAfterCart: false,
530
514
  quantity: 8,
@@ -555,7 +539,6 @@ export default {
555
539
  status: "400 users ahead - ETA: less than 1 minute",
556
540
  statusColor: "white",
557
541
  manual: false,
558
- incapsulaBypass: false,
559
542
  quickQueue: false,
560
543
  loginAfterCart: false,
561
544
  quantity: 8,
@@ -586,7 +569,6 @@ export default {
586
569
  status: "400 users ahead - ETA: less than 1 minute",
587
570
  statusColor: "white",
588
571
  manual: false,
589
- incapsulaBypass: false,
590
572
  quickQueue: false,
591
573
  loginAfterCart: false,
592
574
  quantity: 8,
@@ -617,7 +599,6 @@ export default {
617
599
  status: "400 users ahead - ETA: less than 1 minute",
618
600
  statusColor: "white",
619
601
  manual: false,
620
- incapsulaBypass: false,
621
602
  quickQueue: false,
622
603
  loginAfterCart: false,
623
604
  quantity: 8,
@@ -648,7 +629,6 @@ export default {
648
629
  status: "Sleeping in queue",
649
630
  statusColor: "white",
650
631
  manual: false,
651
- incapsulaBypass: false,
652
632
  quickQueue: false,
653
633
  loginAfterCart: false,
654
634
  quantity: 8,
@@ -679,7 +659,6 @@ export default {
679
659
  status: "Sleeping in queue",
680
660
  statusColor: "white",
681
661
  manual: false,
682
- incapsulaBypass: false,
683
662
  quickQueue: false,
684
663
  loginAfterCart: false,
685
664
  quantity: 8,
@@ -723,7 +702,7 @@ export default {
723
702
  email: "aaa@bbb.com",
724
703
  password: "password123",
725
704
  enabled: true,
726
- tags: ["amex"],
705
+ tags: ["admin"],
727
706
  module: "TM"
728
707
  },
729
708
  {
@@ -731,7 +710,7 @@ export default {
731
710
  email: "aabb@ccc.com",
732
711
  password: "password123",
733
712
  enabled: true,
734
- tags: ["amex", "phone_mfa"],
713
+ tags: ["admin", "phone_mfa"],
735
714
  module: "TM"
736
715
  },
737
716
  {
package/src/stores/ui.js CHANGED
@@ -32,7 +32,7 @@ export const useUIStore = defineStore("ui", () => {
32
32
 
33
33
  const profile = ref({
34
34
  profileTags: [],
35
- accountTags: [],
35
+ tags: [],
36
36
  admin: false,
37
37
  name: ""
38
38
  });
@@ -361,7 +361,29 @@ const timeDifference = (date1, date2) => {
361
361
  return str;
362
362
  };
363
363
 
364
- const parseEventUrl = (url) => {
364
+ const parseAxsEventUrl = (url) => {
365
+ const HOST = "www.axs.com";
366
+
367
+ if (!url.startsWith("https://")) return { eventId: url };
368
+ if (!url.includes(`https://${HOST}`)) return {};
369
+
370
+ const siteMatch = url.match(new RegExp(`https://${HOST}(/uk)?`));
371
+ const eventMatch = url.match(/\/events\/(\d+)/);
372
+ const promoMatch = url.match(/\/promopage\/(\d+)/);
373
+
374
+ if (!siteMatch || !eventMatch) return {};
375
+
376
+ const siteId = siteMatch[1] === "/uk" ? "AXS_UK" : "AXS_US";
377
+ const eventId = eventMatch[1];
378
+ const promoId = promoMatch?.[1];
379
+
380
+ const result = { eventId, siteId };
381
+ if (promoId) result.promoId = promoId;
382
+
383
+ return result;
384
+ };
385
+
386
+ const parseTmEventUrl = (url) => {
365
387
  if (!url.includes("https://")) {
366
388
  return { eventId: url };
367
389
  }
@@ -509,6 +531,8 @@ function sortTaskIds(a, b) {
509
531
  return aInfo.num - bInfo.num;
510
532
  }
511
533
 
534
+ const firstUpper = (str) => `${str[0].toUpperCase()}${str.slice(1).toLowerCase()}`;
535
+
512
536
  function betterSort(a, b) {
513
537
  if (a === undefined || a === null) return b === undefined || b === null ? 0 : -1;
514
538
  if (b === undefined || b === null) return 1;
@@ -542,7 +566,8 @@ export {
542
566
  generateStreetAddress,
543
567
  timeDifference,
544
568
  sortAlphaNum,
545
- parseEventUrl,
569
+ parseAxsEventUrl,
570
+ parseTmEventUrl,
546
571
  isEU,
547
572
  removeDuplicates,
548
573
  pickRandom,
@@ -550,5 +575,6 @@ export {
550
575
  getCardType,
551
576
  validateCard,
552
577
  sortTaskIds,
578
+ firstUpper,
553
579
  betterSort
554
580
  };
@@ -16,7 +16,6 @@
16
16
  * @property {string} eventUrl
17
17
  * @property {string} eventVenue
18
18
  * @property {string} expirationTime
19
- * @property {boolean} incapsulaBypass
20
19
  * @property {boolean} isExpanded
21
20
  * @property {boolean} loginAfterCart
22
21
  * @property {boolean} manual
@@ -39,4 +38,4 @@
39
38
  * @property {string} taskId
40
39
  * @property {string} venueName
41
40
  * @property {string} _timeLeftString
42
- */
41
+ */