2021-10-20 10:54:20 +00:00
< template >
< div class = "d-flex justify-content-center align-items-center" >
< div class = "logo d-flex flex-column justify-content-center align-items-center" >
< object class = "my-4" width = "200" height = "200" data = "/icon.svg" / >
< div class = "fs-4 fw-bold" > Uptime Kuma < / div >
< div > { { $t ( "Version" ) } } : { { $root . info . version } } < / div >
2022-03-07 08:24:24 +00:00
< div class = "my-3 update-link" > < a href = "https://github.com/louislam/uptime-kuma/releases" target = "_blank" rel = "noopener" > { { $t ( "Check Update On GitHub" ) } } < / a > < / div >
< div class = "mt-1" >
< div class = "form-check" >
< label > < input v-model = "settings.checkUpdate" type="checkbox" @change="saveSettings()" / > Show update if available < / label >
< / div >
< div class = "form-check" >
< label > < input v-model = "settings.checkBeta" type="checkbox" :disabled="!settings.checkUpdate" @change="saveSettings()" / > Also check beta release < / label >
< / div >
< / div >
2021-10-20 10:54:20 +00:00
< / div >
< / div >
< / template >
< script >
export default {
2022-03-07 08:24:24 +00:00
computed : {
settings ( ) {
return this . $parent . $parent . $parent . settings ;
} ,
saveSettings ( ) {
return this . $parent . $parent . $parent . saveSettings ;
} ,
settingsLoaded ( ) {
return this . $parent . $parent . $parent . settingsLoaded ;
} ,
} ,
watch : {
2021-10-20 10:54:20 +00:00
2022-03-07 08:24:24 +00:00
}
2021-10-20 10:54:20 +00:00
} ;
< / script >
< style lang = "scss" scoped >
. logo {
margin : 4 em 1 em ;
}
. update - link {
font - size : 0.9 em ;
}
< / style >