Skip to content

Commit 4347a92

Browse files
committed
Update antares-web project
1 parent 7955446 commit 4347a92

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+14907
-0
lines changed

antares-web/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

antares-web/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 The Software Design Lab
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

antares-web/README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Antares Web
2+
3+
**Antares Web** is a browser-based radar visualization and simulation control interface, part of the broader [ANTARES platform](https://thesoftwaredesignlab.github.io/ANTARES/). It connects to live radar data streams via WebSocket and provides tools to visualize tracks, issue commands, and configure scenarios in real-time.
4+
5+
## Getting Started
6+
7+
### Installation
8+
9+
```bash
10+
npm install
11+
```
12+
13+
### Development Server
14+
15+
```bash
16+
npm run dev
17+
```
18+
19+
The app will start on [http://localhost:8080/](http://localhost:8080/) by default.
20+
21+
## Project Structure
22+
23+
This project is part of a monorepo. Below is a brief description of the main folders and files in `antares-web`:
24+
25+
```
26+
antares-web/
27+
├── src/ # Main application source code
28+
│ ├── api/ # HTTP/WebSocket API interactions
29+
│ ├── components/ # UI components
30+
│ │ ├── ships/ # Ship creation and configuration UI
31+
│ │ └── ui/ # Reusable UI primitives (modals, toasts, etc.)
32+
│ ├── contexts/ # React context providers (e.g., config, WebSocket)
33+
│ ├── hooks/ # Custom React hooks
34+
│ ├── lib/ # Generic utility functions
35+
│ ├── pages/ # Route-based page components
36+
│ ├── types/ # Type definitions (e.g., Track data)
37+
│ └── utils/ # Radar-specific data parsers and validators
38+
├── public/ # Static assets
39+
├── config.example.toml # Example runtime config for ANTARES
40+
├── template.env # Example environment variables
41+
├── vite.config.ts # Vite configuration
42+
└── tailwind.config.ts # Tailwind CSS configuration
43+
```
44+
45+
## Learn More
46+
47+
For demos, videos, and more information about the platform and its capabilities, visit the official project site:
48+
👉 [https://thesoftwaredesignlab.github.io/ANTARES/antares-web](https://thesoftwaredesignlab.github.io/ANTARES/antares-web)
49+
50+
If you are interested in contributing or exploring the rest of the ANTARES simulation stack, check out the full monorepo:
51+
👉 [https://github.com/TheSoftwareDesignLab/ANTARES](https://github.com/TheSoftwareDesignLab/ANTARES)
52+
53+
## Credits
54+
55+
This project was bootstrapped using [Lovable](https://lovable.dev/).

antares-web/bun.lockb

194 KB
Binary file not shown.

antares-web/components.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "src/index.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
}
20+
}

antares-web/config.example.toml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# ============================
2+
# Antares Simulation Config
3+
# ============================
4+
5+
[antares.simulation]
6+
emission_interval = 20
7+
controller_bind_addr = "0.0.0.0:17394"
8+
9+
# ============================
10+
# Ships to add at startup
11+
# ============================
12+
13+
[[antares.simulation.initial_ships]]
14+
type = "line"
15+
initial_position = [-70_000.0, -70_000.0]
16+
angle = 0.785
17+
speed = 20.0
18+
19+
[[antares.simulation.initial_ships]]
20+
type = "circle"
21+
initial_position = [30_000.0, -30_000.0]
22+
radius = 20_000.0
23+
speed = 40.0
24+
25+
[[antares.simulation.initial_ships]]
26+
type = "random"
27+
initial_position = [-20_000.0, 20_000.0]
28+
max_speed = 30.0
29+
30+
[[antares.simulation.initial_ships]]
31+
type = "stationary"
32+
initial_position = [50_000.0, 50_000.0]
33+
34+
# ============================
35+
# Antares Radar Config
36+
# ============================
37+
38+
[antares.radar]
39+
bind_addr = "0.0.0.0:17396"
40+
41+
[antares.radar.detector]
42+
range = 100_000.0
43+
speed = 0.0
44+
angle = 0.785398
45+
start_coordinates = [4.0, -72.0]
46+
47+
[antares.radar.broadcast]
48+
type = "websocket"

antares-web/eslint.config.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import reactHooks from "eslint-plugin-react-hooks";
4+
import reactRefresh from "eslint-plugin-react-refresh";
5+
import tseslint from "typescript-eslint";
6+
7+
export default tseslint.config(
8+
{ ignores: ["dist"] },
9+
{
10+
extends: [js.configs.recommended, ...tseslint.configs.recommended],
11+
files: ["**/*.{ts,tsx}"],
12+
languageOptions: {
13+
ecmaVersion: 2020,
14+
globals: globals.browser,
15+
},
16+
plugins: {
17+
"react-hooks": reactHooks,
18+
"react-refresh": reactRefresh,
19+
},
20+
rules: {
21+
...reactHooks.configs.recommended.rules,
22+
"react-refresh/only-export-components": [
23+
"warn",
24+
{ allowConstantExport: true },
25+
],
26+
"@typescript-eslint/no-unused-vars": "off",
27+
},
28+
}
29+
);

antares-web/index.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>ANTARES</title>
7+
<meta name="description" content="A Software-Based Tool for Simulating Naval Radar Operations - ICMT 2025" />
8+
<meta name="author" content="TheSoftwareDesignLab" />
9+
10+
<meta property="og:title" content="ANTARES" />
11+
<meta property="og:description" content="A Software-Based Tool for Simulating Naval Radar Operations - ICMT 2025" />
12+
<meta property="og:type" content="website" />
13+
<meta property="og:image" content="https://github.com/thesoftwaredesignlab.png" />
14+
15+
<meta name="twitter:card" content="summary_large_image" />
16+
<meta name="twitter:site" content="@TheSwDLab" />
17+
<meta name="twitter:image" content="https://github.com/thesoftwaredesignlab.png" />
18+
</head>
19+
20+
<body>
21+
<div id="root"></div>
22+
<!-- IMPORTANT: DO NOT REMOVE THIS SCRIPT TAG OR THIS VERY COMMENT! -->
23+
<script src="https://cdn.gpteng.co/gptengineer.js" type="module"></script>
24+
<script type="module" src="/src/main.tsx"></script>
25+
</body>
26+
</html>

0 commit comments

Comments
 (0)