diff --git a/example/apps.jsx b/example/menu/apps.jsx similarity index 79% rename from example/apps.jsx rename to example/menu/apps.jsx index b808b1d..34fdd0a 100644 --- a/example/apps.jsx +++ b/example/menu/apps.jsx @@ -1,4 +1,4 @@ -import { Stear, SWindow, _, s } from "../stear/main.js"; +import { Stear, SWindow, _, s } from "../../stear/main.js"; const call = async (stear, { find, resolve, close, render, call, event }, args) => { diff --git a/example/connect.js b/example/menu/connect.js similarity index 85% rename from example/connect.js rename to example/menu/connect.js index b2e93a5..22e97b1 100644 --- a/example/connect.js +++ b/example/menu/connect.js @@ -1,7 +1,7 @@ -import l1 from "../stear/extra/Elements/loading1.js"; -import showStatus from "../stear/extra/Pages/showStatus.js"; -import { Stear, SWindow, _ } from "../stear/main.js"; -import { fadein, fadeout, wait } from "../stear/utils.js"; +import l1 from "../../stear/extra/Elements/loading1.js"; +import showStatus from "../../stear/extra/Pages/showStatus.js"; +import { Stear, SWindow, _ } from "../../stear/main.js"; +import { fadein, fadeout, wait } from "../../stear/utils.js"; const pool = Stear.addLanguagePool("connect"); const connectingto = pool.add("connectingto", "Connecting to: {} ({})"); diff --git a/example/empty.js b/example/menu/empty.js similarity index 76% rename from example/empty.js rename to example/menu/empty.js index de190b4..4ef7839 100644 --- a/example/empty.js +++ b/example/menu/empty.js @@ -1,4 +1,4 @@ -import { Stear, SWindow, _ } from "../stear/main.js"; +import { Stear, SWindow, _ } from "../../stear/main.js"; const call = async (stear, { find, resolve, close, render, call, event }, args) => { diff --git a/example/index.html b/example/menu/index.html similarity index 100% rename from example/index.html rename to example/menu/index.html diff --git a/example/index.js b/example/menu/index.js similarity index 78% rename from example/index.js rename to example/menu/index.js index d7aeae0..fddf94a 100644 --- a/example/index.js +++ b/example/menu/index.js @@ -1,6 +1,6 @@ -import { Stear, SWindow } from "../stear/main.js"; +import { Stear, SWindow } from "../../stear/main.js"; -import start from "./start.jsx"; +import start from "./start"; var stear = new Stear(document.querySelector("#stear")); diff --git a/example/logo.png b/example/menu/logo.png similarity index 100% rename from example/logo.png rename to example/menu/logo.png diff --git a/example/menu.jsx b/example/menu/menu.jsx similarity index 92% rename from example/menu.jsx rename to example/menu/menu.jsx index 4a92223..56376be 100644 --- a/example/menu.jsx +++ b/example/menu/menu.jsx @@ -1,4 +1,4 @@ -import { Stear, SWindow, _, s } from "../stear/main.js"; +import { Stear, SWindow, _, s } from "../../stear/main.js"; import apps from "./apps"; import settings from "./settings"; import splash from "./splash"; @@ -11,6 +11,8 @@ const call = async (stear, { find, resolve, close, render, call, include, event /*event.onBeforRerender = async () => { }*/ /*event.onAfterRerender = async () => { }*/ + event.onHashChange + let menu = [ include(splash), include(apps), @@ -26,7 +28,6 @@ const call = async (stear, { find, resolve, close, render, call, include, event width: "100%", flexDirection: "column", }}> -