add. Closes #8 #9

Open
levis wants to merge 11 commits from feature/8-add-payments into production
27 changed files with 487 additions and 71 deletions
Showing only changes of commit 42a6225e99 - Show all commits

BIN
download/Otryvok_1.pdf Normal file

Binary file not shown.

BIN
download/Otryvok_2.pdf Normal file

Binary file not shown.

View File

@ -49,8 +49,5 @@ export default defineNuxtConfig({
smtpPass: process.env.SMTP_PASS, smtpPass: process.env.SMTP_PASS,
}, },
modules: [ modules: [...config.modules],
...config.modules,
// ['nuxt-mail', ... ] // Модуль больше не нужен
],
}) })

View File

@ -26,6 +26,7 @@
"better-sqlite3": "^11.10.0", "better-sqlite3": "^11.10.0",
"crypto-js": "^4.2.0", "crypto-js": "^4.2.0",
"date-fns": "^4.1.0", "date-fns": "^4.1.0",
"express": "^5.1.0",
"husky": "^9.1.7", "husky": "^9.1.7",
"nodemailer": "^7.0.3", "nodemailer": "^7.0.3",
"nuxt": "^3.17.5", "nuxt": "^3.17.5",
@ -39,6 +40,7 @@
"@nuxt/eslint": "^1.4.1", "@nuxt/eslint": "^1.4.1",
"@nuxt/test-utils": "^3.11.3", "@nuxt/test-utils": "^3.11.3",
"@nuxtjs/tailwindcss": "^6.11.4", "@nuxtjs/tailwindcss": "^6.11.4",
"@types/express": "^5.0.3",
"@types/node": "^22.0.0", "@types/node": "^22.0.0",
"@types/nodemailer": "^6.4.17", "@types/nodemailer": "^6.4.17",
"@types/pg": "^8.15.4", "@types/pg": "^8.15.4",

View File

@ -104,7 +104,11 @@
</NuxtLink> </NuxtLink>
</li> </li>
<li class="flex flex-row items-center"> <li class="flex flex-row items-center">
<NuxtLink to="#" class="flex flex-col items-center gap-8 cursor-pointer"> <a
download
:href="book.download"
class="flex flex-col items-center gap-8 cursor-pointer"
>
<img <img
src="/img/svg/books/download.svg" src="/img/svg/books/download.svg"
alt="Скачай отрывок" alt="Скачай отрывок"
@ -113,7 +117,7 @@
/> />
<UiParagraph size="250" as="span"> Скачай отрывок </UiParagraph> <UiParagraph size="250" as="span"> Скачай отрывок </UiParagraph>
</NuxtLink> </a>
</li> </li>
<li class="flex flex-row items-center"> <li class="flex flex-row items-center">
<NuxtLink <NuxtLink
@ -167,7 +171,6 @@ import { useRoute, useRouter } from '#app'
import UiHeading from '@/components/Typography/UiHeading.vue' import UiHeading from '@/components/Typography/UiHeading.vue'
import UiParagraph from '@/components/Typography/UiParagraph.vue' import UiParagraph from '@/components/Typography/UiParagraph.vue'
import UiButton from '@/components/UiButton/UiButton.vue' import UiButton from '@/components/UiButton/UiButton.vue'
import { useSelectedBook } from '@/store/useSelectedBook'
interface BookDetail { interface BookDetail {
id: number id: number
@ -189,6 +192,7 @@ interface BookDetail {
}> }>
href: string href: string
hrefTitles: string hrefTitles: string
download: string
} }
const route = useRoute() const route = useRoute()

View File

@ -35,5 +35,6 @@
} }
], ],
"href": "https://www.litres.ru/58125553/", "href": "https://www.litres.ru/58125553/",
"hrefTitles": "title-1" "hrefTitles": "title-1",
"download": "Otryvok_1.pdf"
} }

View File

@ -35,5 +35,6 @@
} }
], ],
"href": "https://www.litres.ru/vino-galante/kak-vlubit-v-sebya-lubogo-tonkaya-igra/", "href": "https://www.litres.ru/vino-galante/kak-vlubit-v-sebya-lubogo-tonkaya-igra/",
"hrefTitles": "title-2" "hrefTitles": "title-2",
"download": "Otryvok_2.pdf"
} }