@necrolab/dashboard 0.4.53 → 0.4.55

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/.prettierrc CHANGED
@@ -30,5 +30,7 @@
30
30
  "arrowParens": "always"
31
31
  }
32
32
  }
33
- ]
33
+ ],
34
+ "plugins": ["prettier-plugin-tailwindcss"],
35
+ "tailwindConfig": "./tailwind.config.js"
34
36
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "recommendations": ["Vue.volar"]
2
+ "recommendations": ["Vue.volar", "esbenp.prettier-vscode"]
3
3
  }
@@ -170,7 +170,6 @@ const scrapeMap = async (data) => {
170
170
  taskId: "SCRAPER-" + eventId,
171
171
  account: utils.pickAccount(),
172
172
  eventId: eventId,
173
- incapsulaBypass: true,
174
173
  hidden: true,
175
174
  presaleCode: presaleCode
176
175
  });
@@ -188,7 +187,6 @@ const checkStock = async (data) => {
188
187
  var taskObj = new TicketMaster({
189
188
  taskId: "SCRAPER-" + eventId,
190
189
  eventId: eventId,
191
- incapsulaBypass: true,
192
190
  hidden: true
193
191
  });
194
192
  taskObj.scrapeSeats();
@@ -197,7 +195,6 @@ const checkStock = async (data) => {
197
195
 
198
196
  async function createPresaleModeTasks(eventId, ticketQty) {
199
197
  const presaleModeSettings = {
200
- incapsulaBypass: false,
201
198
  agedAccount: false,
202
199
  manual: false,
203
200
  openCart: false,
@@ -1,22 +1,14 @@
1
1
  const users = [
2
2
  {
3
3
  event: "auth",
4
- botChannels: {
5
- splash: "-",
6
- carts: "-",
7
- checkouts: "-",
8
- declines: "-",
9
- stockChecker: "-",
10
- venueMaps: "-"
11
- },
12
4
  _id: "641a5292b561088b64fe390b",
13
5
  name: "Admin",
14
6
  password: "admin",
15
7
  profilePicture: "https://cdn.discordapp.com/avatars/435549216304267264/6cfd74ad7c5939a0bcbf218aa08be8cb.png",
16
8
  admin: true,
17
9
  proxyList: { checkout: "admin-proxies" },
18
- profileTags: ["Amex", "Citi", "Mercury", "Slash"],
19
- accountTags: ["admin"]
10
+ profileTags: ["Citi", "Mercury", "Slash"],
11
+ tags: ["admin"]
20
12
  }
21
13
  ];
22
14
 
@@ -24,7 +24,7 @@ export default class TicketMaster {
24
24
  this.data.eventDate = Date.now();
25
25
  this.data.eventLocalDate = Date.now();
26
26
  this.data.eventName = "Test Event";
27
- this.data.reservedTicketsList = "ticket1 | ticket2 | ticket3\n$100";
27
+ this.data.reservedTicketsList = " 2x 301/E ($86.47) \n• 2x 306/U ($86.47) \n$345.88";
28
28
 
29
29
  refreshTaskOnFrontEnd(taskData);
30
30
  }
@@ -89,4 +89,4 @@ export default class TicketMaster {
89
89
  scrapeSeats() {
90
90
  this.logger.Info("Scraping seats");
91
91
  }
92
- };
92
+ }
@@ -7,7 +7,6 @@
7
7
  "quantity": 5,
8
8
  "manual": false,
9
9
  "doNotPay": false,
10
- "incapsulaBypass": false,
11
10
  "quickQueue": true,
12
11
  "loginAfterCart": false,
13
12
  "smartTimer": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@necrolab/dashboard",
3
- "version": "0.4.53",
3
+ "version": "0.4.55",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "rm -rf dist && npx workbox-cli generateSW workbox-config.cjs && vite build",
@@ -28,6 +28,8 @@
28
28
  "ipaddr.js": "^2.2.0",
29
29
  "pinia": "^2.3.0",
30
30
  "postcss": "^8.4.49",
31
+ "prettier": "^3.5.3",
32
+ "prettier-plugin-tailwindcss": "^0.6.12",
31
33
  "register-service-worker": "^1.7.2",
32
34
  "sass": "^1.83.0",
33
35
  "tailwindcss": "^3.4.17",
@@ -6,26 +6,25 @@
6
6
  </template>
7
7
 
8
8
  <div>
9
- <div class="form-grid mt-7 mb-4">
10
- <div class="input-wrapper col-span-8 relative-positioned z-tooltip">
11
- <label class="label-override mb-2"
12
- >Account Tag
9
+ <div class="form-grid mb-4 mt-7">
10
+ <div class="input-wrapper relative-positioned z-tooltip col-span-8">
11
+ <label class="label-override mb-2">
12
+ Account Tag
13
13
  <TagIcon />
14
14
  </label>
15
15
  <Dropdown
16
- class="input-default dropdown p-4 w-full"
17
- :default="ui.profile.accountTags[0]"
18
- :options="ui.profile.accountTags"
16
+ class="input-default dropdown w-full p-4"
17
+ :default="ui.profile.tags[0]"
18
+ :options="ui.profile.tags"
19
19
  :onClick="(f) => (creatorConfig.tag = f)"
20
20
  :capitalize="true"
21
21
  :allowDefault="false"
22
- :chosen="creatorConfig.tag"
23
- />
22
+ :chosen="creatorConfig.tag" />
24
23
  </div>
25
24
 
26
25
  <div class="input-wrapper col-span-4">
27
- <label class="label-override mb-2"
28
- >Threads
26
+ <label class="label-override mb-2">
27
+ Threads
29
28
  <EditIcon />
30
29
  </label>
31
30
  <div :class="`input-default ${errors.includes('threads') ? 'error' : ''}`">
@@ -41,8 +40,8 @@
41
40
  </div>
42
41
  </div>
43
42
  <div class="input-wrapper col-span-8">
44
- <label class="label-override mb-2"
45
- >Email catchall
43
+ <label class="label-override mb-2">
44
+ Email catchall
46
45
  <MailIcon />
47
46
  </label>
48
47
  <div :class="`input-default ${errors.includes('catchall') ? 'error' : ''}`">
@@ -50,8 +49,8 @@
50
49
  </div>
51
50
  </div>
52
51
  <div class="input-wrapper col-span-4">
53
- <label class="label-override mb-2"
54
- >Catchall amount
52
+ <label class="label-override mb-2">
53
+ Catchall amount
55
54
  <BagIcon />
56
55
  </label>
57
56
  <div :class="`input-default ${errors.includes('number') ? 'error' : ''}`">
@@ -67,8 +66,8 @@
67
66
  </div>
68
67
  </div>
69
68
  <div class="input-wrapper col-span-12">
70
- <label class="label-override mb-2"
71
- >Emails
69
+ <label class="label-override mb-2">
70
+ Emails
72
71
  <MailIcon />
73
72
  </label>
74
73
  <div :class="`${errors.includes('emails') ? 'error-border' : ''}`">
@@ -77,16 +76,15 @@
77
76
  class="proxy-editor"
78
77
  spellcheck="false"
79
78
  style="max-height: 250px; min-height: 150px"
80
- placeholder="Enter emails here - One per line"
81
- ></textarea>
79
+ placeholder="Enter emails here - One per line"></textarea>
82
80
  </div>
83
81
  </div>
84
82
  </div>
85
83
  <button
86
- class="button-default hover:opacity-70 active:opacity-50 bg-dark-400 w-48 text-xs flex items-center justify-center gap-x-2 ml-auto mt-4"
87
- @click="done()"
88
- >
89
- Start <EditIcon />
84
+ class="button-default ml-auto mt-4 flex w-48 items-center justify-center gap-x-2 bg-dark-400 text-xs hover:opacity-70 active:opacity-50"
85
+ @click="done()">
86
+ Start
87
+ <EditIcon />
90
88
  </button>
91
89
  </div>
92
90
  </Modal>
@@ -147,7 +145,7 @@ const creatorConfig = ref({
147
145
  threads: 5,
148
146
  catchall: "",
149
147
  emails: "",
150
- tag: ui.profile.accountTags[0],
148
+ tag: ui.profile.tags[0],
151
149
  number: 0
152
150
  });
153
151
 
@@ -7,17 +7,17 @@
7
7
  </template>
8
8
 
9
9
  <div>
10
- <div class="grid grid-cols-12 gap-3 my-3">
10
+ <div class="my-3 grid grid-cols-12 gap-3">
11
11
  <!-- Profile tag -->
12
- <div class="input-wrapper col-span-4 relative-positioned z-tooltip">
12
+ <div class="input-wrapper relative-positioned z-tooltip col-span-4">
13
13
  <label class="label-override mb-2">
14
14
  Profile Tag
15
15
  <TagIcon />
16
16
  </label>
17
17
  <Dropdown
18
- :class="`input-default dropdown p-4 w-full ${errors.includes('profileTag') ? 'error' : ''}`"
19
- :default="ui.profile.accountTags[0]"
20
- :options="ui.profile.accountTags"
18
+ :class="`input-default dropdown w-full p-4 ${errors.includes('profileTag') ? 'error' : ''}`"
19
+ :default="ui.profile.tags[0]"
20
+ :options="ui.profile.tags"
21
21
  :onClick="(f) => (account.tag = f)"
22
22
  :capitalize="true"
23
23
  :allowDefault="false"
@@ -25,7 +25,7 @@
25
25
  </div>
26
26
 
27
27
  <!-- Email -->
28
- <div class="input-wrapper col-span-8 z-0">
28
+ <div class="input-wrapper z-0 col-span-8">
29
29
  <label class="label-override mb-2">
30
30
  Email
31
31
  <MailIcon />
@@ -48,7 +48,7 @@
48
48
  </div>
49
49
 
50
50
  <!-- Password -->
51
- <div class="input-wrapper col-span-12 z-0">
51
+ <div class="input-wrapper z-0 col-span-12">
52
52
  <label class="label-override mb-2">
53
53
  Password
54
54
  <KeyIcon />
@@ -67,7 +67,7 @@
67
67
  </div>
68
68
 
69
69
  <button
70
- class="button-default hover:opacity-70 active:opacity-50 bg-dark-400 w-48 text-xs flex items-center justify-center gap-x-2 ml-auto mt-4"
70
+ class="button-default ml-auto mt-4 flex w-48 items-center justify-center gap-x-2 bg-dark-400 text-xs hover:opacity-70 active:opacity-50"
71
71
  @click="done()">
72
72
  Save
73
73
  <EditIcon />
@@ -116,7 +116,7 @@ const ui = useUIStore();
116
116
  const account = ref({
117
117
  email: "",
118
118
  password: "",
119
- tag: ui.profile.accountTags[0]
119
+ tag: ui.profile.tags[0]
120
120
  });
121
121
 
122
122
  if (ui.currentlyEditing?.email) account.value = ui.currentlyEditing;
@@ -7,24 +7,25 @@
7
7
  </template>
8
8
 
9
9
  <div>
10
- <div class="grid grid-cols-12 gap-3 my-3">
10
+ <div class="my-3 grid grid-cols-12 gap-3">
11
11
  <!-- Profile tag -->
12
- <div class="input-wrapper col-span-4 z-dropdown">
13
- <label class="label-override mb-2">Profile Tag
12
+ <div class="input-wrapper z-dropdown col-span-4">
13
+ <label class="label-override mb-2">
14
+ Profile Tag
14
15
  <TagIcon />
15
16
  </label>
16
17
  <Dropdown
17
18
  :class="`input-default dropdown w-full ${errors.includes('profileTag') ? 'error' : ''}`"
18
- :default="ui.profile.accountTags[0]"
19
- :options="ui.profile.accountTags"
19
+ :default="ui.profile.tags[0]"
20
+ :options="ui.profile.tags"
20
21
  :onClick="(f) => (profile.tag = f)"
21
- :capitalize="true"
22
- />
22
+ :capitalize="true" />
23
23
  </div>
24
24
 
25
25
  <!-- Card Number -->
26
- <div class="input-wrapper col-span-8 z-0">
27
- <label class="label-override mb-2">Card Number
26
+ <div class="input-wrapper z-0 col-span-8">
27
+ <label class="label-override mb-2">
28
+ Card Number
28
29
  <CartIcon />
29
30
  </label>
30
31
  <div :class="`input-default ${errors.includes('cardNumber') ? 'error' : ''}`">
@@ -35,27 +36,27 @@
35
36
  maxlength="23"
36
37
  inputmode="numeric"
37
38
  @input="handleCreditCardUpdate"
38
- @focus="formatCardNumberDisplay"
39
- />
39
+ @focus="formatCardNumberDisplay" />
40
40
  </div>
41
41
  </div>
42
42
 
43
43
  <!-- Country chooser -->
44
44
  <div class="input-wrapper col-span-2">
45
- <label class="label-override mb-2">Country
45
+ <label class="label-override mb-2">
46
+ Country
46
47
  <SandclockIcon />
47
48
  </label>
48
49
  <ProfileCountryChooser
49
50
  class="h-8"
50
51
  :value="profile.country"
51
52
  :onClick="chooseCountry"
52
- :disabled="true"
53
- />
53
+ :disabled="true" />
54
54
  </div>
55
55
 
56
56
  <!-- Exp Year -->
57
57
  <div class="input-wrapper col-span-5">
58
- <label class="label-override mb-2 z-0">Expiry Year
58
+ <label class="label-override z-0 mb-2">
59
+ Expiry Year
59
60
  <TimerIcon />
60
61
  </label>
61
62
  <Dropdown
@@ -65,17 +66,17 @@
65
66
  profile.expYear && !profile?.expYear?.startsWith('20')
66
67
  ? '20' + profile.expYear
67
68
  : profile.expYear
68
- ? profile.expYear
69
- : undefined
69
+ ? profile.expYear
70
+ : undefined
70
71
  "
71
72
  :options="['2025', '2026', '2027', '2028', '2029', '2030', '2031']"
72
- :onClick="(f) => (profile.expYear = f)"
73
- />
73
+ :onClick="(f) => (profile.expYear = f)" />
74
74
  </div>
75
75
 
76
76
  <!-- Exp Month -->
77
- <div class="input-wrapper col-span-5 z-2">
78
- <label class="label-override mb-2">Expiry Month
77
+ <div class="input-wrapper z-2 col-span-5">
78
+ <label class="label-override mb-2">
79
+ Expiry Month
79
80
  <TimerIcon />
80
81
  </label>
81
82
  <Dropdown
@@ -83,13 +84,13 @@
83
84
  default="Expiry Month"
84
85
  :value="profile.expMonth ? profile.expMonth : undefined"
85
86
  :options="['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']"
86
- :onClick="(f) => (profile.expMonth = f)"
87
- />
87
+ :onClick="(f) => (profile.expMonth = f)" />
88
88
  </div>
89
89
 
90
90
  <!-- CVV -->
91
- <div class="input-wrapper col-span-6 md:col-span-4 z-0">
92
- <label class="label-override mb-2">CVV
91
+ <div class="input-wrapper z-0 col-span-6 md:col-span-4">
92
+ <label class="label-override mb-2">
93
+ CVV
93
94
  <ShieldIcon />
94
95
  </label>
95
96
  <div :class="`input-default ${errors.includes('cvv') ? 'error' : ''}`">
@@ -99,14 +100,14 @@
99
100
  max="9999"
100
101
  maxlength="4"
101
102
  minlength="3"
102
- v-model="profile.cvv"
103
- />
103
+ v-model="profile.cvv" />
104
104
  </div>
105
105
  </div>
106
106
 
107
107
  <!-- City -->
108
- <div class="input-wrapper col-span-6 md:col-span-4 z-0">
109
- <label class="label-override mb-2">City
108
+ <div class="input-wrapper z-0 col-span-6 md:col-span-4">
109
+ <label class="label-override mb-2">
110
+ City
110
111
  <StadiumIcon />
111
112
  </label>
112
113
  <div :class="`input-default ${errors.includes('city') ? 'error' : ''}`">
@@ -115,8 +116,9 @@
115
116
  </div>
116
117
 
117
118
  <!-- State -->
118
- <div class="input-wrapper col-span-6 md:col-span-4 z-1">
119
- <label class="label-override mb-2">State
119
+ <div class="input-wrapper z-1 col-span-6 md:col-span-4">
120
+ <label class="label-override mb-2">
121
+ State
120
122
  <SandclockIcon />
121
123
  </label>
122
124
  <div v-if="profile.country === 'US'" :class="`${errors.includes('state') ? 'error' : ''}`">
@@ -127,8 +129,7 @@
127
129
  :options="usStates"
128
130
  :allowDefault="false"
129
131
  rightAmount="right-2"
130
- :value="profile.state"
131
- />
132
+ :value="profile.state" />
132
133
  </div>
133
134
  <div v-else :class="`input-default ${errors.includes('state') ? 'error' : ''}`">
134
135
  <input disabled placeholder="N/A" value="" />
@@ -136,8 +137,9 @@
136
137
  </div>
137
138
 
138
139
  <!-- Zip -->
139
- <div class="input-wrapper col-span-6 md:col-span-4 z-0">
140
- <label class="label-override mb-2">Zip
140
+ <div class="input-wrapper z-0 col-span-6 md:col-span-4">
141
+ <label class="label-override mb-2">
142
+ Zip
141
143
  <KeyIcon />
142
144
  </label>
143
145
  <div :class="`input-default ${errors.includes('zipCode') ? 'error' : ''}`">
@@ -146,8 +148,9 @@
146
148
  </div>
147
149
 
148
150
  <!-- Address -->
149
- <div class="input-wrapper col-span-6 md:col-span-4 z-0">
150
- <label class="label-override mb-2">Address
151
+ <div class="input-wrapper z-0 col-span-6 md:col-span-4">
152
+ <label class="label-override mb-2">
153
+ Address
151
154
  <HandIcon />
152
155
  </label>
153
156
  <div :class="`input-default ${errors.includes('address') ? 'error' : ''}`">
@@ -156,15 +159,15 @@
156
159
  </div>
157
160
 
158
161
  <!-- Generate -->
159
- <div class="input-wrapper col-span-6 md:col-span-4 z-0">
160
- <label class="label-override mb-2"> Fake ID
162
+ <div class="input-wrapper z-0 col-span-6 md:col-span-4">
163
+ <label class="label-override mb-2">
164
+ Fake ID
161
165
  <WildcardIcon />
162
166
  </label>
163
- <div class="input-default mt-2 w-full h-10 flex items-center">
167
+ <div class="input-default mt-2 flex h-10 w-full items-center">
164
168
  <button
165
169
  @click="generate"
166
- class="text-white w-full text-xs flex items-center justify-center gap-2"
167
- >
170
+ class="flex w-full items-center justify-center gap-2 text-xs text-white">
168
171
  <svg
169
172
  xmlns="http://www.w3.org/2000/svg"
170
173
  width="14"
@@ -174,8 +177,7 @@
174
177
  stroke="currentColor"
175
178
  stroke-width="2"
176
179
  stroke-linecap="round"
177
- stroke-linejoin="round"
178
- >
180
+ stroke-linejoin="round">
179
181
  <rect x="3" y="4" width="18" height="16" rx="2" />
180
182
  <line x1="7" y1="2" x2="7" y2="6" />
181
183
  <line x1="17" y1="2" x2="17" y2="6" />
@@ -188,10 +190,10 @@
188
190
  </div>
189
191
 
190
192
  <button
191
- class="button-default hover:opacity-70 active:opacity-50 bg-dark-400 w-48 text-xs flex items-center justify-center gap-x-2 ml-auto mt-4"
192
- @click="done()"
193
- >
194
- Save <EditIcon />
193
+ class="button-default ml-auto mt-4 flex w-48 items-center justify-center gap-x-2 bg-dark-400 text-xs hover:opacity-70 active:opacity-50"
194
+ @click="done()">
195
+ Save
196
+ <EditIcon />
195
197
  </button>
196
198
  </Modal>
197
199
  </template>
@@ -218,7 +220,19 @@
218
220
  </style>
219
221
  <script setup>
220
222
  import Modal from "@/components/ui/Modal.vue";
221
- import { MailIcon, CartIcon, ShieldIcon, StadiumIcon, KeyIcon, HandIcon, ProfileIcon, SandclockIcon, TimerIcon, TagIcon, WildcardIcon } from "@/components/icons";
223
+ import {
224
+ MailIcon,
225
+ CartIcon,
226
+ ShieldIcon,
227
+ StadiumIcon,
228
+ KeyIcon,
229
+ HandIcon,
230
+ ProfileIcon,
231
+ SandclockIcon,
232
+ TimerIcon,
233
+ TagIcon,
234
+ WildcardIcon
235
+ } from "@/components/icons";
222
236
  import { EditIcon } from "@/components/icons";
223
237
  import ProfileCountryChooser from "@/components/Editors/Profile/ProfileCountryChooser.vue";
224
238
  import { useUIStore } from "@/stores/ui";
@@ -288,7 +302,7 @@ const profile = ref({
288
302
  cvv: "",
289
303
  cardNumber: "",
290
304
  city: "",
291
- tag: ui.profile.accountTags[0],
305
+ tag: ui.profile.tags[0],
292
306
  state: "",
293
307
  country: "US",
294
308
  zipCode: ""