@stubber/ui 1.13.8 → 1.14.0

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.
@@ -3,10 +3,12 @@ import * as Popover from "../../components/popover/index";
3
3
  export let consoleOrigin = "";
4
4
  export let stubsOrigin = "";
5
5
  export let builderOrigin = "";
6
+ export let orgDomain = "";
6
7
  export let active_app;
7
- let stubsUrl = `${stubsOrigin}/_/inbox/assigned`;
8
- let consoleUrl = `${consoleOrigin}/_/contacts`;
9
- let builderUrl = `${builderOrigin}/_/drive/folders`;
8
+ $: stubsUrl = `${stubsOrigin}/_/inbox/assigned`;
9
+ $: consoleUrl = `${consoleOrigin}/_/contacts`;
10
+ $: builderUrl = `${builderOrigin}/_/drive/folders`;
11
+ $: dbUrl = `https://stubberdb-admin.stubber.com/${orgDomain}`;
10
12
  </script>
11
13
 
12
14
  <Popover.Root>
@@ -22,7 +24,11 @@ let builderUrl = `${builderOrigin}/_/drive/folders`;
22
24
  class="h-20 w-20 hover:bg-surface-100 {active_app == 'stubs' ? 'bg-surface-50' : ''}"
23
25
  variant="ghost"
24
26
  >
25
- <div class="flex flex-col items-center space-y-2 {active_app == 'stubs' ? 'text-primary' : 'text-surface-700'}">
27
+ <div
28
+ class="flex flex-col items-center space-y-2 {active_app == 'stubs'
29
+ ? 'text-primary'
30
+ : 'text-surface-700'}"
31
+ >
26
32
  <i class="fa-regular fa-list-tree fa-2x" />
27
33
  <p class="text-label">Stubs</p>
28
34
  </div>
@@ -33,7 +39,11 @@ let builderUrl = `${builderOrigin}/_/drive/folders`;
33
39
  class="h-20 w-20 hover:bg-surface-100 {active_app == 'console' ? 'bg-surface-50' : ''}"
34
40
  variant="ghost"
35
41
  >
36
- <div class="flex flex-col items-center space-y-2 {active_app == 'console' ? 'text-primary' : 'text-surface-700'}">
42
+ <div
43
+ class="flex flex-col items-center space-y-2 {active_app == 'console'
44
+ ? 'text-primary'
45
+ : 'text-surface-700'}"
46
+ >
37
47
  <i class="fa-solid fa-sliders-simple fa-2x" />
38
48
  <p class="text-label">Console</p>
39
49
  </div>
@@ -44,10 +54,29 @@ let builderUrl = `${builderOrigin}/_/drive/folders`;
44
54
  class="h-20 w-20 hover:bg-surface-100 {active_app == 'builder' ? 'bg-surface-50' : ''}"
45
55
  variant="ghost"
46
56
  >
47
- <div class="flex flex-col items-center space-y-2 {active_app == 'builder' ? 'text-primary' : 'text-surface-700'}">
57
+ <div
58
+ class="flex flex-col items-center space-y-2 {active_app == 'builder'
59
+ ? 'text-primary'
60
+ : 'text-surface-700'}"
61
+ >
48
62
  <i class="fa-regular fa-diagram-subtask fa-2x" />
49
63
  <p class="text-label">Builder</p>
50
64
  </div>
51
65
  </Button>
66
+ <!-- DB -->
67
+ <Button
68
+ href={dbUrl}
69
+ class="h-20 w-20 hover:bg-surface-100 {active_app == 'db' ? 'bg-surface-50' : ''}"
70
+ variant="ghost"
71
+ >
72
+ <div
73
+ class="flex flex-col items-center space-y-2 {active_app == 'db'
74
+ ? 'text-primary'
75
+ : 'text-surface-700'}"
76
+ >
77
+ <i class="fa-solid fa-database fa-2x" />
78
+ <p class="text-label">DB</p>
79
+ </div>
80
+ </Button>
52
81
  </Popover.Content>
53
82
  </Popover.Root>
@@ -4,7 +4,8 @@ declare const __propDef: {
4
4
  consoleOrigin?: string;
5
5
  stubsOrigin?: string;
6
6
  builderOrigin?: string;
7
- active_app: "console" | "stubs" | "builder";
7
+ orgDomain?: string;
8
+ active_app: "console" | "stubs" | "builder" | "db";
8
9
  };
9
10
  events: {
10
11
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stubber/ui",
3
- "version": "1.13.8",
3
+ "version": "1.14.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && pnpm run package && node ./fix_dts_imports.js",