@necrolab/dashboard 0.4.209 → 0.4.210
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/config/configs.json
CHANGED
package/package.json
CHANGED
|
@@ -266,7 +266,14 @@ const openInBrowser = (debug) => {
|
|
|
266
266
|
const formatDate = (date) => {
|
|
267
267
|
if (!date) return "-";
|
|
268
268
|
const d = new Date(date);
|
|
269
|
-
|
|
269
|
+
const iso = d.toISOString();
|
|
270
|
+
const [year, month, day] = iso.substring(0, 10).split('-');
|
|
271
|
+
const time = iso.substring(11, 16);
|
|
272
|
+
const dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
273
|
+
const dayName = dayNames[d.getUTCDay()];
|
|
274
|
+
const monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
275
|
+
const monthName = monthNames[parseInt(month) - 1];
|
|
276
|
+
return `${dayName} ${monthName} ${parseInt(day)} ${year} ${time}`;
|
|
270
277
|
};
|
|
271
278
|
|
|
272
279
|
|
package/src/stores/sampleData.js
CHANGED
|
@@ -30,7 +30,7 @@ export default {
|
|
|
30
30
|
agedAccount: true,
|
|
31
31
|
presaleCode: "",
|
|
32
32
|
smartTimer: false,
|
|
33
|
-
accountTag: "
|
|
33
|
+
accountTag: "admin",
|
|
34
34
|
profileTags: ["Any"],
|
|
35
35
|
eventName: "Taylor Swift | The Eras Tour",
|
|
36
36
|
eventDate: "2023-05-19T22:30:00.000Z",
|
|
@@ -169,7 +169,7 @@ export default {
|
|
|
169
169
|
agedAccount: true,
|
|
170
170
|
presaleCode: "",
|
|
171
171
|
smartTimer: false,
|
|
172
|
-
accountTag: "
|
|
172
|
+
accountTag: "admin",
|
|
173
173
|
profileTags: ["Any"],
|
|
174
174
|
eventName: "Taylor Swift | The Eras Tour",
|
|
175
175
|
eventDate: "2023-05-19T22:30:00.000Z",
|
package/src/stores/utils.js
CHANGED
|
@@ -383,9 +383,10 @@ const removeDuplicates = (arr) => [...new Set(arr)];
|
|
|
383
383
|
const pickRandom = (arr) => arr[Math.floor(Math.random() * arr.length)];
|
|
384
384
|
|
|
385
385
|
const fakeId = () => {
|
|
386
|
-
const cityInfo = pickRandom(cities);
|
|
386
|
+
const cityInfo = pickRandom(cities.filter((x) => x.state != "GA" && x.state != "PR" && x.zip_code > 10000));
|
|
387
|
+
|
|
387
388
|
const profile = {
|
|
388
|
-
zipCode: cityInfo[0],
|
|
389
|
+
zipCode: String(cityInfo[0]),
|
|
389
390
|
address: generateStreetAddress()
|
|
390
391
|
};
|
|
391
392
|
|