T17: sweep of the WebApp after the feature-parity work
Removed the legacy indicator layout, unused chart helpers, styles and exports, the card-actions component, fetch-all and explanatory comments; one pager shared by the four worklists, shared filter-row styles, one FHIR name and CURP reader, downloads through export/, the concept-map editor on Material controls.
This commit is contained in:
@@ -16,7 +16,6 @@ export const DOMAINS: Record<Domain, string> = {
|
||||
tea: 'Trastorno del espectro autista',
|
||||
};
|
||||
|
||||
/** The shell: header (logo, the domain's title and switcher, or the section), page, footer. */
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
imports: [
|
||||
@@ -43,17 +42,13 @@ export class App {
|
||||
),
|
||||
{ initialValue: '' },
|
||||
);
|
||||
/** The section and domain of a page that has one (indicators, governance): the switcher
|
||||
* moves between that section's domains. */
|
||||
private readonly place = computed(() => /^\/(indicadores|gobernanza)\/(\w+)/.exec(this.url()));
|
||||
protected readonly section = computed(() => this.place()?.[1] ?? 'indicadores');
|
||||
protected readonly domain = computed(() => this.place()?.[2] as Domain | undefined);
|
||||
protected readonly others = computed(() =>
|
||||
(this.domains.value() ?? []).filter((d) => d !== this.domain() && this.auth.canSee(d)),
|
||||
);
|
||||
/** The sign-in page shows only the brand. */
|
||||
protected readonly onLogin = computed(() => this.url().startsWith('/login'));
|
||||
/** Where "Indicadores" goes: the first domain this user may see. */
|
||||
protected readonly home = computed(
|
||||
() => `/indicadores/${this.auth.user()?.domains[0] ?? 'cacu'}`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user