build: add name to components which failed lint check

This commit is contained in:
2021-11-19 21:44:36 +01:00
parent 9af6f37d74
commit 0b8f77372f
19 changed files with 69 additions and 249 deletions
+1
View File
@@ -8,6 +8,7 @@
import { getDarkMode } from '../../utils/localStorage'
export default {
name: 'ThemedLayout',
setup(props, context) {
context.root.$vuetify.theme.dark = getDarkMode()
}
+6 -10
View File
@@ -103,26 +103,22 @@ import Themed from './components/themed'
import { useAuth } from '../plugins/auth'
export default {
name: 'DefaultLayout',
components: {
Themed
},
setup(props, context) {
const { router } = useRouter()
const { title } = useState(['title'])
const onRedirectCallback = appState => {
const onRedirectCallback = (appState) => {
router.push(
appState && appState.targetUrl
? appState.targetUrl
: window.location.pathname
)
}
const {
loading,
isAuthenticated,
user,
loginWithRedirect,
logout
} = useAuth(onRedirectCallback)
const { loading, isAuthenticated, user, loginWithRedirect, logout } =
useAuth(onRedirectCallback)
const doLogin = () => {
loginWithRedirect.value()
}
@@ -133,14 +129,14 @@ export default {
}
const darkMode = computed({
get: () => context.root.$vuetify.theme.dark,
set: val => {
set: (val) => {
context.root.$vuetify.theme.dark = val
setDarkMode(context.root.$vuetify.theme.dark)
}
})
const locale = computed({
get: () => context.root.$i18n.locale,
set: newLocale => {
set: (newLocale) => {
if (newLocale === 'en') {
dayjs.locale(newLocale)
} else if (newLocale === 'sv') {