relayout folders

This commit is contained in:
Joel Wetzell
2026-03-07 10:49:13 -06:00
parent f792ca9e85
commit 5f91889c10
32 changed files with 5 additions and 7 deletions
+35
View File
@@ -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);
}
}