refactor(ui): build settings, org, task, workflow and dashboard pages from the shared components
This commit is contained in:
77 files changed
+505
-744
No files matched your search
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { storeToRefs } from "pinia";
|
||||
|
||||
import { StatusDot } from "@/components/ui/status-dot";
|
||||
import { useSessionStore } from "@/stores/session";
|
||||
|
||||
// Silent while the stream is live or opening for the first time; only a lost
|
||||
@@ -15,11 +16,7 @@ const { streamState } = storeToRefs(useSessionStore());
|
||||
class="inline-flex items-center gap-1.5 px-1 text-xs max-sm:hidden"
|
||||
:class="streamState === 'unavailable' ? 'text-danger' : 'text-warn'"
|
||||
>
|
||||
<span
|
||||
class="size-1.5 rounded-full"
|
||||
:class="streamState === 'unavailable' ? 'bg-danger' : 'bg-warn'"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<StatusDot :tone="streamState === 'unavailable' ? 'danger' : 'warn'" />
|
||||
{{ streamState === "unavailable" ? "Disconnected" : "Reconnecting" }}
|
||||
</span>
|
||||
</template>
|
||||
@@ -38,7 +38,7 @@ watch(activePath, revealActive, { flush: "post" });
|
||||
:to="entry.path"
|
||||
:aria-current="activePath === entry.path ? 'page' : undefined"
|
||||
:data-current="activePath === entry.path ? '' : undefined"
|
||||
class="text-fg-muted hover:text-foreground hover:bg-accent data-current:text-foreground data-current:bg-accent focus-visible:ring-ring/50 inline-flex h-8 shrink-0 items-center rounded-md px-2.5 text-sm font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-[3px]"
|
||||
class="text-fg-muted hover:text-foreground hover:bg-accent data-current:text-foreground data-current:bg-accent focus-visible:ring-ring/50 inline-flex h-8 shrink-0 items-center rounded-md px-2.5 text-label font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-[3px]"
|
||||
>{{ entry.label }}</RouterLink
|
||||
>
|
||||
</nav>
|
||||
|
||||
@@ -57,7 +57,7 @@ watch(() => route.path, () => (open.value = false));
|
||||
:to="entry.path"
|
||||
:aria-current="activePath === entry.path ? 'page' : undefined"
|
||||
:data-current="activePath === entry.path ? '' : undefined"
|
||||
class="text-fg-muted hover:text-foreground hover:bg-accent data-current:text-foreground data-current:bg-accent focus-visible:ring-ring/50 flex h-11 items-center gap-3 rounded-md px-3 text-sm font-medium transition-colors outline-none focus-visible:ring-[3px]"
|
||||
class="text-fg-muted hover:text-foreground hover:bg-accent data-current:text-foreground data-current:bg-accent focus-visible:ring-ring/50 flex h-11 items-center gap-3 rounded-md px-3 text-label font-medium transition-colors outline-none focus-visible:ring-[3px]"
|
||||
><component :is="icons[entry.path]" v-if="icons[entry.path]" class="size-4" aria-hidden="true" />{{ entry.label }}</RouterLink
|
||||
>
|
||||
</nav>
|
||||
|
||||
Reference in new issue
Block a user