Compare commits

...

2 commits

Author SHA1 Message Date
36356a5743 fix 2022-11-03 22:21:52 +01:00
fb72684328 example restructure 2022-11-03 22:12:53 +01:00
11 changed files with 16 additions and 32 deletions

View file

@ -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) => {

View file

@ -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: {} ({})");

View file

@ -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) => {

View file

@ -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"));

View file

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

View file

@ -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";
@ -26,7 +26,6 @@ const call = async (stear, { find, resolve, close, render, call, include, event
width: "100%",
flexDirection: "column",
}}>
<div style={{
position: "relative",
width: "100%",

View file

@ -1,5 +1,5 @@
import prompt from "../stear/extra/Pages/prompt.js";
import { Stear, SWindow, _, s } from "../stear/main.js";
import prompt from "../../stear/extra/Pages/prompt.js";
import { Stear, SWindow, _, s } from "../../stear/main.js";
const call = async (stear, { find, resolve, close, render, call, event }, args) => {

View file

@ -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) => {

View file

@ -1,5 +1,5 @@
import { Stear, SWindow, _,s } from "../stear/main.js";
import { fadein, fadeout, wait } from "../stear/utils.js";
import { Stear, SWindow, _,s } from "../../stear/main.js";
import { fadein, fadeout, wait } from "../../stear/utils.js";
//import connect from "./connect.js";
import menu from "./menu";
@ -37,20 +37,6 @@ export const call = (stear, { find, resolve, render, call, event }, args) => {
animation: `${wobel} 1s ease-in-out 0s infinite`,
}}/>
</div>;
/*return _({ style: { zindex: 1000 }, find: "main" }, [
_({
type: "img", src: "http://localhost:82/images/logo.png", style: {
width: "80vw",
maxWidth: "75vh",
position: "absolute",
left: "50%",
top: "50%",
transform: "translate(-50%, -50%)",
animation: `${wobel} 2s ease-in-out 0s infinite`,
}
})
]);*/
}
export default new SWindow({ preRender: true, call, backgroundColor:"#dde"});

View file

@ -8,8 +8,7 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"buildExample": "esbuild example/index.js --jsx-factory=s --loader:.js=jsx --bundle --minify --outdir=build --sourcemap",
"serveExample": "esbuild example/index.js --jsx-factory=s --loader:.js=jsx --bundle --minify --servedir=example --sourcemap"
"serveMenu": "esbuild example/menu/index.js --jsx-factory=s --loader:.js=jsx --loader:.html=text --bundle --minify --servedir=example/menu --sourcemap"
},
"repository": {
"type": "git",