-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade rw v6 * fix svg * camelcase svg properties * lint fixes
- Loading branch information
Showing
10 changed files
with
4,840 additions
and
8,621 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
[api] | ||
port = 8911 | ||
[browser] | ||
open = true | ||
open = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const SpinnerSVG = () => { | ||
return ( | ||
<svg | ||
width="38" | ||
height="38" | ||
viewBox="0 0 38 38" | ||
xmlns="http://www.w3.org/2000/svg" | ||
stroke="#000" | ||
> | ||
<g fill="none" fillRule="evenodd"> | ||
<g transform="translate(1 1)" strokeWidth="2"> | ||
<circle strokeOpacity=".25" cx="18" cy="18" r="18" /> | ||
<path d="M36 18c0-9.94-8.06-18-18-18" /> | ||
</g> | ||
</g> | ||
</svg> | ||
) | ||
} | ||
|
||
export default SpinnerSVG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { hydrateRoot, createRoot } from 'react-dom/client' | ||
|
||
import App from './App' | ||
/** | ||
* When `#redwood-app` isn't empty then it's very likely that you're using | ||
* prerendering. So React attaches event listeners to the existing markup | ||
* rather than replacing it. | ||
* https://reactjs.org/docs/react-dom-client.html#hydrateroot | ||
*/ | ||
const redwoodAppElement = document.getElementById('redwood-app') | ||
|
||
if (redwoodAppElement.children?.length > 0) { | ||
hydrateRoot(redwoodAppElement, <App />) | ||
} else { | ||
const root = createRoot(redwoodAppElement) | ||
root.render(<App />) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import dns from 'dns' | ||
|
||
import { defineConfig } from 'vite' | ||
|
||
import redwood from '@redwoodjs/vite' | ||
|
||
// See: https://vitejs.dev/config/server-options.html#server-host | ||
// So that Vite will load on local instead of 127.0.0.1 | ||
dns.setDefaultResultOrder('verbatim') | ||
|
||
/** | ||
* https://vitejs.dev/config/ | ||
* @type {import('vite').UserConfig} | ||
*/ | ||
const viteConfig = { | ||
plugins: [redwood()], | ||
} | ||
|
||
export default defineConfig(viteConfig) |
Oops, something went wrong.