Skip to content

Commit dc2f8d0

Browse files
committed
test(ascent-vue): restore template smoke checks
1 parent de5cfe3 commit dc2f8d0

37 files changed

Lines changed: 420 additions & 424 deletions

templates/ascent-vue/api/controllers/security/disable-2fa.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ module.exports = {
6565
method === 'all'
6666
? 'All two-factor authentication methods'
6767
: method === 'totp'
68-
? 'Authenticator app (TOTP)'
69-
: 'Email verification (2FA)'
68+
? 'Authenticator app (TOTP)'
69+
: 'Email verification (2FA)'
7070

7171
this.req.flash('success', `${methodDisplayName} disabled successfully`)
7272
return '/settings/security'

templates/ascent-vue/api/helpers/passkey/verify-authentication.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,8 @@ module.exports = {
100100
requireUserVerification: true
101101
}
102102

103-
const verification = await verifyAuthenticationResponse(
104-
verificationOptions
105-
)
103+
const verification =
104+
await verifyAuthenticationResponse(verificationOptions)
106105

107106
if (!verification.verified) {
108107
return exits.verificationFailed()

templates/ascent-vue/api/hooks/custom/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ module.exports = function defineCustomHook(sails) {
5454
}
5555

5656
// Add avatar URL using helper
57-
user.currentAvatarUrl = await sails.helpers.user.getAvatarUrl(
58-
user
59-
)
57+
user.currentAvatarUrl =
58+
await sails.helpers.user.getAvatarUrl(user)
6059

6160
return user
6261
})

