Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Feat/replace localhost #25

Merged
merged 39 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
4a1f34c
feat: zoom buttons styled + knowledgegraph set right
jobulcke Sep 27, 2023
c037bdd
feat: slider + buttons styled + global header + right fonts used + ma…
jobulcke Sep 28, 2023
212c4b9
feat: wrong placed scoped placed on a styling block
jobulcke Sep 28, 2023
4c35a42
feat: init of modals and checkboxtiles
jobulcke Oct 2, 2023
6cc6314
feat: z-stack bug fixed + checkboxtile finished
jobulcke Oct 2, 2023
cfd28a6
Feat: Add membercounter (#19)
WLefever-Cegeka Oct 2, 2023
f3b700d
fix: removal of member on map resolved + addition of styling of Membe…
jobulcke Oct 2, 2023
71b1815
Feat: Add linechart
Lefeverw Oct 2, 2023
8226a8a
Feat: minor
Lefeverw Oct 3, 2023
54e8a92
feat: polygon styling
jobulcke Oct 3, 2023
25e0ba3
feat: legend styled
jobulcke Oct 4, 2023
d98e495
feat: minor update IngestedMemberDto
Lefeverw Oct 4, 2023
acc14aa
feat: Add collection as field
Lefeverw Oct 4, 2023
7190389
feat: add collection to member
pj-cegeka Oct 4, 2023
29e203e
feat: add collection to in rectangle
pj-cegeka Oct 5, 2023
de2887c
feat: fix tests
pj-cegeka Oct 5, 2023
a6a59d5
WIP
Lefeverw Oct 4, 2023
4fc753d
WIP
Lefeverw Oct 5, 2023
29d7c47
WIP
Lefeverw Oct 5, 2023
691bdb0
custom code
Lefeverw Oct 5, 2023
d5c02b0
fix: set broken test to disabled
pj-cegeka Oct 5, 2023
5040705
custom code
Lefeverw Oct 5, 2023
b6bc44a
custom code
Lefeverw Oct 5, 2023
9bfa6dc
feat: markers styled with flanders icon + icon grows when clicked
jobulcke Oct 9, 2023
e5d79f6
fix: broken tests repaired
jobulcke Oct 9, 2023
3a63202
WIP: added logic to the checkbox tiles
jobulcke Oct 10, 2023
1043b3e
feat: layers are added/removed based on checkbox state
jobulcke Oct 10, 2023
01dc82d
chore: update page title and favicon
Yalz Oct 10, 2023
9f15568
WIP: custom icon for clusters
jobulcke Oct 10, 2023
36ea8f0
feat: cluster icons customized
jobulcke Oct 10, 2023
0603806
feat: zoom buttons styled + knowledgegraph set right
jobulcke Sep 27, 2023
427d4e5
temp
pj-cegeka Oct 5, 2023
ddcb15b
feat: unsubscribe websocket client on different ldes
pj-cegeka Oct 10, 2023
fb914ee
feat: add multiple stream logic for updates
pj-cegeka Oct 10, 2023
e3dc926
feat: add multiple stream logic for updates
pj-cegeka Oct 10, 2023
23177f9
feat: first attempt to dockerize
jobulcke Oct 10, 2023
989afc9
feat: fixes for dockerizing
jobulcke Oct 11, 2023
cb5789f
WIP
jobulcke Oct 12, 2023
4fa486e
Merge remote-tracking branch 'origin/main' into fix/replace-localhost
jobulcke Oct 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ FROM maven:3.8.5-openjdk-18 AS builder
# MAVEN: application
FROM builder AS app-stage
COPY . /
ARG VITE_HOST
ARG VITE_PORT
ENV VITE_HOST=$VITE_HOST
ENV VITE_PORT=$VITE_PORT
RUN mvn clean install -DskipTests

#
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ services:
build:
context: .
dockerfile: Dockerfile
args:
- VITE_HOST=host.docker.internal
- VITE_PORT=8084
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgresql:5432/test
- SPRING_DATASOURCE_USERNAME=postgres
Expand All @@ -36,6 +39,8 @@ services:
- GRAPHDB_URL=http://rdf4j-server:8080/rdf4j-server/repositories/
- GRAPHDB_REPOSITORYID=test
- SERVER_PORT=8080
- VITE_HOST=demonstrator
- VITE_PORT=8080
ports:
- 8084:8080
depends_on:
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/legend/Legend.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ const emit = defineEmits(['onCloseClick'])
grid-template-columns: 81px auto;
gap: 24px 36px;
margin-bottom: 24px;
align-items: center;
}
</style>
4 changes: 3 additions & 1 deletion frontend/src/components/linechart/LineChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default {
data: {
labels: [],
datasets: [],
stompClient: null,
},
colorCodesFlanders: ["#FFED00", "#443939"],
options: {
Expand All @@ -61,7 +62,8 @@ export default {
methods: {
//websocket
connect() {
this.stompClient = new Stomp.client('ws://localhost:8084/update', {debug: false});
this.stompClient = new Stomp.client(`ws://${import.meta.env.VITE_HOST}:${import.meta.env.VITE_PORT}/update`, {debug: false});
// this.stompClient = new Stomp.client(`ws://localhost:8084/update`, {debug: false});
this.stompClient.connect(
{},
() => {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/map/LeafletMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default {
//websocket
connect() {
const decolouringTimeout = 1000;
this.stompClient = new Stomp.client('ws://localhost:8084/update', {debug: false});
this.stompClient = new Stomp.client(`ws://${import.meta.env.VITE_HOST}:${import.meta.env.VITE_PORT}/update`, {debug: false});
this.stompClient.connect(
{},
frame => this.subscribe(),
Expand All @@ -172,7 +172,7 @@ export default {
}
},
subscribe() {
for (let [key, value] of this.layersToShow.entries()) {
for (let key of this.layersToShow.keys()) {
this.stompClient.subscribe("/broker/member/" + key, (member) => {
let body = JSON.parse(member.body)
let marker = useMarkers([body], (memberId) => this.memberId = memberId, this.onPopupClosed).at(0)
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/membercounter/MemberCounter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export default {
methods: {
//websocket
connect() {
this.stompClient = new Stomp.client('ws://localhost:8084/update', {debug: false});
this.stompClient = new Stomp.client(`ws://${import.meta.env.VITE_HOST}:${import.meta.env.VITE_PORT}/update`, {debug: false});
// this.stompClient = new Stomp.client(`ws://localhost:8084/update`, {debug: false});
this.stompClient.connect(
{},
() => {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/modal/MapButtons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ function onCheckboxClicked(key: string, isChecked: boolean) {
position: fixed;
right: 8px;
top: 0;
cursor: pointer;
}

</style>
39 changes: 21 additions & 18 deletions frontend/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
import {fileURLToPath, URL} from 'node:url'

import {defineConfig} from 'vite'
import {defineConfig, loadEnv} from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
cors: {
origin: "*"
export default defineConfig(({command, mode}) => {
const env = loadEnv(mode, process.cwd(), '')
return {
plugins: [
vue(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
cors: {
origin: "*"
},
proxy: {
'/api': `http://${env.VITE_HOST}:${env.VITE_PORT}/`,
}
},
proxy: {
'/api': 'http://localhost:8084/',
build: {
outDir: 'target/dist'
}
},
build: {
outDir: 'target/dist'
}
})
Loading