Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/homepage/commit/c2983197a0bba473b46c2b2789fe98347b6d99e0
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
20 additions and
1 deletions
@ -51,7 +51,8 @@
"wlan_users" : "WLAN Users" ,
"up" : "UP" ,
"down" : "DOWN" ,
"wait" : "Please wait"
"wait" : "Please wait" ,
"empty_data" : "Subsystem status unknown"
} ,
"docker" : {
"rx" : "RX" ,
@ -55,6 +55,8 @@ export default function Widget({ options }) {
const name = wan . gw _name ? ? defaultSite . desc ;
const uptime = wan [ "gw_system-stats" ] ? wan [ "gw_system-stats" ] . uptime : null ;
const dataEmpty = ! ( wan . show || lan . show || wlan . show || uptime ) ;
return (
< div className = "flex-none flex flex-row items-center mr-3 py-1.5" >
< div className = "flex flex-col" >
@ -64,6 +66,14 @@ export default function Widget({ options }) {
{ name }
< / div >
< / div >
{ dataEmpty && < div className = "flex flex-row ml-3 text-[8px] justify-between" >
< div className = "flex flex-row items-center justify-end" >
< div className = "flex flex-row" >
< BiError className = "w-4 h-4 text-theme-800 dark:text-theme-200" / >
< span className = "text-theme-800 dark:text-theme-200 text-xs" > { t ( "unifi.empty_data" ) } < / span >
< / div >
< / div >
< / div > }
< div className = "flex flex-row ml-3 text-[10px] justify-between" >
{ uptime && < div className = "flex flex-row" title = { t ( "unifi.uptime" ) } >
< div className = "pr-0.5 text-theme-800 dark:text-theme-200" >
@ -38,6 +38,14 @@ export default function Component({ service }) {
const uptime = wan [ "gw_system-stats" ] ? ` ${ t ( "common.number" , { value : wan [ "gw_system-stats" ] . uptime / 86400 , maximumFractionDigits : 1 } )} ${ t ( "unifi.days" ) } ` : null ;
if ( ! ( wan . show || lan . show || wlan . show || uptime ) ) {
return (
< Container service = { service } >
< Block value = { t ( "unifi.empty_data" ) } / >
< / Container >
)
}
return (
< Container service = { service } >
{ uptime && < Block label = "unifi.uptime" value = { uptime } / > }