-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Javascript interface and implementation of API based upon RFC 001 #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
a28c6f9
chore: ignore DS_Store files
SkySails 6af3f43
build: create base navdata-sdk module
SkySails 0b4dd16
build: fix build with navdata-sdk
SkySails 0b5162f
build: include navdata-sdk in tsconfig
SkySails d2d4774
refactor: add msfstypes to ts library
pepperoni505 ab9ed5b
wip(feat/restructure): centralized function call, raw sql query
pepperoni505 57b146e
refactor: clean up queue processing
pepperoni505 3c5d5ba
refactor: move lint and lint to root
pepperoni505 6304788
refactor: centralize communications between wasm and js, and cleanups
pepperoni505 0128e6a
refactor: apply clippy changes
pepperoni505 ac73208
refactor: rename Request to Task
pepperoni505 2299cb6
refactor: download status update flow
pepperoni505 4e7535c
refactor: move phase matching logic
pepperoni505 10f537c
refactor: add typescript interface typings
pepperoni505 a811280
refactor: use string values for NavigraphFunction enum
pepperoni505 2d5db33
refactor: use serde for all commbus related things
pepperoni505 e49fc66
docs: add note about the navdata interface construction
pepperoni505 1d4b818
refactor: switch instead of if chain
SkySails d40fc3f
chore: add temp. CommBus types, use types lib
SkySails bb4c48f
refactor: avoid array with `any` callbacks
SkySails 03b07c7
refactor: strongly type `callWasmFunction` name param
SkySails 6fb334a
chore: use lowercase for type declaration file
SkySails fc4c70f
refactor: improve error handling
SkySails d80b82e
refactor: move msfstypes to base package
pepperoni505 ab4d459
feat: add get airport function
pepperoni505 502d12d
fix: use string literal instead of enum
pepperoni505 827de97
chore: format
pepperoni505 3874a16
feat: unit tests and project refactor (#1)
professoralex13 ab402a3
fix: use params and support number fields in raw sql query
professoralex13 ba9e84e
start new API
professoralex13 3805c8e
feat: get airports in range
professoralex13 69ccba2
feat: Airways by ident
professoralex13 9b6da96
feat: Airways by range
professoralex13 af083bb
formatting
professoralex13 df68fa7
feat: Departures query
professoralex13 f1ebcc7
fix: sim issues
professoralex13 3a3fcc4
refactor: Move database out of wasm module
professoralex13 7dddbc8
refactor: switch to fully snake_case and other spec compliance
professoralex13 fd6a4ce
feat: arrivals
professoralex13 a52bc7b
refactor: procedure mapping
professoralex13 9302356
feat: get_database_info
professoralex13 463891c
refactor: remove uneccesary serde renames
professoralex13 66c675e
feat: Approaches
professoralex13 c79792f
fix: fix airport_ident
professoralex13 42d705b
pad out tests
professoralex13 a7bbcbf
feat: Waypoint and VhfNavaid queries
professoralex13 3a7cb7f
refactor: Generic range query generator
professoralex13 1bd42bb
feat: get runways at airport
professoralex13 14ec451
feat: Waypoint/VhfNavaid range queries
professoralex13 a6befbc
feat: ndb navaids
professoralex13 802f3e2
feat: navaid and waypoint airport queries
professoralex13 1e2dd92
feat: get airways at fix
professoralex13 848b0f4
feat: comments
professoralex13 19abbe5
feat: Airspace range queries
professoralex13 26acfc5
fix: missing Database Info type
professoralex13 f2fdfb7
fix: approach
professoralex13 7fe4a38
feat: gates
professoralex13 af9f266
feat: communications
professoralex13 caefef4
feat: Gls navaids
professoralex13 6e45f44
feat: pathpoints
professoralex13 da2e17f
improved documentation
professoralex13 b1ed00a
Update README.md
professoralex13 3e563a0
Update README.md
professoralex13 f055ad1
Update NavigraphLogin.tsx
professoralex13 9b2632d
fix: js interface return types
professoralex13 4163bf8
general fixes
professoralex13 dafb9ef
refactor workflow env
professoralex13 c141b34
Revert "refactor workflow env"
professoralex13 f4e838b
refactors and comments in js
professoralex13 635f81a
feat: click on qr code to login
professoralex13 443dcb3
test verbose
professoralex13 15d5763
test
professoralex13 002a4d4
test
professoralex13 7bde835
Update pr.yml
professoralex13 2828783
ci: run tests without docker
SkySails 551070d
ci: run jest directly
SkySails 0fd338e
ci: update actions, bump node version
SkySails 41d807f
ci: disable cone mode for sparse-checkout
SkySails ae13b38
ci: exclude blobs instead of sparse
SkySails 9fb0810
ci: skip installing packages in docker
SkySails ecab85a
ci: run correct test script
SkySails 7a85b78
ci: temporarily skip WASM builds
SkySails 9dd9d7f
ci: explicit node version, install deps
SkySails 6081a62
ci: install deps inside docker
SkySails 0e753a7
ci: make sure both commands run inside docker
SkySails a9a7f77
ci: revert to incorrect (but working) script
SkySails b7b1b6b
ci: reintroduce WASM build step
SkySails d813803
ci: move test run to separate line for clarity
SkySails 01d2f40
Delete DOCS.md
professoralex13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
20 changes: 10 additions & 10 deletions
20
...wasm_navdata_interface/.cargo/config.toml → .cargo/config.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[target.wasm32-wasi] | ||
rustflags = [ | ||
"-Clink-arg=--export-table", | ||
"-Clink-arg=--export=malloc", | ||
"-Clink-arg=--export=free", | ||
"-Clink-arg=-L/usr/lib/llvm-15/lib/clang/15.0.7/lib/wasi", | ||
"-Clink-arg=-lclang_rt.builtins-wasm32" | ||
] | ||
[build] | ||
[target.wasm32-wasi] | ||
rustflags = [ | ||
"-Clink-arg=--export-table", | ||
"-Clink-arg=--export=malloc", | ||
"-Clink-arg=--export=free", | ||
"-Clink-arg=-L/usr/lib/llvm-15/lib/clang/15.0.7/lib/wasi", | ||
"-Clink-arg=-lclang_rt.builtins-wasm32" | ||
] | ||
|
||
[build] | ||
target = "wasm32-wasi" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: create env file | ||
run: | | ||
touch .env | ||
echo NAVDATA_SIGNED_URL=${{ secrets.NAVDATA_SIGNED_URL }} >> .env | ||
- name: Build WASM module | ||
run: npm run build:wasm-workflow | ||
- name: Test | ||
run: npm run test-workflow | ||
- name: Upload WASM module to GitHub | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: msfs_navdata_interface.wasm | ||
path: ./out/msfs_navdata_interface.wasm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Rollup | ||
.rollup.cache | ||
|
||
package-lock.json | ||
|
||
*.gltf | ||
*.json | ||
*.yml |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[workspace] | ||
resolver = "2" | ||
|
||
members = ["src/wasm", "src/database"] | ||
|
||
[profile.release] | ||
lto = true | ||
strip = true | ||
|
||
[patch.crates-io] | ||
rusqlite = { git = "https://github.com/navigraph/rusqlite", rev = "7921774" } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.