@vuetify/one 1.1.0 → 1.1.2

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/favicon.ico CHANGED
Binary file
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { App } from 'vue';
2
+ import { Ref, ShallowRef, ComputedRef, App } from 'vue';
3
3
  import * as pinia from 'pinia';
4
4
  import { PiniaPluginContext } from 'pinia';
5
5
 
@@ -111,7 +111,7 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<
111
111
  isSubscriber: vue.ComputedRef<boolean>;
112
112
  lastLoginProvider: () => string | null;
113
113
  sync: () => Promise<void>;
114
- }, "dialog" | "url" | "user" | "isLoading">>, Pick<{
114
+ }, "url" | "user" | "dialog" | "isLoading">>, Pick<{
115
115
  user: vue.Ref<{
116
116
  id: string;
117
117
  isAdmin: boolean;
@@ -327,7 +327,51 @@ declare const useAuthStore: pinia.StoreDefinition<"auth", pinia._UnwrapAll<Pick<
327
327
  isSubscriber: vue.ComputedRef<boolean>;
328
328
  lastLoginProvider: () => string | null;
329
329
  sync: () => Promise<void>;
330
- }, "sync" | "findIdentity" | "verify" | "login" | "logout" | "lastLoginProvider">>;
330
+ }, "findIdentity" | "verify" | "login" | "logout" | "lastLoginProvider" | "sync">>;
331
+
332
+ interface Banner {
333
+ status: 'published' | 'unpublished';
334
+ created_at: string;
335
+ modified_at: string;
336
+ slug: string;
337
+ title: string;
338
+ metadata: {
339
+ active: boolean;
340
+ closable: boolean;
341
+ color: string;
342
+ label: string;
343
+ height: number;
344
+ text: string;
345
+ subtext: string;
346
+ link: string;
347
+ link_text: string;
348
+ link_color: string;
349
+ attributes: Record<string, any>;
350
+ start_date: string;
351
+ end_date: string;
352
+ theme: {
353
+ key: 'light' | 'dark';
354
+ value: 'Light' | 'Dark';
355
+ };
356
+ images: {
357
+ bg: {
358
+ url: string;
359
+ };
360
+ logo: {
361
+ url: string;
362
+ };
363
+ };
364
+ site: ('*' | 'dev' | 'vbin' | 'vplay' | 'docs' | 'home' | 'server')[];
365
+ };
366
+ }
367
+ interface State {
368
+ all: Ref<Banner[]>;
369
+ isLoading: ShallowRef<boolean>;
370
+ server: ComputedRef<Banner | undefined>;
371
+ banner: ComputedRef<Banner | undefined>;
372
+ get: () => Promise<Banner[]>;
373
+ }
374
+ declare const useBannersStore: pinia.StoreDefinition<"banners", pinia._UnwrapAll<Pick<State, "isLoading" | "all">>, Pick<State, "banner" | "server">, Pick<State, "get">>;
331
375
 
332
376
  type Bin = {
333
377
  id: string;
@@ -386,7 +430,7 @@ declare const useBinsStore: pinia.StoreDefinition<"bins", pinia._UnwrapAll<Pick<
386
430
  updateOrCreate: (bin: Bin, id?: string) => Promise<{
387
431
  bin: Bin;
388
432
  }>;
389
- }, "all" | "current" | "isLoading">>, Pick<{
433
+ }, "isLoading" | "all" | "current">>, Pick<{
390
434
  isLoading: vue.ShallowRef<boolean>;
391
435
  isOwner: vue.ComputedRef<boolean>;
392
436
  pinned: vue.ComputedRef<{
@@ -484,7 +528,7 @@ declare const useBinsStore: pinia.StoreDefinition<"bins", pinia._UnwrapAll<Pick<
484
528
  updateOrCreate: (bin: Bin, id?: string) => Promise<{
485
529
  bin: Bin;
486
530
  }>;
487
- }, "get" | "delete" | "update" | "find" | "create" | "updateOrCreate">>;
531
+ }, "find" | "get" | "delete" | "create" | "update" | "updateOrCreate">>;
488
532
 
