v0.49.1 including Codemods (#28)

This commit is contained in:
David Price
2022-03-11 09:30:10 -08:00
committed by GitHub
parent 19ba5fa253
commit f560b7402c
7 changed files with 1000 additions and 917 deletions

View File

@@ -13,23 +13,22 @@
]
},
"dependencies": {
"@redwoodjs/auth": "0.44.1",
"@redwoodjs/forms": "0.45.0",
"@redwoodjs/router": "0.45.0",
"@redwoodjs/web": "0.45.0",
"netlify-identity-widget": "1.9.2",
"@redwoodjs/auth": "0.49.1",
"@redwoodjs/forms": "0.49.1",
"@redwoodjs/router": "0.49.1",
"@redwoodjs/web": "0.49.1",
"prop-types": "15.8.1",
"react": "17.0.2",
"react-dom": "17.0.2"
},
"devDependencies": {
"@tailwindcss/aspect-ratio": "0.4.0",
"@tailwindcss/forms": "0.4.0",
"@tailwindcss/forms": "0.5.0",
"@tailwindcss/line-clamp": "0.3.1",
"@tailwindcss/typography": "0.5.1",
"@tailwindcss/typography": "0.5.2",
"autoprefixer": "10.4.2",
"postcss": "8.4.6",
"postcss": "8.4.8",
"postcss-loader": "6.2.1",
"tailwindcss": "3.0.18"
"tailwindcss": "3.0.23"
}
}

View File

@@ -7,11 +7,19 @@
// still render a generic error page, but your users will prefer something a bit more
// thoughtful. =)
export default () => (
<main>
<style
dangerouslySetInnerHTML={{
__html: `
// Ensures that production builds do not include the error page
let RedwoodDevFatalErrorPage = undefined
if (process.env.NODE_ENV === 'development') {
RedwoodDevFatalErrorPage =
require('@redwoodjs/web/dist/components/DevFatalErrorPage').DevFatalErrorPage
}
export default RedwoodDevFatalErrorPage ||
(() => (
<main>
<style
dangerouslySetInnerHTML={{
__html: `
html, body {
margin: 0;
}
@@ -42,12 +50,12 @@ export default () => (
color: #2D3748;
}
`,
}}
/>
<section>
<h1>
<span>Something went wrong</span>
</h1>
</section>
</main>
)
}}
/>
<section>
<h1>
<span>Something went wrong</span>
</h1>
</section>
</main>
))