Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-Afro committed Dec 29, 2023
1 parent 5bba42f commit 1d6bfc5
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 255 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-push-container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
id: extract_ref
shell: bash
run: echo "git_ref_name=$(echo ${GITHUB_REF##*/})" >> $GITHUB_ENV
- name: Set up JDK 17
uses: actions/setup-java@v3
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 17
java-version: 21
distribution: temurin
cache: maven
- name: Log in to the Container registry
Expand Down
97 changes: 0 additions & 97 deletions src/main/docker/Dockerfile.jvm

This file was deleted.

93 changes: 0 additions & 93 deletions src/main/docker/Dockerfile.legacy-jar

This file was deleted.

27 changes: 0 additions & 27 deletions src/main/docker/Dockerfile.native

This file was deleted.

30 changes: 0 additions & 30 deletions src/main/docker/Dockerfile.native-micro

This file was deleted.

3 changes: 3 additions & 0 deletions src/main/java/de/svs/status/StatusDto.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package de.svs.status;

import io.quarkus.runtime.annotations.RegisterForReflection;

import java.time.LocalDateTime;

@RegisterForReflection
public record StatusDto(String message, String namespaceBaseUri, java.time.LocalDateTime date, boolean success, boolean finalMessage) {
public StatusDto(String message, String namespaceBaseUri, boolean success, boolean finalMessage) {
this(message, namespaceBaseUri, LocalDateTime.now(), success, finalMessage);
Expand Down
12 changes: 7 additions & 5 deletions src/main/resources/templates/Namespace/namespace.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,18 @@

<script>

function displayMessage(date = new Date(), message) {
const liveConsole = document.getElementById('liveConsole');
liveConsole.textContent += new Date(date).toISOString() + ': ' + message + '\n';
}

function setupSSE() {
const liveConsole = document.getElementById('liveConsole');
liveConsole.style.display = 'block';

const eventSource = new EventSource('namespace/status?namespace={defaultNamespace}');
displayMessage("you will be automatically redirected when your namespace becomes ready")

function displayMessage(date = new Date(), message) {
const liveConsole = document.getElementById('liveConsole');
liveConsole.textContent += new Date(date).toISOString() + ': ' + message + '\n';
}
const eventSource = new EventSource('namespace/status?namespace={defaultNamespace}');

eventSource.addEventListener('namespace-status', (e) => {
const eventData = JSON.parse(e.data);
Expand Down

0 comments on commit 1d6bfc5

Please sign in to comment.