From d92fc4cf6e78e66e1091909506e780ba4d422471 Mon Sep 17 00:00:00 2001 From: koziavin Date: Fri, 20 Jun 2025 16:53:15 +0400 Subject: [PATCH] fix --- nuxt.config.ts | 23 +++---- pages/books/[slug].vue | 135 ++++++++++++++++------------------------- 2 files changed, 63 insertions(+), 95 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index f4f4ff3..f277112 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,41 +1,42 @@ -import config from "./config"; +import config from './config' -import { fileURLToPath, URL } from "node:url"; -import head from "./config/head"; +import { fileURLToPath, URL } from 'node:url' +import head from './config/head' // import sitemap from "./config/sitemap"; // https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ - compatibilityDate: "2025-05-15", + compatibilityDate: '2025-05-15', devtools: { enabled: true }, devServer: { - host: "localhost", + host: 'localhost', port: 4002, }, nitro: { output: { - dir: "./dist", + dir: './dist', }, }, alias: { - "@": fileURLToPath(new URL("./", import.meta.url)), + '@': fileURLToPath(new URL('./', import.meta.url)), }, - css: ["@/assets/css/tailwind.css"], + css: ['@/assets/css/tailwind.css'], ...config, htmlValidator: { usePrettier: true, - logLevel: "error", + logLevel: 'error', failOnError: false, }, app: { head: { + title: 'Vino Galante', htmlAttrs: { - lang: "ru", + lang: 'ru', }, ...head, }, }, -}); +}) diff --git a/pages/books/[slug].vue b/pages/books/[slug].vue index 58edf0d..1006a7d 100644 --- a/pages/books/[slug].vue +++ b/pages/books/[slug].vue @@ -16,11 +16,7 @@
- + {{ book.title }} @@ -41,9 +37,7 @@
- {{ book.price }}  + {{ book.price }}  ruble
@@ -59,9 +53,7 @@
-
    +
    • страниц @@ -69,10 +61,7 @@
    • - иллюстраций + иллюстраций {{ book.illust }} @@ -88,14 +77,9 @@
      -
        +
        • - +
          - - Читай отрывок - + Читай отрывок
        • - +
          - - Скачай отрывок - + Скачай отрывок
        • @@ -135,12 +112,7 @@ class="flex flex-col items-center gap-3 cursor-pointer" >
          - Содержание + Содержание
          Содержание @@ -153,9 +125,7 @@
          - - Что ты узнаешь - + Что ты узнаешь
          • - Или купи на ЛитРес -
            Реферальная ссылка для поддержки автора
            @@ -188,59 +155,59 @@