feat: geräte-tokens im konto, neuester clip für kurzbefehle
Token-Verwaltung unter "Konto" (einmalige Anzeige, letzte Nutzung, Widerruf), GET /api/clips/latest für iPhone-Kurzbefehle und Skripte, README mit Anleitung für die Kurzbefehle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d8377c8a04
commit
223eb4eb45
10 files changed
+505
-1
No files matched your search
Generated
+163
@@ -20,6 +20,7 @@
|
||||
"@vitejs/plugin-vue": "^6.0.10",
|
||||
"@vue/eslint-config-prettier": "^10.2.0",
|
||||
"@vue/eslint-config-typescript": "^14.9.0",
|
||||
"@vue/test-utils": "^2.5.1",
|
||||
"@vue/tsconfig": "^0.9.1",
|
||||
"eslint": "^10.13.0",
|
||||
"eslint-plugin-vue": "^10.11.1",
|
||||
@@ -2215,6 +2216,13 @@
|
||||
"node": ">= 8"
|
||||
}
|
||||
},
|
||||
"node_modules/@one-ini/wasm": {
|
||||
"version": "0.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@one-ini/wasm/-/wasm-0.2.1.tgz",
|
||||
"integrity": "sha512-TUqERXGNTifZ9y2g3wPxQrw3HpHv/02DsW3D90T9x0hhonrL1ZqpSmNrU2XkoIq0fP1N6gZfVQzy2Fw1ZvGBNg==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@oxc-project/types": {
|
||||
"version": "0.155.0",
|
||||
"resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.155.0.tgz",
|
||||
@@ -3614,6 +3622,27 @@
|
||||
"integrity": "sha512-H82XLH0DjmSOdbEwO15x3QTo1f5PWEtv237eLpYKc0mqLu+B8hnq16lFWmuBmNurkeiG3wr+oM1FhOll/YVFRg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@vue/test-utils": {
|
||||
"version": "2.5.1",
|
||||
"resolved": "https://registry.npmjs.org/@vue/test-utils/-/test-utils-2.5.1.tgz",
|
||||
"integrity": "sha512-V/4a99odJ7hapr0bRt35XxljGk8hefq31gSOnlKTcEq2fUeoj2qb+FcpJYfQu4qfYhW9Ug+O2+CZ3QmZ7gXDzA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"js-beautify": "^2.0.0",
|
||||
"vue-component-type-helpers": "^3.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@vue/compiler-dom": "3.x",
|
||||
"@vue/server-renderer": "3.x",
|
||||
"vue": "3.x"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@vue/server-renderer": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@vue/tsconfig": {
|
||||
"version": "0.9.1",
|
||||
"resolved": "https://registry.npmjs.org/@vue/tsconfig/-/tsconfig-0.9.1.tgz",
|
||||
@@ -3633,6 +3662,16 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/abbrev": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-5.0.0.tgz",
|
||||
"integrity": "sha512-/XrFJgzQQQHpti1raDJC6m4ws6aNktmjBlhk8Fdlk7LwCEuDoieEJJY9OFHjfiFJFFRM2tK+Ky/IsfbbmlMu1w==",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"engines": {
|
||||
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/acorn": {
|
||||
"version": "8.19.0",
|
||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz",
|
||||
@@ -4177,6 +4216,17 @@
|
||||
"integrity": "sha512-cKUSoKa8YxFZZSmraVi7onONx3amu77ngK3kGpsYHDH7drPwCRkQE1RYMPlLRrMtnciRj274XNRxcHxnKmDSnA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/config-chain": {
|
||||
"version": "1.1.13",
|
||||
"resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz",
|
||||
"integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"ini": "^1.3.4",
|
||||
"proto-list": "~1.2.1"
|
||||
}
|
||||
},
|
||||
"node_modules/convert-source-map": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
|
||||
@@ -4430,6 +4480,35 @@
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/editorconfig": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-3.0.2.tgz",
|
||||
"integrity": "sha512-T0ix8GhtxyKVfUFEcvdNDt3YGqlwkFHbD4/5bgFUDgFmxhI/cSRAeJ87/Sz//Cq8Eam6JX/e23RkoFO71P7aAA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@one-ini/wasm": "0.2.1",
|
||||
"commander": "^14.0.3",
|
||||
"minimatch": "~10.2.4",
|
||||
"semver": "^7.7.4"
|
||||
},
|
||||
"bin": {
|
||||
"editorconfig": "bin/editorconfig"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/editorconfig/node_modules/commander": {
|
||||
"version": "14.0.3",
|
||||
"resolved": "https://registry.npmjs.org/commander/-/commander-14.0.3.tgz",
|
||||
"integrity": "sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/ejs": {
|
||||
"version": "3.1.10",
|
||||
"resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
|
||||
@@ -5575,6 +5654,13 @@
|
||||
"node": ">=0.8.19"
|
||||
}
|
||||
},
|
||||
"node_modules/ini": {
|
||||
"version": "1.3.8",
|
||||
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
|
||||
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
|
||||
"dev": true,
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/internal-slot": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz",
|
||||
@@ -6103,6 +6189,53 @@
|
||||
"jiti": "lib/jiti-cli.mjs"
|
||||
}
|
||||
},
|
||||
"node_modules/js-beautify": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-2.0.3.tgz",
|
||||
"integrity": "sha512-cyFbh3tkPhknnTD/0bLf0T0yy2ZIbqL05mttzbt4y1Zfr7NxqXQZ62dkBLKs3oHH/lpjmDRAnciJiSUyOy8XwQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"config-chain": "^1.1.13",
|
||||
"editorconfig": "^3.0.2",
|
||||
"glob": "^13.0.6",
|
||||
"js-cookie": "^3.0.8",
|
||||
"nopt": "^10.0.1"
|
||||
},
|
||||
"bin": {
|
||||
"css-beautify": "js/bin/css-beautify.js",
|
||||
"html-beautify": "js/bin/html-beautify.js",
|
||||
"js-beautify": "js/bin/js-beautify.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
}
|
||||
},
|
||||
"node_modules/js-beautify/node_modules/glob": {
|
||||
"version": "13.0.6",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz",
|
||||
"integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==",
|
||||
"dev": true,
|
||||
"license": "BlueOak-1.0.0",
|
||||
"dependencies": {
|
||||
"minimatch": "^10.2.2",
|
||||
"minipass": "^7.1.3",
|
||||
"path-scurry": "^2.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": "18 || 20 || >=22"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
}
|
||||
},
|
||||
"node_modules/js-cookie": {
|
||||
"version": "3.0.8",
|
||||
"resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.8.tgz",
|
||||
"integrity": "sha512-yeJd4aNAdYZQjaon2bpD/Gb0B/omw7HQOsynXXcOiWVCacbBcPlgn8S/d1X6blFSaHao7ozqtW7NZW19xpCtIw==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/js-tokens": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
||||
@@ -6740,6 +6873,22 @@
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/nopt": {
|
||||
"version": "10.0.1",
|
||||
"resolved": "https://registry.npmjs.org/nopt/-/nopt-10.0.1.tgz",
|
||||
"integrity": "sha512-df3sBr/6ax9hSGuC3CspvLlbnX8cP5L5nZwXF8cGN8l0zSWR6BvzmQ6jPUKjvo6+/xdpkNvEcucBNUdBeeV13g==",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"abbrev": "^5.0.0"
|
||||
},
|
||||
"bin": {
|
||||
"nopt": "bin/nopt.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/nostics": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/nostics/-/nostics-1.3.0.tgz",
|
||||
@@ -7140,6 +7289,13 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/proto-list": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz",
|
||||
"integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==",
|
||||
"dev": true,
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/punycode": {
|
||||
"version": "2.3.1",
|
||||
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
|
||||
@@ -8717,6 +8873,13 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/vue-component-type-helpers": {
|
||||
"version": "3.3.13",
|
||||
"resolved": "https://registry.npmjs.org/vue-component-type-helpers/-/vue-component-type-helpers-3.3.13.tgz",
|
||||
"integrity": "sha512-02KCxSmKDhIITjKyJ4QT5csP6L0WoRborLqY/34a40+S9uvMvdNgMV0yVjO3p2Gkz3ZoPmFz/0JsGHacwJYTxw==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/vue-eslint-parser": {
|
||||
"version": "10.4.1",
|
||||
"resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-10.4.1.tgz",
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"@vitejs/plugin-vue": "^6.0.10",
|
||||
"@vue/eslint-config-prettier": "^10.2.0",
|
||||
"@vue/eslint-config-typescript": "^14.9.0",
|
||||
"@vue/test-utils": "^2.5.1",
|
||||
"@vue/tsconfig": "^0.9.1",
|
||||
"eslint": "^10.13.0",
|
||||
"eslint-plugin-vue": "^10.11.1",
|
||||
|
||||
@@ -97,3 +97,18 @@ export interface UserName {
|
||||
id: number
|
||||
username: string
|
||||
}
|
||||
|
||||
export interface ApiToken {
|
||||
id: number
|
||||
name: string
|
||||
/** First characters, to tell tokens apart */
|
||||
prefix: string
|
||||
created_at: string
|
||||
last_used_at: string | null
|
||||
last_ip: string | null
|
||||
}
|
||||
|
||||
export interface CreatedApiToken extends ApiToken {
|
||||
/** The secret itself; only returned once */
|
||||
token: string
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
import { flushPromises, mount } from '@vue/test-utils'
|
||||
import { createPinia, setActivePinia } from 'pinia'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
import type { ApiToken } from '@/api/types'
|
||||
|
||||
import TokenSection from './TokenSection.vue'
|
||||
|
||||
const existing: ApiToken = {
|
||||
id: 1,
|
||||
name: 'Desktop',
|
||||
prefix: 'lc_abcdefg',
|
||||
created_at: '2026-10-25T10:00:00Z',
|
||||
last_used_at: null,
|
||||
last_ip: null,
|
||||
}
|
||||
|
||||
function json(status: number, body: unknown): Response {
|
||||
return new Response(status === 204 ? null : JSON.stringify(body), {
|
||||
status,
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
})
|
||||
}
|
||||
|
||||
describe('TokenSection', () => {
|
||||
let tokens: ApiToken[]
|
||||
|
||||
beforeEach(() => {
|
||||
setActivePinia(createPinia())
|
||||
tokens = [existing]
|
||||
vi.stubGlobal(
|
||||
'fetch',
|
||||
vi.fn(async (url: string, init?: RequestInit) => {
|
||||
if (init?.method === 'POST') {
|
||||
const created = { ...existing, id: 2, name: 'Laptop', prefix: 'lc_secretx' }
|
||||
tokens = [...tokens, created]
|
||||
return json(201, { ...created, token: 'lc_secretxyz' })
|
||||
}
|
||||
if (init?.method === 'DELETE') {
|
||||
tokens = tokens.filter((t) => !url.endsWith(`/${t.id}`))
|
||||
return json(204, null)
|
||||
}
|
||||
return json(200, tokens)
|
||||
}),
|
||||
)
|
||||
vi.stubGlobal('confirm', () => true)
|
||||
})
|
||||
|
||||
afterEach(() => vi.unstubAllGlobals())
|
||||
|
||||
it('lists tokens without their secret', async () => {
|
||||
const wrapper = mount(TokenSection)
|
||||
await flushPromises()
|
||||
|
||||
expect(wrapper.text()).toContain('Desktop')
|
||||
expect(wrapper.text()).toContain('lc_abcdefg…')
|
||||
expect(wrapper.text()).toContain('noch nicht benutzt')
|
||||
})
|
||||
|
||||
it('shows a new token once and hides it when done', async () => {
|
||||
const wrapper = mount(TokenSection)
|
||||
await flushPromises()
|
||||
|
||||
await wrapper.find('input').setValue('Laptop')
|
||||
await wrapper.find('form').trigger('submit')
|
||||
await flushPromises()
|
||||
expect(wrapper.find('.token').text()).toBe('lc_secretxyz')
|
||||
expect(wrapper.findAll('.token-row')).toHaveLength(2)
|
||||
|
||||
const done = wrapper.findAll('button').find((b) => b.text() === 'Fertig')!
|
||||
await done.trigger('click')
|
||||
expect(wrapper.find('.token').exists()).toBe(false)
|
||||
expect(wrapper.text()).not.toContain('lc_secretxyz')
|
||||
})
|
||||
|
||||
it('revoking the new token also hides its secret', async () => {
|
||||
const wrapper = mount(TokenSection)
|
||||
await flushPromises()
|
||||
await wrapper.find('input').setValue('Laptop')
|
||||
await wrapper.find('form').trigger('submit')
|
||||
await flushPromises()
|
||||
|
||||
await wrapper.findAll('.token-row')[1]!.find('button.danger').trigger('click')
|
||||
await flushPromises()
|
||||
|
||||
expect(wrapper.find('.token').exists()).toBe(false)
|
||||
expect(wrapper.findAll('.token-row')).toHaveLength(1)
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,174 @@
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref } from 'vue'
|
||||
|
||||
import { api } from '@/api/client'
|
||||
import type { ApiToken, CreatedApiToken } from '@/api/types'
|
||||
import CopyButton from '@/components/CopyButton.vue'
|
||||
import { useToastStore } from '@/stores/toast'
|
||||
import { formatDateTime } from '@/utils/format'
|
||||
|
||||
const toast = useToastStore()
|
||||
|
||||
const tokens = ref<ApiToken[]>([])
|
||||
const name = ref('')
|
||||
const created = ref<CreatedApiToken | null>(null)
|
||||
const error = ref<string | null>(null)
|
||||
const busy = ref(false)
|
||||
|
||||
async function load(): Promise<void> {
|
||||
tokens.value = await api.get<ApiToken[]>('/tokens')
|
||||
}
|
||||
|
||||
async function create(): Promise<void> {
|
||||
if (!name.value.trim() || busy.value) return
|
||||
busy.value = true
|
||||
error.value = null
|
||||
try {
|
||||
created.value = await api.post<CreatedApiToken>('/tokens', { name: name.value })
|
||||
name.value = ''
|
||||
await load()
|
||||
} catch (e) {
|
||||
error.value = e instanceof Error ? e.message : String(e)
|
||||
} finally {
|
||||
busy.value = false
|
||||
}
|
||||
}
|
||||
|
||||
async function revoke(token: ApiToken): Promise<void> {
|
||||
if (!confirm(`Token „${token.name}“ widerrufen? Das Gerät verliert sofort den Zugriff.`)) return
|
||||
try {
|
||||
await api.delete(`/tokens/${token.id}`)
|
||||
if (created.value?.id === token.id) created.value = null
|
||||
await load()
|
||||
toast.show('Token widerrufen')
|
||||
} catch (e) {
|
||||
toast.error(e)
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => void load().catch((e: unknown) => (error.value = String(e))))
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<section class="card">
|
||||
<h2>Geräte-Tokens</h2>
|
||||
<p class="muted small intro">
|
||||
Für den Desktop-Agenten und iPhone-Kurzbefehle. Ein Token pro Gerät, damit du einzelne Geräte
|
||||
widerrufen kannst. Tokens dürfen Clips und Dateien lesen und schreiben, aber nicht dein Konto
|
||||
ändern.
|
||||
</p>
|
||||
|
||||
<div v-if="created" class="created" role="status">
|
||||
<p>
|
||||
<strong>Token für „{{ created.name }}“</strong> – jetzt kopieren, er wird nur dieses eine
|
||||
Mal angezeigt:
|
||||
</p>
|
||||
<code class="token">{{ created.token }}</code>
|
||||
<div class="row">
|
||||
<CopyButton :text="created.token" />
|
||||
<button type="button" class="small" @click="created = null">Fertig</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form class="row" @submit.prevent="create">
|
||||
<input
|
||||
v-model="name"
|
||||
maxlength="100"
|
||||
placeholder="Gerätename, z. B. Arbeitslaptop"
|
||||
aria-label="Gerätename"
|
||||
autocomplete="off"
|
||||
class="name"
|
||||
/>
|
||||
<button type="submit" class="primary" :disabled="busy || !name.trim()">Erstellen</button>
|
||||
</form>
|
||||
<p v-if="error" class="error small" role="alert">{{ error }}</p>
|
||||
|
||||
<ul v-if="tokens.length > 0" class="tokens">
|
||||
<li v-for="token in tokens" :key="token.id" class="token-row">
|
||||
<div class="info">
|
||||
<strong>{{ token.name }}</strong>
|
||||
<span class="muted small">
|
||||
<code>{{ token.prefix }}…</code> · erstellt {{ formatDateTime(token.created_at) }}
|
||||
</span>
|
||||
<span class="muted small">
|
||||
<template v-if="token.last_used_at">
|
||||
zuletzt benutzt {{ formatDateTime(token.last_used_at) }}
|
||||
<template v-if="token.last_ip">von {{ token.last_ip }}</template>
|
||||
</template>
|
||||
<template v-else>noch nicht benutzt</template>
|
||||
</span>
|
||||
</div>
|
||||
<button type="button" class="small danger" @click="revoke(token)">Widerrufen</button>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.intro {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.name {
|
||||
flex: 1;
|
||||
min-width: 12rem;
|
||||
}
|
||||
|
||||
.created {
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
padding: 0.75rem;
|
||||
border: 1px solid var(--ok);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
.created p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.token {
|
||||
display: block;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: calc(var(--radius) - 4px);
|
||||
background: var(--bg);
|
||||
overflow-wrap: anywhere;
|
||||
user-select: all;
|
||||
}
|
||||
|
||||
.tokens {
|
||||
display: grid;
|
||||
gap: 0.75rem;
|
||||
margin: 1rem 0 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.token-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.info {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.small {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.error {
|
||||
margin: 0.5rem 0 0;
|
||||
}
|
||||
</style>
|
||||
@@ -4,6 +4,7 @@ import { useRouter } from 'vue-router'
|
||||
|
||||
import { api } from '@/api/client'
|
||||
import type { SessionInfo } from '@/api/types'
|
||||
import TokenSection from '@/components/TokenSection.vue'
|
||||
import { useAuthStore } from '@/stores/auth'
|
||||
import { useUploadsStore } from '@/stores/uploads'
|
||||
import { describeUserAgent, formatBytes, formatDateTime } from '@/utils/format'
|
||||
@@ -182,6 +183,8 @@ onMounted(() => {
|
||||
Alle anderen Geräte abmelden
|
||||
</button>
|
||||
</section>
|
||||
|
||||
<TokenSection />
|
||||
</main>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in new issue
Block a user