From bfdf83ea1a9b223676f789c61109f3b286baed30 Mon Sep 17 00:00:00 2001 From: Kiran Hayden Date: Thu, 27 Feb 2025 19:29:10 -0600 Subject: [PATCH 1/9] Start PhantomChat --- static/public/index.html | 11 +++++++++++ static/public/phantomchat/index.html | 10 ++++++++++ static/public/phantomchat/style.css | 7 +++++++ 3 files changed, 28 insertions(+) create mode 100644 static/public/phantomchat/index.html create mode 100644 static/public/phantomchat/style.css diff --git a/static/public/index.html b/static/public/index.html index b8eb812..f8ad719 100644 --- a/static/public/index.html +++ b/static/public/index.html @@ -77,6 +77,17 @@ + + + + + + + + + + +
Credits
diff --git a/static/public/phantomchat/index.html b/static/public/phantomchat/index.html new file mode 100644 index 0000000..c08bdcb --- /dev/null +++ b/static/public/phantomchat/index.html @@ -0,0 +1,10 @@ + + + + + PhantomChat + + + + + \ No newline at end of file diff --git a/static/public/phantomchat/style.css b/static/public/phantomchat/style.css new file mode 100644 index 0000000..e2e527c --- /dev/null +++ b/static/public/phantomchat/style.css @@ -0,0 +1,7 @@ +body { + overflow: hidden; + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + background-color: #202020; + color: #d0d0d0; + color: white; +} \ No newline at end of file From 84ab67aa7b7f5c8acb2fa60d8573c217361025cd Mon Sep 17 00:00:00 2001 From: Humayd Khan <81250612+NotDyamuh@users.noreply.github.com> Date: Thu, 27 Feb 2025 19:30:03 -0600 Subject: [PATCH 2/9] Update README.md --- README.md | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index c857802..d74165f 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,5 @@ -# PhantomOSv1 [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/Phantom-Proxies/PhantomOSv1/blob/main/LICENSE.txt) -The source code and deployment for the first ever OS (and project) by Phantom Network. -Currently uses Ultraviolet proxy and Ultraviolet backend scripts for a seamless experience. -(please don't be stupid and deploy this via npm on a WSL instance) +# PhantomOSv1 - EchoTunel Version [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/Phantom-Proxies/PhantomOSv1/blob/main/LICENSE.txt) +This is a small side-project that is an attempt to create new, custom service workers for PhantomOS's proxy. -## License -This project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details. - - -## Deployment opions: -## Running locally -WILL NOT WORK ON WSL!! - -```sh -git clone https://github.com/Phantom-Proxies/PhantomOSv1 -cd PhantomOSv1 -npm i && npm start -``` -## Requirements: -npm and node.js installed. If you don't have it installed refer to the script below. - -```sh -sudo apt update -sudo apt install npm -y -``` +## WARNING +Do ***NOT*** use this version of PhantomOS! It is intended as an experiment, therefore it is unstable and carries security risks. From f54868ea25e1e17ca4d79f1b9f369e54b5a07553 Mon Sep 17 00:00:00 2001 From: Humayd Khan <81250612+NotDyamuh@users.noreply.github.com> Date: Thu, 27 Feb 2025 19:33:46 -0600 Subject: [PATCH 3/9] adding chat app to html --- static/public/index.html | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/static/public/index.html b/static/public/index.html index f8ad719..2a3095a 100644 --- a/static/public/index.html +++ b/static/public/index.html @@ -1,13 +1,11 @@ - PhantomOS -
@@ -24,6 +22,9 @@
Settings
+
+ Chat +
@@ -63,6 +67,9 @@
SettingsSettings
+
+ ChatPhantom Chat +
@@ -77,17 +84,6 @@ - - - - - - - - - - -
Credits
@@ -100,8 +96,9 @@

PhantomOS Credits

Developed by: dyamuh

-

Backend: dyamuh with UV backend

+

Backend: dyamuh (using UV backend)

Frontend: dyamuh, darkcat736, norsegod99

+

Support: Riftriot

@@ -153,8 +150,18 @@

About PhantomOS

+
+
+
Phantom Chat
+
+ + + +
+
+ +
- From 0611995afe8085c8b1500ac2116d6b0a93436684 Mon Sep 17 00:00:00 2001 From: Humayd Khan <81250612+NotDyamuh@users.noreply.github.com> Date: Thu, 27 Feb 2025 19:35:37 -0600 Subject: [PATCH 4/9] adding chat app to html but changing js to point to frame --- static/public/script.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/static/public/script.js b/static/public/script.js index 557f5bc..41c0228 100644 --- a/static/public/script.js +++ b/static/public/script.js @@ -35,14 +35,13 @@ timeButton.addEventListener('click', () => { wifiStatus.textContent = "Connected"; -// COMBINED event listener for app icons and start menu items: [...appIcons, ...appListItems].forEach(item => { item.addEventListener('click', () => { const app = item.getAttribute('data-app'); const window = document.getElementById(`${app}-window`); - if (app === 'google') { - const uvFrame = document.getElementById('uv-frame'); + if (app === 'google' || app === 'chat') { + const uvFrame = window.querySelector('iframe'); const iframeSrc = item.dataset.iframeSrc; uvFrame.src = iframeSrc; } @@ -52,7 +51,7 @@ wifiStatus.textContent = "Connected"; window.classList.add('show'); bringWindowToFront(window); - if (appList.classList.contains('show')) { // Only close if app list is open + if (appList.classList.contains('show')) { appList.classList.remove('show'); } @@ -70,7 +69,6 @@ wifiStatus.textContent = "Connected"; }); }); - windows.forEach(window => { const minimizeButton = window.querySelector('.minimize'); const maximizeButton = window.querySelector('.maximize'); @@ -169,7 +167,6 @@ startButton.addEventListener('click', () => { appList.classList.toggle('show'); }); - function bringWindowToFront(window) { const allWindows = document.querySelectorAll('.window'); let maxZIndex = 10; @@ -253,7 +250,6 @@ themeButtons.forEach(button => { }); }); - const rainCanvas = document.getElementById('rainCanvas'); const ctx = rainCanvas.getContext('2d'); rainCanvas.width = window.innerWidth; @@ -292,4 +288,3 @@ window.addEventListener('resize', () => { rainCanvas.width = window.innerWidth; rainCanvas.height = window.innerHeight; }); - From 6af35ef24a38f0caf72ce6ff8bb65cde3d83cc82 Mon Sep 17 00:00:00 2001 From: Kiran Hayden Date: Fri, 28 Feb 2025 09:02:29 -0600 Subject: [PATCH 5/9] add file path helper --- static/public/filepath-helper.js | 13 +++++++++++++ static/public/index.html | 1 + static/public/script.js | 3 ++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 static/public/filepath-helper.js diff --git a/static/public/filepath-helper.js b/static/public/filepath-helper.js new file mode 100644 index 0000000..e97e0e0 --- /dev/null +++ b/static/public/filepath-helper.js @@ -0,0 +1,13 @@ +class filePathHelper { + constructor(URL) { + this.url = URL; + //this.relativeURL = isRelative; + this.convertedURL = null; + } + + relativeToAbsolute() { + let currentURL = window.location.origin + window.location.pathname; + this.convertedURL = currentURL.replace(window.location.pathname.substring(window.location.pathname.lastIndexOf('/') + 1), this.url); + return this.convertedURL; + } +} \ No newline at end of file diff --git a/static/public/index.html b/static/public/index.html index 2a3095a..a4c97d6 100644 --- a/static/public/index.html +++ b/static/public/index.html @@ -162,6 +162,7 @@

About PhantomOS

+ diff --git a/static/public/script.js b/static/public/script.js index 41c0228..97a0500 100644 --- a/static/public/script.js +++ b/static/public/script.js @@ -42,7 +42,8 @@ wifiStatus.textContent = "Connected"; if (app === 'google' || app === 'chat') { const uvFrame = window.querySelector('iframe'); - const iframeSrc = item.dataset.iframeSrc; + const iframeSrc = new filePathHelper(item.dataset.iframeSrc).relativeToAbsolute(); + console.log(new filePathHelper(item.dataset.iframeSrc).relativeToAbsolute()); uvFrame.src = iframeSrc; } From 23a5489e84022b2a584d1129bbf957e726ec76c3 Mon Sep 17 00:00:00 2001 From: Kitten Tech <104227728+DarkCat736@users.noreply.github.com> Date: Fri, 28 Feb 2025 10:13:50 -0600 Subject: [PATCH 6/9] Delete README.md --- README.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index d74165f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# PhantomOSv1 - EchoTunel Version [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/Phantom-Proxies/PhantomOSv1/blob/main/LICENSE.txt) -This is a small side-project that is an attempt to create new, custom service workers for PhantomOS's proxy. - -## WARNING -Do ***NOT*** use this version of PhantomOS! It is intended as an experiment, therefore it is unstable and carries security risks. From 8dc99b842a03c483ccf69839b79b8c6651095899 Mon Sep 17 00:00:00 2001 From: Kiran Hayden Date: Fri, 28 Feb 2025 17:46:19 -0600 Subject: [PATCH 7/9] Fix readme --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c857802 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# PhantomOSv1 [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/Phantom-Proxies/PhantomOSv1/blob/main/LICENSE.txt) +The source code and deployment for the first ever OS (and project) by Phantom Network. +Currently uses Ultraviolet proxy and Ultraviolet backend scripts for a seamless experience. +(please don't be stupid and deploy this via npm on a WSL instance) + +## License +This project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details. + + +## Deployment opions: +## Running locally +WILL NOT WORK ON WSL!! + +```sh +git clone https://github.com/Phantom-Proxies/PhantomOSv1 +cd PhantomOSv1 +npm i && npm start +``` +## Requirements: +npm and node.js installed. If you don't have it installed refer to the script below. + +```sh +sudo apt update +sudo apt install npm -y +``` From d212436cc0a1c9949eef30832fb3079b18d8dfff Mon Sep 17 00:00:00 2001 From: Kiran Hayden Date: Fri, 28 Feb 2025 18:39:29 -0600 Subject: [PATCH 8/9] Add not currently available message --- static/public/phantomchat/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/public/phantomchat/index.html b/static/public/phantomchat/index.html index c08bdcb..eb62091 100644 --- a/static/public/phantomchat/index.html +++ b/static/public/phantomchat/index.html @@ -4,7 +4,8 @@ PhantomChat - - + +

PhantomChat

+

This service is not currently available.

\ No newline at end of file From 8622055a5269ebc4294c861b35b15357b2bc76fb Mon Sep 17 00:00:00 2001 From: Kiran Hayden Date: Mon, 3 Mar 2025 08:42:55 -0600 Subject: [PATCH 9/9] resolve conflicts --- static/public/script.js | 47 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/static/public/script.js b/static/public/script.js index 97a0500..725d8a7 100644 --- a/static/public/script.js +++ b/static/public/script.js @@ -289,3 +289,50 @@ window.addEventListener('resize', () => { rainCanvas.width = window.innerWidth; rainCanvas.height = window.innerHeight; }); + +let timeout; + +function V2() { + let shouldRun = true; + function loop() { + if (!shouldRun) return; + + const numRaindrops = 100; + + for (let i = 0; i < numRaindrops; i++) { + const raindrop = document.createElement('div'); + raindrop.classList.add('raindrop'); + const randomX = Math.random() * 100; + const randomDelay = Math.random() * 5; + + raindrop.style.opacity = 1; + raindrop.style.left = `${randomX}vw`; + raindrop.style.animationDuration = `${Math.random() * 6 + 1}s`; + raindrop.style.animationDelay = `-${randomDelay}s`; + + document.body.appendChild(raindrop); + } + } + loop(); + + console.log("Wallpaper changed to V2"); +} + +function stopV2() { + clearTimeout(timeout); +} + +function switchToV2() { + V2(); + rainCanvas.style.opacity = 0; +} + +function switchToV1() { + rainCanvas.style.opacity = 1; + const raindrops = document.querySelectorAll('.raindrop'); + raindrops.forEach(raindrop => raindrop.remove()); +} + +function switchToV3(){ + canvas3.style.opacity = 0; +}