code cleanup

This commit is contained in:
2025-07-30 09:03:47 +02:00
parent a77efb4e41
commit 631a527a5d
18 changed files with 257 additions and 184 deletions

View File

@@ -1,5 +1,6 @@
<script>
import {onMount} from 'svelte';
import { api } from '../urls.svelte.js';
import {t} from '../translations.svelte.js';

View File

@@ -1,7 +1,10 @@
<script>
import {t} from '../translations.svelte.js';
let { task, onSelect = (task) => {} } = $props();
let {
task,
onSelect = (task) => {}
} = $props();
</script>
<div>

View File

@@ -40,8 +40,8 @@
const url = api('markdown/render');
const resp = await fetch(url,{
credentials: 'include',
method: 'POST',
body: editValue.source
method : 'POST',
body : editValue.source
});
editValue.rendered = await resp.text();
}

View File

@@ -3,9 +3,9 @@
import {t} from '../translations.svelte.js';
let {
caption = t('select_permission'),
selected = $bindable(0),
onchange = (val) => console.log('changed to',val),
caption = t('select_permission'),
selected = $bindable(0),
onchange = (val) => console.log('changed to',val),
permissions = null
} = $props();
@@ -24,4 +24,4 @@
</select>
{:else}
<span>{message}</span>
{/if}
{/if}

View File

@@ -38,7 +38,7 @@
<style>
input{width:100px}
div{
min-width: 40px;
min-width: 40px;
min-height: 20px;
}
.editable:hover{