ffmpeg-explorer/src/Input.svelte

31 lines
536 B
Svelte
Raw Normal View History

2023-08-18 17:23:56 -04:00
<script>
2023-08-19 17:31:55 -04:00
import { inputs } from "./stores.js";
export let filename = "punch.mp4";
export let index;
2023-08-18 17:23:56 -04:00
2023-08-19 17:31:55 -04:00
function remove() {
$inputs.splice(index, 1);
$inputs = $inputs;
}
2023-08-18 17:23:56 -04:00
</script>
<div>
2023-08-19 17:31:55 -04:00
<select bind:value={filename}>
<option value="punch.mp4">punch.mp4</option>
<option value="shoe.mp4">shoe.mp4</option>
</select>
<button on:click={remove}>X</button>
2023-08-18 17:23:56 -04:00
</div>
2023-08-19 17:31:55 -04:00
<style>
div {
margin-top: 10px;
margin-bottom: 10px;
display: flex;
}
select {
flex: 1;
margin-right: 10px;
}
</style>