apps/ui: Warp's design system for Vue 3 + Tailwind v4. Tokens, fonts, icons and logo come from the brand package, with a Tailwind theme on the tokens and Vue components on the brand component styles. apps/admin: the admin panel as a separate, optional service. warp-admin embeds the built Vue app and proxies only the login endpoints and /_warp/admin/v1 to the homeserver. Pages: dashboard, users, rooms, federation, registration and tokens, server notices, application services, audit log. Also: pnpm workspace, go.work entry, Dockerfile, an `admin` compose profile, Makefile targets, a CI job with a proxy smoke test, and docs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
589 B
Vue
26 lines
589 B
Vue
<script setup lang="ts">
|
|
import { watch } from 'vue'
|
|
import { useRouter } from 'vue-router'
|
|
import { useTheme } from '@warp/ui'
|
|
import ToastList from './components/ToastList.vue'
|
|
import { useSession } from './stores/session'
|
|
|
|
useTheme()
|
|
|
|
const session = useSession()
|
|
const router = useRouter()
|
|
|
|
// A 401 anywhere clears the session; send the admin back to sign in.
|
|
watch(
|
|
() => session.signedIn,
|
|
(signedIn) => {
|
|
if (!signedIn && router.currentRoute.value.name !== 'login') router.replace({ name: 'login' })
|
|
},
|
|
)
|
|
</script>
|
|
|
|
<template>
|
|
<RouterView />
|
|
<ToastList />
|
|
</template>
|