mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-09-01 11:28:58 +00:00
relayout folders
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { computed, Injectable, signal } from '@angular/core';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class SettingsService {
|
||||
public isDummySite: boolean = false;
|
||||
public configSchemaPath = signal('/config.schema.json');
|
||||
public modulesSchemaPath = signal('/modules.schema.json');
|
||||
public routesSchemaPath = signal('/routes.schema.json');
|
||||
public processorsSchemaPath = signal('/processors.schema.json');
|
||||
public baseUrl = signal(window.location.href);
|
||||
|
||||
public configSchemaUrl = computed(() => {
|
||||
return new URL(this.configSchemaPath(), this.baseUrl());
|
||||
});
|
||||
|
||||
public modulesSchemaUrl = computed(() => {
|
||||
return new URL(this.modulesSchemaPath(), this.baseUrl());
|
||||
});
|
||||
|
||||
public routesSchemaUrl = computed(() => {
|
||||
return new URL(this.routesSchemaPath(), this.baseUrl());
|
||||
});
|
||||
|
||||
public processorsSchemaUrl = computed(() => {
|
||||
return new URL(this.processorsSchemaPath(), this.baseUrl());
|
||||
});
|
||||
|
||||
constructor() {}
|
||||
|
||||
updateBaseUrl(baseUrl: string) {
|
||||
this.baseUrl.set(baseUrl);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user