@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.
- package/.claude/settings.local.json +7 -1
- package/.prettierrc +14 -1
- package/backend/api.js +25 -16
- package/backend/auth.js +2 -2
- package/backend/batching.js +1 -1
- package/backend/endpoints.js +5 -5
- package/backend/index.js +2 -2
- package/backend/mock-data.js +27 -28
- package/backend/mock-src/classes/logger.js +5 -7
- package/backend/mock-src/classes/utils.js +3 -2
- package/backend/mock-src/ticketmaster.js +2 -2
- package/backend/validator.js +2 -2
- package/dev-server.js +136 -0
- package/index.html +1 -1
- package/index.js +1 -1
- package/package.json +8 -6
- package/postcss.config.js +1 -1
- package/postinstall.js +30 -16
- package/public/android-chrome-192x192.png +0 -0
- package/public/android-chrome-512x512.png +0 -0
- package/public/apple-touch-icon.png +0 -0
- package/public/favicon-16x16.png +0 -0
- package/public/favicon-32x32.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/manifest.json +4 -4
- package/src/App.vue +471 -49
- package/src/assets/css/_input.scss +37 -37
- package/src/assets/css/main.scss +177 -30
- package/src/assets/img/logo_icon-old.png +0 -0
- package/src/assets/img/logo_icon.png +0 -0
- package/src/components/Auth/LoginForm.vue +12 -5
- package/src/components/Editors/Account/Account.vue +19 -19
- package/src/components/Editors/Account/AccountCreator.vue +53 -24
- package/src/components/Editors/Account/AccountView.vue +79 -17
- package/src/components/Editors/Account/CreateAccount.vue +47 -28
- package/src/components/Editors/Profile/Profile.vue +24 -24
- package/src/components/Editors/Profile/ProfileView.vue +67 -16
- package/src/components/Editors/TagLabel.vue +6 -7
- package/src/components/Filter/FilterPreview.vue +0 -4
- package/src/components/Table/Table.vue +15 -0
- package/src/components/Tasks/Controls/DesktopControls.vue +1 -1
- package/src/components/Tasks/CreateTaskAXS.vue +15 -15
- package/src/components/Tasks/CreateTaskTM.vue +5 -4
- package/src/components/Tasks/Stats.vue +22 -16
- package/src/components/Tasks/Task.vue +100 -81
- package/src/components/Tasks/TaskView.vue +25 -23
- package/src/components/Tasks/Utilities.vue +1 -1
- package/src/components/icons/Mail.vue +2 -2
- package/src/components/ui/Modal.vue +84 -15
- package/src/components/ui/Navbar.vue +118 -39
- package/src/components/ui/controls/atomic/Dropdown.vue +23 -3
- package/src/components/ui/controls/atomic/MultiDropdown.vue +43 -23
- package/src/stores/sampleData.js +89 -64
- package/src/stores/ui.js +30 -4
- package/src/views/Accounts.vue +2 -2
- package/src/views/Console.vue +276 -41
- package/src/views/Editor.vue +175 -28
- package/src/views/FilterBuilder.vue +45 -49
- package/src/views/Login.vue +134 -12
- package/src/views/Profiles.vue +8 -8
- package/src/views/Tasks.vue +51 -2
- package/tailwind.config.js +2 -2
- package/vite.config.js +34 -1
- package/vue.config.js +1 -1
- package/{workbox-config.js → workbox-config.cjs} +1 -4
package/src/stores/sampleData.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
Profile: {
|
|
3
|
-
name: "
|
|
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
|
|
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:
|
|
704
|
+
_id: "64a1b2c3d4e5f6789abcdef0",
|
|
704
705
|
email: "aaaa@aaa.com",
|
|
705
706
|
password: "password123",
|
|
706
707
|
enabled: true,
|
|
707
|
-
tags: ["admin",
|
|
708
|
+
tags: ["admin"],
|
|
709
|
+
module: "TM"
|
|
708
710
|
},
|
|
709
711
|
{
|
|
710
|
-
_id:
|
|
712
|
+
_id: "64a1b2c3d4e5f6789abcdef1",
|
|
711
713
|
email: "bbb@bbb.com",
|
|
712
714
|
password: "password123",
|
|
713
715
|
enabled: true,
|
|
714
|
-
tags: ["admin",
|
|
716
|
+
tags: ["admin"],
|
|
717
|
+
module: "TM"
|
|
715
718
|
},
|
|
716
719
|
{
|
|
717
|
-
_id:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
752
|
+
_id: "64a1b2c3d4e5f6789abcdef6",
|
|
746
753
|
email: "aaaa@aaa.com",
|
|
747
754
|
password: "password123",
|
|
748
755
|
enabled: true,
|
|
749
|
-
tags: ["admin",
|
|
756
|
+
tags: ["admin"],
|
|
757
|
+
module: "AXS"
|
|
750
758
|
},
|
|
751
759
|
{
|
|
752
|
-
_id:
|
|
760
|
+
_id: "64a1b2c3d4e5f6789abcdef7",
|
|
753
761
|
email: "bbb@bbb.com",
|
|
754
762
|
password: "password123",
|
|
755
763
|
enabled: true,
|
|
756
|
-
tags: ["admin",
|
|
764
|
+
tags: ["admin"],
|
|
765
|
+
module: "AXS"
|
|
757
766
|
},
|
|
758
767
|
{
|
|
759
|
-
_id:
|
|
768
|
+
_id: "64a1b2c3d4e5f6789abcdef8",
|
|
760
769
|
email: "aaa@bbb.com",
|
|
761
770
|
password: "password123",
|
|
762
771
|
enabled: true,
|
|
763
|
-
tags: ["admin",
|
|
772
|
+
tags: ["admin"],
|
|
773
|
+
module: "AXS"
|
|
764
774
|
},
|
|
765
775
|
{
|
|
766
|
-
_id:
|
|
776
|
+
_id: "64a1b2c3d4e5f6789abcdef9",
|
|
767
777
|
email: "aabb@ccc.com",
|
|
768
778
|
password: "password123",
|
|
769
779
|
enabled: true,
|
|
770
|
-
tags: ["admin",
|
|
780
|
+
tags: ["admin"],
|
|
781
|
+
module: "AXS"
|
|
771
782
|
},
|
|
772
783
|
{
|
|
773
|
-
_id:
|
|
784
|
+
_id: "64a1b2c3d4e5f6789abcdefa",
|
|
774
785
|
email: "aaaabbbbb@cccc.com",
|
|
775
786
|
password: "password123",
|
|
776
787
|
enabled: true,
|
|
777
|
-
tags: ["admin",
|
|
788
|
+
tags: ["admin"],
|
|
789
|
+
module: "TM"
|
|
778
790
|
},
|
|
779
791
|
{
|
|
780
|
-
_id:
|
|
792
|
+
_id: "64a1b2c3d4e5f6789abcdefb",
|
|
781
793
|
email: "aa@ihbigb.com",
|
|
782
794
|
password: "password123",
|
|
783
795
|
enabled: true,
|
|
784
|
-
tags: ["admin",
|
|
796
|
+
tags: ["admin"],
|
|
797
|
+
module: "TM"
|
|
785
798
|
},
|
|
786
799
|
{
|
|
787
|
-
_id:
|
|
788
|
-
email: "
|
|
800
|
+
_id: "64a1b2c3d4e5f6789abcdefc",
|
|
801
|
+
email: "test1@gmail.com",
|
|
789
802
|
password: "password123",
|
|
790
803
|
enabled: true,
|
|
791
|
-
tags: ["admin",
|
|
804
|
+
tags: ["admin"],
|
|
805
|
+
module: "TM"
|
|
792
806
|
},
|
|
793
807
|
{
|
|
794
|
-
_id:
|
|
795
|
-
email: "
|
|
808
|
+
_id: "64a1b2c3d4e5f6789abcdefd",
|
|
809
|
+
email: "test2@gmail.com",
|
|
796
810
|
password: "password123",
|
|
797
811
|
enabled: true,
|
|
798
|
-
tags: ["admin",
|
|
812
|
+
tags: ["admin"],
|
|
813
|
+
module: "TM"
|
|
799
814
|
},
|
|
800
815
|
{
|
|
801
|
-
_id:
|
|
802
|
-
email: "
|
|
816
|
+
_id: "64a1b2c3d4e5f6789abcdefe",
|
|
817
|
+
email: "test3@gmail.com",
|
|
803
818
|
password: "password123",
|
|
804
819
|
enabled: true,
|
|
805
|
-
tags: ["admin",
|
|
820
|
+
tags: ["admin"],
|
|
821
|
+
module: "AXS"
|
|
806
822
|
},
|
|
807
823
|
{
|
|
808
|
-
_id:
|
|
809
|
-
email: "
|
|
824
|
+
_id: "64a1b2c3d4e5f6789abcdeff",
|
|
825
|
+
email: "test4@gmail.com",
|
|
810
826
|
password: "password123",
|
|
811
827
|
enabled: true,
|
|
812
|
-
tags: ["admin",
|
|
828
|
+
tags: ["admin"],
|
|
829
|
+
module: "AXS"
|
|
813
830
|
},
|
|
814
831
|
{
|
|
815
|
-
_id:
|
|
816
|
-
email: "
|
|
832
|
+
_id: "64a1b2c3d4e5f6789abcde00",
|
|
833
|
+
email: "test5@gmail.com",
|
|
817
834
|
password: "password123",
|
|
818
835
|
enabled: true,
|
|
819
|
-
tags: ["admin",
|
|
836
|
+
tags: ["admin"],
|
|
837
|
+
module: "TM"
|
|
820
838
|
},
|
|
821
839
|
{
|
|
822
|
-
_id:
|
|
823
|
-
email: "
|
|
840
|
+
_id: "64a1b2c3d4e5f6789abcde01",
|
|
841
|
+
email: "test6@gmail.com",
|
|
824
842
|
password: "password123",
|
|
825
843
|
enabled: true,
|
|
826
|
-
tags: ["admin",
|
|
844
|
+
tags: ["admin"],
|
|
845
|
+
module: "AXS"
|
|
827
846
|
},
|
|
828
847
|
{
|
|
829
|
-
_id:
|
|
830
|
-
email: "
|
|
848
|
+
_id: "64a1b2c3d4e5f6789abcde02",
|
|
849
|
+
email: "test7@gmail.com",
|
|
831
850
|
password: "password123",
|
|
832
851
|
enabled: true,
|
|
833
|
-
tags: ["admin",
|
|
852
|
+
tags: ["admin"],
|
|
853
|
+
module: "TM"
|
|
834
854
|
},
|
|
835
855
|
{
|
|
836
|
-
_id:
|
|
837
|
-
email: "
|
|
856
|
+
_id: "64a1b2c3d4e5f6789abcde03",
|
|
857
|
+
email: "test8@gmail.com",
|
|
838
858
|
password: "password123",
|
|
839
859
|
enabled: true,
|
|
840
|
-
tags: ["admin",
|
|
860
|
+
tags: ["admin"],
|
|
861
|
+
module: "AXS"
|
|
841
862
|
},
|
|
842
863
|
{
|
|
843
|
-
_id:
|
|
844
|
-
email: "
|
|
864
|
+
_id: "64a1b2c3d4e5f6789abcde04",
|
|
865
|
+
email: "test9@gmail.com",
|
|
845
866
|
password: "password123",
|
|
846
867
|
enabled: true,
|
|
847
|
-
tags: ["admin",
|
|
868
|
+
tags: ["admin"],
|
|
869
|
+
module: "TM"
|
|
848
870
|
},
|
|
849
871
|
{
|
|
850
|
-
_id:
|
|
851
|
-
email: "
|
|
872
|
+
_id: "64a1b2c3d4e5f6789abcde05",
|
|
873
|
+
email: "test10@gmail.com",
|
|
852
874
|
password: "password123",
|
|
853
875
|
enabled: true,
|
|
854
|
-
tags: ["admin",
|
|
876
|
+
tags: ["admin"],
|
|
877
|
+
module: "AXS"
|
|
855
878
|
},
|
|
856
879
|
{
|
|
857
|
-
_id:
|
|
858
|
-
email: "
|
|
880
|
+
_id: "64a1b2c3d4e5f6789abcde06",
|
|
881
|
+
email: "test11@gmail.com",
|
|
859
882
|
password: "password123",
|
|
860
883
|
enabled: true,
|
|
861
|
-
tags: ["admin",
|
|
884
|
+
tags: ["admin"],
|
|
885
|
+
module: "TM"
|
|
862
886
|
},
|
|
863
887
|
{
|
|
864
|
-
_id:
|
|
865
|
-
email: "
|
|
888
|
+
_id: "64a1b2c3d4e5f6789abcde07",
|
|
889
|
+
email: "test12@gmail.com",
|
|
866
890
|
password: "password123",
|
|
867
891
|
enabled: true,
|
|
868
|
-
tags: ["admin",
|
|
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 (
|
|
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) =>
|
|
503
|
-
|
|
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) => {
|
package/src/views/Accounts.vue
CHANGED
|
@@ -105,10 +105,10 @@
|
|
|
105
105
|
</div>
|
|
106
106
|
|
|
107
107
|
<!-- Tasks (Table) -->
|
|
108
|
-
<AccountView :
|
|
108
|
+
<AccountView :accounts="processedTasks" class="max-h-big-acc" />
|
|
109
109
|
|
|
110
110
|
<!-- Modal -->
|
|
111
|
-
<transition-group name="fade"
|
|
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>
|