ASCIInator/src/components/options/AsciiOptions.vue
dev c1cf06ed67 feat: initial commit — ASCIInator v0.1
Vue 3 + Vite + Tailwind frontend, Fastify API server, execa shell bridge.
All components built, server validated, 41 unit tests passing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 19:47:57 +00:00

41 lines
1.5 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script setup>
const props = defineProps({ flags: { type: Object, required: true } })
const emit = defineEmits(['update:flags'])
const set = (key, val) => emit('update:flags', { ...props.flags, [key]: val })
</script>
<template>
<div class="grid grid-cols-2 gap-3">
<label class="ascii-label">
Width
<input class="ascii-input" type="number" min="1" :value="flags.width"
@input="set('width', $event.target.value)" placeholder="auto" />
</label>
<label class="ascii-label">
Height
<input class="ascii-input" type="number" min="1" :value="flags.height"
@input="set('height', $event.target.value)" placeholder="auto" />
</label>
<label class="ascii-label">
Threshold (0255)
<input class="ascii-input" type="number" min="0" max="255" :value="flags.threshold"
@input="set('threshold', $event.target.value)" placeholder="128" />
</label>
<div class="ascii-label justify-center gap-3 flex-row items-center col-span-2">
<label class="flex items-center gap-2 cursor-pointer">
<input type="checkbox" :checked="flags.color"
@change="set('color', $event.target.checked)"
style="accent-color: var(--ascii-green)" />
Color
</label>
<label class="flex items-center gap-2 cursor-pointer">
<input type="checkbox" :checked="flags.braille"
@change="set('braille', $event.target.checked)"
style="accent-color: var(--ascii-green)" />
Braille
</label>
</div>
</div>
</template>