mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-18 05:02:14 +01:00
add format check, update prettier rules, apply rules consistently
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user