@necrolab/dashboard 0.4.38 → 0.4.40

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.
Files changed (65) hide show
  1. package/.claude/settings.local.json +7 -1
  2. package/.prettierrc +14 -1
  3. package/backend/api.js +25 -16
  4. package/backend/auth.js +2 -2
  5. package/backend/batching.js +1 -1
  6. package/backend/endpoints.js +5 -5
  7. package/backend/index.js +2 -2
  8. package/backend/mock-data.js +27 -28
  9. package/backend/mock-src/classes/logger.js +5 -7
  10. package/backend/mock-src/classes/utils.js +3 -2
  11. package/backend/mock-src/ticketmaster.js +2 -2
  12. package/backend/validator.js +2 -2
  13. package/dev-server.js +136 -0
  14. package/index.html +1 -1
  15. package/index.js +1 -1
  16. package/package.json +8 -6
  17. package/postcss.config.js +1 -1
  18. package/postinstall.js +30 -16
  19. package/public/android-chrome-192x192.png +0 -0
  20. package/public/android-chrome-512x512.png +0 -0
  21. package/public/apple-touch-icon.png +0 -0
  22. package/public/favicon-16x16.png +0 -0
  23. package/public/favicon-32x32.png +0 -0
  24. package/public/favicon.ico +0 -0
  25. package/public/manifest.json +4 -4
  26. package/src/App.vue +471 -49
  27. package/src/assets/css/_input.scss +37 -37
  28. package/src/assets/css/main.scss +177 -30
  29. package/src/assets/img/logo_icon-old.png +0 -0
  30. package/src/assets/img/logo_icon.png +0 -0
  31. package/src/components/Auth/LoginForm.vue +12 -5
  32. package/src/components/Editors/Account/Account.vue +19 -19
  33. package/src/components/Editors/Account/AccountCreator.vue +53 -24
  34. package/src/components/Editors/Account/AccountView.vue +79 -17
  35. package/src/components/Editors/Account/CreateAccount.vue +47 -28
  36. package/src/components/Editors/Profile/Profile.vue +24 -24
  37. package/src/components/Editors/Profile/ProfileView.vue +67 -16
  38. package/src/components/Editors/TagLabel.vue +6 -7
  39. package/src/components/Filter/FilterPreview.vue +0 -4
  40. package/src/components/Table/Table.vue +15 -0
  41. package/src/components/Tasks/Controls/DesktopControls.vue +1 -1
  42. package/src/components/Tasks/CreateTaskAXS.vue +15 -15
  43. package/src/components/Tasks/CreateTaskTM.vue +5 -4
  44. package/src/components/Tasks/Stats.vue +22 -16
  45. package/src/components/Tasks/Task.vue +100 -81
  46. package/src/components/Tasks/TaskView.vue +25 -23
  47. package/src/components/Tasks/Utilities.vue +1 -1
  48. package/src/components/icons/Mail.vue +2 -2
  49. package/src/components/ui/Modal.vue +84 -15
  50. package/src/components/ui/Navbar.vue +118 -39
  51. package/src/components/ui/controls/atomic/Dropdown.vue +23 -3
  52. package/src/components/ui/controls/atomic/MultiDropdown.vue +43 -23
  53. package/src/stores/sampleData.js +89 -64
  54. package/src/stores/ui.js +30 -4
  55. package/src/views/Accounts.vue +2 -2
  56. package/src/views/Console.vue +276 -41
  57. package/src/views/Editor.vue +175 -28
  58. package/src/views/FilterBuilder.vue +45 -49
  59. package/src/views/Login.vue +134 -12
  60. package/src/views/Profiles.vue +8 -8
  61. package/src/views/Tasks.vue +51 -2
  62. package/tailwind.config.js +2 -2
  63. package/vite.config.js +34 -1
  64. package/vue.config.js +1 -1
  65. package/{workbox-config.js → workbox-config.cjs} +1 -4
