diff --git a/app/hello/package.json b/app/hello/package.json index 83683cb..a15465f 100644 --- a/app/hello/package.json +++ b/app/hello/package.json @@ -3,6 +3,5 @@ "version": "0.1.4", "description": "Hello Message", "author": "MeexReay", - "apps": [ "hello.js" ], - "configs": [] + "apps": [ "hello.js" ] } \ No newline at end of file diff --git a/app/kfc/package.json b/app/kfc/package.json index 5eaffb0..553f104 100644 --- a/app/kfc/package.json +++ b/app/kfc/package.json @@ -3,6 +3,5 @@ "version": "0.1.2", "description": "Keep Files Customized", "author": "MeexReay", - "apps": [ "kfc.js" ], - "configs": [] + "apps": [ "kfc.js" ] } \ No newline at end of file diff --git a/app/mxwm/package.json b/app/mxwm/package.json index 7199abc..4a8fc46 100644 --- a/app/mxwm/package.json +++ b/app/mxwm/package.json @@ -4,6 +4,5 @@ "description": "Mega eXtreme Window Manager", "author": "MeexReay", "apps": [ "zcom.js", "startz.js", "zhelp.js" ], - "configs": [], - "depends": [ "poki", "zterm" ] + "depends": [ "poki", "zterm", "sexp" ] } diff --git a/app/mxwm/zhelp.js b/app/mxwm/zhelp.js index ef91421..9226eb3 100644 --- a/app/mxwm/zhelp.js +++ b/app/mxwm/zhelp.js @@ -32,6 +32,7 @@ function draw(ctx) { async function main(args) { let [wid, ctx] = createWindow({ "title": "help page", + "app_id": "zhelp", "x": 50, "y": 50, "width": 420, diff --git a/app/neofetch/package.json b/app/neofetch/package.json index 4c03cc3..b92e75f 100644 --- a/app/neofetch/package.json +++ b/app/neofetch/package.json @@ -3,6 +3,5 @@ "version": "0.1.4", "description": "neofetch damn", "author": "MeexReay", - "apps": [ "neofetch.js" ], - "configs": [] + "apps": [ "neofetch.js" ] } diff --git a/app/poki/package.json b/app/poki/package.json index ed292da..a1d1b34 100644 --- a/app/poki/package.json +++ b/app/poki/package.json @@ -1,6 +1,6 @@ { "name": "poki", - "version": "0.1.0", + "version": "0.1.1", "description": "Poki desktop deck", "author": "MeexReay", "apps": [ "poki.js" ], diff --git a/app/poki/poki.json b/app/poki/poki.json index 79310ec..e5d1cbf 100644 --- a/app/poki/poki.json +++ b/app/poki/poki.json @@ -1,8 +1,20 @@ [ + { + "id": "zhelp", + "title": "help page", + "icon": "app/mxwm/zhelp.png", + "script": ["/app/zhelp.js"] + }, + { + "id": "sexp", + "title": "sexp explorer", + "icon": "app/sexp/sexp.png", + "script": ["/app/sexp.js"] + }, { "id": "zterm", "title": "zterm - terminal emulator", - "icon": "app/mxwm/zterm.png", + "icon": "app/zterm/zterm.png", "script": ["/app/zterm.js"] } ] \ No newline at end of file diff --git a/app/putils/package.json b/app/putils/package.json index 1cba82d..730f498 100644 --- a/app/putils/package.json +++ b/app/putils/package.json @@ -3,6 +3,5 @@ "version": "0.1.0", "description": "Poshliye Utiliti", "author": "MeexReay", - "apps": [ "bump.js", "cat.js", "cp.js", "ls.js", "mkdir.js", "mv.js", "rm.js" ], - "configs": [] + "apps": [ "bump.js", "cat.js", "cp.js", "ls.js", "mkdir.js", "mv.js", "rm.js" ] } \ No newline at end of file diff --git a/app/reset/package.json b/app/reset/package.json index ce69b49..5a672bd 100644 --- a/app/reset/package.json +++ b/app/reset/package.json @@ -3,6 +3,5 @@ "version": "0.1.0", "description": "Resets system to a newborn", "author": "MeexReay", - "apps": [ "reset.js" ], - "configs": [] + "apps": [ "reset.js" ] } \ No newline at end of file diff --git a/app/sexp/package.json b/app/sexp/package.json new file mode 100644 index 0000000..c690552 --- /dev/null +++ b/app/sexp/package.json @@ -0,0 +1,7 @@ +{ + "name": "sexp", + "version": "0.0.0-test", + "description": "Simple Explorer Program", + "author": "MeexReay", + "apps": [ "sexp.js" ] +} diff --git a/app/sexp/sexp.js b/app/sexp/sexp.js new file mode 100644 index 0000000..47b935d --- /dev/null +++ b/app/sexp/sexp.js @@ -0,0 +1,30 @@ +eval(readFile("/app/zcom.js")) + +async function draw(ctx) { + ctx.fillStyle = "darkgray"; + ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height); +} + +async function main(args) { + let wid, ctx + + [wid, ctx] = createWindow({ + "title": "sexp", + "x": 50, + "y": 50, + "width": 500, + "height": 500, + "onresize": () => draw(ctx) + }) + + draw(ctx) + + while (graphics_canvas != null) { + await new Promise(resolve => setTimeout(resolve, 100)) + draw(ctx) + } + + closeWindow(wid) + + return 0 +} diff --git a/app/sexp/sexp.png b/app/sexp/sexp.png new file mode 100644 index 0000000..2e738c4 Binary files /dev/null and b/app/sexp/sexp.png differ diff --git a/app/vget/package.json b/app/vget/package.json index 0f2e0fe..8b90d0d 100644 --- a/app/vget/package.json +++ b/app/vget/package.json @@ -3,6 +3,5 @@ "version": "0.1.0", "description": "Vulgar get", "author": "MeexReay", - "apps": [ "vget.js" ], - "configs": [] + "apps": [ "vget.js" ] } \ No newline at end of file diff --git a/app/woman/package.json b/app/woman/package.json index 1e259cf..e35b7d2 100644 --- a/app/woman/package.json +++ b/app/woman/package.json @@ -3,6 +3,5 @@ "version": "0.1.3", "description": "Wisdom Order Manuals", "author": "MeexReay", - "apps": [ "woman.js" ], - "configs": [] + "apps": [ "woman.js" ] } \ No newline at end of file diff --git a/app/zterm/package.json b/app/zterm/package.json index c0d5320..a52e76a 100644 --- a/app/zterm/package.json +++ b/app/zterm/package.json @@ -3,6 +3,5 @@ "version": "0.1.0", "description": "Zcom Terminal Emulator", "author": "MeexReay", - "apps": [ "zterm.js" ], - "configs": [ ] + "apps": [ "zterm.js" ] }