nuxt-email-renderer 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/{DRPkP1c_.js → Bo5HZhQy.js} +13 -13
- package/dist/client/_nuxt/{CO3u67Df.js → C3VtUXGv.js} +1 -1
- package/dist/client/_nuxt/{B9Hoii8y.js → DvTHkeJF.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/0e7d4347-26cf-41cc-b2a7-36708a807d05.json +1 -0
- package/dist/client/_nuxt/{Vw1il9OE.js → emNd88Sx.js} +2 -2
- package/dist/client/_nuxt/error-404.BHOIm0B1.css +1 -0
- package/dist/client/_nuxt/error-500.CqX_nDZ5.css +1 -0
- package/dist/client/_nuxt/iaZ9f1tM.js +1 -1
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +20 -1
- package/dist/runtime/components/button/__snapshots__/EButton.test.ts.snap +0 -2
- package/dist/runtime/server/api/emails/list.get.d.ts +8 -1
- package/dist/runtime/server/api/emails/list.get.js +7 -9
- package/dist/runtime/server/api/emails/render.post.js +52 -0
- package/dist/runtime/server/utils/template-resolver.d.ts +18 -0
- package/dist/runtime/server/utils/template-resolver.js +41 -0
- package/dist/runtime/server/utils/virtual-templates.d.ts +18 -0
- package/dist/runtime/server/utils/virtual-templates.js +68 -0
- package/package.json +3 -1
- package/dist/client/_nuxt/builds/meta/4123c518-0766-4cd8-810c-2d5939d798bf.json +0 -1
- package/dist/client/_nuxt/error-404.i2TzpRiJ.css +0 -1
- package/dist/client/_nuxt/error-500.C_4AKulT.css +0 -1
- package/dist/runtime/server/api/emails/render.get.js +0 -47
- /package/dist/runtime/server/api/emails/{render.get.d.ts → render.post.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -7,14 +7,14 @@ Find and replace all on all files (CMD+SHIFT+F):
|
|
|
7
7
|
- Description: My new Nuxt module
|
|
8
8
|
-->
|
|
9
9
|
|
|
10
|
-
#
|
|
10
|
+
# Nuxt Email Renderer
|
|
11
11
|
|
|
12
12
|
[![npm version][npm-version-src]][npm-version-href]
|
|
13
13
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
14
14
|
[![License][license-src]][license-href]
|
|
15
15
|
[![Nuxt][nuxt-src]][nuxt-href]
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
A Nuxt module to render email templates using Vue components.
|
|
18
18
|
|
|
19
19
|
- [✨ Release Notes](/CHANGELOG.md)
|
|
20
20
|
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/my-module?file=playground%2Fapp.vue) -->
|
|
@@ -32,10 +32,10 @@ My new Nuxt module for doing amazing things.
|
|
|
32
32
|
Install the module to your Nuxt application with one command:
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
npx nuxi module add
|
|
35
|
+
npx nuxi module add nuxt-email-renderer
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
That's it! You can now use
|
|
38
|
+
That's it! You can now use Nuxt Email Renderer in your Nuxt app ✨
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
## Contribution
|
|
@@ -71,14 +71,14 @@ That's it! You can now use My Module in your Nuxt app ✨
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
<!-- Badges -->
|
|
74
|
-
[npm-version-src]: https://img.shields.io/npm/v/
|
|
75
|
-
[npm-version-href]: https://npmjs.com/package/
|
|
74
|
+
[npm-version-src]: https://img.shields.io/npm/v/nuxt-email-renderer/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
|
75
|
+
[npm-version-href]: https://npmjs.com/package/nuxt-email-renderer
|
|
76
76
|
|
|
77
|
-
[npm-downloads-src]: https://img.shields.io/npm/dm/
|
|
78
|
-
[npm-downloads-href]: https://npm.chart.dev/
|
|
77
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-email-renderer.svg?style=flat&colorA=020420&colorB=00DC82
|
|
78
|
+
[npm-downloads-href]: https://npm.chart.dev/nuxt-email-renderer
|
|
79
79
|
|
|
80
|
-
[license-src]: https://img.shields.io/npm/l/
|
|
81
|
-
[license-href]: https://npmjs.com/package/
|
|
80
|
+
[license-src]: https://img.shields.io/npm/l/nuxt-email-renderer.svg?style=flat&colorA=020420&colorB=00DC82
|
|
81
|
+
[license-href]: https://npmjs.com/package/nuxt-email-renderer
|
|
82
82
|
|
|
83
83
|
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
|
|
84
84
|
[nuxt-href]: https://nuxt.com
|
package/dist/client/200.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-email-renderer/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-email-renderer/_nuxt/Bo5HZhQy.js"}}</script><link rel="stylesheet" href="/__nuxt-email-renderer/_nuxt/entry.CTfxz0zS.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/Bo5HZhQy.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/Coq9dpCu.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-email-renderer/_nuxt/error-404.BHOIm0B1.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/DvTHkeJF.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-email-renderer/_nuxt/error-500.CqX_nDZ5.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/C3VtUXGv.js"><script type="module" src="/__nuxt-email-renderer/_nuxt/Bo5HZhQy.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1758863577389,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{nuxtEmailRenderer:{emailsDir:"/playground/emails",devtools:false}},app:{baseURL:"/__nuxt-email-renderer",buildId:"0e7d4347-26cf-41cc-b2a7-36708a807d05",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-email-renderer/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-email-renderer/_nuxt/Bo5HZhQy.js"}}</script><link rel="stylesheet" href="/__nuxt-email-renderer/_nuxt/entry.CTfxz0zS.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/Bo5HZhQy.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/Coq9dpCu.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-email-renderer/_nuxt/error-404.BHOIm0B1.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/DvTHkeJF.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-email-renderer/_nuxt/error-500.CqX_nDZ5.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/C3VtUXGv.js"><script type="module" src="/__nuxt-email-renderer/_nuxt/Bo5HZhQy.js" crossorigin></script><script>"use strict";(()=>{const t=window,e=document.documentElement,c=["dark","light"],n=getStorageValue("localStorage","nuxt-color-mode")||"system";let i=n==="system"?u():n;const r=e.getAttribute("data-color-mode-forced");r&&(i=r),l(i),t["__NUXT_COLOR_MODE__"]={preference:n,value:i,getColorScheme:u,addColorScheme:l,removeColorScheme:d};function l(o){const s=""+o+"",a="";e.classList?e.classList.add(s):e.className+=" "+s,a&&e.setAttribute("data-"+a,o)}function d(o){const s=""+o+"",a="";e.classList?e.classList.remove(s):e.className=e.className.replace(new RegExp(s,"g"),""),a&&e.removeAttribute("data-"+a)}function f(o){return t.matchMedia("(prefers-color-scheme"+o+")")}function u(){if(t.matchMedia&&f("").media!=="not all"){for(const o of c)if(f(":"+o).matches)return o}return"light"}})();function getStorageValue(t,e){switch(t){case"localStorage":return window.localStorage.getItem(e);case"sessionStorage":return window.sessionStorage.getItem(e);case"cookie":return getCookie(e);default:return null}}function getCookie(t){const c=("; "+window.document.cookie).split("; "+t+"=");if(c.length===2)return c.pop()?.split(";").shift()}</script></head><body><div id="__nuxt" class="isolate"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1758863577389,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{nuxtEmailRenderer:{emailsDir:"/playground/emails",devtools:false}},app:{baseURL:"/__nuxt-email-renderer",buildId:"0e7d4347-26cf-41cc-b2a7-36708a807d05",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|