mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-04-20 09:11:03 +00:00
32 lines
631 B
Svelte
32 lines
631 B
Svelte
|
<script>
|
||
|
import CodeExample from '../../components/code-example.svelte';
|
||
|
|
||
|
export let collection;
|
||
|
|
||
|
let remove = '';
|
||
|
$: code = `db.${collection.key}.remove(${remove});`;
|
||
|
|
||
|
function insert() {}
|
||
|
</script>
|
||
|
|
||
|
<form on:submit|preventDefault={insert}>
|
||
|
<CodeExample {code} />
|
||
|
|
||
|
<label class="field">
|
||
|
<textarea cols="30" rows="10" bind:value={remove} placeholder={'{}'} class="code"></textarea>
|
||
|
</label>
|
||
|
|
||
|
<div class="flex">
|
||
|
<div></div>
|
||
|
<button type="submit" class="btn">Remove</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
<style>
|
||
|
.flex {
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
margin-top: 0.5rem;
|
||
|
}
|
||
|
</style>
|