diff --git a/.gitignore b/.gitignore index a77fa96..8e8ab40 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,5 @@ cover.png .vs/tranga-website/FileContentIndex/91a465d3-1190-42e0-95eb-fa3694744e58.vsidx .vs/tranga-website/v17/.wsuo .vs/VSWorkspaceState.json +/node_modules/ +/.vite/ diff --git a/README.md b/README.md index fed1b32..3df7b89 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,9 @@ This repo makes HTTP-requests to the [Tranga-API](https://github.com/C9Glax/tran ### Built With - nginx -- HTML, CSS, and barebones Javascript +- vite +- react +- typescript - 💙 Blåhaj 🦈
@@ -73,16 +75,6 @@ There is a single release: Download [docker-compose.yaml](https://github.com/C9Glax/tranga-website/blob/cuttingedge/docker-compose.yaml) and configure to your needs. The `docker-compose` also includes [Tranga](https://github.com/C9Glax/tranga) as backend. For its configuration refer to the repo README. - -## Roadmap - -- [ ] ❓ - -See the [open issues](https://github.com/C9Glax/tranga-website/issues) for a full list of proposed features (and known issues). - - - - ## Contributing diff --git a/Screenshots/Screenshot 2023-09-08 at 20-03-13 Tranga.png b/Screenshots/Screenshot 2023-09-08 at 20-03-13 Tranga.png deleted file mode 100644 index c30b3a8..0000000 Binary files a/Screenshots/Screenshot 2023-09-08 at 20-03-13 Tranga.png and /dev/null differ diff --git a/Screenshots/Screenshot 2023-09-08 at 20-03-37 Tranga.png b/Screenshots/Screenshot 2023-09-08 at 20-03-37 Tranga.png deleted file mode 100644 index 670743c..0000000 Binary files a/Screenshots/Screenshot 2023-09-08 at 20-03-37 Tranga.png and /dev/null differ diff --git a/Screenshots/Screenshot 2023-09-08 at 20-03-45 Tranga.png b/Screenshots/Screenshot 2023-09-08 at 20-03-45 Tranga.png deleted file mode 100644 index 2f38769..0000000 Binary files a/Screenshots/Screenshot 2023-09-08 at 20-03-45 Tranga.png and /dev/null differ diff --git a/Screenshots/Screenshot 2023-09-08 at 20-03-58 Tranga.png b/Screenshots/Screenshot 2023-09-08 at 20-03-58 Tranga.png deleted file mode 100644 index a287f41..0000000 Binary files a/Screenshots/Screenshot 2023-09-08 at 20-03-58 Tranga.png and /dev/null differ diff --git a/Screenshots/Screenshot 2023-09-08 at 20-04-41 Tranga.png b/Screenshots/Screenshot 2023-09-08 at 20-04-41 Tranga.png deleted file mode 100644 index 68c191f..0000000 Binary files a/Screenshots/Screenshot 2023-09-08 at 20-04-41 Tranga.png and /dev/null differ diff --git a/Website/App.tsx b/Website/App.tsx new file mode 100644 index 0000000..1788095 --- /dev/null +++ b/Website/App.tsx @@ -0,0 +1,132 @@ +import React, {useEffect, useState} from 'react'; +import Footer from "./modules/Footer"; +import Search from "./modules/Search"; +import Header from "./modules/Header"; +import MonitorJobsList from "./modules/MonitorJobsList"; +import './styles/index.css' +import IFrontendSettings, {LoadFrontendSettings} from "./modules/interfaces/IFrontendSettings"; +import {useCookies} from "react-cookie"; + +export default function App(){ + const [, setCookie] = useCookies(['apiUri', 'jobInterval']); + const [connected, setConnected] = React.useState(false); + const [showSearch, setShowSearch] = React.useState(false); + const [frontendSettings, setFrontendSettings] = useState