This commit is contained in:
xds
2026-04-01 12:47:01 +03:00
parent 39f071bc38
commit bbc86ea1e4
2 changed files with 3 additions and 11 deletions

View File

@@ -2,12 +2,7 @@
<div class="card"> <div class="card">
<div class="mb-4 flex items-center justify-between"> <div class="mb-4 flex items-center justify-between">
<h2 class="text-lg font-semibold text-gray-900">2. Выберите материал</h2> <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"> <!-- AI advisor button hidden -->
<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>
</div> </div>
<div v-for="(label, cat) in categories" :key="cat" class="mb-5 last:mb-0"> <div v-for="(label, cat) in categories" :key="cat" class="mb-5 last:mb-0">

View File

@@ -12,7 +12,7 @@
<div class="grid grid-cols-1 gap-6 lg:grid-cols-3"> <div class="grid grid-cols-1 gap-6 lg:grid-cols-3">
<div class="lg:col-span-2 space-y-6"> <div class="lg:col-span-2 space-y-6">
<FileUploader /> <FileUploader />
<MaterialPicker @open-advisor="showAdvisor = true" /> <MaterialPicker />
<PrintSettings /> <PrintSettings />
<div> <div>
@@ -104,23 +104,20 @@
</div> </div>
</section> </section>
<AiAdvisor :open="showAdvisor" @close="showAdvisor = false" />
</div> </div>
</template> </template>
<script setup> <script setup>
import { ref, computed } from 'vue' import { computed } from 'vue'
import { useCalculatorStore } from '../stores/calculator' import { useCalculatorStore } from '../stores/calculator'
import HeroSection from '../components/HeroSection.vue' import HeroSection from '../components/HeroSection.vue'
import FileUploader from '../components/FileUploader.vue' import FileUploader from '../components/FileUploader.vue'
import MaterialPicker from '../components/MaterialPicker.vue' import MaterialPicker from '../components/MaterialPicker.vue'
import PrintSettings from '../components/PrintSettings.vue' import PrintSettings from '../components/PrintSettings.vue'
import PriceResult from '../components/PriceResult.vue' import PriceResult from '../components/PriceResult.vue'
import AiAdvisor from '../components/AiAdvisor.vue'
import { articles } from '../data/articles' import { articles } from '../data/articles'
const store = useCalculatorStore() const store = useCalculatorStore()
const showAdvisor = ref(false)
const latestArticles = computed(() => const latestArticles = computed(() =>
[...articles].sort((a, b) => b.date.localeCompare(a.date)).slice(0, 3) [...articles].sort((a, b) => b.date.localeCompare(a.date)).slice(0, 3)