@@ -1,10 +1,11 @@
1
1
  export default {
2
2
  Profile: {
3
- name: "DEV",
3
+ name: "Admin",
4
4
  profileTags: ["Debug1", "Debug2", "Debug3"],
5
5
  accountTags: ["Debug4", "Debug5", "Debug6"],
6
6
  admin: true,
7
- proxyList: { checkout: "admin-proxies", queue: "admin-recaptcha" }
7
+ proxyList: { checkout: "admin-proxies", queue: "admin-recaptcha" },
8
+ profilePicture: "https://cdn.discordapp.com/avatars/435549216304267264/6cfd74ad7c5939a0bcbf218aa08be8cb.png"
8
9
  },
9
10
  Tasks: {
10
11
  0: {
@@ -15,7 +16,7 @@ export default {
15
16
  active: true,
16
17
  email: "grantelam@hotmail.com",
17
18
  password: "Dkstrhf4srth56Gksj",
18
- status: "Event already happened",
19
+ status: "Event already happened long long long long long long longlong long long long",
19
20
  inQueue: true,
20
21
  statusColor: "red",
21
22
  manual: false,
@@ -51,7 +52,7 @@ export default {
51
52
  active: true,
52
53
  email: "hardacrehardhugreenh5264@gmail.com",
53
54
  password: "UtgsrtTBsrthaou5zL2",
54
- status: "Waiting for Stock",
55
+ status: "Waiting",
55
56
  statusColor: "white",
56
57
  manual: true,
57
58
  incapsulaBypass: false,
@@ -700,172 +701,196 @@ export default {
700
701
  },
701
702
  Accounts: [
702
703
  {
703
- _id: Math.random(),
704
+ _id: "64a1b2c3d4e5f6789abcdef0",
704
705
  email: "aaaa@aaa.com",
705
706
  password: "password123",
706
707
  enabled: true,
707
- tags: ["admin", "amex"]
708
+ tags: ["admin"],
709
+ module: "TM"
708
710
  },
709
711
  {
710
- _id: Math.random(),
712
+ _id: "64a1b2c3d4e5f6789abcdef1",
711
713
  email: "bbb@bbb.com",
712
714
  password: "password123",
713
715
  enabled: true,
714
- tags: ["admin", "amex"]
716
+ tags: ["admin"],
717
+ module: "TM"
715
718
  },
716
719
  {
717
- _id: Math.random(),
720
+ _id: "64a1b2c3d4e5f6789abcdef2",
718
721
  email: "aaa@bbb.com",
719
722
  password: "password123",
720
723
  enabled: true,
721
- tags: ["amex"]
724
+ tags: ["amex"],
725
+ module: "TM"
722
726
  },
723
727
  {
724
- _id: Math.random(),
728
+ _id: "64a1b2c3d4e5f6789abcdef3",
725
729
  email: "aabb@ccc.com",
726
730
  password: "password123",
727
731
  enabled: true,
728
- tags: ["amex"]
732
+ tags: ["amex", "phone_mfa"],
733
+ module: "TM"
729
734
  },
730
735
  {
731
- _id: Math.random(),
736
+ _id: "64a1b2c3d4e5f6789abcdef4",
732
737
  email: "aaaabbbbb@cccc.com",
733
738
  password: "password123",
734
739
  enabled: true,
735
- tags: ["admin"]
740
+ tags: ["admin"],
741
+ module: "TM"
736
742
  },
737
743
  {
738
- _id: Math.random(),
744
+ _id: "64a1b2c3d4e5f6789abcdef5",
739
745
  email: "aa@ihbigb.com",
740
746
  password: "password123",
741
747
  enabled: true,
742
- tags: ["admin"]
748
+ tags: ["admin"],
749
+ module: "TM"
743
750
  },
744
751
  {
745
- _id: Math.random(),
752
+ _id: "64a1b2c3d4e5f6789abcdef6",
746
753
  email: "aaaa@aaa.com",
747
754
  password: "password123",
748
755
  enabled: true,
749
- tags: ["admin", "amex"]
756
+ tags: ["admin"],
757
+ module: "AXS"
750
758
  },
751
759
  {
752
- _id: Math.random(),
760
+ _id: "64a1b2c3d4e5f6789abcdef7",
753
761
  email: "bbb@bbb.com",
754
762
  password: "password123",
755
763
  enabled: true,
756
- tags: ["admin", "amex"]
764
+ tags: ["admin"],
765
+ module: "AXS"
757
766
  },
758
767
  {
759
- _id: Math.random(),
768
+ _id: "64a1b2c3d4e5f6789abcdef8",
760
769
  email: "aaa@bbb.com",
761
770
  password: "password123",
762
771
  enabled: true,
763
- tags: ["admin", "amex"]
772
+ tags: ["admin"],
773
+ module: "AXS"
764
774
  },
765
775
  {
766
- _id: Math.random(),
776
+ _id: "64a1b2c3d4e5f6789abcdef9",
767
777
  email: "aabb@ccc.com",
768
778
  password: "password123",
769
779
  enabled: true,
770
- tags: ["admin", "amex"]
780
+ tags: ["admin"],
781
+ module: "AXS"
771
782
  },
772
783
  {
773
- _id: Math.random(),
784
+ _id: "64a1b2c3d4e5f6789abcdefa",
774
785
  email: "aaaabbbbb@cccc.com",
775
786
  password: "password123",
776
787
  enabled: true,
777
- tags: ["admin", "amex"]
788
+ tags: ["admin"],
789
+ module: "TM"
778
790
  },
779
791
  {
780
- _id: Math.random(),
792
+ _id: "64a1b2c3d4e5f6789abcdefb",
781
793
  email: "aa@ihbigb.com",
782
794
  password: "password123",
783
795
  enabled: true,
784
- tags: ["admin", "amex"]
796
+ tags: ["admin"],
797
+ module: "TM"
785
798
  },
786
799
  {
787
- _id: Math.random(),
788
- email: "aaaa@aaa.com",
800
+ _id: "64a1b2c3d4e5f6789abcdefc",
801
+ email: "test1@gmail.com",
789
802
  password: "password123",
790
803
  enabled: true,
791
- tags: ["admin", "amex"]
804
+ tags: ["admin"],
805
+ module: "TM"
792
806
  },
793
807
  {
794
- _id: Math.random(),
795
- email: "bbb@bbb.com",
808
+ _id: "64a1b2c3d4e5f6789abcdefd",
809
+ email: "test2@gmail.com",
796
810
  password: "password123",
797
811
  enabled: true,
798
- tags: ["admin", "amex"]
812
+ tags: ["admin"],
813
+ module: "TM"
799
814
  },
800
815
  {
801
- _id: Math.random(),
802
- email: "aaa@bbb.com",
816
+ _id: "64a1b2c3d4e5f6789abcdefe",
817
+ email: "test3@gmail.com",
803
818
  password: "password123",
804
819
  enabled: true,
805
- tags: ["admin", "amex"]
820
+ tags: ["admin"],
821
+ module: "AXS"
806
822
  },
807
823
  {
808
- _id: Math.random(),
809
- email: "aabb@ccc.com",
824
+ _id: "64a1b2c3d4e5f6789abcdeff",
825
+ email: "test4@gmail.com",
810
826
  password: "password123",
811
827
  enabled: true,
812
- tags: ["admin", "amex"]
828
+ tags: ["admin"],
829
+ module: "AXS"
813
830
  },
814
831
  {
815
- _id: Math.random(),
816
- email: "aaaabbbbb@cccc.com",
832
+ _id: "64a1b2c3d4e5f6789abcde00",
833
+ email: "test5@gmail.com",
817
834
  password: "password123",
818
835
  enabled: true,
819
- tags: ["admin", "amex"]
836
+ tags: ["admin"],
837
+ module: "TM"
820
838
  },
821
839
  {
822
- _id: Math.random(),
823
- email: "aa@ihbigb.com",
840
+ _id: "64a1b2c3d4e5f6789abcde01",
841
+ email: "test6@gmail.com",
824
842
  password: "password123",
825
843
  enabled: true,
826
- tags: ["admin", "amex"]
844
+ tags: ["admin"],
845
+ module: "AXS"
827
846
  },
828
847
  {
829
- _id: Math.random(),
830
- email: "aaaa@aaa.com",
848
+ _id: "64a1b2c3d4e5f6789abcde02",
849
+ email: "test7@gmail.com",
831
850
  password: "password123",
832
851
  enabled: true,
833
- tags: ["admin", "amex"]
852
+ tags: ["admin"],
853
+ module: "TM"
834
854
  },
835
855
  {
836
- _id: Math.random(),
837
- email: "bbb@bbb.com",
856
+ _id: "64a1b2c3d4e5f6789abcde03",
857
+ email: "test8@gmail.com",
838
858
  password: "password123",
839
859
  enabled: true,
840
- tags: ["admin", "amex"]
860
+ tags: ["admin"],
861
+ module: "AXS"
841
862
  },
842
863
  {
843
- _id: Math.random(),
844
- email: "aaa@bbb.com",
864
+ _id: "64a1b2c3d4e5f6789abcde04",
865
+ email: "test9@gmail.com",
845
866
  password: "password123",
846
867
  enabled: true,
847
- tags: ["admin", "amex"]
868
+ tags: ["admin"],
869
+ module: "TM"
848
870
  },
849
871
  {
850
- _id: Math.random(),
851
- email: "aabb@ccc.com",
872
+ _id: "64a1b2c3d4e5f6789abcde05",
873
+ email: "test10@gmail.com",
852
874
  password: "password123",
853
875
  enabled: true,
854
- tags: ["admin", "amex"]
876
+ tags: ["admin"],
877
+ module: "AXS"
855
878
  },
856
879
  {
857
- _id: Math.random(),
858
- email: "aaaabbbbb@cccc.com",
880
+ _id: "64a1b2c3d4e5f6789abcde06",
881
+ email: "test11@gmail.com",
859
882
  password: "password123",
860
883
  enabled: true,
861
- tags: ["admin", "amex"]
884
+ tags: ["admin"],
885
+ module: "TM"
862
886
  },
863
887
  {
864
- _id: Math.random(),
865
- email: "aa@ihbigb.com",
888
+ _id: "64a1b2c3d4e5f6789abcde07",
889
+ email: "test12@gmail.com",
866
890
  password: "password123",
867
891
  enabled: true,
868
- tags: ["admin", "amex"]
892
+ tags: ["admin"],
893
+ module: "AXS"
869
894
  }
870
895
  ],
871
896
  Profiles: [
package/src/stores/ui.js CHANGED
@@ -138,7 +138,11 @@ export const useUIStore = defineStore("ui", () => {
138
138
  connection.init("/api/updates?type=tasks");
139
139
 
140
140
  const pd = (e) => {
141
- if (!e.target.closest(".scrollable")) {
141
+ if (
142
+ !e.target.closest(".scrollable") &&
143
+ !e.target.closest(".dropdown-menu") &&
144
+ !e.target.closest(".option-list")
145
+ ) {
142
146
  e.preventDefault();
143
147
  }
144
148
  };
@@ -230,7 +234,7 @@ export const useUIStore = defineStore("ui", () => {
230
234
  if (currentEvent.value) relevantTasks = relevantTasks.filter((t) => t.eventId === currentEvent.value);
231
235
 
232
236
  queueStats.value.total = 0;
233
- queueStats.value.queued = relevantTasks.filter((t) => t.inQueue).length || 0;
237
+ queueStats.value.queued = relevantTasks.filter((t) => t.inQueue).length + 500000 || 0;
234
238
  queueStats.value.show = queueStats.value.total > 0;
235
239
  const sleepingStatuses = ["sleeping in queue", "waiting for drop", "waiting for carting", "waiting for queue"];
236
240
  queueStats.value.sleeping = relevantTasks.filter((t) =>
@@ -499,8 +503,30 @@ export const useUIStore = defineStore("ui", () => {
499
503
  massEditPresaleCode: (eventId, presaleCode) => connection.sendMassEditPresaleCode(eventId, presaleCode),
500
504
 
501
505
  // alerts
502
- showError: (err) => toast.error(err, { autoClose: 2000 }),
503
- showSuccess: (msg) => toast.success(msg, { autoClose: 2000 }),
506
+ showError: (err) =>
507
+ toast.error(err, {
508
+ autoClose: 1000,
509
+ pauseOnHover: false,
510
+ hideProgressBar: false,
511
+ closeOnClick: true,
512
+ pauseOnFocusLoss: false,
513
+ transition: "slide",
514
+ position: "top-right",
515
+ closeButton: true,
516
+ newestOnTop: true
517
+ }),
518
+ showSuccess: (msg) =>
519
+ toast.success(msg, {
520
+ autoClose: 1000,
521
+ pauseOnHover: false,
522
+ hideProgressBar: false,
523
+ closeOnClick: true,
524
+ pauseOnFocusLoss: false,
525
+ transition: "slide",
526
+ position: "top-right",
527
+ closeButton: true,
528
+ newestOnTop: true
529
+ }),
504
530
  // Country
505
531
  currentCountry,
506
532
  setCurrentCountry: (country, closeModal, newModule) => {
@@ -105,10 +105,10 @@
105
105
  </div>
106
106
 
107
107
  <!-- Tasks (Table) -->
108
- <AccountView :tasks="processedTasks" class="max-h-big-acc" />
108
+ <AccountView :accounts="processedTasks" class="max-h-big-acc" />
109
109
 
110
110
  <!-- Modal -->
111
- <transition-group name="fade" mode="out-in">
111
+ <transition-group name="fade">
112
112
  <CreateAccount v-if="activeModal === 'create-account'" />
113
113
  <AccountCreator v-if="activeModal === 'account-creator'" />
114
114
  </transition-group>