This repository was archived by the owner on Mar 31, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +4840
-8621
lines changed Expand file tree Collapse file tree 10 files changed +4840
-8621
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.0" ,
4
4
"private" : true ,
5
5
"dependencies" : {
6
- "@redwoodjs-stripe/api" : " ^0. 1.0-rc.14 " ,
7
- "@redwoodjs/api" : " 5.4.3 " ,
8
- "@redwoodjs/auth-dbauth-api" : " 5.4.3 " ,
9
- "@redwoodjs/graphql-server" : " 5.4.3 " ,
6
+ "@redwoodjs-stripe/api" : " ^1.0.7 " ,
7
+ "@redwoodjs/api" : " 7.1.2 " ,
8
+ "@redwoodjs/auth-dbauth-api" : " 7.1.2 " ,
9
+ "@redwoodjs/graphql-server" : " 7.1.2 " ,
10
10
"graphql-scalars" : " 1.22.2" ,
11
11
"nodemailer" : " 6.9.3" ,
12
12
"stripe" : " 12.18.0"
Original file line number Diff line number Diff line change 9
9
},
10
10
"devDependencies" : {
11
11
"@playwright/test" : " 1.35.1" ,
12
- "@redwoodjs/core" : " 5.4.3 " ,
12
+ "@redwoodjs/core" : " 7.1.2 " ,
13
13
"enquirer" : " 2.3.6"
14
14
},
15
15
"eslintConfig" : {
Original file line number Diff line number Diff line change 13
13
[api ]
14
14
port = 8911
15
15
[browser ]
16
- open = true
16
+ open = false
Original file line number Diff line number Diff line change 14
14
},
15
15
"dependencies" : {
16
16
"@radix-ui/react-dialog" : " 1.0.5" ,
17
- "@redwoodjs-stripe/web" : " ^0. 1.0-rc.14 " ,
18
- "@redwoodjs/auth" : " 5.4.3 " ,
19
- "@redwoodjs/auth-dbauth-web" : " 5.4.3 " ,
20
- "@redwoodjs/forms" : " 5.4.3 " ,
21
- "@redwoodjs/router" : " 5.4.3 " ,
22
- "@redwoodjs/web" : " 5.4.3 " ,
17
+ "@redwoodjs-stripe/web" : " ^1.0.7 " ,
18
+ "@redwoodjs/auth" : " 7.1.2 " ,
19
+ "@redwoodjs/auth-dbauth-web" : " 7.1.2 " ,
20
+ "@redwoodjs/forms" : " 7.1.2 " ,
21
+ "@redwoodjs/router" : " 7.1.2 " ,
22
+ "@redwoodjs/web" : " 7.1.2 " ,
23
23
"@stripe/stripe-js" : " 1.54.2" ,
24
24
"@xstate/immer" : " 0.3.3" ,
25
25
"@xstate/react" : " 3.2.2" ,
33
33
"xstate" : " 4.38.0"
34
34
},
35
35
"devDependencies" : {
36
+ "@redwoodjs/vite" : " 7.1.2" ,
36
37
"@testing-library/user-event" : " 14.4.3"
37
38
}
38
39
}
Original file line number Diff line number Diff line change 1
1
import styled , { keyframes } from 'styled-components'
2
2
3
- import SpinnerSVG from './spinner.svg '
3
+ import SpinnerSVG from './SpinnerSVG '
4
4
5
5
const turn = keyframes `
6
6
from {
Original file line number Diff line number Diff line change
1
+ const SpinnerSVG = ( ) => {
2
+ return (
3
+ < svg
4
+ width = "38"
5
+ height = "38"
6
+ viewBox = "0 0 38 38"
7
+ xmlns = "http://www.w3.org/2000/svg"
8
+ stroke = "#000"
9
+ >
10
+ < g fill = "none" fillRule = "evenodd" >
11
+ < g transform = "translate(1 1)" strokeWidth = "2" >
12
+ < circle strokeOpacity = ".25" cx = "18" cy = "18" r = "18" />
13
+ < path d = "M36 18c0-9.94-8.06-18-18-18" />
14
+ </ g >
15
+ </ g >
16
+ </ svg >
17
+ )
18
+ }
19
+
20
+ export default SpinnerSVG
Original file line number Diff line number Diff line change
1
+ import { hydrateRoot , createRoot } from 'react-dom/client'
2
+
3
+ import App from './App'
4
+ /**
5
+ * When `#redwood-app` isn't empty then it's very likely that you're using
6
+ * prerendering. So React attaches event listeners to the existing markup
7
+ * rather than replacing it.
8
+ * https://reactjs.org/docs/react-dom-client.html#hydrateroot
9
+ */
10
+ const redwoodAppElement = document . getElementById ( 'redwood-app' )
11
+
12
+ if ( redwoodAppElement . children ?. length > 0 ) {
13
+ hydrateRoot ( redwoodAppElement , < App /> )
14
+ } else {
15
+ const root = createRoot ( redwoodAppElement )
16
+ root . render ( < App /> )
17
+ }
Original file line number Diff line number Diff line change 5
5
// You can modify this page as you wish, but it is important to keep things simple to
6
6
// avoid the possibility that it will cause its own error. If it does, Redwood will
7
7
// still render a generic error page, but your users will prefer something a bit more
8
- // thoughtful. = )
8
+ // thoughtful : )
9
9
10
- export default ( ) => (
11
- < main >
12
- < style
13
- dangerouslySetInnerHTML = { {
14
- __html : `
10
+ // This import will be automatically removed when building for production
11
+ import { DevFatalErrorPage } from '@redwoodjs/web/dist/components/DevFatalErrorPage'
12
+
13
+ export default DevFatalErrorPage ||
14
+ ( ( ) => (
15
+ < main >
16
+ < style
17
+ dangerouslySetInnerHTML = { {
18
+ __html : `
15
19
html, body {
16
20
margin: 0;
17
21
}
@@ -42,13 +46,12 @@ export default () => (
42
46
color: #2D3748;
43
47
}
44
48
` ,
45
- } }
46
- />
47
-
48
- < section >
49
- < h1 >
50
- < span > Something went wrong</ span >
51
- </ h1 >
52
- </ section >
53
- </ main >
54
- )
49
+ } }
50
+ />
51
+ < section >
52
+ < h1 >
53
+ < span > Something went wrong</ span >
54
+ </ h1 >
55
+ </ section >
56
+ </ main >
57
+ ) )
Original file line number Diff line number Diff line change
1
+ import dns from 'dns'
2
+
3
+ import { defineConfig } from 'vite'
4
+
5
+ import redwood from '@redwoodjs/vite'
6
+
7
+ // See: https://vitejs.dev/config/server-options.html#server-host
8
+ // So that Vite will load on local instead of 127.0.0.1
9
+ dns . setDefaultResultOrder ( 'verbatim' )
10
+
11
+ /**
12
+ * https://vitejs.dev/config/
13
+ * @type {import('vite').UserConfig }
14
+ */
15
+ const viteConfig = {
16
+ plugins : [ redwood ( ) ] ,
17
+ }
18
+
19
+ export default defineConfig ( viteConfig )
You can’t perform that action at this time.
0 commit comments