add format check, update prettier rules, apply rules consistently

This commit is contained in:
Gregor Vostrak
2025-07-29 18:58:31 +02:00
parent b11672732b
commit a3d7cdaf4d
323 changed files with 3728 additions and 5579 deletions

View File

@@ -48,25 +48,20 @@ const closeModal = () => {
<template #title> Browser Sessions </template>
<template #description>
Manage and log out your active sessions on other browsers and
devices.
Manage and log out your active sessions on other browsers and devices.
</template>
<template #content>
<div class="max-w-xl text-sm text-text-secondary">
If necessary, you may log out of all of your other browser
sessions across all of your devices. Some of your recent
sessions are listed below; however, this list may not be
exhaustive. If you feel your account has been compromised, you
should also update your password.
If necessary, you may log out of all of your other browser sessions across all of
your devices. Some of your recent sessions are listed below; however, this list may
not be exhaustive. If you feel your account has been compromised, you should also
update your password.
</div>
<!-- Other Browser Sessions -->
<div v-if="sessions.length > 0" class="mt-5 space-y-6">
<div
v-for="(session, i) in sessions"
:key="i"
class="flex items-center">
<div v-for="(session, i) in sessions" :key="i" class="flex items-center">
<div>
<svg
v-if="session.agent.is_desktop"
@@ -99,17 +94,9 @@ const closeModal = () => {
<div class="ms-3">
<div class="text-sm text-text-primary font-medium">
{{
session.agent.platform
? session.agent.platform
: 'Unknown'
}}
{{ session.agent.platform ? session.agent.platform : 'Unknown' }}
-
{{
session.agent.browser
? session.agent.browser
: 'Unknown'
}}
{{ session.agent.browser ? session.agent.browser : 'Unknown' }}
</div>
<div>
@@ -121,9 +108,7 @@ const closeModal = () => {
class="text-green-500 font-semibold"
>This device</span
>
<span v-else
>Last active {{ session.last_active }}</span
>
<span v-else>Last active {{ session.last_active }}</span>
</div>
</div>
</div>
@@ -135,9 +120,7 @@ const closeModal = () => {
Log Out Other Browser Sessions
</PrimaryButton>
<ActionMessage :on="form.recentlySuccessful" class="ms-3">
Done.
</ActionMessage>
<ActionMessage :on="form.recentlySuccessful" class="ms-3"> Done. </ActionMessage>
</div>
<!-- Log Out Other Devices Confirmation Modal -->
@@ -145,9 +128,8 @@ const closeModal = () => {
<template #title> Log Out Other Browser Sessions </template>
<template #content>
Please enter your password to confirm you would like to log
out of your other browser sessions across all of your
devices.
Please enter your password to confirm you would like to log out of your other
browser sessions across all of your devices.
<div class="mt-4">
<TextInput
@@ -159,16 +141,12 @@ const closeModal = () => {
autocomplete="current-password"
@keyup.enter="logoutOtherBrowserSessions" />
<InputError
:message="form.errors.password"
class="mt-2" />
<InputError :message="form.errors.password" class="mt-2" />
</div>
</template>
<template #footer>
<SecondaryButton @click="closeModal">
Cancel
</SecondaryButton>
<SecondaryButton @click="closeModal"> Cancel </SecondaryButton>
<PrimaryButton
class="ms-3"