Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/scrutiny/commit/f4f5d16b4ac5ab4970adf69a7f54d4ac6316b908
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
11 additions and
11 deletions
@ -52,7 +52,7 @@ export class TreoConfigService
//Store the config in localstorage
localStorage . setItem ( SCRUTINY_CONFIG_LOCAL_STORAGE_KEY , JSON . stringify ( config ) ) ;
config . theme = this . determineTheme ( config ) ;
// Execute the observable
@ -73,7 +73,7 @@ export class TreoConfigService
* Checks if theme should be set to dark based on config & system settings
* /
private determineTheme ( config :AppConfig ) : string {
return ( config . darkMod eUseSystem && this . systemPrefersDark ) ? "dark" : config . theme ;
return ( config . them eUseSystem && this . systemPrefersDark ) ? "dark" : config . theme ;
}
// -----------------------------------------------------------------------------------------------------
@ -18,7 +18,7 @@ export interface AppConfig
temperatureUnit : string ;
darkMod eUseSystem: boolean ;
them eUseSystem: boolean ;
}
/ * *
@ -38,6 +38,6 @@ export const appConfig: AppConfig = {
temperatureUnit : "celsius" ,
darkMod eUseSystem: true ,
them eUseSystem: true ,
} ;
@ -3,10 +3,10 @@
< div class = "flex flex-col p-8 pb-0 overflow-hidden" >
< div class = "flex flex-col gt-md:flex-row" >
< mat-slide-toggle class = "mb-2" [ ( ngModel ) ] = " darkMod eUseSystem" > Use system settings for dark mode< / mat-slide-toggle >
< p [ class . text-hint ] = " darkMod eUseSystem" >
< mat-slide-toggle class = "mb-2" [ ( ngModel ) ] = " them eUseSystem" > Use system settings for dark mode< / mat-slide-toggle >
< p [ class . text-hint ] = " them eUseSystem" >
Theme:
< mat-button-toggle-group class = "ml-2" # group = "matButtonToggleGroup" [ ( ngModel ) ] = " theme " [ disabled ] = " darkMod eUseSystem" >
< mat-button-toggle-group class = "ml-2" # group = "matButtonToggleGroup" [ ( ngModel ) ] = " theme " [ disabled ] = " them eUseSystem" >
< mat-button-toggle value = "light" aria-label = "Light mode" >
< mat-icon > light_mode< / mat-icon >
< / mat-button-toggle >
@ -14,7 +14,7 @@ export class DashboardSettingsComponent implements OnInit {
dashboardDisplay : string ;
dashboardSort : string ;
temperatureUnit : string ;
darkMod eUseSystem: boolean ;
them eUseSystem: boolean ;
theme : string ;
// Private
@ -37,11 +37,11 @@ export class DashboardSettingsComponent implements OnInit {
this . dashboardDisplay = config . dashboardDisplay ;
this . dashboardSort = config . dashboardSort ;
this . temperatureUnit = config . temperatureUnit ;
this . darkModeUseSystem = config . darkMod eUseSystem;
this . themeUseSystem = config . them eUseSystem;
this . theme = config . theme ;
} ) ;
}
saveSettings ( ) : void {
@ -49,7 +49,7 @@ export class DashboardSettingsComponent implements OnInit {
dashboardDisplay : this.dashboardDisplay ,
dashboardSort : this.dashboardSort ,
temperatureUnit : this.temperatureUnit ,
darkModeUseSystem: this.darkMod eUseSystem,
themeUseSystem: this.them eUseSystem,
theme : this.theme
}
this . _configService . config = newSettings