biome format --write

This commit is contained in:
Henry Jameson 2026-01-06 16:22:52 +02:00
commit 9262e803ec
415 changed files with 54076 additions and 17419 deletions

View file

@ -4,39 +4,37 @@ import { mapStores, mapActions, mapState as mapPiniaState } from 'pinia'
import { useOAuthStore } from 'src/stores/oauth.js'
import { useAuthFlowStore } from 'src/stores/auth_flow.js'
import { library } from '@fortawesome/fontawesome-svg-core'
import {
faTimes
} from '@fortawesome/free-solid-svg-icons'
import { faTimes } from '@fortawesome/free-solid-svg-icons'
library.add(
faTimes
)
library.add(faTimes)
export default {
data: () => ({
code: null,
error: false
error: false,
}),
computed: {
...mapPiniaState(useAuthFlowStore, {
authSettings: store => store.settings
authSettings: (store) => store.settings,
}),
...mapStores(useOAuthStore),
...mapState({
instance: 'instance',
})
}),
},
methods: {
...mapActions(useAuthFlowStore, ['requireTOTP', 'abortMFA', 'login']),
clearError () { this.error = false },
clearError() {
this.error = false
},
focusOnCodeInput () {
focusOnCodeInput() {
const codeInput = this.$refs.codeInput
codeInput.focus()
codeInput.setSelectionRange(0, codeInput.value.length)
},
submit () {
submit() {
const { clientId, clientSecret } = this.oauthStore
const data = {
@ -44,7 +42,7 @@ export default {
clientSecret,
instance: this.instance.server,
mfaToken: this.authSettings.mfa_token,
code: this.code
code: this.code,
}
mfaApi.verifyRecoveryCode(data).then((result) => {
@ -59,6 +57,6 @@ export default {
this.$router.push({ name: 'friends' })
})
})
}
}
},
},
}

View file

@ -4,39 +4,37 @@ import { mapStores, mapActions, mapState as mapPiniaState } from 'pinia'
import { useOAuthStore } from 'src/stores/oauth.js'
import { useAuthFlowStore } from 'src/stores/auth_flow.js'
import { library } from '@fortawesome/fontawesome-svg-core'
import {
faTimes
} from '@fortawesome/free-solid-svg-icons'
import { faTimes } from '@fortawesome/free-solid-svg-icons'
library.add(
faTimes
)
library.add(faTimes)
export default {
data: () => ({
code: null,
error: false
error: false,
}),
computed: {
...mapPiniaState(useAuthFlowStore, {
authSettings: store => store.settings
authSettings: (store) => store.settings,
}),
...mapStores(useOAuthStore),
...mapState({
instance: 'instance',
})
}),
},
methods: {
...mapActions(useAuthFlowStore, ['requireRecovery', 'abortMFA', 'login']),
clearError () { this.error = false },
clearError() {
this.error = false
},
focusOnCodeInput () {
focusOnCodeInput() {
const codeInput = this.$refs.codeInput
codeInput.focus()
codeInput.setSelectionRange(0, codeInput.value.length)
},
submit () {
submit() {
const { clientId, clientSecret } = this.oauthStore
const data = {
@ -44,7 +42,7 @@ export default {
clientSecret,
instance: this.instance.server,
mfaToken: this.authSettings.mfa_token,
code: this.code
code: this.code,
}
mfaApi.verifyOTPCode(data).then((result) => {
@ -59,6 +57,6 @@ export default {
this.$router.push({ name: 'friends' })
})
})
}
}
},
},
}