mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Begin work on sending emails
This commit is contained in:
parent
a4f6ce42c6
commit
0469187876
16
packages/frontend/emails/welcome.vue
Normal file
16
packages/frontend/emails/welcome.vue
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { ETailwind, EButton } from "vue-email";
|
||||||
|
import tailwindConfig from "~/tailwind.config";
|
||||||
|
|
||||||
|
defineProps<{
|
||||||
|
name: string;
|
||||||
|
}>();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<ETailwind :config="tailwindConfig">
|
||||||
|
<EButton href="https://example.com" class="bg-primary px-3 py-2 font-medium leading-4 text-white">
|
||||||
|
Click me
|
||||||
|
</EButton>
|
||||||
|
</ETailwind>
|
||||||
|
</template>
|
||||||
|
|
@ -4,7 +4,12 @@ import pkg from "../../package.json";
|
||||||
|
|
||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
modules: ["@nuxtjs/seo", "@nuxtjs/tailwindcss", "@vueuse/nuxt"],
|
modules: [
|
||||||
|
"@nuxtjs/seo",
|
||||||
|
"@nuxtjs/tailwindcss",
|
||||||
|
"@vueuse/nuxt",
|
||||||
|
"@vue-email/nuxt",
|
||||||
|
],
|
||||||
app: {
|
app: {
|
||||||
head: {
|
head: {
|
||||||
link: [
|
link: [
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
"vue-router": "^4.3.0"
|
"vue-router": "^4.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/forms": "^0.5.7"
|
"@tailwindcss/forms": "^0.5.7",
|
||||||
|
"@vue-email/nuxt": "^0.8.19"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
// https://nuxt.com/docs/guide/concepts/typescript
|
// https://nuxt.com/docs/guide/concepts/typescript
|
||||||
"extends": "./.nuxt/tsconfig.json",
|
"extends": "./.nuxt/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ESNext"
|
"target": "esnext",
|
||||||
|
"module": "esnext"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,10 +33,8 @@
|
||||||
"include": [
|
"include": [
|
||||||
"*.ts",
|
"*.ts",
|
||||||
"*.d.ts",
|
"*.d.ts",
|
||||||
"*.vue",
|
|
||||||
"**/*.ts",
|
"**/*.ts",
|
||||||
"**/*.d.ts",
|
"**/*.d.ts",
|
||||||
"**/*.vue",
|
|
||||||
"server/api/well-known/**/*.ts"
|
"server/api/well-known/**/*.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue