File tree Expand file tree Collapse file tree 9 files changed +30
-26
lines changed
packages/render/integrations Expand file tree Collapse file tree 9 files changed +30
-26
lines changed Original file line number Diff line number Diff line change 1
- import path from 'node:path' ;
2
1
import child_process from 'node:child_process' ;
3
2
import http from 'node:http' ;
3
+ import path from 'node:path' ;
4
4
import * as playwright from 'playwright' ;
5
5
import shell from 'shelljs' ;
6
6
Original file line number Diff line number Diff line change 1
- import type { Metadata } from " next" ;
2
- import { Geist , Geist_Mono } from " next/font/google" ;
3
- import " ./globals.css" ;
1
+ import type { Metadata } from ' next' ;
2
+ import { Geist , Geist_Mono } from ' next/font/google' ;
3
+ import ' ./globals.css' ;
4
4
5
5
const geistSans = Geist ( {
6
- variable : " --font-geist-sans" ,
7
- subsets : [ " latin" ] ,
6
+ variable : ' --font-geist-sans' ,
7
+ subsets : [ ' latin' ] ,
8
8
} ) ;
9
9
10
10
const geistMono = Geist_Mono ( {
11
- variable : " --font-geist-mono" ,
12
- subsets : [ " latin" ] ,
11
+ variable : ' --font-geist-mono' ,
12
+ subsets : [ ' latin' ] ,
13
13
} ) ;
14
14
15
15
export const metadata : Metadata = {
16
- title : " Create Next App" ,
17
- description : " Generated by create next app" ,
16
+ title : ' Create Next App' ,
17
+ description : ' Generated by create next app' ,
18
18
} ;
19
19
20
20
export default function RootLayout ( {
Original file line number Diff line number Diff line change 1
1
'use client' ;
2
2
3
- import { useEffect , useState } from "react" ;
4
3
import { render } from '@react-email/render' ;
4
+ import { useEffect , useState } from 'react' ;
5
5
6
6
export default function Home ( ) {
7
7
const [ html , setHtml ] = useState ( '' ) ;
Original file line number Diff line number Diff line change 1
- import type { NextConfig } from " next" ;
1
+ import type { NextConfig } from ' next' ;
2
2
3
3
const nextConfig : NextConfig = {
4
4
/* config options here */
Original file line number Diff line number Diff line change 1
1
const config = {
2
- plugins : [ " @tailwindcss/postcss" ] ,
2
+ plugins : [ ' @tailwindcss/postcss' ] ,
3
3
} ;
4
4
5
5
export default config ;
Original file line number Diff line number Diff line change 1
- import js from '@eslint/js'
2
- import globals from 'globals'
3
- import reactHooks from 'eslint-plugin-react-hooks'
4
- import reactRefresh from 'eslint-plugin-react-refresh'
5
- import tseslint from 'typescript-eslint'
1
+ import js from '@eslint/js' ;
2
+ import reactHooks from 'eslint-plugin-react-hooks' ;
3
+ import reactRefresh from 'eslint-plugin-react-refresh' ;
4
+ import globals from 'globals' ;
5
+ import tseslint from 'typescript-eslint' ;
6
6
7
7
export default tseslint . config (
8
8
{ ignores : [ 'dist' ] } ,
@@ -25,4 +25,4 @@ export default tseslint.config(
25
25
] ,
26
26
} ,
27
27
} ,
28
- )
28
+ ) ;
Original file line number Diff line number Diff line change 1
- import { useState , useEffect } from 'react' ;
2
1
import { render } from '@react-email/render' ;
2
+ import { useEffect , useState } from 'react' ;
3
3
4
4
function App ( ) {
5
5
const [ html , setHtml ] = useState ( '' ) ;
@@ -17,7 +17,11 @@ function App() {
17
17
} , [ ] ) ;
18
18
19
19
if ( error ) {
20
- return < pre data-testid = "rendering-error" style = { { color : 'red' } } > { error } </ pre > ;
20
+ return (
21
+ < pre data-testid = "rendering-error" style = { { color : 'red' } } >
22
+ { error }
23
+ </ pre >
24
+ ) ;
21
25
}
22
26
23
27
return < pre data-testid = "rendered-html" > { html } </ pre > ;
Original file line number Diff line number Diff line change 1
- import { StrictMode } from 'react'
2
- import { createRoot } from 'react-dom/client'
3
- import App from './App'
1
+ import { StrictMode } from 'react' ;
2
+ import { createRoot } from 'react-dom/client' ;
3
+ import App from './App' ;
4
4
5
5
createRoot ( document . getElementById ( 'root' ) ! ) . render (
6
6
< StrictMode >
7
7
< App />
8
8
</ StrictMode > ,
9
- )
9
+ ) ;
Original file line number Diff line number Diff line change 1
- import { defineConfig } from 'vite' ;
2
1
import react from '@vitejs/plugin-react' ;
2
+ import { defineConfig } from 'vite' ;
3
3
4
4
export default defineConfig ( {
5
5
plugins : [ react ( ) ] ,
You can’t perform that action at this time.
0 commit comments