From 4b23dfb15a434079f5cfeb1556c802fa4949c199 Mon Sep 17 00:00:00 2001
From: mdoryammilwalrus <91034348+mdoryammilwalrus@users.noreply.github.com>
Date: Thu, 1 Feb 2024 21:56:13 +0000
Subject: [PATCH] Search Changes
---
.gitignore | 3 +-
README.md | 11 -------
package.json | 3 +-
src/analytics.js | 17 +++++++++++
src/index.js | 29 ++++++++++++++++--
ssl/README.md | 2 +-
static/css/appearance.css | 17 +++++++++++
static/css/index.css | 17 +++++++++++
static/index.html | 1 +
static/load.html | 14 +++------
static/script/app.js | 17 +++++++++++
static/script/apps.js | 17 +++++++++++
static/script/community.js | 31 ++++++++++++++++---
static/script/component.js | 17 +++++++++++
static/script/gs.js | 17 +++++++++++
static/script/home.js | 62 ++++++++++++++------------------------
static/script/index.js | 17 +++++++++++
static/script/options.js | 45 ++++++++++++++++++++++++++-
static/script/search.d.ts | 25 +++++++++++++++
static/script/search.js | 53 ++++++++++++++++++++++++++++++++
static/script/selection.js | 17 +++++++++++
static/script/support.js | 17 +++++++++++
static/script/tabs.js | 17 +++++++++++
static/support.json | 2 +-
24 files changed, 395 insertions(+), 73 deletions(-)
create mode 100644 static/script/search.d.ts
create mode 100644 static/script/search.js
diff --git a/.gitignore b/.gitignore
index f6444477..7487d8a2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
node_modules
ssl/cert.*
-ssl/key.*
\ No newline at end of file
+ssl/key.*
+.tmp
\ No newline at end of file
diff --git a/README.md b/README.md
index 21172fb4..ecbbc720 100644
--- a/README.md
+++ b/README.md
@@ -39,17 +39,10 @@ You CANNOT deploy to Vercel, Netifly, GitHub Pages, or Cloudflare pages. [Read m
-
-
-
-
-
## Discord Server
-Press the join button to join the server:
-
[![Join us on Discord](https://invidget.switchblade.xyz/985982201302769765?theme=light)](https://amethystnetwork-dev.github.io/discord/invite)
## Overview
@@ -82,10 +75,6 @@ This repo is for people that want an easy way to deploy Incognito to cloud hosti
They are located in [another repo](https://github.com/amethystnetwork-dev/Incognito-gfiles) because of the large file sizes.
-**X website is not working?**
-
-Proxies can have issues, like websites not working, websites blocking the proxy or data being locked to that website. [AlienHub](https://alienhub.xyz/?utm_medium=amethystnetwork) fixes these issues and more!
-
**What proxies are used?**
Incognito uses [Ultraviolet](https://github.com/titaniumnetwork-dev/Ultraviolet) as its only proxy.
diff --git a/package.json b/package.json
index 451a8881..ed582f4f 100644
--- a/package.json
+++ b/package.json
@@ -5,8 +5,7 @@
"type": "module",
"scripts": {
"start": "node src/index.js",
- "install-webretro-linux": "chmod u+x ./src/webretro.sh && ./src/webretro.sh",
- "install-webretro-win": "echo \"Error: not finshed\" && exit 1"
+ "install-webretro-linux": "chmod u+x ./src/webretro.sh && ./src/webretro.sh"
},
"files": [
"static",
diff --git a/src/analytics.js b/src/analytics.js
index 1e7d7e1d..9a2b7ba3 100644
--- a/src/analytics.js
+++ b/src/analytics.js
@@ -1,3 +1,20 @@
+/**
+ * Incognito
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
import crypto from "node:crypto";
import bodyParser from "body-parser";
import { METHODS } from "node:http";
diff --git a/src/index.js b/src/index.js
index 0732cccc..a7b79099 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,3 +1,20 @@
+/**
+ * Incognito
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
import { createBareServer } from "@tomphttp/bare-server-node";
import { uvPath } from "@titaniumnetwork-dev/ultraviolet";
import { gamesPath } from "@amethystnetwork-dev/incognito-gfiles";
@@ -13,8 +30,16 @@ import serveIndex from "serve-index";
import connect from "connect";
import analytics from "./analytics.js";
-// The following message MAY NOT be removed
-console.log("Incognito\nThis program comes with ABSOLUTELY NO WARRANTY.\nThis is free software, and you are welcome to redistribute it\nunder the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see .\n");
+console.log(`Incognito
+This program comes with ABSOLUTELY NO WARRANTY.
+This is free software, and you are welcome to redistribute it
+under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+You should have received a copy of the GNU General Public License\
+along with this program. If not, see .
+`);
const app = connect();
const bare = createBareServer("/bare/");
diff --git a/ssl/README.md b/ssl/README.md
index 64783df1..fcffd815 100644
--- a/ssl/README.md
+++ b/ssl/README.md
@@ -4,4 +4,4 @@ To enable SSL when using a provider that does not provide them, place your certi
The certificate should be named `cert.pem` and the private key named `key.pem`.
-When SSL is enabled port 443 will be used instead of 8080.
\ No newline at end of file
+When SSL is enabled port 443 will be used by default.
\ No newline at end of file
diff --git a/static/css/appearance.css b/static/css/appearance.css
index 5a44755a..4260f272 100644
--- a/static/css/appearance.css
+++ b/static/css/appearance.css
@@ -1,3 +1,20 @@
+/**
+ * Incognito
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
body {
--border-color: rgb(255, 255, 255, .2);
--text-color: #FFF;
diff --git a/static/css/index.css b/static/css/index.css
index 53521e0d..7943ed15 100644
--- a/static/css/index.css
+++ b/static/css/index.css
@@ -1,3 +1,20 @@
+/**
+ * Incognito
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
@import 'appearance.css';
@import 'fa/fa.css';
diff --git a/static/index.html b/static/index.html
index d68b430b..37b7fd64 100644
--- a/static/index.html
+++ b/static/index.html
@@ -3,6 +3,7 @@