This commit is contained in:
tezlm 2023-08-02 19:48:39 -07:00
parent 9758ca2a01
commit 3bc2b6c838
Signed by: tezlm
GPG key ID: 649733FCD94AFBBA
6 changed files with 65 additions and 568 deletions

View file

@ -1,20 +0,0 @@
import { onMount, onCleanup } from "solid-js";
import SvelteApp from "./App.svelte";
export function App() {
let mydiv;
let svel;
onMount(() => {
svel = new SvelteApp({ target: mydiv });
console.log(svel);
});
onCleanup(() => {
svel?.$destroy();
});
return (
<div ref={mydiv}></div>
);
}

View file

@ -21,6 +21,6 @@
</div>
</noscript>
<div id="root"></div>
<script type="module" src="./main.tsx"></script>
<script type="module" src="./main.ts"></script>
</body>
</html>

View file

@ -1,6 +1,5 @@
import { api, ed25519 } from "./lib/api";
import { App } from "./App.tsx";
import { render } from "solid-js/web";
import App from "./App.svelte";
let key = localStorage.getItem("key");
if (key) {
@ -17,5 +16,4 @@ api.baseUrl = server || "http://localhost:3210/";
let token = localStorage.getItem("token");
api.token = token || "";
render(() => <App />, document.body);
// new App({ target: document.body });
new App({ target: document.body });

View file

@ -16,10 +16,8 @@
"canonicalize": "^2.0.0",
"carbon-icons-svelte": "^12.1.0",
"events": "^3.3.0",
"solid-js": "^1.7.8",
"typed-emitter": "^2.1.0",
"uint8-to-base64": "^0.2.0",
"vite-plugin-solid": "^2.7.0"
"uint8-to-base64": "^0.2.0"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.2",

File diff suppressed because it is too large Load diff

View file

@ -1,10 +1,9 @@
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import solidPlugin from "vite-plugin-solid";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [solidPlugin(), svelte({
plugins: [svelte({
experimental: {
sendWarningsToBrowser: true,
}