Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 20 additions & 16 deletions apps/ui/app/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import type { NavigationMenuItem } from '@nuxt/ui'

const { state, logout } = useAuth()
const version = useRuntimeConfig().public.appVersion

// Peers and *arr servers are managed as sections under Settings, so the nav is
// just the three live views plus configuration.
Expand Down Expand Up @@ -46,22 +47,25 @@ async function onLogout() {
</template>

<template #footer="{ collapsed }">
<div class="flex w-full items-center gap-1.5" :class="collapsed ? 'flex-col' : ''">
<UButton
v-if="state.mode === 'cookie'"
:label="collapsed ? undefined : 'Sign out'"
icon="i-ph-sign-out"
color="neutral"
variant="ghost"
:loading="loggingOut"
:block="!collapsed"
:class="!collapsed && 'flex-1 justify-start'"
@click="onLogout"
/>
<span v-else-if="!collapsed" class="flex-1 truncate px-2.5 text-xs text-muted">
Key injected by host
</span>
<UColorModeButton />
<div class="flex w-full flex-col gap-1">
<span v-if="!collapsed" class="px-2.5 font-mono text-xs text-dimmed">v{{ version }}</span>
<div class="flex w-full items-center gap-1.5" :class="collapsed ? 'flex-col' : ''">
<UButton
v-if="state.mode === 'cookie'"
:label="collapsed ? undefined : 'Sign out'"
icon="i-ph-sign-out"
color="neutral"
variant="ghost"
:loading="loggingOut"
:block="!collapsed"
:class="!collapsed && 'flex-1 justify-start'"
@click="onLogout"
/>
<span v-else-if="!collapsed" class="flex-1 truncate px-2.5 text-xs text-muted">
Key injected by host
</span>
<UColorModeButton />
</div>
</div>
</template>
</UDashboardSidebar>
Expand Down
9 changes: 9 additions & 0 deletions apps/ui/app/pages/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,15 @@ async function confirmRevoke() {
<p class="text-xs text-muted">
Self-hosted *arr peer bridge
</p>
<ULink
to="https://github.com/roziscoding/jack"
target="_blank"
rel="noopener"
class="mt-1 inline-flex items-center gap-1 text-xs"
>
<UIcon name="i-ph-github-logo" class="size-3.5" />
roziscoding/jack
</ULink>
</div>
</div>

Expand Down