From cf23c18c07f1d706e7dc11a8d83ff127f70e236f Mon Sep 17 00:00:00 2001 From: Tee Date: Sat, 25 Nov 2023 12:10:48 +0100 Subject: [PATCH] repo menu --- src/client-src/App.jsx | 4 +++- src/client-src/components/Navigator.jsx | 4 ++-- src/client-src/page/Repository.jsx | 25 +++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 src/client-src/page/Repository.jsx diff --git a/src/client-src/App.jsx b/src/client-src/App.jsx index e3b3377..6d0e5c0 100644 --- a/src/client-src/App.jsx +++ b/src/client-src/App.jsx @@ -6,7 +6,7 @@ * Github: https://github.com/lolitee * Discord: Tee#0001 * - * Last Modified: Wednesday, 10th May 2023 1:03:58 pm + * Last Modified: Saturday, 25th November 2023 12:05:51 pm * Modified By: Tee (tee@stainless.love) * * Copyright (c) 2023 Tee, Stainless Love @@ -17,6 +17,7 @@ import Navigator from './components/Navigator'; import Preview from './page/Preview'; import Config from './page/Config'; import Debug from './page/Debug'; +import Repository from './page/Repository'; export default function App(props) { const [state, setState] = useState(""); @@ -29,6 +30,7 @@ export default function App(props) { {state === "Preview" && } {state === "Config" && } {state === "Debug" && } + {state === "Repository" && } ) } \ No newline at end of file diff --git a/src/client-src/components/Navigator.jsx b/src/client-src/components/Navigator.jsx index a44e807..d5d4ef9 100644 --- a/src/client-src/components/Navigator.jsx +++ b/src/client-src/components/Navigator.jsx @@ -6,7 +6,7 @@ * Github: https://github.com/lolitee * Discord: Tee#0001 * - * Last Modified: Wednesday, 10th May 2023 1:19:59 pm + * Last Modified: Saturday, 25th November 2023 12:06:22 pm * Modified By: Tee (tee@stainless.love) * * Copyright (c) 2023 Tee, Stainless Love @@ -24,7 +24,7 @@ export default function Navigator({setState}) { setState("Preview")} href={"#"} text={"Preview"} icon={} /> setState("Config")} href={"#"} text={"Config"} icon={} /> setState("Debug")} href={"#"} text={"Debug"} icon={} /> - openUrlInDefaultBrowser('https://github.com/teeteeteeteetee/adobe-discord-rpc')} href={"#"} text={"Repository"} icon={} /> + setState("Repository")} href={"#"} text={"Repository"} icon={} /> ); diff --git a/src/client-src/page/Repository.jsx b/src/client-src/page/Repository.jsx new file mode 100644 index 0000000..26bd043 --- /dev/null +++ b/src/client-src/page/Repository.jsx @@ -0,0 +1,25 @@ +/* + * File: Repository.jsx + * Project: discord-rpc + * File Created: Saturday, 25th November 2023 12:03:24 pm + * Author: Tee (tee@stainless.love) + * Github: https://github.com/teeteeteeteetee + * Discord: Tee#0001 + * + * Last Modified: Saturday, 25th November 2023 12:10:07 pm + * Modified By: Tee (tee@stainless.love) + * + * Copyright (c) 2023 Tee, Demon Cat + */ +export default function Repository(){ + return ( +
+

Repository:

+

Discord:

+
+ // TODO: Click to update +

Version:

+

Latest version:

+
+ ) +} \ No newline at end of file