Added bootjar build

- Fixed spelling mistake in home
- Fixed date bug
This commit is contained in:
Max W. 2024-02-19 20:55:16 +01:00
parent 78f32c4f64
commit ed82e2e3f2
4 changed files with 13 additions and 1 deletions

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM openjdk:23-jdk-slim
LABEL authors="Walzen665"
ENTRYPOINT ["top", "-b"]

View File

@ -38,6 +38,11 @@ dependencies {
implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1' implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
} }
bootJar {
manifest {
}
}
tasks.named('test') { tasks.named('test') {
useJUnitPlatform() useJUnitPlatform()
} }

View File

@ -1,5 +1,5 @@
<div class="container mx-auto p-4 mt-4 overflow-visible md:overflow-hidden"> <div class="container mx-auto p-4 mt-4 overflow-visible md:overflow-hidden">
<h1 class="text-4xl font-bold text-center text-gray-800 mb-10">Welcome to SharePule</h1> <h1 class="text-4xl font-bold text-center text-gray-800 mb-10">Welcome to SharePulse</h1>
<p class="text-xl text-center text-gray-800 mb-10">Where sharing files is easier than finding a matching sock on laundry day!</p> <p class="text-xl text-center text-gray-800 mb-10">Where sharing files is easier than finding a matching sock on laundry day!</p>
<div class="grid md:grid-cols-2 gap-4"> <div class="grid md:grid-cols-2 gap-4">
<!-- Downloading Section --> <!-- Downloading Section -->

View File

@ -65,6 +65,9 @@ public class FileUploadRepository {
Type type = new TypeToken<Map<String, Object>>(){}.getType(); Type type = new TypeToken<Map<String, Object>>(){}.getType();
Map<String, Object> map = gson.fromJson(json, type); Map<String, Object> map = gson.fromJson(json, type);
long uploadDateTimestamp = updatedFileUpload.getUploadDate().getTime() / 1000;
map.put("uploadDate", uploadDateTimestamp);
String fileId = updatedFileUpload.getFileId(); String fileId = updatedFileUpload.getFileId();
r.db("sharepulse").table("file_uploads") r.db("sharepulse").table("file_uploads")