templates/ascent-vue/api/models/Team.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ module.exports = {
6868
beforeCreate: async function (valuesToSet, proceed) {
6969
// Generate invite token if not provided
7070
if (!valuesToSet.inviteToken) {
71-
valuesToSet.inviteToken = await sails.helpers.strings.random(
72-
'url-friendly'
73-
)
71+
valuesToSet.inviteToken =
72+
await sails.helpers.strings.random('url-friendly')
7473
}
7574
return proceed()
7675
}

templates/ascent-vue/assets/js/components/BackupCodesModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ function handleSavedCodes() {
5454
<!-- Header -->
5555
<div class="text-center">
5656
<div
57-
class="mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-success-100"
57+
class="bg-success-100 mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full"
5858
>
59-
<i class="pi pi-key text-xl text-success-600" />
59+
<i class="pi pi-key text-success-600 text-xl" />
6060
</div>
6161
<h2 class="mb-2 text-xl font-semibold text-gray-900">
6262
{{

templates/ascent-vue/assets/js/components/Chips.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function handleBlur() {
9191
<template>
9292
<div :class="['chips-container', props.class]">
9393
<div
94-
class="flex flex-wrap items-center gap-2 rounded-md border border-surface-300 bg-surface-0 px-3 py-1 min-h-10 focus-within:border-primary-500 focus-within:ring-1 focus-within:ring-primary-500 dark:border-surface-600 dark:bg-surface-900"
94+
class="border-surface-300 bg-surface-0 focus-within:border-primary-500 focus-within:ring-primary-500 dark:border-surface-600 dark:bg-surface-900 flex min-h-10 flex-wrap items-center gap-2 rounded-md border px-3 py-1 focus-within:ring-1"
9595
>
9696
<!-- Render existing chips -->
9797
<Chip

templates/ascent-vue/assets/js/components/EmailTwoFactorSetupModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function handleClose() {
108108
</div>
109109

110110
<div
111-
class="flex flex-col justify-end space-y-3 sm:flex-row sm:space-x-3 sm:space-y-0"
111+
class="flex flex-col justify-end space-y-3 sm:flex-row sm:space-y-0 sm:space-x-3"
112112
>
113113
<SecondaryButton
114114
type="button"

templates/ascent-vue/assets/js/components/ImageUpload.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function openFileDialog() {
7575
7676
<!-- Edit button overlay -->
7777
<div
78-
class="absolute -right-4 -top-2 overflow-hidden rounded-full bg-white shadow-md"
78+
class="absolute -top-2 -right-4 overflow-hidden rounded-full bg-white shadow-md"
7979
>
8080
<SecondaryButton
8181
icon="pi pi-pencil"

templates/ascent-vue/assets/js/components/ManagePasskeysModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function getDeviceIcon(transports) {
157157
<div class="flex min-w-0 flex-1 items-center space-x-4">
158158
<div class="shrink-0">
159159
<div
160-
class="flex h-10 w-10 items-center justify-center rounded-lg bg-brand-50"
160+
class="bg-brand-50 flex h-10 w-10 items-center justify-center rounded-lg"
161161
>
162162
<i
163163
:class="[

templates/ascent-vue/assets/js/components/Sidebar.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const avatarStyle = computed(() => ({
7373
<!-- Mobile overlay -->
7474
<div
7575
v-if="isOpen"
76-
class="fixed inset-0 z-40 bg-gray-600 bg-opacity-50 lg:hidden"
76+
class="bg-opacity-50 fixed inset-0 z-40 bg-gray-600 lg:hidden"
7777
@click="emit('toggle')"
7878
/>
7979

@@ -89,7 +89,7 @@ const avatarStyle = computed(() => ({
8989
<Link href="/" class="group flex items-center space-x-2">
9090
<div class="relative">
9191
<div
92-
class="absolute inset-0 scale-110 rounded-xl bg-brand-200/20 opacity-0 blur-sm transition-opacity group-hover:opacity-100"
92+
class="bg-brand-200/20 absolute inset-0 scale-110 rounded-xl opacity-0 blur-sm transition-opacity group-hover:opacity-100"
9393
/>
9494
<img
9595
src="/images/logo.svg"
@@ -120,7 +120,7 @@ const avatarStyle = computed(() => ({
120120
'group flex items-center rounded-lg px-3 py-2 text-sm font-medium transition-all duration-200',
121121
isActiveRoute(item.href)
122122
? 'bg-brand-100 text-brand-700 shadow-sm'
123-
: 'text-gray-700 hover:bg-gray-50 hover:text-brand-600'
123+
: 'hover:text-brand-600 text-gray-700 hover:bg-gray-50'
124124
]"
125125
:prefetch="item.prefetch"
126126
:cache-for="item.cacheFor"
@@ -131,7 +131,7 @@ const avatarStyle = computed(() => ({
131131
'mr-3 text-lg transition-colors',
132132
isActiveRoute(item.href)
133133
? 'text-brand-600'
134-
: 'text-gray-400 group-hover:text-brand-500'
134+
: 'group-hover:text-brand-500 text-gray-400'
135135
]"
136136
/>
137137
{{ item.name }}
@@ -142,7 +142,7 @@ const avatarStyle = computed(() => ({
142142
<div class="pt-6">
143143
<div class="mb-3 px-3">
144144
<h3
145-
class="text-xs font-semibold uppercase tracking-wider text-gray-500"
145+
class="text-xs font-semibold tracking-wider text-gray-500 uppercase"
146146
>
147147
Settings
148148
</h3>
@@ -156,7 +156,7 @@ const avatarStyle = computed(() => ({
156156
'group flex items-center rounded-lg px-3 py-2 text-sm font-medium transition-all duration-200',
157157
isActiveRoute(item.href)
158158
? 'bg-brand-100 text-brand-700 shadow-sm'
159-
: 'text-gray-700 hover:bg-gray-50 hover:text-brand-600'
159+
: 'hover:text-brand-600 text-gray-700 hover:bg-gray-50'
160160
]"
161161
:prefetch="item.prefetch"
162162
:cache-for="item.cacheFor"
@@ -167,7 +167,7 @@ const avatarStyle = computed(() => ({
167167
'mr-3 text-lg transition-colors',
168168
isActiveRoute(item.href)
169169
? 'text-brand-600'
170-
: 'text-gray-400 group-hover:text-brand-500'
170+
: 'group-hover:text-brand-500 text-gray-400'
171171
]"
172172
/>
173173
{{ item.name }}

0 commit comments

Comments
 (0)