@stubber/ui 1.13.1 → 1.13.3
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,6 +3,7 @@ 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 active_app;
|
|
6
7
|
let stubsUrl = `${stubsOrigin}/_/inbox/assigned`;
|
|
7
8
|
let consoleUrl = `${consoleOrigin}/_/contacts`;
|
|
8
9
|
let builderUrl = `${builderOrigin}/_/drive/folders`;
|
|
@@ -16,21 +17,33 @@ let builderUrl = `${builderOrigin}/_/drive/folders`;
|
|
|
16
17
|
</Popover.Trigger>
|
|
17
18
|
<Popover.Content class="w-auto p-5 space-y-2 z-[120]">
|
|
18
19
|
<!-- Stubs -->
|
|
19
|
-
<Button
|
|
20
|
+
<Button
|
|
21
|
+
href={stubsUrl}
|
|
22
|
+
class="h-20 w-20 {active_app == 'stubs' ? 'bg-surface-100 opacity-40 pointer-events-none' : ''}"
|
|
23
|
+
variant="ghost"
|
|
24
|
+
>
|
|
20
25
|
<div class="flex flex-col items-center space-y-2 text-surface-700">
|
|
21
26
|
<i class="fa-regular fa-list-tree fa-2x" />
|
|
22
27
|
<p class="text-label">Stubs</p>
|
|
23
28
|
</div>
|
|
24
29
|
</Button>
|
|
25
30
|
<!-- Console -->
|
|
26
|
-
<Button
|
|
31
|
+
<Button
|
|
32
|
+
href={consoleUrl}
|
|
33
|
+
class="h-20 w-20 {active_app == 'console' ? 'bg-surface-100 opacity-40 pointer-events-none' : ''}"
|
|
34
|
+
variant="ghost"
|
|
35
|
+
>
|
|
27
36
|
<div class="flex flex-col items-center space-y-2 text-surface-700">
|
|
28
37
|
<i class="fa-solid fa-sliders-simple fa-2x" />
|
|
29
38
|
<p class="text-label">Console</p>
|
|
30
39
|
</div>
|
|
31
40
|
</Button>
|
|
32
41
|
<!-- Builder -->
|
|
33
|
-
<Button
|
|
42
|
+
<Button
|
|
43
|
+
href={builderUrl}
|
|
44
|
+
class="h-20 w-20 {active_app == 'builder' ? 'bg-surface-100 opacity-40 pointer-events-none' : ''}"
|
|
45
|
+
variant="ghost"
|
|
46
|
+
>
|
|
34
47
|
<div class="flex flex-col items-center space-y-2 text-surface-700">
|
|
35
48
|
<i class="fa-regular fa-diagram-subtask fa-2x" />
|
|
36
49
|
<p class="text-label">Builder</p>
|