web: base custom instance functionality

also:
- renamed processing tab in settings to "instances"
- improved override description
- prefer custom over override (and grey out the option)
- dedicated lib for all api safety warnings
- left aligned small popup with smaller icon
- ability to grey out settings category & toggle
This commit is contained in:
wukko
2024-08-30 17:15:05 +06:00
parent 70c1a85766
commit 33d6b5bd81
16 changed files with 278 additions and 39 deletions

View File

@@ -1,8 +1,10 @@
<script lang="ts">
import { page } from "$app/stores";
export let sectionId: string;
export let title: string;
export let sectionId: string;
export let disabled = false;
let animate = false;
@@ -17,6 +19,8 @@
id={sectionId}
class="settings-content"
class:animate
class:disabled
aria-hidden={disabled}
>
<h3 class="settings-content-title">{title}</h3>
<slot></slot>
@@ -29,6 +33,11 @@
gap: var(--padding);
padding: calc(var(--settings-padding) / 2);
border-radius: 18px;
transition: opacity 0.2s;
}
.settings-content.disabled {
opacity: 0.5;
}
.settings-content.animate {