Skip to content

Commit

Permalink
initial implementation 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
pbzweihander committed Feb 6, 2023
1 parent 211fe2d commit 266876e
Show file tree
Hide file tree
Showing 46 changed files with 4,377 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ rules:
- checksVoidReturn:
arguments: false
attributes: false
"@typescript-eslint/no-dynamic-delete": off
"@typescript-eslint/no-non-null-assertion": off
settings:
react:
version: detect
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Kangwook Lee (pbzweihander)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,20 @@
`peace-eye` is desktop GCI/AWACS simulation for Tacview and DCS World.
Inspired by [b1naryth1ef/sneaker](https://github.com/b1naryth1ef/sneaker).
The name `peace-eye` is derived from [Korean version of Boeing 737 AEW&C "Peace Eye"](https://en.wikipedia.org/wiki/Boeing_737_AEW%26C).
Powered by [tauri](https://tauri.app/).

## Requirements

- Server should support Tacview realtime telemetry
- [Rust](https://www.rust-lang.org/)
- [Node](https://nodejs.org/en/)

## Usage

```
yarn tauri dev
```

## License

[MIT license](./LICENSE)
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</head>

<body>
<div id="root"></div>
<div id="root" class="h-screen w-screen"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
18 changes: 15 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,27 @@
"build": "tsc && vite build",
"preview": "vite preview",
"tauri": "tauri",
"prettier": "prettier --write --config ./.prettierrc './src/**/*.{js,jsx,ts,tsx,css}'",
"prettier:check": "prettier --check --config ./.prettierrc './src/**/*.{js,jsx,ts,tsx,css}'",
"prettier": "prettier --write --config ./.prettierrc index.html './src/**/*.{js,jsx,ts,tsx,css}'",
"prettier:check": "prettier --check --config ./.prettierrc index.html './src/**/*.{js,jsx,ts,tsx,css}'",
"lint": "eslint './src/**/*.{js,jsx,ts,tsx}'",
"lint:fix": "eslint --fix './src/**/*.{js,jsx,ts,tsx}'"
},
"dependencies": {
"@tauri-apps/api": "^1.2.0",
"@turf/circle": "^6.5.0",
"classnames": "^2.3.2",
"daisyui": "^2.50.0",
"geojson": "^0.5.0",
"mapbox-gl": "npm:[email protected]",
"maplibre-gl": "^2.4.0",
"mgrs": "^1.0.1-alpha.0",
"milsymbol": "^2.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"react-map-gl": "^7.0.21",
"react-router-dom": "^6.8.0",
"react-toastify": "^9.1.1",
"spinners-react": "^1.0.7"
},
"devDependencies": {
"@tauri-apps/cli": "^1.2.2",
Expand Down
91 changes: 91 additions & 0 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ tauri-build = { version = "1.2", features = [] }
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.2", features = ["api-all"] }
tacview-realtime-client = { git = "https://github.com/pbzweihander/tacview-realtime-client-rs.git", rev = "5f8304bb1b2d5173041ebd17b81dba958cdb2cb3" }
tracing-subscriber = { version = "0.3.16", features = ["fmt", "env-filter"] }
time = { version = "0.3.17", features = ["parsing", "formatting", "serde"] }
tokio = { version = "1.25.0", features = ["time", "sync", "parking_lot"] }
tracing = "0.1.37"

[features]
default = ["custom-protocol"]
Expand Down
Loading

0 comments on commit 266876e

Please sign in to comment.