small fixes
Gitea Actions / Deploy (push) Successful in 1m26s

This commit is contained in:
vadim committed 2026-10-21 15:49:22 +03:00
1 parent ff0008d346
commit 63861449cf
10 files changed
+70 -46

No files matched your search

+15 -4
View File
@@ -99,12 +99,16 @@ onMounted(async () => {
</script> </script>
<template> <template>
<div> <v-sheet border class="pa-4 d-flex flex-column ga-2">
<div class="text-uppercase">Notifications</div> <div class="text-uppercase text-title-large">Notifications</div>
<v-skeleton-loader v-if="loading && !preferences.length" type="list-item, list-item" /> <v-skeleton-loader v-if="loading && !preferences.length" type="list-item, list-item" />
<div v-else class="d-flex flex-column"> <div v-else class="d-flex flex-column">
<v-switch <v-switch
inset="material"
size="x-small"
true-icon="mdi-check"
false-icon="mdi-close"
v-for="preference in preferences" v-for="preference in preferences"
:key="preference.channel" :key="preference.channel"
:model-value="preference.enabled" :model-value="preference.enabled"
@@ -118,7 +122,8 @@ onMounted(async () => {
/> />
</div> </div>
<div class="text-uppercase mt-4">Push in this browser</div> <div>
<div class="text-uppercase">Push in this browser</div>
<div v-if="permission === 'unsupported'" class="text-medium-emphasis"> <div v-if="permission === 'unsupported'" class="text-medium-emphasis">
This browser does not support push notifications This browser does not support push notifications
</div> </div>
@@ -127,6 +132,10 @@ onMounted(async () => {
</div> </div>
<v-switch <v-switch
v-else v-else
inset="material"
size="x-small"
true-icon="mdi-check"
false-icon="mdi-close"
:model-value="deviceEnabled" :model-value="deviceEnabled"
:label="deviceEnabled ? 'Enabled' : 'Disabled'" :label="deviceEnabled ? 'Enabled' : 'Disabled'"
:loading="deviceSaving" :loading="deviceSaving"
@@ -136,11 +145,12 @@ onMounted(async () => {
hide-details hide-details
@update:model-value="toggleDevice" @update:model-value="toggleDevice"
/> />
</div>
<div>
<v-btn <v-btn
class="mt-2" class="mt-2"
variant="tonal" variant="tonal"
size="small"
prepend-icon="mdi-bell-ring-outline" prepend-icon="mdi-bell-ring-outline"
:loading="testSending" :loading="testSending"
@click="sendTestPush" @click="sendTestPush"
@@ -148,6 +158,7 @@ onMounted(async () => {
Send test push Send test push
</v-btn> </v-btn>
</div> </div>
</v-sheet>
</template> </template>
<style scoped lang="scss"></style> <style scoped lang="scss"></style>
+13 -6
View File
@@ -17,12 +17,19 @@ const changePassword = async () => {
</script> </script>
<template> <template>
<v-sheet> <v-sheet border class="pa-4 d-flex flex-column ga-2">
<div class="text-uppercase">Change password</div> <div class="text-uppercase text-title-large">Change password</div>
<div class="d-flex ga-2"> <div class="d-flex flex-column ga-2">
<v-text-field placeholder="current password" v-model="passwordData.currentPassword" /> <v-text-field
<v-text-field placeholder="new password" v-model="passwordData.newPassword" /> clearable
<v-icon-btn variant="tonal" icon="mdi-check" @click="changePassword" /> bg-color="background"
placeholder="current password"
v-model="passwordData.currentPassword"
/>
<v-text-field clearable bg-color="background" placeholder="new password" v-model="passwordData.newPassword" />
<div>
<v-btn variant="tonal" prepend-icon="mdi-check" text="Update" @click="changePassword" />
</div>
</div> </div>
</v-sheet> </v-sheet>
</template> </template>
+15 -7
View File
@@ -44,20 +44,28 @@ watchEffect(async () => {
</script> </script>
<template> <template>
<div> <v-sheet border class="pa-4 d-flex flex-column ga-2">
<div class="text-uppercase">Active sessions</div> <div class="text-uppercase text-title-large">Active sessions</div>
<div class="mb-2">
<v-btn prepend-icon="mdi-skull" @click="revokeOtherSessions()">revoke other sessions</v-btn> <v-list border class="pa-0">
</div>
<v-list border density="compact">
<v-list-item class="hover:bg-primary-300" v-for="session in sessions" :key="session.id"> <v-list-item class="hover:bg-primary-300" v-for="session in sessions" :key="session.id">
<div class="text-truncate">{{ session.userAgent }}</div> <div class="text-truncate">{{ session.userAgent }}</div>
<template #append> <template #append>
<v-icon-btn size="small" @click="revokeSession(session.token)" color="error" icon="mdi-trash-can" /> <v-btn
@click="revokeSession(session.token)"
variant="flat"
density="compact"
color="error"
prepend-icon="mdi-trash-can"
text="Revoke"
/>
</template> </template>
</v-list-item> </v-list-item>
</v-list> </v-list>
<div class="mb-2">
<v-btn prepend-icon="mdi-skull" @click="revokeOtherSessions()">Revoke other sessions</v-btn>
</div> </div>
</v-sheet>
</template> </template>
<style scoped lang="scss"></style> <style scoped lang="scss"></style>
+5 -11
View File
@@ -15,7 +15,10 @@ const selected = ref<string[]>([...status])
const onUpdate = (val: unknown) => { const onUpdate = (val: unknown) => {
if (!Array.isArray(val)) return if (!Array.isArray(val)) return
const order = statusStore.statuses?.map((el) => el.alias) ?? [] const order = statusStore.statuses?.map((el) => el.alias) ?? []
emit('changed', [...val].sort((a, b) => order.indexOf(a) - order.indexOf(b))) emit(
'changed',
[...val].sort((a, b) => order.indexOf(a) - order.indexOf(b)),
)
} }
watch( watch(
@@ -27,16 +30,7 @@ watch(
</script> </script>
<template> <template>
<v-btn-toggle <v-btn-toggle v-model="selected" multiple border density="compact" variant="flat" @update:model-value="onUpdate">
v-model="selected"
divided
multiple
border
size="default"
density="comfortable"
variant="text"
@update:model-value="onUpdate"
>
<v-btn slim v-for="el in statusStore.statuses" :color="el.color" :value="el.alias" :key="el.alias" rounded="0"> <v-btn slim v-for="el in statusStore.statuses" :color="el.color" :value="el.alias" :key="el.alias" rounded="0">
<div class="text-default">{{ el.name }}</div> <div class="text-default">{{ el.name }}</div>
</v-btn> </v-btn>
+5 -5
View File
@@ -21,18 +21,18 @@ const avatar = computed(() => {
</script> </script>
<template> <template>
<div> <v-sheet border class="pa-4 d-flex flex-column ga-2">
<div v-if="user" class="d-flex ga-4"> <div v-if="user" class="d-flex ga-4">
<v-avatar size="x-large" color="info" :image="avatar" /> <v-avatar size="x-large" color="info" :image="avatar" />
<div> <div>
<div>name: {{ user.name }}</div> <div>Name: {{ user.name }}</div>
<div>email: {{ user.email }}</div> <div>E-mail: {{ user.email }}</div>
<div>created at: {{ user.createdAt }}</div> <div>Created At: {{ user.createdAt }}</div>
</div> </div>
</div> </div>
<v-skeleton-loader v-else type="avatar, list-item-three-line" /> <v-skeleton-loader v-else type="avatar, list-item-three-line" />
</div> </v-sheet>
</template> </template>
<style scoped lang="scss"></style> <style scoped lang="scss"></style>
+1 -1
View File
@@ -46,7 +46,7 @@ async function goToSignOut() {
} }
const goToSettings = () => { const goToSettings = () => {
router.push({ name: 'settings' }) router.push({ path: '/settings' })
} }
const fluid = computed(() => { const fluid = computed(() => {
+1 -1
View File
@@ -46,7 +46,7 @@ const router = createRouter({
{ {
path: '/profile', path: '/profile',
component: ProfileView, component: ProfileView,
meta: { requiresAuth: true }, meta: { requiresAuth: true, breadcrumb: 'Profile' },
}, },
issuesRoutes, issuesRoutes,
calendarRoutes, calendarRoutes,
+12 -6
View File
@@ -337,21 +337,27 @@ function goToday() {
<v-list-item <v-list-item
v-for="issue in unscheduled" v-for="issue in unscheduled"
:key="issue.id" :key="issue.id"
class="cursor-grab" class="cursor-grab ma-1 border bg-surface-light px-2 py-0"
:class="{ 'opacity-50': savingIds.includes(issue.id) }" :class="{ 'opacity-50': savingIds.includes(issue.id) }"
draggable="true" draggable="true"
@dragstart="onDragStart($event, issue)" @dragstart="onDragStart($event, issue)"
@dragend="onDragEnd" @dragend="onDragEnd"
> >
<template #prepend> <template #prepend>
<v-icon icon="mdi-drag-vertical" size="small" class="mr-1" /> <v-icon icon="mdi-drag-vertical" size="small" />
</template> </template>
<v-list-item-title>
<router-link :to="`/issues/${issue.key}`" class="text-link font-weight-bold mr-1" draggable="false"> <div>
<div :title="issue.title">{{ issue.title }}</div>
<router-link
:to="`/issues/${issue.key}`"
class="text-link text-decoration-none font-weight-bold text-label-medium"
draggable="false"
>
{{ issue.key }} {{ issue.key }}
</router-link> </router-link>
<span :title="issue.title">{{ issue.title }}</span> </div>
</v-list-item-title>
<template #append> <template #append>
<v-btn <v-btn
density="compact" density="compact"
+1 -1
View File
@@ -14,7 +14,7 @@ const tab = ref(0)
<v-tab value="projects" to="/settings/projects">Projects</v-tab> <v-tab value="projects" to="/settings/projects">Projects</v-tab>
</v-tabs> </v-tabs>
<div class="pa-6"> <div class="pa-4">
<router-view /> <router-view />
</div> </div>
</v-sheet> </v-sheet>
+2 -4
View File
@@ -9,19 +9,17 @@ const session = authClient.useSession()
</script> </script>
<template> <template>
<v-sheet rounded border class="pa-4 d-flex flex-column ga-4"> <div class="d-flex flex-column ga-2">
<div class="text-headline-medium text-uppercase">profile</div> <div class="text-headline-medium text-uppercase">profile</div>
<user-profile :user="session.data?.user" /> <user-profile :user="session.data?.user" />
<v-divider />
<password-change /> <password-change />
<v-divider />
<notification-settings /> <notification-settings />
<sessions-list /> <sessions-list />
</v-sheet> </div>
</template> </template>
<style scoped lang="scss"></style> <style scoped lang="scss"></style>