summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-06-19 20:52:41 +0200
committerRaindropsSys <contact@minteck.org>2023-06-19 20:52:41 +0200
commited17c6eb5e52e0c206a72c5b959fc165e5810230 (patch)
tree8b69291e64441c1bc3a1ee27e3450a6bb5afd726
parentd837341ee359afbe40ee0732584704e488de2900 (diff)
downloadkirinos-ed17c6eb5e52e0c206a72c5b959fc165e5810230.tar.gz
kirinos-ed17c6eb5e52e0c206a72c5b959fc165e5810230.tar.bz2
kirinos-ed17c6eb5e52e0c206a72c5b959fc165e5810230.zip
Updated 5 files and added 2 files (automated)
-rw-r--r--ROADMAP.md3
-rw-r--r--core/desktop/index.html64
-rw-r--r--core/login/index.html2
-rw-r--r--core/startup/index.html2
-rw-r--r--core/status/index.html57
-rw-r--r--main.js1
-rw-r--r--setup.sh2
7 files changed, 127 insertions, 4 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 90848ef..ce3e59b 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -83,4 +83,5 @@
* [ ] Text Editor
* [ ] Weather
* [ ] Console
- * [ ] Disks \ No newline at end of file
+ * [ ] Disks
+ * [ ] Vault (codename "Lyra") \ No newline at end of file
diff --git a/core/desktop/index.html b/core/desktop/index.html
new file mode 100644
index 0000000..d06197b
--- /dev/null
+++ b/core/desktop/index.html
@@ -0,0 +1,64 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>mangoos-desktop</title>
+ <style>
+ * {
+ font-family: "Inter", sans-serif;
+ pointer-events: none;
+ user-select: none;
+ user-focus: none;
+ outline: none;
+ }
+
+ #bg {
+ position: fixed;
+ inset: 0;
+ z-index: -1;
+ background-color: #ed9464;
+ background-image: url("../../wallpaper.jpg");
+ background-size: cover;
+ background-position: center;
+ }
+
+ html, body {
+ background-color: #ed9464;
+ color: black;
+ margin: 0;
+ }
+
+ #status {
+ height: 32px;
+ }
+ </style>
+</head>
+<body>
+ <div id="bg"></div>
+ <div id="status-outer"></div>
+ <script>
+ document.getElementById("status-outer").innerHTML = `
+ <webview id="status" src="../status/index.html#${btoa(JSON.stringify({
+ width: document.getElementById("bg").clientWidth,
+ height: document.getElementById("bg").clientHeight
+ }))}" nodeintegration webpreferences="contextIsolation=no"></webview>
+ `;
+
+ window.onresize = () => {
+ try {
+ document.getElementById("status").executeJavaScript(`resizeBackground(${document.getElementById("bg").clientWidth}, ${document.getElementById("bg").clientHeight});`);
+ } catch (e) {}
+ }
+
+ document.getElementById("status").addEventListener('console-message', (e) => {
+ console.log('[status]', e.message)
+ });
+
+ const fs = require("fs");
+
+ if (fs.existsSync("/mango/session/config/wallpaper")) {
+ document.getElementById("bg").style.backgroundImage = 'url("file:///mango/session/config/wallpaper")';
+ }
+ </script>
+</body>
+</html> \ No newline at end of file
diff --git a/core/login/index.html b/core/login/index.html
index 912464a..3dc7006 100644
--- a/core/login/index.html
+++ b/core/login/index.html
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
- <title>mangoos</title>
+ <title>mangoos-login</title>
<style>
* {
font-family: "Inter", sans-serif;
diff --git a/core/startup/index.html b/core/startup/index.html
index eb5a346..adc4dbd 100644
--- a/core/startup/index.html
+++ b/core/startup/index.html
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
- <title>mangoos</title>
+ <title>mangoos-startup</title>
<style>
* {
font-family: "Inter", sans-serif;
diff --git a/core/status/index.html b/core/status/index.html
new file mode 100644
index 0000000..d256e25
--- /dev/null
+++ b/core/status/index.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>mangoos-status</title>
+ <style>
+ * {
+ font-family: "Inter", sans-serif;
+ pointer-events: none;
+ user-select: none;
+ user-focus: none;
+ outline: none;
+ }
+
+ #bg {
+ position: fixed;
+ inset: 0;
+ z-index: -1;
+ background-color: #ed9464;
+ background-image: url("../../wallpaper.jpg");
+ background-size: cover;
+ background-position: center;
+ }
+
+ html, body {
+ background-color: #ed9464;
+ color: black;
+ margin: 0;
+ }
+
+ #status-bar {
+ position: fixed;
+ inset: 0;
+ backdrop-filter: blur(50px);
+ background-color: rgba(255, 255, 255, .5);
+ }
+ </style>
+</head>
+<body>
+ <div id="bg"></div>
+ <div id="status-bar"></div>
+ <script>
+ function resizeBackground(width, height) {
+ document.getElementById("bg").style.width = width + "px";
+ document.getElementById("bg").style.height = height + "px";
+ }
+
+ let info = JSON.parse(atob(location.hash.substring(1)));
+ resizeBackground(info.width, info.height);
+ const fs = require("fs");
+
+ if (fs.existsSync("/mango/session/config/wallpaper")) {
+ document.getElementById("bg").style.backgroundImage = 'url("file:///mango/session/config/wallpaper")';
+ }
+ </script>
+</body>
+</html> \ No newline at end of file
diff --git a/main.js b/main.js
index beba4bc..b97e584 100644
--- a/main.js
+++ b/main.js
@@ -16,6 +16,7 @@ const createWindow = () => {
fullscreen: true,
fullscreenable: true,
webPreferences: {
+ webviewTag: true,
nodeIntegration: true,
nodeIntegrationInSubFrames: true,
nodeIntegrationInWorker: true,
diff --git a/setup.sh b/setup.sh
index e950409..3d2dfbb 100644
--- a/setup.sh
+++ b/setup.sh
@@ -44,7 +44,7 @@ else
echo $KEY >> /mango/users/0/crypt/secret.sig
PASSPHRASE=$(node setup/unwraptest.js)
mount -t ecryptfs /mango/users/0/lock /mango/users/0/home -o verbosity=0,key=passphrase:passphrase_passwd=$PASSPHRASE,ecryptfs_sig=$KEY,ecryptfs_fnek_sig=$KEY,ecryptfs_cipher=aes,ecryptfs_key_bytes=32,ecryptfs_unlink_sigs
- mkdir -p /mango/users/0/home/data /mango/users/0/home/data/Music /mango/users/0/home/data/Downloads /mango/users/0/home/data/Documents /mango/users/0/home/data/Pictures
+ mkdir -p /mango/users/0/home/data /mango/users/0/home/data/Music /mango/users/0/home/data/Downloads /mango/users/0/home/data/Documents /mango/users/0/home/data/Pictures /mango/users/0/home/config /mango/users/0/home/apps
umount /mango/users/0/home
fi