code cleanup
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<script>
|
||||
import {onMount} from 'svelte';
|
||||
|
||||
import { api } from '../urls.svelte.js';
|
||||
import {t} from '../translations.svelte.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
<script>
|
||||
import {t} from '../translations.svelte.js';
|
||||
|
||||
let { task, onSelect = (task) => {} } = $props();
|
||||
let {
|
||||
task,
|
||||
onSelect = (task) => {}
|
||||
} = $props();
|
||||
</script>
|
||||
|
||||
<div>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<style>
|
||||
input{width:100px}
|
||||
div{
|
||||
min-width: 40px;
|
||||
min-width: 40px;
|
||||
min-height: 20px;
|
||||
}
|
||||
.editable:hover{
|
||||
|
||||
Reference in New Issue
Block a user