489
533
  declare const useHttpStore: pinia.StoreDefinition<"http", {
490
534
  url: string;
@@ -824,7 +868,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
824
868
  subscribe: (interval: string) => Promise<void>;
825
869
  subscriptionInfo: () => Promise<any>;
826
870
  verify: () => Promise<void>;
827
- }, "info" | "isLoading" | "invoices" | "sessionId" | "isOpen">>, Pick<{
871
+ }, "isLoading" | "info" | "invoices" | "sessionId" | "isOpen">>, Pick<{
828
872
  info: vue.Ref<Info | undefined>;
829
873
  interval: vue.ComputedRef<"month" | "year" | undefined>;
830
874
  invoices: vue.Ref<{
@@ -1135,7 +1179,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
1135
1179
  subscribe: (interval: string) => Promise<void>;
1136
1180
  subscriptionInfo: () => Promise<any>;
1137
1181
  verify: () => Promise<void>;
1138
- }, "interval" | "isSubscriber" | "github" | "discord" | "patreon" | "subscription" | "monthlyTotal" | "hasBilling">, Pick<{
1182
+ }, "isSubscriber" | "github" | "discord" | "patreon" | "interval" | "subscription" | "monthlyTotal" | "hasBilling">, Pick<{
1139
1183
  info: vue.Ref<Info | undefined>;
1140
1184
  interval: vue.ComputedRef<"month" | "year" | undefined>;
1141
1185
  invoices: vue.Ref<{
@@ -1446,7 +1490,7 @@ declare const useOneStore: pinia.StoreDefinition<"one", pinia._UnwrapAll<Pick<{
1446
1490
  subscribe: (interval: string) => Promise<void>;
1447
1491
  subscriptionInfo: () => Promise<any>;
1448
1492
  verify: () => Promise<void>;
1449
- }, "cancel" | "verify" | "activate" | "manage" | "modify" | "resetQuery" | "subscribe" | "subscriptionInfo">>;
1493
+ }, "verify" | "cancel" | "activate" | "manage" | "modify" | "resetQuery" | "subscribe" | "subscriptionInfo">>;
1450
1494
 
1451
1495
  interface Suit {
1452
1496
  'app-bar': string;
@@ -1468,8 +1512,8 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
1468
1512
  load: () => void;
1469
1513
  save: () => void;
1470
1514
  reset: () => void;
1471
- v: vue.Ref<2 | 3 | 4 | 5>;
1472
- api: vue.Ref<"inline" | "link-only">;
1515
+ v: vue.Ref<3 | 2 | 4 | 5>;
1516
+ api: vue.Ref<"link-only" | "inline">;
1473
1517
  avatar: vue.Ref<string>;
1474
1518
  dev: vue.Ref<boolean>;
1475
1519
  disableAds: vue.Ref<boolean>;
@@ -1479,7 +1523,7 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
1479
1523
  syncSettings: vue.Ref<boolean>;
1480
1524
  theme: vue.Ref<string>;
1481
1525
  mixedTheme: vue.Ref<boolean>;
1482
- direction: vue.Ref<"ltr" | "rtl">;
1526
+ direction: vue.Ref<"rtl" | "ltr">;
1483
1527
  quickbar: vue.Ref<boolean>;
1484
1528
  railDrawer: vue.Ref<boolean>;
1485
1529
  pins: vue.Ref<boolean>;
@@ -1505,12 +1549,12 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
1505
1549
  jobs: null | number;
1506
1550
  };
1507
1551
  }>;
1508
- }, "direction" | "theme" | "avatar" | "v" | "api" | "dev" | "disableAds" | "composition" | "pwaRefresh" | "slashSearch" | "syncSettings" | "mixedTheme" | "quickbar" | "railDrawer" | "pins" | "pinned" | "suits" | "colors" | "notifications">>, Pick<{
1552
+ }, "v" | "api" | "avatar" | "dev" | "disableAds" | "composition" | "pwaRefresh" | "slashSearch" | "syncSettings" | "theme" | "mixedTheme" | "direction" | "quickbar" | "railDrawer" | "pins" | "pinned" | "suits" | "colors" | "notifications">>, Pick<{
1509
1553
  load: () => void;
1510
1554
  save: () => void;
1511
1555
  reset: () => void;
1512
- v: vue.Ref<2 | 3 | 4 | 5>;
1513
- api: vue.Ref<"inline" | "link-only">;
1556
+ v: vue.Ref<3 | 2 | 4 | 5>;
1557
+ api: vue.Ref<"link-only" | "inline">;
1514
1558
  avatar: vue.Ref<string>;
1515
1559
  dev: vue.Ref<boolean>;
1516
1560
  disableAds: vue.Ref<boolean>;
@@ -1520,7 +1564,7 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
1520
1564
  syncSettings: vue.Ref<boolean>;
1521
1565
  theme: vue.Ref<string>;
1522
1566
  mixedTheme: vue.Ref<boolean>;
1523
- direction: vue.Ref<"ltr" | "rtl">;
1567
+ direction: vue.Ref<"rtl" | "ltr">;
1524
1568
  quickbar: vue.Ref<boolean>;
1525
1569
  railDrawer: vue.Ref<boolean>;
1526
1570
  pins: vue.Ref<boolean>;
@@ -1550,8 +1594,8 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
1550
1594
  load: () => void;
1551
1595
  save: () => void;
1552
1596
  reset: () => void;
1553
- v: vue.Ref<2 | 3 | 4 | 5>;
1554
- api: vue.Ref<"inline" | "link-only">;
1597
+ v: vue.Ref<3 | 2 | 4 | 5>;
1598
+ api: vue.Ref<"link-only" | "inline">;
1555
1599
  avatar: vue.Ref<string>;
1556
1600
  dev: vue.Ref<boolean>;
1557
1601
  disableAds: vue.Ref<boolean>;
@@ -1561,7 +1605,7 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
1561
1605
  syncSettings: vue.Ref<boolean>;
1562
1606
  theme: vue.Ref<string>;
1563
1607
  mixedTheme: vue.Ref<boolean>;
1564
- direction: vue.Ref<"ltr" | "rtl">;
1608
+ direction: vue.Ref<"rtl" | "ltr">;
1565
1609
  quickbar: vue.Ref<boolean>;
1566
1610
  railDrawer: vue.Ref<boolean>;
1567
1611
  pins: vue.Ref<boolean>;
@@ -1587,11 +1631,11 @@ declare const useUserStore: pinia.StoreDefinition<"user", pinia._UnwrapAll<Pick<
1587
1631
  jobs: null | number;
1588
1632
  };
1589
1633
  }>;
1590
- }, "load" | "reset" | "save">>;
1634
+ }, "load" | "save" | "reset">>;
1591
1635
 
1592
1636
  declare function createOne(): {
1593
1637
  install: (app: App) => void;
1594
1638
  };
1595
1639
  declare function one(id: string[], url: string): (context: PiniaPluginContext) => void;
1596
1640
 
1597
- export { createOne, one, useAuthStore, useBinsStore, useHttpStore, useOneStore, useSettingsStore, useUserStore };
1641
+ export { createOne, one, useAuthStore, useBannersStore, useBinsStore, useHttpStore, useOneStore, useSettingsStore, useUserStore };