init
This commit is contained in:
@@ -2,12 +2,7 @@
|
||||
<div class="card">
|
||||
<div class="mb-4 flex items-center justify-between">
|
||||
<h2 class="text-lg font-semibold text-gray-900">2. Выберите материал</h2>
|
||||
<button @click="$emit('openAdvisor')" class="btn-secondary !py-1.5 !px-3 !text-xs">
|
||||
<svg class="mr-1.5 h-3.5 w-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09z" />
|
||||
</svg>
|
||||
Помочь выбрать
|
||||
</button>
|
||||
<!-- AI advisor button hidden -->
|
||||
</div>
|
||||
|
||||
<div v-for="(label, cat) in categories" :key="cat" class="mb-5 last:mb-0">
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<div class="grid grid-cols-1 gap-6 lg:grid-cols-3">
|
||||
<div class="lg:col-span-2 space-y-6">
|
||||
<FileUploader />
|
||||
<MaterialPicker @open-advisor="showAdvisor = true" />
|
||||
<MaterialPicker />
|
||||
<PrintSettings />
|
||||
|
||||
<div>
|
||||
@@ -104,23 +104,20 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<AiAdvisor :open="showAdvisor" @close="showAdvisor = false" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, computed } from 'vue'
|
||||
import { computed } from 'vue'
|
||||
import { useCalculatorStore } from '../stores/calculator'
|
||||
import HeroSection from '../components/HeroSection.vue'
|
||||
import FileUploader from '../components/FileUploader.vue'
|
||||
import MaterialPicker from '../components/MaterialPicker.vue'
|
||||
import PrintSettings from '../components/PrintSettings.vue'
|
||||
import PriceResult from '../components/PriceResult.vue'
|
||||
import AiAdvisor from '../components/AiAdvisor.vue'
|
||||
import { articles } from '../data/articles'
|
||||
|
||||
const store = useCalculatorStore()
|
||||
const showAdvisor = ref(false)
|
||||
|
||||
const latestArticles = computed(() =>
|
||||
[...articles].sort((a, b) => b.date.localeCompare(a.date)).slice(0, 3)
|
||||
|
||||
Reference in New Issue
Block a user