- Install Laravel 12 with Breeze (Vue stack + Inertia.js) - Configure Pest testing framework (5 tests passing) - Add Docker multi-stage build (PHP 8.3 + LibreOffice + ImageMagick) - Create docker-compose.yml with app + node services - Configure Vite for Docker hot-reload - Set app locale to 'de' (German) - Add Vue packages: @vueuse/core, vue-draggable-plus, vue3-dropzone - Update .env.example with all project vars - Relocate spike files: src/Cts/ → app/Cts/ (Laravel autoload) - Tests: 5 passed (14 assertions) - Vite build: successful - Docker: app container running Task: T1 - Laravel Scaffolding + Breeze Vue + Docker
27 lines
505 B
Vue
27 lines
505 B
Vue
<script setup>
|
|
import { onMounted, ref } from 'vue';
|
|
|
|
const model = defineModel({
|
|
type: String,
|
|
required: true,
|
|
});
|
|
|
|
const input = ref(null);
|
|
|
|
onMounted(() => {
|
|
if (input.value.hasAttribute('autofocus')) {
|
|
input.value.focus();
|
|
}
|
|
});
|
|
|
|
defineExpose({ focus: () => input.value.focus() });
|
|
</script>
|
|
|
|
<template>
|
|
<input
|
|
class="rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500"
|
|
v-model="model"
|
|
ref="input"
|
|
/>
|
|
</template>
|