Skip to content

Commit

Permalink
Websocket communicate with backend (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen authored Jun 15, 2024
1 parent 5a64010 commit 9a3227b
Show file tree
Hide file tree
Showing 67 changed files with 1,988 additions and 666 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].6
uses: actions/[email protected].7
with:
fetch-depth: 0

Expand All @@ -73,7 +73,7 @@ jobs:
uses: docker/[email protected]

- name: Build armv7
uses: docker/build-push-action@v5.3.0
uses: docker/build-push-action@v5.4.0
with:
context: .
push: false
Expand All @@ -95,7 +95,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].6
uses: actions/[email protected].7
with:
fetch-depth: 0

Expand All @@ -113,7 +113,7 @@ jobs:
uses: docker/[email protected]

- name: Build arm64
uses: docker/build-push-action@v5.3.0
uses: docker/build-push-action@v5.4.0
with:
context: .
push: false
Expand All @@ -134,7 +134,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].6
uses: actions/[email protected].7
with:
fetch-depth: 0

Expand All @@ -152,7 +152,7 @@ jobs:
uses: docker/[email protected]

- name: Build amd64
uses: docker/build-push-action@v5.3.0
uses: docker/build-push-action@v5.4.0
with:
context: .
push: false
Expand All @@ -172,7 +172,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected].6
uses: actions/[email protected].7
with:
fetch-depth: 0

Expand All @@ -190,7 +190,7 @@ jobs:
uses: docker/[email protected]

- name: Build amd64
uses: docker/build-push-action@v5.3.0
uses: docker/build-push-action@v5.4.0
with:
context: .
push: false
Expand Down Expand Up @@ -269,7 +269,7 @@ jobs:
github.event.inputs.build_latest_as_test == '' )
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/[email protected].6
- uses: actions/[email protected].7

- name: setup node
uses: actions/[email protected]
Expand Down Expand Up @@ -298,7 +298,7 @@ jobs:
# - name: install frontend dependencies
# run: yarn install # change this to npm, pnpm or bun depending on which one you use.

- uses: tauri-apps/[email protected].5
- uses: tauri-apps/[email protected].6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected].6
- uses: actions/[email protected].7
- name: Pull markdownlint/markdownlint:latest Image
run: docker pull markdownlint/markdownlint:latest
- name: Run markdownlint against *.md files
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/on_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
name: "Linting: hadolint"
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].6
- uses: actions/[email protected].7
- name: Pull hadolint/hadolint:latest Image
run: docker pull hadolint/hadolint:latest
- name: Run hadolint against Dockerfiles
Expand All @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].6
uses: actions/[email protected].7
with:
fetch-depth: 0

Expand All @@ -59,7 +59,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].6
uses: actions/[email protected].7
with:
fetch-depth: 0

Expand All @@ -77,7 +77,7 @@ jobs:
uses: docker/[email protected]

- name: Build armv7
uses: docker/build-push-action@v5.3.0
uses: docker/build-push-action@v5.4.0
with:
context: .
push: false
Expand All @@ -99,7 +99,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].6
uses: actions/[email protected].7
with:
fetch-depth: 0

Expand All @@ -117,7 +117,7 @@ jobs:
uses: docker/[email protected]

- name: Build arm64
uses: docker/build-push-action@v5.3.0
uses: docker/build-push-action@v5.4.0
with:
context: .
push: false
Expand All @@ -139,7 +139,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].6
uses: actions/[email protected].7
with:
fetch-depth: 0

Expand All @@ -157,7 +157,7 @@ jobs:
uses: docker/[email protected]

- name: Build amd64
uses: docker/build-push-action@v5.3.0
uses: docker/build-push-action@v5.4.0
with:
context: .
push: false
Expand All @@ -178,7 +178,7 @@ jobs:
needs: [test_rust_functionality]
steps:
- name: Checkout
uses: actions/[email protected].6
uses: actions/[email protected].7
with:
fetch-depth: 0

Expand All @@ -196,7 +196,7 @@ jobs:
uses: docker/[email protected]

- name: Build amd64
uses: docker/build-push-action@v5.3.0
uses: docker/build-push-action@v5.4.0
with:
context: .
push: false
Expand Down Expand Up @@ -283,7 +283,7 @@ jobs:

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/[email protected].6
- uses: actions/[email protected].7

- name: setup node
uses: actions/[email protected]
Expand Down Expand Up @@ -312,7 +312,7 @@ jobs:
# - name: install frontend dependencies
# run: yarn install # change this to npm, pnpm or bun depending on which one you use.

- uses: tauri-apps/[email protected].5
- uses: tauri-apps/[email protected].6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].6
- uses: actions/[email protected].7
with:
fetch-depth: 0
- uses: vrslev/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: Run yamllint against YAML files
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].6
- uses: actions/[email protected].7
- name: yaml-lint
uses: ibiqlik/[email protected]
with:
Expand Down
35 changes: 23 additions & 12 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ members = [
"src/libraries/sh-api",
"src/libraries/sh-config",
"src/libraries/sh-common",
"src/libraries/sh-common-server",
]
exclude = ["sh-frontend"]

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.build_binary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.78.0 as builder
FROM rust:1.79.0 as builder
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
WORKDIR /tmp/sdre-hub
# hadolint ignore=DL3008,DL3003,SC1091,DL4006,DL3009
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.build_frontend
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.78.0 as builder
FROM rust:1.79.0 as builder
WORKDIR /tmp/sdre-hub
# hadolint ignore=DL3008,DL3003,SC1091,DL4006,DL3009
RUN set -x && \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.local
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.78.0 as builder
FROM rust:1.79.0 as builder
WORKDIR /tmp/sdre-hub
# hadolint ignore=DL3008,DL3003,SC1091,DL4006
RUN set -x && \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Sorry, there is no migration path from ACARS Hub to SDR-E Hub. The data that ACA
- [x] Application build
- [ ] Manage settings from the web interface
- [x] GitHub CI
- [ ] Custom Error handling
- [ ] FIXME/TODO Cleanup
- [ ] Code documentation
- [ ] Unit Tests
Expand Down
Loading

0 comments on commit 9a3227b

Please sign in to comment.