Skip to content

Commit

Permalink
feat: home mit Video-Feed und Services implementiert.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckeller81 committed Aug 24, 2024
1 parent fc298b4 commit 88ba7d6
Show file tree
Hide file tree
Showing 17 changed files with 491 additions and 16 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_BACKEND_WEBSOCKET_URL=https://trackmate-backend-bscxaycdesb5gkeg.westeurope-01.azurewebsites.net/trackNodes
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_BACKEND_WEBSOCKET_URL=https://trackmate-backend-bscxaycdesb5gkeg.westeurope-01.azurewebsites.net/trackNodes
184 changes: 184 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"type-check": "vue-tsc --build --force"
},
"dependencies": {
"@microsoft/signalr": "^8.0.7",
"@popperjs/core": "^2.11.8",
"bootstrap": "^5.3.3",
"pinia": "^2.1.7",
Expand Down
8 changes: 4 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<template>
<div class="container container-fluid">
<main>
<RouterView />
</div>
</main>
</template>

<script lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import { defineComponent } from 'vue'
import { defineComponent } from 'vue';
import { RouterLink, RouterView } from 'vue-router';
export default defineComponent({
name: 'App',
Expand Down
10 changes: 10 additions & 0 deletions src/models/create-track-node-model.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { GeoLocation } from "./geo-location";
import type { Orientation } from "./orientation";
import type { TransformationVector } from "./transformation-vector";

export interface CreateTrackNodeModel {
Location: GeoLocation,
Vector: TransformationVector,
Orientation: Orientation,
previousTrackNodeId: string | null,
}
13 changes: 13 additions & 0 deletions src/models/device-position-model.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

export interface DevicePositionModel {
x: number;
y: number;
z: number;
orientation: DeviceOrientationModel;
}

export interface DeviceOrientationModel {
alpha: number; // rotation around Z axis (0 to 360 degrees)
beta: number; // rotation around X axis (-180 to 180 degrees)
gamma: number; // rotation around Y axis (-90 to 90 degrees)
}
6 changes: 6 additions & 0 deletions src/models/geo-location.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

export interface GeoLocation {
latitude: number,
longitude: number,
altitude: number
}
6 changes: 6 additions & 0 deletions src/models/orientation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

export interface Orientation {
alpha: number; // rotation around Z axis (0 to 360 degrees)
beta: number; // rotation around X axis (-180 to 180 degrees)
gamma: number; // rotation around Y axis (-90 to 90 degrees)
}
16 changes: 16 additions & 0 deletions src/models/track-models.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

export interface StartTrackModel {
startPoint: string,
goalTrackNodeId: string
}

export interface UploadTrackStepModel {
trackId: string,
mimeType: string,
imageDataBase64: string
imageData: ImageData | undefined
}

export interface TrackStepResultModel {
// TODO
}
10 changes: 10 additions & 0 deletions src/models/track-node-model.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { GeoLocation } from "./geo-location";
import type { Orientation } from "./orientation";
import type { TransformationVector } from "./transformation-vector";

export interface TrackNodeModel {
id: string,
location: GeoLocation,
vector: TransformationVector,
orientation: Orientation
}
6 changes: 6 additions & 0 deletions src/models/transformation-vector.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

export interface TransformationVector {
x: Number,
y: Number,
z: Number
}
7 changes: 7 additions & 0 deletions src/models/upload-picture-model.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

export interface UploadPictureModel {
trackNodeId: string | undefined,
imageDataBase64: string,
imageData: ImageData | undefined,
mimeType: string
}
Loading

0 comments on commit 88ba7d6

Please sign in to comment.