Skip to content

Commit

Permalink
repo menu
Browse files Browse the repository at this point in the history
  • Loading branch information
teeteeteeteetee committed Nov 25, 2023
1 parent b497eb1 commit cf23c18
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/client-src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ([email protected])
*
* Copyright (c) 2023 Tee, Stainless Love
Expand All @@ -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("");
Expand All @@ -29,6 +30,7 @@ export default function App(props) {
{state === "Preview" && <Preview />}
{state === "Config" && <Config />}
{state === "Debug" && <Debug />}
{state === "Repository" && <Repository />}
</div>
)
}
4 changes: 2 additions & 2 deletions src/client-src/components/Navigator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ([email protected])
*
* Copyright (c) 2023 Tee, Stainless Love
Expand All @@ -24,7 +24,7 @@ export default function Navigator({setState}) {
<NavItem onClick={() => setState("Preview")} href={"#"} text={"Preview"} icon={<FaDiscord className="text-gray-200 m-auto" />} />
<NavItem onClick={() => setState("Config")} href={"#"} text={"Config"} icon={<FaCog className="text-gray-200 m-auto" />} />
<NavItem onClick={() => setState("Debug")} href={"#"} text={"Debug"} icon={<VscDebugConsole className="text-gray-200 m-auto" />} />
<NavItem onClick={() => openUrlInDefaultBrowser('https://github.com/teeteeteeteetee/adobe-discord-rpc')} href={"#"} text={"Repository"} icon={<FaGithub className="text-gray-200 m-auto" />} />
<NavItem onClick={() => setState("Repository")} href={"#"} text={"Repository"} icon={<FaGithub className="text-gray-200 m-auto" />} />
</div>
</nav>
);
Expand Down
25 changes: 25 additions & 0 deletions src/client-src/page/Repository.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* File: Repository.jsx
* Project: discord-rpc
* File Created: Saturday, 25th November 2023 12:03:24 pm
* Author: Tee ([email protected])
* Github: https://github.com/teeteeteeteetee
* Discord: Tee#0001
*
* Last Modified: Saturday, 25th November 2023 12:10:07 pm
* Modified By: Tee ([email protected])
*
* Copyright (c) 2023 Tee, Demon Cat
*/
export default function Repository(){
return (
<div className='container mx-auto'>
<p>Repository: </p>
<p>Discord: </p>
<br/>
// TODO: Click to update
<p>Version: </p>
<p>Latest version: </p>
</div>
)
}

0 comments on commit cf23c18

Please sign in to comment.