-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
54 additions
and
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,7 +149,7 @@ <h3>Other questions</h3> | |
</main> | ||
|
||
<div id="root" class="lg:flex-1 h-[700px] lg:h-screen bg-gray-100 dark:bg-gray-800"> | ||
<p class="text-black dark:text-white">Loading...</p> | ||
<div class="text-black dark:text-white">Loading...</div> | ||
</div> | ||
|
||
<div class="w-screen max-w-none p-12 md:p-16 prose dark:prose-invert bg-white dark:bg-gray-900 lg:hidden"> | ||
|
@@ -160,17 +160,17 @@ <h3>Other questions</h3> | |
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"react": "https://cdn.jsdelivr.net/npm/[email protected]/+esm", | ||
"react-dom": "https://cdn.jsdelivr.net/npm/[email protected]/+esm", | ||
"preact": "node_modules/preact/dist/preact.mjs", | ||
"preact/hooks": "node_modules/preact/hooks/dist/hooks.mjs", | ||
"comlink": "https://cdn.jsdelivr.net/npm/[email protected]/+esm", | ||
"crc-32": "https://cdn.jsdelivr.net/npm/[email protected]/+esm", | ||
"jssha": "https://cdn.jsdelivr.net/npm/[email protected]/+esm", | ||
"xz-decompress": "https://cdn.jsdelivr.net/npm/[email protected]/+esm" | ||
} | ||
} | ||
</script> | ||
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/[email protected]/+esm" /> | ||
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/[email protected]/+esm" /> | ||
<link rel="modulepreload" href="node_modules/preact/dist/preact.mjs" /> | ||
<link rel="modulepreload" href="node_modules/preact/hooks/dist/hooks.mjs" /> | ||
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/[email protected]/+esm" /> | ||
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/[email protected]/+esm" /> | ||
<link rel="modulepreload" href="https://cdn.jsdelivr.net/npm/[email protected]/+esm" /> | ||
|
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import React from 'react' | ||
import ReactDOM from 'react-dom' | ||
import { h, render } from 'preact' | ||
import Flash from './app/Flash.js' | ||
|
||
ReactDOM.createRoot(document.getElementById('root')).render( | ||
React.createElement(React.StrictMode, null, | ||
React.createElement(Flash, null) | ||
) | ||
) | ||
render(h(Flash, null), document.getElementById('root')) | ||
|
||
// ReactDOM.createRoot(document.getElementById('root')).render( | ||
// React.createElement(React.StrictMode, null, | ||
// React.createElement(Flash, null) | ||
// ) | ||
// ) |
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