diff --git a/module.nix b/module.nix
index a01d508..0c19981 100644
--- a/module.nix
+++ b/module.nix
@@ -9,7 +9,7 @@
enable = lib.mkEnableOption "jank client";
package = lib.mkOption {
description = "jank client package";
- default = pkgs.callPackage ./package.nix {};
+ default = pkg;
type = lib.types.package;
};
port = lib.mkOption {
@@ -21,7 +21,8 @@
};
config = lib.mkIf config.services.jank-client.enable {
environment.systemPackages = [
- config.services.jank-client.package
+ (lib.getExe
+ config.services.jank-client.package)
];
virtualisation.docker = {
enable = true;
@@ -79,7 +80,7 @@
TimeoutSec = 300;
};
script = ''
- cd ${config.services.jank-client.package}/src
+ cd ${pkgs.callPackage config.services.jank-client.package {}}/src
docker build -t compose2nix/jank-client-jank .
'';
};
diff --git a/package.nix b/package.nix
index 168cba8..d0de379 100644
--- a/package.nix
+++ b/package.nix
@@ -1,26 +1,18 @@
{
stdenv,
compose2nix,
- git,
...
}:
stdenv.mkDerivation {
name = "jank-client";
src = ./.;
nativeBuildInputs = [
- git
compose2nix
];
buildPhase = ''
echo "#!/usr/bin/env bash" > start-server
echo "systemctl start docker-build-jank-client-jank.service" >> start-server
echo "systemctl restart docker-jank-client-jank.service" >> start-server
- chmod a+x start-server
- git init
- git add -A
- git config user.name "name"
- git config user.email "name@url"
- git commit -m "init"
'';
installPhase = ''
mkdir $out/bin -p
@@ -28,9 +20,4 @@ stdenv.mkDerivation {
cp start-server $out/bin/jank-client
cp . $out/src -r
'';
- meta = {
- mainProgram = "jank-client";
- description = "jank-client";
- homepage = "https://git.mtgmonkey.net/jank-client-fork.git";
- };
}
diff --git a/src/webpage/app.html b/src/webpage/app.html
index 94081ef..6321f79 100644
--- a/src/webpage/app.html
+++ b/src/webpage/app.html
@@ -6,9 +6,9 @@
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
-

-
Andromeda's Jank Client Fork is loading
+
Jank Client is loading
This shouldn't take long
Switch Accounts
diff --git a/src/webpage/home.html b/src/webpage/home.html
index 11f04ec..c681998 100644
--- a/src/webpage/home.html
+++ b/src/webpage/home.html
@@ -3,10 +3,10 @@
-
Jankfork
-
-
-
+
Jank Client
+
+
+
@@ -25,21 +25,16 @@
-
Welcome to Andromeda's Jank Client!
-
-
Instances:
+
Spacebar-Compatible Instances:
-
diff --git a/src/webpage/home.ts b/src/webpage/home.ts
index ed362e9..e3c481d 100644
--- a/src/webpage/home.ts
+++ b/src/webpage/home.ts
@@ -8,48 +8,48 @@ const serverbox = document.getElementById("instancebox") as HTMLDivElement;
await I18n.done;
const openClient = document.getElementById("openClient");
const welcomeJank = document.getElementById("welcomeJank");
-// const box1title = document.getElementById("box1title");
-// const box1Items = document.getElementById("box1Items");
+ const box1title = document.getElementById("box1title");
+ const box1Items = document.getElementById("box1Items");
const compatableInstances = document.getElementById("compatableInstances");
-// const box3title = document.getElementById("box3title");
-// const box3description = document.getElementById("box3description");
+ const box3title = document.getElementById("box3title");
+ const box3description = document.getElementById("box3description");
-// const box4title = document.getElementById("box4title");
-// const box4description = document.getElementById("box4description");
-// const translate = document.getElementById("translate");
+ const box4title = document.getElementById("box4title");
+ const box4description = document.getElementById("box4description");
+ const translate = document.getElementById("translate");
if (
openClient &&
welcomeJank &&
- compatableInstances
-// box3title &&
-// box3description &&
-// box1title &&
-// box1Items &&
-// box4title &&
-// box4description &&
-// translate
+ compatableInstances &&
+ box3title &&
+ box3description &&
+ box1title &&
+ box1Items &&
+ box4title &&
+ box4description &&
+ translate
) {
openClient.textContent = I18n.getTranslation("htmlPages.openClient");
welcomeJank.textContent = I18n.getTranslation("htmlPages.welcomeJank");
-// box1title.textContent = I18n.getTranslation("htmlPages.box1title");
+ box1title.textContent = I18n.getTranslation("htmlPages.box1title");
compatableInstances.textContent = I18n.getTranslation("htmlPages.compatableInstances");
-// box3title.textContent = I18n.getTranslation("htmlPages.box3title");
-// box3description.textContent = I18n.getTranslation("htmlPages.box3description");
+ box3title.textContent = I18n.getTranslation("htmlPages.box3title");
+ box3description.textContent = I18n.getTranslation("htmlPages.box3description");
-// box4title.textContent = I18n.htmlPages.transTitle();
-// box4title.textContent = I18n.htmlPages.transDesc();
-// box4title.textContent = I18n.htmlPages.trans();
+ box4title.textContent = I18n.htmlPages.transTitle();
+ box4title.textContent = I18n.htmlPages.transDesc();
+ box4title.textContent = I18n.htmlPages.trans();
-/* const items = I18n.getTranslation("htmlPages.box1Items").split("|");
+ const items = I18n.getTranslation("htmlPages.box1Items").split("|");
let i = 0;
//@ts-ignore ts is being dumb here
for (const item of box1Items.children) {
(item as HTMLElement).textContent = items[i];
i++;
- } */
+ }
} else {
-/* console.error(
+ console.error(
openClient,
welcomeJank,
compatableInstances,
@@ -57,7 +57,7 @@ const serverbox = document.getElementById("instancebox") as HTMLDivElement;
box3description,
box1title,
box1Items,
- ); */
+ );
}
})();
diff --git a/src/webpage/instances.json b/src/webpage/instances.json
index 4503e38..455f768 100644
--- a/src/webpage/instances.json
+++ b/src/webpage/instances.json
@@ -1,14 +1,34 @@
[
- {
- "name": "Andromeda's Instance",
- "description": "The bestest Spacebar instance.",
+ {
+ "name": "Spacebar",
+ "description": "The official Spacebar instance.",
"image": "https://raw.githubusercontent.com/spacebarchat/spacebarchat/master/branding/png/Spacebar__Icon-Discord.png",
- "urls": {
- "wellknown": "https://spacebar-api.mtgmonkey.net",
- "api": "https://spacebar-api.mtgmonkey.net/api/v9",
- "cdn": "https://spacebar-api.mtgmonkey.net",
- "gateway": "wss://spacebar-api.mtgmonkey.net"
- },
- "url": "https://spacebar-api.mtgmonkey.net"
- }
-]
+ "urls": {
+ "wellknown": "https://spacebar.chat/",
+ "api": "https://old.server.spacebar.chat/api",
+ "cdn": "https://cdn.old.server.spacebar.chat",
+ "gateway": "wss://gateway.old.server.spacebar.chat"
+ },
+ "url": "https://spacebar.chat"
+ },
+ {
+ "name": "Fastbar",
+ "description": "The best Spacebar instance with 95% uptime, running under on a NVME drive running with bleeding edge stuff <3",
+ "image": "https://spacebar.greysilly7.xyz/logo.png",
+ "url": "https://greysilly7.xyz",
+ "language": "en",
+ "country": "US",
+ "display": true,
+ "urls": {
+ "wellknown": "https://greysilly7.xyz",
+ "api": "https://api-spacebar.greysilly7.xyz/api",
+ "cdn": "https://cdn-spacebar.greysilly7.xyz",
+ "gateway": "wss://gateway-spacebar.greysilly7.xyz"
+ },
+ "contactInfo": {
+ "dicord": "greysilly7",
+ "github": "https://github.com/greysilly7",
+ "email": "greysilly7@gmail.com"
+ }
+ }
+]
\ No newline at end of file
diff --git a/src/webpage/invite.html b/src/webpage/invite.html
index b10ae8d..3199aaf 100644
--- a/src/webpage/invite.html
+++ b/src/webpage/invite.html
@@ -3,7 +3,7 @@
-
Jankfork
+
Jank Client
@@ -27,8 +27,8 @@
Server Name
-
Invite loading... Refresh in a few seconds if it doesn't load
-
+
Someone invited you to Server Name
+
diff --git a/src/webpage/invite.ts b/src/webpage/invite.ts
index 08931fe..55d6dce 100644
--- a/src/webpage/invite.ts
+++ b/src/webpage/invite.ts
@@ -60,7 +60,6 @@ import {getBulkUsers, Specialuser} from "./utils/utils.js";
json.inviter.username,
guildjson.name,
);
- document.getElementById("AcceptInvite")!.textContent = "Accept Invite"
if (guildjson.icon) {
const img = document.createElement("img");
img.src = `${urls!.cdn}/icons/${guildjson.id}/${guildjson.icon}.png`;
diff --git a/src/webpage/login.html b/src/webpage/login.html
index f8339c3..528d193 100644
--- a/src/webpage/login.html
+++ b/src/webpage/login.html
@@ -3,9 +3,9 @@