2023-01-04 14:57:12 +01:00
< script setup lang = "ts" >
2023-01-12 01:13:52 +01:00
import type { mastodon } from 'masto'
2023-01-04 14:57:12 +01:00
const { t } = useI18n ( )
useHeadFixed ( {
title : ( ) => ` ${ t ( 'settings.interface.label' ) } | ${ t ( 'nav.settings' ) } ` ,
} )
2023-01-12 01:13:52 +01:00
const loremStatus = computed ( ( ) => {
if ( currentUser . value ) {
const loremStatus : mastodon . v1 . Status = {
account : currentUser . value ! . account ,
content : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lobortis justo ut dapibus pretium. In vitae massa pulvinar, auctor ipsum nec, mattis massa. Praesent convallis.' ,
emojis : currentCustomEmojis . value . emojis ,
id : '0' ,
favouritesCount : 0 ,
repliesCount : 0 ,
reblogsCount : 0 ,
sensitive : false ,
uri : '' ,
application : { name : 'Elk' } ,
createdAt : '2021-01-01T00:00:00.000Z' ,
editedAt : null ,
visibility : 'public' ,
mentions : [ ] ,
tags : [ ] ,
mediaAttachments : [ ] ,
spoilerText : '' ,
}
return loremStatus
}
} )
2023-01-04 14:57:12 +01:00
< / script >
2022-12-27 00:04:24 +01:00
< template >
2022-12-28 02:12:56 +01:00
< MainContent back -on -small -screen >
2022-12-27 00:04:24 +01:00
< template # title >
< div text -lg font -bold flex items -center gap -2 @click ="$scrollToTop" >
< span > { { $t ( 'settings.interface.label' ) } } < / span >
< / div >
< / template >
2022-12-28 00:03:50 +01:00
< div p6 flex = "~ col gap6" >
2023-01-12 01:13:52 +01:00
< div v-if = "loremStatus" border="~ base rounded" bg -active >
< StatusCard :status = "loremStatus" / >
< / div >
2022-12-28 00:03:50 +01:00
< label space -y -2 >
< p font -medium > { { $t ( 'settings.interface.font_size' ) } } < / p >
< SettingsFontSize select -settings / >
< / label >
2022-12-29 20:27:11 +01:00
< div space -y -2 >
< p font -medium >
{ { $t ( 'settings.interface.color_mode' ) } }
< / p >
2022-12-28 00:03:50 +01:00
< SettingsColorMode / >
2022-12-29 20:27:11 +01:00
< / div >
2022-12-27 00:04:24 +01:00
< / div >
< / MainContent >
< / template >