Skip to content

Commit

Permalink
Major-Update: Change the version and code-name
Browse files Browse the repository at this point in the history
Signed-off-by: Aoi Kondo <[email protected]>
  • Loading branch information
admidori committed Jul 2, 2024
1 parent 358771f commit bc0fd7f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion frontend/config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"domain":"http://localhost",
"apiPort": 8080
"apiPort": 8080,
"version": "1.0.0",
"codeName": "Alpha"
}
3 changes: 2 additions & 1 deletion frontend/src/components/common/footer/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from "react";
import Config from "../../../../config.json";

export default function Footer(){
return (
<footer style={{ height: 20, background: "#666", color: "#fff" }}>
<p style={{ textAlign: "center" }}>Judgelight v1.0 (Beta)</p>
<p style={{ textAlign: "center" }}>Judgelight v{Config.version} ({Config.codeName})</p>
</footer>
)
}
2 changes: 2 additions & 0 deletions frontend/src/types/config.d.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ declare module 'config.json' {
interface Config {
domain: string;
apiPort: number;
version: string;
codename: string;
}

const value: Config;
Expand Down

0 comments on commit bc0fd7f

Please sign in to comment.