federating my verse (iceshrimp & mastodon API compat, read-only)
This commit is contained in:
parent
8dc8190cdf
commit
da93978820
67 changed files with 2743 additions and 649 deletions
26
src/Error.svelte
Normal file
26
src/Error.svelte
Normal file
|
@ -0,0 +1,26 @@
|
|||
<script>
|
||||
export let msg = "";
|
||||
export let trace = "";
|
||||
</script>
|
||||
|
||||
<div class="error">
|
||||
{#if msg}
|
||||
<p class="msg">{@html msg}</p>
|
||||
{/if}
|
||||
{#if trace}
|
||||
<pre class="trace">{trace}</pre>
|
||||
{/if}
|
||||
<slot></slot>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.error {
|
||||
margin-top: 16px;
|
||||
padding: 20px 32px;
|
||||
border: 1px solid #8884;
|
||||
border-radius: 16px;
|
||||
background-color: var(--bg1);
|
||||
}
|
||||
|
||||
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue