feat: brand new Modal component (#41)

* feat: brand new Modal component

* Apply suggestions from code review

Co-authored-by: Ax333l <main@axelen.xyz>
This commit is contained in:
mirgb
2022-12-10 12:11:17 -05:00
committed by GitHub
parent 31047103d3
commit 2e71974503
9 changed files with 264 additions and 80 deletions

View File

@ -1,26 +0,0 @@
<script lang="ts">
import * as settings from '../../data/api/settings';
import { clear } from '../../data/api/cache';
let url = settings.api_base_url();
function handler() {
clear();
settings.set_api_base_url(url);
location.reload(true);
}
</script>
<section class="settings">
<input name="api-url" type="text" bind:value={url} />
<button on:click={handler}>Save</button>
</section>
<section class="cache">
<button on:click={clear}>Clear cache</button>
</section>
<style>
.settings {
padding-top: 5rem;
}
</style>