@necrolab/dashboard 0.4.209 → 0.4.211
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@necrolab/dashboard",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.211",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "npx workbox-cli generateSW workbox-config.js && vite build",
|
|
6
6
|
"dev": "vite",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@faker-js/faker": "^7.6.0",
|
|
16
16
|
"@msgpack/msgpack": "^3.0.0-beta2",
|
|
17
|
-
"@necrolab/tm-renderer": "^0.1.
|
|
17
|
+
"@necrolab/tm-renderer": "^0.1.2",
|
|
18
18
|
"@vitejs/plugin-vue": "^5.0.3",
|
|
19
19
|
"@vueuse/core": "^10.7.2",
|
|
20
20
|
"autoprefixer": "^10.4.17",
|
|
@@ -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
|
|
|
@@ -335,6 +335,7 @@ let rendererFactory;
|
|
|
335
335
|
if (!DEBUG)
|
|
336
336
|
RendererFactory.then((r) => {
|
|
337
337
|
rendererFactory = new r.default();
|
|
338
|
+
rendererFactory.init();
|
|
338
339
|
});
|
|
339
340
|
|
|
340
341
|
const updateShownVenue = async () => {
|
|
@@ -348,12 +349,12 @@ const updateShownVenue = async () => {
|
|
|
348
349
|
return;
|
|
349
350
|
}
|
|
350
351
|
|
|
352
|
+
debugger;
|
|
351
353
|
renderer = rendererFactory.createRenderer(eventId.value, "", country);
|
|
352
354
|
filterBuilder.value.highlightedSeatColor = renderer.c.highlightedSeatColor;
|
|
353
355
|
renderer.c.logFullError = true;
|
|
354
356
|
renderer.c.includeDetailedAttributes = true;
|
|
355
357
|
renderer.c.renderRowBlocks = true;
|
|
356
|
-
renderer.setFetchAvailabilityData(false);
|
|
357
358
|
renderer.setUrlProxy("/api/cors?url=");
|
|
358
359
|
|
|
359
360
|
try {
|