@vuetify/one 1.3.0 → 1.3.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 +43 -8
- package/dist/index.js +1191 -1085
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -364,7 +364,7 @@ interface Banner {
|
|
|
364
364
|
site: ('*' | 'dev' | 'vbin' | 'vplay' | 'docs' | 'home' | 'server')[];
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
|
-
interface State {
|
|
367
|
+
interface State$1 {
|
|
368
368
|
all: Ref<Banner[]>;
|
|
369
369
|
aall: Ref<Banner[]>;
|
|
370
370
|
isLoading: ShallowRef<boolean>;
|
|
@@ -372,12 +372,13 @@ interface State {
|
|
|
372
372
|
banner: ComputedRef<Banner | undefined>;
|
|
373
373
|
record: Ref<Banner | undefined>;
|
|
374
374
|
admin: () => Promise<Banner[]>;
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
375
|
+
destroy: (slug: string) => Promise<void>;
|
|
376
|
+
index: () => Promise<Banner[]>;
|
|
377
|
+
show: (slug: string) => Promise<Banner>;
|
|
378
|
+
store: (data: FormData) => Promise<Banner>;
|
|
379
|
+
update: (slug: string, data: FormData) => Promise<Banner>;
|
|
379
380
|
}
|
|
380
|
-
declare const useBannersStore: pinia.StoreDefinition<"banners", pinia._UnwrapAll<Pick<State, "isLoading" | "all" | "aall" | "record">>, Pick<State, "banner" | "server">, Pick<State, "
|
|
381
|
+
declare const useBannersStore: pinia.StoreDefinition<"banners", pinia._UnwrapAll<Pick<State$1, "isLoading" | "all" | "aall" | "record">>, Pick<State$1, "banner" | "server">, Pick<State$1, "index" | "show" | "admin" | "destroy" | "store" | "update">>;
|
|
381
382
|
|
|
382
383
|
type Bin = {
|
|
383
384
|
id: string;
|
|
@@ -534,7 +535,7 @@ declare const useBinsStore: pinia.StoreDefinition<"bins", pinia._UnwrapAll<Pick<
|
|
|
534
535
|
updateOrCreate: (bin: Bin, id?: string) => Promise<{
|
|
535
536
|
bin: Bin;
|
|
536
537
|
}>;
|
|
537
|
-
}, "find" | "get" | "delete" | "
|
|
538
|
+
}, "find" | "get" | "delete" | "update" | "create" | "updateOrCreate">>;
|
|
538
539
|
|
|
539
540
|
declare const useHttpStore: pinia.StoreDefinition<"http", {
|
|
540
541
|
url: string;
|
|
@@ -1856,9 +1857,43 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
|
|
|
1856
1857
|
}>;
|
|
1857
1858
|
}, "load" | "save" | "reset">>;
|
|
1858
1859
|
|
|
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
|
+
|
|
1859
1894
|
declare function createOne(): {
|
|
1860
1895
|
install: (app: App) => void;
|
|
1861
1896
|
};
|
|
1862
1897
|
declare function one(id: string[], url: string): (context: PiniaPluginContext) => void;
|
|
1863
1898
|
|
|
1864
|
-
export { createOne, one, useAuthStore, useBannersStore, useBinsStore, useHttpStore, useOneStore, useSettingsStore, useUserStore };
|
|
1899
|
+
export { createOne, one, useAuthStore, useBannersStore, useBinsStore, useHttpStore, useOneStore, useSettingsStore, useSpotsStore, useUserStore };
|