@vuetify/one 1.3.1 → 1.4.1
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/dist/index.d.ts +725 -159
- package/dist/index.js +1957 -1582
- package/dist/style.css +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as pinia from 'pinia';
|
|
|
4
4
|
import { PiniaPluginContext } from 'pinia';
|
|
5
5
|
|
|
6
6
|
declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<{
|
|
7
|
-
user:
|
|
7
|
+
user: globalThis.Ref<{
|
|
8
8
|
id: string;
|
|
9
9
|
isAdmin: boolean;
|
|
10
10
|
name: string;
|
|
@@ -93,7 +93,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<
|
|
|
93
93
|
}[];
|
|
94
94
|
} | null>;
|
|
95
95
|
url: string;
|
|
96
|
-
dialog:
|
|
96
|
+
dialog: globalThis.Ref<boolean>;
|
|
97
97
|
isLoading: vue.ShallowRef<boolean>;
|
|
98
98
|
findIdentity: (provider: string) => {
|
|
99
99
|
id: string;
|
|
@@ -109,11 +109,11 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<
|
|
|
109
109
|
};
|
|
110
110
|
login: (provider?: 'github' | 'discord') => Promise<void>;
|
|
111
111
|
logout: (identity?: string) => Promise<void>;
|
|
112
|
-
isSubscriber:
|
|
112
|
+
isSubscriber: globalThis.ComputedRef<boolean>;
|
|
113
113
|
lastLoginProvider: () => string | null;
|
|
114
114
|
sync: () => Promise<void>;
|
|
115
115
|
}, "url" | "user" | "dialog" | "isLoading">>, Pick<{
|
|
116
|
-
user:
|
|
116
|
+
user: globalThis.Ref<{
|
|
117
117
|
id: string;
|
|
118
118
|
isAdmin: boolean;
|
|
119
119
|
name: string;
|
|
@@ -202,7 +202,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<
|
|
|
202
202
|
}[];
|
|
203
203
|
} | null>;
|
|
204
204
|
url: string;
|
|
205
|
-
dialog:
|
|
205
|
+
dialog: globalThis.Ref<boolean>;
|
|
206
206
|
isLoading: vue.ShallowRef<boolean>;
|
|
207
207
|
findIdentity: (provider: string) => {
|
|
208
208
|
id: string;
|
|
@@ -218,11 +218,11 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<
|
|
|
218
218
|
};
|
|
219
219
|
login: (provider?: 'github' | 'discord') => Promise<void>;
|
|
220
220
|
logout: (identity?: string) => Promise<void>;
|
|
221
|
-
isSubscriber:
|
|
221
|
+
isSubscriber: globalThis.ComputedRef<boolean>;
|
|
222
222
|
lastLoginProvider: () => string | null;
|
|
223
223
|
sync: () => Promise<void>;
|
|
224
224
|
}, "isSubscriber">, Pick<{
|
|
225
|
-
user:
|
|
225
|
+
user: globalThis.Ref<{
|
|
226
226
|
id: string;
|
|
227
227
|
isAdmin: boolean;
|
|
228
228
|
name: string;
|
|
@@ -311,7 +311,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<
|
|
|
311
311
|
}[];
|
|
312
312
|
} | null>;
|
|
313
313
|
url: string;
|
|
314
|
-
dialog:
|
|
314
|
+
dialog: globalThis.Ref<boolean>;
|
|
315
315
|
isLoading: vue.ShallowRef<boolean>;
|
|
316
316
|
findIdentity: (provider: string) => {
|
|
317
317
|
id: string;
|
|
@@ -327,7 +327,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<
|
|
|
327
327
|
};
|
|
328
328
|
login: (provider?: 'github' | 'discord') => Promise<void>;
|
|
329
329
|
logout: (identity?: string) => Promise<void>;
|
|
330
|
-
isSubscriber:
|
|
330
|
+
isSubscriber: globalThis.ComputedRef<boolean>;
|
|
331
331
|
lastLoginProvider: () => string | null;
|
|
332
332
|
sync: () => Promise<void>;
|
|
333
333
|
}, "findIdentity" | "verify" | "login" | "logout" | "lastLoginProvider" | "sync">>;
|
|
@@ -378,7 +378,7 @@ interface State$1 {
|
|
|
378
378
|
store: (data: FormData) => Promise<Banner>;
|
|
379
379
|
update: (slug: string, data: FormData) => Promise<Banner>;
|
|
380
380
|
}
|
|
381
|
-
declare const useBannersStore: pinia.StoreDefinition<"banners", pinia._UnwrapAll<Pick<State$1, "isLoading" | "all" | "aall" | "record">>, Pick<State$1, "
|
|
381
|
+
declare const useBannersStore: pinia.StoreDefinition<"banners", pinia._UnwrapAll<Pick<State$1, "isLoading" | "all" | "aall" | "record">>, Pick<State$1, "server" | "banner">, Pick<State$1, "show" | "admin" | "destroy" | "index" | "store" | "update">>;
|
|
382
382
|
|
|
383
383
|
type Bin = {
|
|
384
384
|
id: string;
|
|
@@ -390,8 +390,8 @@ type Bin = {
|
|
|
390
390
|
};
|
|
391
391
|
declare const useBinsStore: pinia.StoreDefinition<"bins", pinia._UnwrapAll<Pick<{
|
|
392
392
|
isLoading: vue.ShallowRef<boolean>;
|
|
393
|
-
isOwner:
|
|
394
|
-
pinned:
|
|
393
|
+
isOwner: globalThis.ComputedRef<boolean>;
|
|
394
|
+
pinned: globalThis.ComputedRef<{
|
|
395
395
|
id: string;
|
|
396
396
|
content: string;
|
|
397
397
|
favorite: boolean;
|
|
@@ -399,7 +399,7 @@ declare const useBinsStore: pinia.StoreDefinition<"bins", pinia._UnwrapAll<Pick<
|
|
|
399
399
|
owner: Record<string, unknown>;
|
|
400
400
|
visibility: 'private' | 'public';
|
|
401
401
|
}[]>;
|
|
402
|
-
favorites:
|
|
402
|
+
favorites: globalThis.ComputedRef<{
|
|
403
403
|
id: string;
|
|
404
404
|
content: string;
|
|
405
405
|
favorite: boolean;
|
|
@@ -407,7 +407,7 @@ declare const useBinsStore: pinia.StoreDefinition<"bins", pinia._UnwrapAll<Pick<
|
|
|
407
407
|
owner: Record<string, unknown>;
|
|
408
408
|
visibility: 'private' | 'public';
|
|
409
409
|
}[]>;
|
|
410
|
-
all:
|
|
410
|
+
all: globalThis.Ref<{
|
|
411
411
|
id: string;
|
|
412
412
|
content: string;
|
|
413
413
|
favorite: boolean;
|
|
@@ -419,7 +419,7 @@ declare const useBinsStore: pinia.StoreDefinition<"bins", pinia._UnwrapAll<Pick<
|
|
|
419
419
|
bin: Bin;
|
|
420
420
|
}>;
|
|
421
421
|
delete: (id: string) => Promise<boolean>;
|
|
422
|
-
current:
|
|
422
|
+
current: globalThis.Ref<Bin | undefined>;
|
|
423
423
|
find: (id: string) => Promise<{
|
|
424
424
|
bin: Bin | undefined;
|
|
425
425
|
}>;
|
|
@@ -439,8 +439,8 @@ declare const useBinsStore: pinia.StoreDefinition<"bins", pinia._UnwrapAll<Pick<
|
|
|
439
439
|
}>;
|
|
440
440
|
}, "isLoading" | "all" | "current">>, Pick<{
|
|
441
441
|
isLoading: vue.ShallowRef<boolean>;
|
|
442
|
-
isOwner:
|
|
443
|
-
pinned:
|
|
442
|
+
isOwner: globalThis.ComputedRef<boolean>;
|
|
443
|
+
pinned: globalThis.ComputedRef<{
|
|
444
444
|
id: string;
|
|
445
445
|
content: string;
|
|
446
446
|
favorite: boolean;
|
|
@@ -448,7 +448,7 @@ declare const useBinsStore: pinia.StoreDefinition<"bins", pinia._UnwrapAll<Pick<
|
|
|
448
448
|
owner: Record<string, unknown>;
|
|
449
449
|
visibility: 'private' | 'public';
|
|
450
450
|
}[]>;
|
|
451
|
-
favorites:
|
|
451
|
+
favorites: globalThis.ComputedRef<{
|
|
452
452
|
id: string;
|
|
453
453
|
content: string;
|
|
454
454
|
favorite: boolean;
|
|
@@ -456,7 +456,7 @@ declare const useBinsStore: pinia.StoreDefinition<"bins", pinia._UnwrapAll<Pick<
|
|
|
456
456
|
owner: Record<string, unknown>;
|
|
457
457
|
visibility: 'private' | 'public';
|
|
458
458
|
}[]>;
|
|
459
|
-
all:
|
|
459
|
+
all: globalThis.Ref<{
|
|
460
460
|
id: string;
|
|
461
461
|
content: string;
|
|
462
462
|
favorite: boolean;
|
|
@@ -468,7 +468,7 @@ declare const useBinsStore: pinia.StoreDefinition<"bins", pinia._UnwrapAll<Pick<
|
|
|
468
468
|
bin: Bin;
|
|
469
469
|
}>;
|
|
470
470
|
delete: (id: string) => Promise<boolean>;
|
|
471
|
-
current:
|
|
471
|
+
current: globalThis.Ref<Bin | undefined>;
|
|
472
472
|
find: (id: string) => Promise<{
|
|
473
473
|
bin: Bin | undefined;
|
|
474
474
|
}>;
|
|
@@ -488,8 +488,8 @@ declare const useBinsStore: pinia.StoreDefinition<"bins", pinia._UnwrapAll<Pick<
|
|
|
488
488
|
}>;
|
|
489
489
|
}, "pinned" | "isOwner" | "favorites">, Pick<{
|
|
490
490
|
isLoading: vue.ShallowRef<boolean>;
|
|
491
|
-
isOwner:
|
|
492
|
-
pinned:
|
|
491
|
+
isOwner: globalThis.ComputedRef<boolean>;
|
|
492
|
+
pinned: globalThis.ComputedRef<{
|
|
493
493
|
id: string;
|
|
494
494
|
content: string;
|
|
495
495
|
favorite: boolean;
|
|
@@ -497,7 +497,7 @@ declare const useBinsStore: pinia.StoreDefinition<"bins", pinia._UnwrapAll<Pick<
|
|
|
497
497
|
owner: Record<string, unknown>;
|
|
498
498
|
visibility: 'private' | 'public';
|
|
499
499
|
}[]>;
|
|
500
|
-
favorites:
|
|
500
|
+
favorites: globalThis.ComputedRef<{
|
|
501
501
|
id: string;
|
|
502
502
|
content: string;
|
|
503
503
|
favorite: boolean;
|
|
@@ -505,7 +505,7 @@ declare const useBinsStore: pinia.StoreDefinition<"bins", pinia._UnwrapAll<Pick<
|
|
|
505
505
|
owner: Record<string, unknown>;
|
|
506
506
|
visibility: 'private' | 'public';
|
|
507
507
|
}[]>;
|
|
508
|
-
all:
|
|
508
|
+
all: globalThis.Ref<{
|
|
509
509
|
id: string;
|
|
510
510
|
content: string;
|
|
511
511
|
favorite: boolean;
|
|
@@ -517,7 +517,7 @@ declare const useBinsStore: pinia.StoreDefinition<"bins", pinia._UnwrapAll<Pick<
|
|
|
517
517
|
bin: Bin;
|
|
518
518
|
}>;
|
|
519
519
|
delete: (id: string) => Promise<boolean>;
|
|
520
|
-
current:
|
|
520
|
+
current: globalThis.Ref<Bin | undefined>;
|
|
521
521
|
find: (id: string) => Promise<{
|
|
522
522
|
bin: Bin | undefined;
|
|
523
523
|
}>;
|
|
@@ -566,16 +566,16 @@ interface Info {
|
|
|
566
566
|
items: SubscriptionItem[];
|
|
567
567
|
}
|
|
568
568
|
declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
569
|
-
info:
|
|
570
|
-
interval:
|
|
571
|
-
invoices:
|
|
569
|
+
info: globalThis.Ref<Info | undefined>;
|
|
570
|
+
interval: globalThis.ComputedRef<"month" | "year" | undefined>;
|
|
571
|
+
invoices: globalThis.Ref<{
|
|
572
572
|
date: number;
|
|
573
573
|
amount: number;
|
|
574
574
|
status: string;
|
|
575
575
|
pdf: string;
|
|
576
576
|
}[]>;
|
|
577
|
-
sessionId:
|
|
578
|
-
subscription:
|
|
577
|
+
sessionId: globalThis.ComputedRef<string | string[]>;
|
|
578
|
+
subscription: globalThis.ComputedRef<{
|
|
579
579
|
id: string;
|
|
580
580
|
platform: string;
|
|
581
581
|
interval: "month" | "year";
|
|
@@ -647,12 +647,12 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
647
647
|
};
|
|
648
648
|
};
|
|
649
649
|
} | undefined>;
|
|
650
|
-
monthlyTotal:
|
|
651
|
-
hasBilling:
|
|
650
|
+
monthlyTotal: globalThis.ComputedRef<number | undefined>;
|
|
651
|
+
hasBilling: globalThis.ComputedRef<boolean>;
|
|
652
652
|
isLoading: vue.ShallowRef<boolean>;
|
|
653
|
-
isOpen:
|
|
654
|
-
isSubscriber:
|
|
655
|
-
github:
|
|
653
|
+
isOpen: globalThis.Ref<boolean>;
|
|
654
|
+
isSubscriber: globalThis.ComputedRef<boolean | undefined>;
|
|
655
|
+
github: globalThis.ComputedRef<{
|
|
656
656
|
id: string;
|
|
657
657
|
platform: string;
|
|
658
658
|
interval: "month" | "year";
|
|
@@ -724,7 +724,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
724
724
|
};
|
|
725
725
|
};
|
|
726
726
|
} | undefined>;
|
|
727
|
-
patreon:
|
|
727
|
+
patreon: globalThis.ComputedRef<{
|
|
728
728
|
id: string;
|
|
729
729
|
platform: string;
|
|
730
730
|
interval: "month" | "year";
|
|
@@ -796,7 +796,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
796
796
|
};
|
|
797
797
|
};
|
|
798
798
|
} | undefined>;
|
|
799
|
-
discord:
|
|
799
|
+
discord: globalThis.ComputedRef<{
|
|
800
800
|
id: string;
|
|
801
801
|
platform: string;
|
|
802
802
|
interval: "month" | "year";
|
|
@@ -868,7 +868,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
868
868
|
};
|
|
869
869
|
};
|
|
870
870
|
} | undefined>;
|
|
871
|
-
one:
|
|
871
|
+
one: globalThis.ComputedRef<{
|
|
872
872
|
id: string;
|
|
873
873
|
platform: string;
|
|
874
874
|
interval: "month" | "year";
|
|
@@ -949,16 +949,16 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
949
949
|
subscriptionInfo: () => Promise<any>;
|
|
950
950
|
verify: () => Promise<void>;
|
|
951
951
|
}, "isLoading" | "info" | "invoices" | "isOpen">>, Pick<{
|
|
952
|
-
info:
|
|
953
|
-
interval:
|
|
954
|
-
invoices:
|
|
952
|
+
info: globalThis.Ref<Info | undefined>;
|
|
953
|
+
interval: globalThis.ComputedRef<"month" | "year" | undefined>;
|
|
954
|
+
invoices: globalThis.Ref<{
|
|
955
955
|
date: number;
|
|
956
956
|
amount: number;
|
|
957
957
|
status: string;
|
|
958
958
|
pdf: string;
|
|
959
959
|
}[]>;
|
|
960
|
-
sessionId:
|
|
961
|
-
subscription:
|
|
960
|
+
sessionId: globalThis.ComputedRef<string | string[]>;
|
|
961
|
+
subscription: globalThis.ComputedRef<{
|
|
962
962
|
id: string;
|
|
963
963
|
platform: string;
|
|
964
964
|
interval: "month" | "year";
|
|
@@ -1030,12 +1030,12 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
1030
1030
|
};
|
|
1031
1031
|
};
|
|
1032
1032
|
} | undefined>;
|
|
1033
|
-
monthlyTotal:
|
|
1034
|
-
hasBilling:
|
|
1033
|
+
monthlyTotal: globalThis.ComputedRef<number | undefined>;
|
|
1034
|
+
hasBilling: globalThis.ComputedRef<boolean>;
|
|
1035
1035
|
isLoading: vue.ShallowRef<boolean>;
|
|
1036
|
-
isOpen:
|
|
1037
|
-
isSubscriber:
|
|
1038
|
-
github:
|
|
1036
|
+
isOpen: globalThis.Ref<boolean>;
|
|
1037
|
+
isSubscriber: globalThis.ComputedRef<boolean | undefined>;
|
|
1038
|
+
github: globalThis.ComputedRef<{
|
|
1039
1039
|
id: string;
|
|
1040
1040
|
platform: string;
|
|
1041
1041
|
interval: "month" | "year";
|
|
@@ -1107,7 +1107,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
1107
1107
|
};
|
|
1108
1108
|
};
|
|
1109
1109
|
} | undefined>;
|
|
1110
|
-
patreon:
|
|
1110
|
+
patreon: globalThis.ComputedRef<{
|
|
1111
1111
|
id: string;
|
|
1112
1112
|
platform: string;
|
|
1113
1113
|
interval: "month" | "year";
|
|
@@ -1179,7 +1179,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
1179
1179
|
};
|
|
1180
1180
|
};
|
|
1181
1181
|
} | undefined>;
|
|
1182
|
-
discord:
|
|
1182
|
+
discord: globalThis.ComputedRef<{
|
|
1183
1183
|
id: string;
|
|
1184
1184
|
platform: string;
|
|
1185
1185
|
interval: "month" | "year";
|
|
@@ -1251,7 +1251,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
1251
1251
|
};
|
|
1252
1252
|
};
|
|
1253
1253
|
} | undefined>;
|
|
1254
|
-
one:
|
|
1254
|
+
one: globalThis.ComputedRef<{
|
|
1255
1255
|
id: string;
|
|
1256
1256
|
platform: string;
|
|
1257
1257
|
interval: "month" | "year";
|
|
@@ -1332,16 +1332,16 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
1332
1332
|
subscriptionInfo: () => Promise<any>;
|
|
1333
1333
|
verify: () => Promise<void>;
|
|
1334
1334
|
}, "interval" | "isSubscriber" | "one" | "github" | "discord" | "patreon" | "sessionId" | "subscription" | "monthlyTotal" | "hasBilling">, Pick<{
|
|
1335
|
-
info:
|
|
1336
|
-
interval:
|
|
1337
|
-
invoices:
|
|
1335
|
+
info: globalThis.Ref<Info | undefined>;
|
|
1336
|
+
interval: globalThis.ComputedRef<"month" | "year" | undefined>;
|
|
1337
|
+
invoices: globalThis.Ref<{
|
|
1338
1338
|
date: number;
|
|
1339
1339
|
amount: number;
|
|
1340
1340
|
status: string;
|
|
1341
1341
|
pdf: string;
|
|
1342
1342
|
}[]>;
|
|
1343
|
-
sessionId:
|
|
1344
|
-
subscription:
|
|
1343
|
+
sessionId: globalThis.ComputedRef<string | string[]>;
|
|
1344
|
+
subscription: globalThis.ComputedRef<{
|
|
1345
1345
|
id: string;
|
|
1346
1346
|
platform: string;
|
|
1347
1347
|
interval: "month" | "year";
|
|
@@ -1413,12 +1413,12 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
1413
1413
|
};
|
|
1414
1414
|
};
|
|
1415
1415
|
} | undefined>;
|
|
1416
|
-
monthlyTotal:
|
|
1417
|
-
hasBilling:
|
|
1416
|
+
monthlyTotal: globalThis.ComputedRef<number | undefined>;
|
|
1417
|
+
hasBilling: globalThis.ComputedRef<boolean>;
|
|
1418
1418
|
isLoading: vue.ShallowRef<boolean>;
|
|
1419
|
-
isOpen:
|
|
1420
|
-
isSubscriber:
|
|
1421
|
-
github:
|
|
1419
|
+
isOpen: globalThis.Ref<boolean>;
|
|
1420
|
+
isSubscriber: globalThis.ComputedRef<boolean | undefined>;
|
|
1421
|
+
github: globalThis.ComputedRef<{
|
|
1422
1422
|
id: string;
|
|
1423
1423
|
platform: string;
|
|
1424
1424
|
interval: "month" | "year";
|
|
@@ -1490,7 +1490,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
1490
1490
|
};
|
|
1491
1491
|
};
|
|
1492
1492
|
} | undefined>;
|
|
1493
|
-
patreon:
|
|
1493
|
+
patreon: globalThis.ComputedRef<{
|
|
1494
1494
|
id: string;
|
|
1495
1495
|
platform: string;
|
|
1496
1496
|
interval: "month" | "year";
|
|
@@ -1562,7 +1562,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
1562
1562
|
};
|
|
1563
1563
|
};
|
|
1564
1564
|
} | undefined>;
|
|
1565
|
-
discord:
|
|
1565
|
+
discord: globalThis.ComputedRef<{
|
|
1566
1566
|
id: string;
|
|
1567
1567
|
platform: string;
|
|
1568
1568
|
interval: "month" | "year";
|
|
@@ -1634,7 +1634,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
1634
1634
|
};
|
|
1635
1635
|
};
|
|
1636
1636
|
} | undefined>;
|
|
1637
|
-
one:
|
|
1637
|
+
one: globalThis.ComputedRef<{
|
|
1638
1638
|
id: string;
|
|
1639
1639
|
platform: string;
|
|
1640
1640
|
interval: "month" | "year";
|
|
@@ -1716,51 +1716,651 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
|
|
|
1716
1716
|
verify: () => Promise<void>;
|
|
1717
1717
|
}, "verify" | "cancel" | "activate" | "manage" | "modify" | "resetQuery" | "subscribe" | "subscriptionInfo">>;
|
|
1718
1718
|
|
|
1719
|
+
type CosmicImage = {
|
|
1720
|
+
url: string;
|
|
1721
|
+
} | null;
|
|
1722
|
+
interface Promotion {
|
|
1723
|
+
id: string;
|
|
1724
|
+
slug: string;
|
|
1725
|
+
title: string;
|
|
1726
|
+
metadata: {
|
|
1727
|
+
active: boolean;
|
|
1728
|
+
text: string;
|
|
1729
|
+
short_text: string;
|
|
1730
|
+
images: {
|
|
1731
|
+
default: CosmicImage;
|
|
1732
|
+
logolight: CosmicImage;
|
|
1733
|
+
logodark: CosmicImage;
|
|
1734
|
+
bgdark: CosmicImage;
|
|
1735
|
+
bglight: CosmicImage;
|
|
1736
|
+
};
|
|
1737
|
+
url: string;
|
|
1738
|
+
discoverable: boolean;
|
|
1739
|
+
advertisement: boolean;
|
|
1740
|
+
startdate: string | null;
|
|
1741
|
+
enddate: string | null;
|
|
1742
|
+
price: number;
|
|
1743
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
1744
|
+
};
|
|
1745
|
+
}
|
|
1746
|
+
declare const usePromotionsStore: pinia.StoreDefinition<"promotions", pinia._UnwrapAll<Pick<{
|
|
1747
|
+
all: globalThis.Ref<{
|
|
1748
|
+
id: string;
|
|
1749
|
+
slug: string;
|
|
1750
|
+
title: string;
|
|
1751
|
+
metadata: {
|
|
1752
|
+
active: boolean;
|
|
1753
|
+
text: string;
|
|
1754
|
+
short_text: string;
|
|
1755
|
+
images: {
|
|
1756
|
+
default: {
|
|
1757
|
+
url: string;
|
|
1758
|
+
} | null;
|
|
1759
|
+
logolight: {
|
|
1760
|
+
url: string;
|
|
1761
|
+
} | null;
|
|
1762
|
+
logodark: {
|
|
1763
|
+
url: string;
|
|
1764
|
+
} | null;
|
|
1765
|
+
bgdark: {
|
|
1766
|
+
url: string;
|
|
1767
|
+
} | null;
|
|
1768
|
+
bglight: {
|
|
1769
|
+
url: string;
|
|
1770
|
+
} | null;
|
|
1771
|
+
};
|
|
1772
|
+
url: string;
|
|
1773
|
+
discoverable: boolean;
|
|
1774
|
+
advertisement: boolean;
|
|
1775
|
+
startdate: string | null;
|
|
1776
|
+
enddate: string | null;
|
|
1777
|
+
price: number;
|
|
1778
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
1779
|
+
};
|
|
1780
|
+
}[]>;
|
|
1781
|
+
aall: globalThis.Ref<{
|
|
1782
|
+
id: string;
|
|
1783
|
+
slug: string;
|
|
1784
|
+
title: string;
|
|
1785
|
+
metadata: {
|
|
1786
|
+
active: boolean;
|
|
1787
|
+
text: string;
|
|
1788
|
+
short_text: string;
|
|
1789
|
+
images: {
|
|
1790
|
+
default: {
|
|
1791
|
+
url: string;
|
|
1792
|
+
} | null;
|
|
1793
|
+
logolight: {
|
|
1794
|
+
url: string;
|
|
1795
|
+
} | null;
|
|
1796
|
+
logodark: {
|
|
1797
|
+
url: string;
|
|
1798
|
+
} | null;
|
|
1799
|
+
bgdark: {
|
|
1800
|
+
url: string;
|
|
1801
|
+
} | null;
|
|
1802
|
+
bglight: {
|
|
1803
|
+
url: string;
|
|
1804
|
+
} | null;
|
|
1805
|
+
};
|
|
1806
|
+
url: string;
|
|
1807
|
+
discoverable: boolean;
|
|
1808
|
+
advertisement: boolean;
|
|
1809
|
+
startdate: string | null;
|
|
1810
|
+
enddate: string | null;
|
|
1811
|
+
price: number;
|
|
1812
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
1813
|
+
};
|
|
1814
|
+
}[]>;
|
|
1815
|
+
isLoading: vue.ShallowRef<boolean>;
|
|
1816
|
+
hasLoaded: vue.ShallowRef<boolean>;
|
|
1817
|
+
discoverable: globalThis.ComputedRef<{
|
|
1818
|
+
id: string;
|
|
1819
|
+
slug: string;
|
|
1820
|
+
title: string;
|
|
1821
|
+
metadata: {
|
|
1822
|
+
active: boolean;
|
|
1823
|
+
text: string;
|
|
1824
|
+
short_text: string;
|
|
1825
|
+
images: {
|
|
1826
|
+
default: {
|
|
1827
|
+
url: string;
|
|
1828
|
+
} | null;
|
|
1829
|
+
logolight: {
|
|
1830
|
+
url: string;
|
|
1831
|
+
} | null;
|
|
1832
|
+
logodark: {
|
|
1833
|
+
url: string;
|
|
1834
|
+
} | null;
|
|
1835
|
+
bgdark: {
|
|
1836
|
+
url: string;
|
|
1837
|
+
} | null;
|
|
1838
|
+
bglight: {
|
|
1839
|
+
url: string;
|
|
1840
|
+
} | null;
|
|
1841
|
+
};
|
|
1842
|
+
url: string;
|
|
1843
|
+
discoverable: boolean;
|
|
1844
|
+
advertisement: boolean;
|
|
1845
|
+
startdate: string | null;
|
|
1846
|
+
enddate: string | null;
|
|
1847
|
+
price: number;
|
|
1848
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
1849
|
+
};
|
|
1850
|
+
}[]>;
|
|
1851
|
+
record: globalThis.Ref<Promotion | null | undefined>;
|
|
1852
|
+
admin: () => Promise<{
|
|
1853
|
+
id: string;
|
|
1854
|
+
slug: string;
|
|
1855
|
+
title: string;
|
|
1856
|
+
metadata: {
|
|
1857
|
+
active: boolean;
|
|
1858
|
+
text: string;
|
|
1859
|
+
short_text: string;
|
|
1860
|
+
images: {
|
|
1861
|
+
default: {
|
|
1862
|
+
url: string;
|
|
1863
|
+
} | null;
|
|
1864
|
+
logolight: {
|
|
1865
|
+
url: string;
|
|
1866
|
+
} | null;
|
|
1867
|
+
logodark: {
|
|
1868
|
+
url: string;
|
|
1869
|
+
} | null;
|
|
1870
|
+
bgdark: {
|
|
1871
|
+
url: string;
|
|
1872
|
+
} | null;
|
|
1873
|
+
bglight: {
|
|
1874
|
+
url: string;
|
|
1875
|
+
} | null;
|
|
1876
|
+
};
|
|
1877
|
+
url: string;
|
|
1878
|
+
discoverable: boolean;
|
|
1879
|
+
advertisement: boolean;
|
|
1880
|
+
startdate: string | null;
|
|
1881
|
+
enddate: string | null;
|
|
1882
|
+
price: number;
|
|
1883
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
1884
|
+
};
|
|
1885
|
+
}[]>;
|
|
1886
|
+
destroy: () => Promise<void>;
|
|
1887
|
+
index: () => Promise<{
|
|
1888
|
+
id: string;
|
|
1889
|
+
slug: string;
|
|
1890
|
+
title: string;
|
|
1891
|
+
metadata: {
|
|
1892
|
+
active: boolean;
|
|
1893
|
+
text: string;
|
|
1894
|
+
short_text: string;
|
|
1895
|
+
images: {
|
|
1896
|
+
default: {
|
|
1897
|
+
url: string;
|
|
1898
|
+
} | null;
|
|
1899
|
+
logolight: {
|
|
1900
|
+
url: string;
|
|
1901
|
+
} | null;
|
|
1902
|
+
logodark: {
|
|
1903
|
+
url: string;
|
|
1904
|
+
} | null;
|
|
1905
|
+
bgdark: {
|
|
1906
|
+
url: string;
|
|
1907
|
+
} | null;
|
|
1908
|
+
bglight: {
|
|
1909
|
+
url: string;
|
|
1910
|
+
} | null;
|
|
1911
|
+
};
|
|
1912
|
+
url: string;
|
|
1913
|
+
discoverable: boolean;
|
|
1914
|
+
advertisement: boolean;
|
|
1915
|
+
startdate: string | null;
|
|
1916
|
+
enddate: string | null;
|
|
1917
|
+
price: number;
|
|
1918
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
1919
|
+
};
|
|
1920
|
+
}[]>;
|
|
1921
|
+
random: (array: Promotion[]) => Promotion;
|
|
1922
|
+
show: (id: string) => Promise<Promotion | undefined>;
|
|
1923
|
+
store: (data: FormData) => Promise<Promotion | undefined>;
|
|
1924
|
+
update: (id: string, data: FormData) => Promise<Promotion | undefined>;
|
|
1925
|
+
}, "isLoading" | "all" | "aall" | "record" | "hasLoaded">>, Pick<{
|
|
1926
|
+
all: globalThis.Ref<{
|
|
1927
|
+
id: string;
|
|
1928
|
+
slug: string;
|
|
1929
|
+
title: string;
|
|
1930
|
+
metadata: {
|
|
1931
|
+
active: boolean;
|
|
1932
|
+
text: string;
|
|
1933
|
+
short_text: string;
|
|
1934
|
+
images: {
|
|
1935
|
+
default: {
|
|
1936
|
+
url: string;
|
|
1937
|
+
} | null;
|
|
1938
|
+
logolight: {
|
|
1939
|
+
url: string;
|
|
1940
|
+
} | null;
|
|
1941
|
+
logodark: {
|
|
1942
|
+
url: string;
|
|
1943
|
+
} | null;
|
|
1944
|
+
bgdark: {
|
|
1945
|
+
url: string;
|
|
1946
|
+
} | null;
|
|
1947
|
+
bglight: {
|
|
1948
|
+
url: string;
|
|
1949
|
+
} | null;
|
|
1950
|
+
};
|
|
1951
|
+
url: string;
|
|
1952
|
+
discoverable: boolean;
|
|
1953
|
+
advertisement: boolean;
|
|
1954
|
+
startdate: string | null;
|
|
1955
|
+
enddate: string | null;
|
|
1956
|
+
price: number;
|
|
1957
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
1958
|
+
};
|
|
1959
|
+
}[]>;
|
|
1960
|
+
aall: globalThis.Ref<{
|
|
1961
|
+
id: string;
|
|
1962
|
+
slug: string;
|
|
1963
|
+
title: string;
|
|
1964
|
+
metadata: {
|
|
1965
|
+
active: boolean;
|
|
1966
|
+
text: string;
|
|
1967
|
+
short_text: string;
|
|
1968
|
+
images: {
|
|
1969
|
+
default: {
|
|
1970
|
+
url: string;
|
|
1971
|
+
} | null;
|
|
1972
|
+
logolight: {
|
|
1973
|
+
url: string;
|
|
1974
|
+
} | null;
|
|
1975
|
+
logodark: {
|
|
1976
|
+
url: string;
|
|
1977
|
+
} | null;
|
|
1978
|
+
bgdark: {
|
|
1979
|
+
url: string;
|
|
1980
|
+
} | null;
|
|
1981
|
+
bglight: {
|
|
1982
|
+
url: string;
|
|
1983
|
+
} | null;
|
|
1984
|
+
};
|
|
1985
|
+
url: string;
|
|
1986
|
+
discoverable: boolean;
|
|
1987
|
+
advertisement: boolean;
|
|
1988
|
+
startdate: string | null;
|
|
1989
|
+
enddate: string | null;
|
|
1990
|
+
price: number;
|
|
1991
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
1992
|
+
};
|
|
1993
|
+
}[]>;
|
|
1994
|
+
isLoading: vue.ShallowRef<boolean>;
|
|
1995
|
+
hasLoaded: vue.ShallowRef<boolean>;
|
|
1996
|
+
discoverable: globalThis.ComputedRef<{
|
|
1997
|
+
id: string;
|
|
1998
|
+
slug: string;
|
|
1999
|
+
title: string;
|
|
2000
|
+
metadata: {
|
|
2001
|
+
active: boolean;
|
|
2002
|
+
text: string;
|
|
2003
|
+
short_text: string;
|
|
2004
|
+
images: {
|
|
2005
|
+
default: {
|
|
2006
|
+
url: string;
|
|
2007
|
+
} | null;
|
|
2008
|
+
logolight: {
|
|
2009
|
+
url: string;
|
|
2010
|
+
} | null;
|
|
2011
|
+
logodark: {
|
|
2012
|
+
url: string;
|
|
2013
|
+
} | null;
|
|
2014
|
+
bgdark: {
|
|
2015
|
+
url: string;
|
|
2016
|
+
} | null;
|
|
2017
|
+
bglight: {
|
|
2018
|
+
url: string;
|
|
2019
|
+
} | null;
|
|
2020
|
+
};
|
|
2021
|
+
url: string;
|
|
2022
|
+
discoverable: boolean;
|
|
2023
|
+
advertisement: boolean;
|
|
2024
|
+
startdate: string | null;
|
|
2025
|
+
enddate: string | null;
|
|
2026
|
+
price: number;
|
|
2027
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
2028
|
+
};
|
|
2029
|
+
}[]>;
|
|
2030
|
+
record: globalThis.Ref<Promotion | null | undefined>;
|
|
2031
|
+
admin: () => Promise<{
|
|
2032
|
+
id: string;
|
|
2033
|
+
slug: string;
|
|
2034
|
+
title: string;
|
|
2035
|
+
metadata: {
|
|
2036
|
+
active: boolean;
|
|
2037
|
+
text: string;
|
|
2038
|
+
short_text: string;
|
|
2039
|
+
images: {
|
|
2040
|
+
default: {
|
|
2041
|
+
url: string;
|
|
2042
|
+
} | null;
|
|
2043
|
+
logolight: {
|
|
2044
|
+
url: string;
|
|
2045
|
+
} | null;
|
|
2046
|
+
logodark: {
|
|
2047
|
+
url: string;
|
|
2048
|
+
} | null;
|
|
2049
|
+
bgdark: {
|
|
2050
|
+
url: string;
|
|
2051
|
+
} | null;
|
|
2052
|
+
bglight: {
|
|
2053
|
+
url: string;
|
|
2054
|
+
} | null;
|
|
2055
|
+
};
|
|
2056
|
+
url: string;
|
|
2057
|
+
discoverable: boolean;
|
|
2058
|
+
advertisement: boolean;
|
|
2059
|
+
startdate: string | null;
|
|
2060
|
+
enddate: string | null;
|
|
2061
|
+
price: number;
|
|
2062
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
2063
|
+
};
|
|
2064
|
+
}[]>;
|
|
2065
|
+
destroy: () => Promise<void>;
|
|
2066
|
+
index: () => Promise<{
|
|
2067
|
+
id: string;
|
|
2068
|
+
slug: string;
|
|
2069
|
+
title: string;
|
|
2070
|
+
metadata: {
|
|
2071
|
+
active: boolean;
|
|
2072
|
+
text: string;
|
|
2073
|
+
short_text: string;
|
|
2074
|
+
images: {
|
|
2075
|
+
default: {
|
|
2076
|
+
url: string;
|
|
2077
|
+
} | null;
|
|
2078
|
+
logolight: {
|
|
2079
|
+
url: string;
|
|
2080
|
+
} | null;
|
|
2081
|
+
logodark: {
|
|
2082
|
+
url: string;
|
|
2083
|
+
} | null;
|
|
2084
|
+
bgdark: {
|
|
2085
|
+
url: string;
|
|
2086
|
+
} | null;
|
|
2087
|
+
bglight: {
|
|
2088
|
+
url: string;
|
|
2089
|
+
} | null;
|
|
2090
|
+
};
|
|
2091
|
+
url: string;
|
|
2092
|
+
discoverable: boolean;
|
|
2093
|
+
advertisement: boolean;
|
|
2094
|
+
startdate: string | null;
|
|
2095
|
+
enddate: string | null;
|
|
2096
|
+
price: number;
|
|
2097
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
2098
|
+
};
|
|
2099
|
+
}[]>;
|
|
2100
|
+
random: (array: Promotion[]) => Promotion;
|
|
2101
|
+
show: (id: string) => Promise<Promotion | undefined>;
|
|
2102
|
+
store: (data: FormData) => Promise<Promotion | undefined>;
|
|
2103
|
+
update: (id: string, data: FormData) => Promise<Promotion | undefined>;
|
|
2104
|
+
}, "discoverable">, Pick<{
|
|
2105
|
+
all: globalThis.Ref<{
|
|
2106
|
+
id: string;
|
|
2107
|
+
slug: string;
|
|
2108
|
+
title: string;
|
|
2109
|
+
metadata: {
|
|
2110
|
+
active: boolean;
|
|
2111
|
+
text: string;
|
|
2112
|
+
short_text: string;
|
|
2113
|
+
images: {
|
|
2114
|
+
default: {
|
|
2115
|
+
url: string;
|
|
2116
|
+
} | null;
|
|
2117
|
+
logolight: {
|
|
2118
|
+
url: string;
|
|
2119
|
+
} | null;
|
|
2120
|
+
logodark: {
|
|
2121
|
+
url: string;
|
|
2122
|
+
} | null;
|
|
2123
|
+
bgdark: {
|
|
2124
|
+
url: string;
|
|
2125
|
+
} | null;
|
|
2126
|
+
bglight: {
|
|
2127
|
+
url: string;
|
|
2128
|
+
} | null;
|
|
2129
|
+
};
|
|
2130
|
+
url: string;
|
|
2131
|
+
discoverable: boolean;
|
|
2132
|
+
advertisement: boolean;
|
|
2133
|
+
startdate: string | null;
|
|
2134
|
+
enddate: string | null;
|
|
2135
|
+
price: number;
|
|
2136
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
2137
|
+
};
|
|
2138
|
+
}[]>;
|
|
2139
|
+
aall: globalThis.Ref<{
|
|
2140
|
+
id: string;
|
|
2141
|
+
slug: string;
|
|
2142
|
+
title: string;
|
|
2143
|
+
metadata: {
|
|
2144
|
+
active: boolean;
|
|
2145
|
+
text: string;
|
|
2146
|
+
short_text: string;
|
|
2147
|
+
images: {
|
|
2148
|
+
default: {
|
|
2149
|
+
url: string;
|
|
2150
|
+
} | null;
|
|
2151
|
+
logolight: {
|
|
2152
|
+
url: string;
|
|
2153
|
+
} | null;
|
|
2154
|
+
logodark: {
|
|
2155
|
+
url: string;
|
|
2156
|
+
} | null;
|
|
2157
|
+
bgdark: {
|
|
2158
|
+
url: string;
|
|
2159
|
+
} | null;
|
|
2160
|
+
bglight: {
|
|
2161
|
+
url: string;
|
|
2162
|
+
} | null;
|
|
2163
|
+
};
|
|
2164
|
+
url: string;
|
|
2165
|
+
discoverable: boolean;
|
|
2166
|
+
advertisement: boolean;
|
|
2167
|
+
startdate: string | null;
|
|
2168
|
+
enddate: string | null;
|
|
2169
|
+
price: number;
|
|
2170
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
2171
|
+
};
|
|
2172
|
+
}[]>;
|
|
2173
|
+
isLoading: vue.ShallowRef<boolean>;
|
|
2174
|
+
hasLoaded: vue.ShallowRef<boolean>;
|
|
2175
|
+
discoverable: globalThis.ComputedRef<{
|
|
2176
|
+
id: string;
|
|
2177
|
+
slug: string;
|
|
2178
|
+
title: string;
|
|
2179
|
+
metadata: {
|
|
2180
|
+
active: boolean;
|
|
2181
|
+
text: string;
|
|
2182
|
+
short_text: string;
|
|
2183
|
+
images: {
|
|
2184
|
+
default: {
|
|
2185
|
+
url: string;
|
|
2186
|
+
} | null;
|
|
2187
|
+
logolight: {
|
|
2188
|
+
url: string;
|
|
2189
|
+
} | null;
|
|
2190
|
+
logodark: {
|
|
2191
|
+
url: string;
|
|
2192
|
+
} | null;
|
|
2193
|
+
bgdark: {
|
|
2194
|
+
url: string;
|
|
2195
|
+
} | null;
|
|
2196
|
+
bglight: {
|
|
2197
|
+
url: string;
|
|
2198
|
+
} | null;
|
|
2199
|
+
};
|
|
2200
|
+
url: string;
|
|
2201
|
+
discoverable: boolean;
|
|
2202
|
+
advertisement: boolean;
|
|
2203
|
+
startdate: string | null;
|
|
2204
|
+
enddate: string | null;
|
|
2205
|
+
price: number;
|
|
2206
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
2207
|
+
};
|
|
2208
|
+
}[]>;
|
|
2209
|
+
record: globalThis.Ref<Promotion | null | undefined>;
|
|
2210
|
+
admin: () => Promise<{
|
|
2211
|
+
id: string;
|
|
2212
|
+
slug: string;
|
|
2213
|
+
title: string;
|
|
2214
|
+
metadata: {
|
|
2215
|
+
active: boolean;
|
|
2216
|
+
text: string;
|
|
2217
|
+
short_text: string;
|
|
2218
|
+
images: {
|
|
2219
|
+
default: {
|
|
2220
|
+
url: string;
|
|
2221
|
+
} | null;
|
|
2222
|
+
logolight: {
|
|
2223
|
+
url: string;
|
|
2224
|
+
} | null;
|
|
2225
|
+
logodark: {
|
|
2226
|
+
url: string;
|
|
2227
|
+
} | null;
|
|
2228
|
+
bgdark: {
|
|
2229
|
+
url: string;
|
|
2230
|
+
} | null;
|
|
2231
|
+
bglight: {
|
|
2232
|
+
url: string;
|
|
2233
|
+
} | null;
|
|
2234
|
+
};
|
|
2235
|
+
url: string;
|
|
2236
|
+
discoverable: boolean;
|
|
2237
|
+
advertisement: boolean;
|
|
2238
|
+
startdate: string | null;
|
|
2239
|
+
enddate: string | null;
|
|
2240
|
+
price: number;
|
|
2241
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
2242
|
+
};
|
|
2243
|
+
}[]>;
|
|
2244
|
+
destroy: () => Promise<void>;
|
|
2245
|
+
index: () => Promise<{
|
|
2246
|
+
id: string;
|
|
2247
|
+
slug: string;
|
|
2248
|
+
title: string;
|
|
2249
|
+
metadata: {
|
|
2250
|
+
active: boolean;
|
|
2251
|
+
text: string;
|
|
2252
|
+
short_text: string;
|
|
2253
|
+
images: {
|
|
2254
|
+
default: {
|
|
2255
|
+
url: string;
|
|
2256
|
+
} | null;
|
|
2257
|
+
logolight: {
|
|
2258
|
+
url: string;
|
|
2259
|
+
} | null;
|
|
2260
|
+
logodark: {
|
|
2261
|
+
url: string;
|
|
2262
|
+
} | null;
|
|
2263
|
+
bgdark: {
|
|
2264
|
+
url: string;
|
|
2265
|
+
} | null;
|
|
2266
|
+
bglight: {
|
|
2267
|
+
url: string;
|
|
2268
|
+
} | null;
|
|
2269
|
+
};
|
|
2270
|
+
url: string;
|
|
2271
|
+
discoverable: boolean;
|
|
2272
|
+
advertisement: boolean;
|
|
2273
|
+
startdate: string | null;
|
|
2274
|
+
enddate: string | null;
|
|
2275
|
+
price: number;
|
|
2276
|
+
type: 'theme' | 'video' | 'book' | 'course' | 'website' | 'job' | 'merch' | 'digital' | 'services' | 'documentation';
|
|
2277
|
+
};
|
|
2278
|
+
}[]>;
|
|
2279
|
+
random: (array: Promotion[]) => Promotion;
|
|
2280
|
+
show: (id: string) => Promise<Promotion | undefined>;
|
|
2281
|
+
store: (data: FormData) => Promise<Promotion | undefined>;
|
|
2282
|
+
update: (id: string, data: FormData) => Promise<Promotion | undefined>;
|
|
2283
|
+
}, "show" | "admin" | "destroy" | "index" | "store" | "update" | "random">>;
|
|
2284
|
+
|
|
1719
2285
|
interface Suit {
|
|
1720
2286
|
'app-bar': string;
|
|
1721
2287
|
'drawer': string;
|
|
1722
2288
|
footer: string;
|
|
1723
2289
|
}
|
|
1724
2290
|
declare const useSettingsStore: pinia.StoreDefinition<"settings", pinia._UnwrapAll<Pick<{
|
|
1725
|
-
suit:
|
|
2291
|
+
suit: globalThis.ComputedRef<Partial<Suit>>;
|
|
1726
2292
|
CDN_URL: string;
|
|
1727
2293
|
}, "CDN_URL">>, Pick<{
|
|
1728
|
-
suit:
|
|
2294
|
+
suit: globalThis.ComputedRef<Partial<Suit>>;
|
|
1729
2295
|
CDN_URL: string;
|
|
1730
2296
|
}, "suit">, Pick<{
|
|
1731
|
-
suit:
|
|
2297
|
+
suit: globalThis.ComputedRef<Partial<Suit>>;
|
|
1732
2298
|
CDN_URL: string;
|
|
1733
2299
|
}, never>>;
|
|
1734
2300
|
|
|
2301
|
+
interface Spot {
|
|
2302
|
+
id: string;
|
|
2303
|
+
status: 'published' | 'draft';
|
|
2304
|
+
modified_at: string;
|
|
2305
|
+
created_at: string;
|
|
2306
|
+
slug: string;
|
|
2307
|
+
title: string;
|
|
2308
|
+
metadata: {
|
|
2309
|
+
active: boolean;
|
|
2310
|
+
href: string;
|
|
2311
|
+
start_date: string;
|
|
2312
|
+
sponsor: string;
|
|
2313
|
+
site: ('*' | 'dev' | 'vbin' | 'vplay' | 'docs' | 'home' | 'server')[];
|
|
2314
|
+
end_date: string;
|
|
2315
|
+
image: {
|
|
2316
|
+
url: string;
|
|
2317
|
+
} | null;
|
|
2318
|
+
};
|
|
2319
|
+
}
|
|
2320
|
+
interface State {
|
|
2321
|
+
all: Ref<Spot[]>;
|
|
2322
|
+
aall: Ref<Spot[]>;
|
|
2323
|
+
isLoading: ShallowRef<boolean>;
|
|
2324
|
+
spot: ComputedRef<Spot | undefined>;
|
|
2325
|
+
record: Ref<Spot | undefined>;
|
|
2326
|
+
admin: () => Promise<Spot[]>;
|
|
2327
|
+
index: () => Promise<Spot[]>;
|
|
2328
|
+
show: (slug: string) => Promise<Spot>;
|
|
2329
|
+
store: (data: FormData) => Promise<Spot>;
|
|
2330
|
+
update: (slug: string, data: FormData) => Promise<Spot>;
|
|
2331
|
+
destroy: (slug: string) => Promise<void>;
|
|
2332
|
+
}
|
|
2333
|
+
declare const useSpotsStore: pinia.StoreDefinition<"spots", pinia._UnwrapAll<Pick<State, "isLoading" | "all" | "aall" | "record">>, Pick<State, "spot">, Pick<State, "show" | "admin" | "destroy" | "index" | "store" | "update">>;
|
|
2334
|
+
|
|
1735
2335
|
declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<{
|
|
1736
2336
|
load: () => void;
|
|
1737
2337
|
save: () => void;
|
|
1738
2338
|
reset: () => void;
|
|
1739
|
-
v:
|
|
1740
|
-
api:
|
|
1741
|
-
avatar:
|
|
1742
|
-
dev:
|
|
1743
|
-
disableAds:
|
|
1744
|
-
composition:
|
|
1745
|
-
pwaRefresh:
|
|
1746
|
-
slashSearch:
|
|
1747
|
-
syncSettings:
|
|
1748
|
-
theme:
|
|
1749
|
-
mixedTheme:
|
|
1750
|
-
direction:
|
|
1751
|
-
quickbar:
|
|
1752
|
-
railDrawer:
|
|
1753
|
-
pins:
|
|
1754
|
-
pinned:
|
|
1755
|
-
suits:
|
|
2339
|
+
v: globalThis.Ref<2 | 3 | 4 | 5>;
|
|
2340
|
+
api: globalThis.Ref<"link-only" | "inline">;
|
|
2341
|
+
avatar: globalThis.Ref<string>;
|
|
2342
|
+
dev: globalThis.Ref<boolean>;
|
|
2343
|
+
disableAds: globalThis.Ref<boolean>;
|
|
2344
|
+
composition: globalThis.Ref<"composition" | "options">;
|
|
2345
|
+
pwaRefresh: globalThis.Ref<boolean>;
|
|
2346
|
+
slashSearch: globalThis.Ref<boolean>;
|
|
2347
|
+
syncSettings: globalThis.Ref<boolean>;
|
|
2348
|
+
theme: globalThis.Ref<string>;
|
|
2349
|
+
mixedTheme: globalThis.Ref<boolean>;
|
|
2350
|
+
direction: globalThis.Ref<"rtl" | "ltr">;
|
|
2351
|
+
quickbar: globalThis.Ref<boolean>;
|
|
2352
|
+
railDrawer: globalThis.Ref<boolean>;
|
|
2353
|
+
pins: globalThis.Ref<boolean>;
|
|
2354
|
+
pinned: globalThis.Ref<Record<string, unknown>[]>;
|
|
2355
|
+
suits: globalThis.Ref<{
|
|
1756
2356
|
show: boolean;
|
|
1757
2357
|
elements: (keyof Suit)[];
|
|
1758
2358
|
suit: string;
|
|
1759
2359
|
}>;
|
|
1760
|
-
colors:
|
|
2360
|
+
colors: globalThis.Ref<{
|
|
1761
2361
|
one: string;
|
|
1762
2362
|
}>;
|
|
1763
|
-
notifications:
|
|
2363
|
+
notifications: globalThis.Ref<{
|
|
1764
2364
|
show: boolean;
|
|
1765
2365
|
banners: boolean;
|
|
1766
2366
|
read: string[];
|
|
@@ -1777,31 +2377,31 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
|
|
|
1777
2377
|
load: () => void;
|
|
1778
2378
|
save: () => void;
|
|
1779
2379
|
reset: () => void;
|
|
1780
|
-
v:
|
|
1781
|
-
api:
|
|
1782
|
-
avatar:
|
|
1783
|
-
dev:
|
|
1784
|
-
disableAds:
|
|
1785
|
-
composition:
|
|
1786
|
-
pwaRefresh:
|
|
1787
|
-
slashSearch:
|
|
1788
|
-
syncSettings:
|
|
1789
|
-
theme:
|
|
1790
|
-
mixedTheme:
|
|
1791
|
-
direction:
|
|
1792
|
-
quickbar:
|
|
1793
|
-
railDrawer:
|
|
1794
|
-
pins:
|
|
1795
|
-
pinned:
|
|
1796
|
-
suits:
|
|
2380
|
+
v: globalThis.Ref<2 | 3 | 4 | 5>;
|
|
2381
|
+
api: globalThis.Ref<"link-only" | "inline">;
|
|
2382
|
+
avatar: globalThis.Ref<string>;
|
|
2383
|
+
dev: globalThis.Ref<boolean>;
|
|
2384
|
+
disableAds: globalThis.Ref<boolean>;
|
|
2385
|
+
composition: globalThis.Ref<"composition" | "options">;
|
|
2386
|
+
pwaRefresh: globalThis.Ref<boolean>;
|
|
2387
|
+
slashSearch: globalThis.Ref<boolean>;
|
|
2388
|
+
syncSettings: globalThis.Ref<boolean>;
|
|
2389
|
+
theme: globalThis.Ref<string>;
|
|
2390
|
+
mixedTheme: globalThis.Ref<boolean>;
|
|
2391
|
+
direction: globalThis.Ref<"rtl" | "ltr">;
|
|
2392
|
+
quickbar: globalThis.Ref<boolean>;
|
|
2393
|
+
railDrawer: globalThis.Ref<boolean>;
|
|
2394
|
+
pins: globalThis.Ref<boolean>;
|
|
2395
|
+
pinned: globalThis.Ref<Record<string, unknown>[]>;
|
|
2396
|
+
suits: globalThis.Ref<{
|
|
1797
2397
|
show: boolean;
|
|
1798
2398
|
elements: (keyof Suit)[];
|
|
1799
2399
|
suit: string;
|
|
1800
2400
|
}>;
|
|
1801
|
-
colors:
|
|
2401
|
+
colors: globalThis.Ref<{
|
|
1802
2402
|
one: string;
|
|
1803
2403
|
}>;
|
|
1804
|
-
notifications:
|
|
2404
|
+
notifications: globalThis.Ref<{
|
|
1805
2405
|
show: boolean;
|
|
1806
2406
|
banners: boolean;
|
|
1807
2407
|
read: string[];
|
|
@@ -1818,31 +2418,31 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
|
|
|
1818
2418
|
load: () => void;
|
|
1819
2419
|
save: () => void;
|
|
1820
2420
|
reset: () => void;
|
|
1821
|
-
v:
|
|
1822
|
-
api:
|
|
1823
|
-
avatar:
|
|
1824
|
-
dev:
|
|
1825
|
-
disableAds:
|
|
1826
|
-
composition:
|
|
1827
|
-
pwaRefresh:
|
|
1828
|
-
slashSearch:
|
|
1829
|
-
syncSettings:
|
|
1830
|
-
theme:
|
|
1831
|
-
mixedTheme:
|
|
1832
|
-
direction:
|
|
1833
|
-
quickbar:
|
|
1834
|
-
railDrawer:
|
|
1835
|
-
pins:
|
|
1836
|
-
pinned:
|
|
1837
|
-
suits:
|
|
2421
|
+
v: globalThis.Ref<2 | 3 | 4 | 5>;
|
|
2422
|
+
api: globalThis.Ref<"link-only" | "inline">;
|
|
2423
|
+
avatar: globalThis.Ref<string>;
|
|
2424
|
+
dev: globalThis.Ref<boolean>;
|
|
2425
|
+
disableAds: globalThis.Ref<boolean>;
|
|
2426
|
+
composition: globalThis.Ref<"composition" | "options">;
|
|
2427
|
+
pwaRefresh: globalThis.Ref<boolean>;
|
|
2428
|
+
slashSearch: globalThis.Ref<boolean>;
|
|
2429
|
+
syncSettings: globalThis.Ref<boolean>;
|
|
2430
|
+
theme: globalThis.Ref<string>;
|
|
2431
|
+
mixedTheme: globalThis.Ref<boolean>;
|
|
2432
|
+
direction: globalThis.Ref<"rtl" | "ltr">;
|
|
2433
|
+
quickbar: globalThis.Ref<boolean>;
|
|
2434
|
+
railDrawer: globalThis.Ref<boolean>;
|
|
2435
|
+
pins: globalThis.Ref<boolean>;
|
|
2436
|
+
pinned: globalThis.Ref<Record<string, unknown>[]>;
|
|
2437
|
+
suits: globalThis.Ref<{
|
|
1838
2438
|
show: boolean;
|
|
1839
2439
|
elements: (keyof Suit)[];
|
|
1840
2440
|
suit: string;
|
|
1841
2441
|
}>;
|
|
1842
|
-
colors:
|
|
2442
|
+
colors: globalThis.Ref<{
|
|
1843
2443
|
one: string;
|
|
1844
2444
|
}>;
|
|
1845
|
-
notifications:
|
|
2445
|
+
notifications: globalThis.Ref<{
|
|
1846
2446
|
show: boolean;
|
|
1847
2447
|
banners: boolean;
|
|
1848
2448
|
read: string[];
|
|
@@ -1857,43 +2457,9 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
|
|
|
1857
2457
|
}>;
|
|
1858
2458
|
}, "load" | "save" | "reset">>;
|
|
1859
2459
|
|
|
1860
|
-
interface Spot {
|
|
1861
|
-
id: string;
|
|
1862
|
-
status: 'published' | 'draft';
|
|
1863
|
-
modified_at: string;
|
|
1864
|
-
created_at: string;
|
|
1865
|
-
slug: string;
|
|
1866
|
-
title: string;
|
|
1867
|
-
metadata: {
|
|
1868
|
-
active: boolean;
|
|
1869
|
-
href: string;
|
|
1870
|
-
start_date: string;
|
|
1871
|
-
sponsor: string;
|
|
1872
|
-
site: ('*' | 'dev' | 'vbin' | 'vplay' | 'docs' | 'home' | 'server')[];
|
|
1873
|
-
end_date: string;
|
|
1874
|
-
image: {
|
|
1875
|
-
url: string;
|
|
1876
|
-
} | null;
|
|
1877
|
-
};
|
|
1878
|
-
}
|
|
1879
|
-
interface State {
|
|
1880
|
-
all: Ref<Spot[]>;
|
|
1881
|
-
aall: Ref<Spot[]>;
|
|
1882
|
-
isLoading: ShallowRef<boolean>;
|
|
1883
|
-
spot: ComputedRef<Spot | undefined>;
|
|
1884
|
-
record: Ref<Spot | undefined>;
|
|
1885
|
-
admin: () => Promise<Spot[]>;
|
|
1886
|
-
index: () => Promise<Spot[]>;
|
|
1887
|
-
show: (slug: string) => Promise<Spot>;
|
|
1888
|
-
store: (data: FormData) => Promise<Spot>;
|
|
1889
|
-
update: (slug: string, data: FormData) => Promise<Spot>;
|
|
1890
|
-
destroy: (slug: string) => Promise<void>;
|
|
1891
|
-
}
|
|
1892
|
-
declare const useSpotsStore: pinia.StoreDefinition<"spots", pinia._UnwrapAll<Pick<State, "isLoading" | "all" | "aall" | "record">>, Pick<State, "spot">, Pick<State, "index" | "show" | "admin" | "destroy" | "store" | "update">>;
|
|
1893
|
-
|
|
1894
2460
|
declare function createOne(): {
|
|
1895
2461
|
install: (app: App) => void;
|
|
1896
2462
|
};
|
|
1897
2463
|
declare function one(id: string[], url: string): (context: PiniaPluginContext) => void;
|
|
1898
2464
|
|
|
1899
|
-
export { createOne, one, useAuthStore, useBannersStore, useBinsStore, useHttpStore, useOneStore, useSettingsStore, useSpotsStore, useUserStore };
|
|
2465
|
+
export { createOne, one, useAuthStore, useBannersStore, useBinsStore, useHttpStore, useOneStore, usePromotionsStore, useSettingsStore, useSpotsStore, useUserStore };
|