diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..a89b76c --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,31 @@ +name: SharePulse Build + +on: + push: + branches: + - main + +jobs: + build-jar: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v2 + with: + java-version: '21' + distribution: 'adopt' + + - name: Grant execute permission for gradlew + run: chmod +x ./gradlew + + - name: Build .jar with Maven + run: ./gradlew clean bootJar + + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: jar-artifact + path: build/libs/*.jar \ No newline at end of file diff --git a/frontend/src/app/credits/credits.component.html b/frontend/src/app/credits/credits.component.html index d8e8077..b65b6b4 100644 --- a/frontend/src/app/credits/credits.component.html +++ b/frontend/src/app/credits/credits.component.html @@ -1,27 +1,27 @@
- + SharePulse Logo SharePulse
-

+

Upload a file. Share the URL/link. Download the file. Simple as that.

-
+

Developer:

Walzen665

-
+

Version:

1.0.0

-
+

API-Status:

online

-
+

Libraries:

Fontawesome, diff --git a/frontend/src/app/download/download.component.html b/frontend/src/app/download/download.component.html index 35aec59..faa48bb 100644 --- a/frontend/src/app/download/download.component.html +++ b/frontend/src/app/download/download.component.html @@ -23,12 +23,12 @@

-

Files are available for a limited time. Ensure the code or link is correct and the file is still downloadable.

@@ -52,10 +52,10 @@

Download complete!

File {{ fileName }} has been downloaded and saved to your drive.

The download took {{ downloadDuration }} seconds.

- -
diff --git a/frontend/src/app/home/home.component.html b/frontend/src/app/home/home.component.html index 748d814..d177332 100644 --- a/frontend/src/app/home/home.component.html +++ b/frontend/src/app/home/home.component.html @@ -1,6 +1,6 @@

Welcome to SharePulse

-

Where sharing files is easier than finding a matching sock on laundry day!

+

{{ slogan }}

@@ -8,7 +8,7 @@

Download File

Access and download shared files quickly.

QUICK LINK
- +
@@ -17,7 +17,7 @@

Upload File

Easily share your files with anyone by uploading them here.

QUICK LINK
- +
diff --git a/frontend/src/app/home/home.component.ts b/frontend/src/app/home/home.component.ts index 017cf73..7d7fd8d 100644 --- a/frontend/src/app/home/home.component.ts +++ b/frontend/src/app/home/home.component.ts @@ -2,6 +2,7 @@ import {Component, ElementRef, ViewChild} from '@angular/core'; import {RouterLink} from "@angular/router"; import {FormsModule} from "@angular/forms"; import {LegalService} from "../../service/legalService"; +import slogans from "../../assets/slogans"; @Component({ selector: 'app-home', @@ -14,7 +15,10 @@ import {LegalService} from "../../service/legalService"; styleUrl: './home.component.scss' }) export class HomeComponent { + + slogan: string = ""; constructor(private legalService: LegalService) { + this.slogan = slogans[Math.floor(Math.random() * slogans.length)]; } openPrivacyPolicyModal() { diff --git a/frontend/src/app/navbar/navbar.component.html b/frontend/src/app/navbar/navbar.component.html index c50679f..4e615fb 100644 --- a/frontend/src/app/navbar/navbar.component.html +++ b/frontend/src/app/navbar/navbar.component.html @@ -1,12 +1,12 @@
@@ -63,7 +63,7 @@
-
File Name:
+
File name:
{{uploadData.fileName}}
Is password protected:
@@ -77,7 +77,7 @@ {{uploadData.singleDownload ? 'Yes' : 'No'}} -
Download Password:
+
Download password:
{{uploadData.password || 'N/A'}}
File ID:
@@ -86,8 +86,12 @@
Download URL:
+ +
@@ -99,12 +103,12 @@

Your file is now securely stored on our servers.

- - - + +
diff --git a/frontend/src/assets/slogans.ts b/frontend/src/assets/slogans.ts new file mode 100644 index 0000000..a2e86ba --- /dev/null +++ b/frontend/src/assets/slogans.ts @@ -0,0 +1,41 @@ +let slogans = [ + "Where files meet freedom, and lost socks are forgotten!", + "Where sending files is as easy as pie – minus the baking part.", + "Like finding money in your pocket, but for files.", + "Making file sharing as easy as falling off a log (without the bruises).", + "Sending files, as effortless as finding water in the ocean!", + "Sharing files made so simple, even your grandma is doing it in her sleep!", + "Where sharing files is easier than choosing a movie on movie night.", + "Where sharing files is quicker than making instant noodles, and way more satisfying.", + "Sharing files, as straightforward as a one-way street – but with no traffic.", + "File sharing, smoother than a freshly paved road.", + "Sharing files like hitting every green light on your way home.", + "Sharing files made easier than getting a cat to ignore a laser pointer.", + "Sharing files so easy, you'd think we found a cheat code for the internet.", + "Where files fly faster than jokes at a family dinner.", + "Sharing files made simpler than a two-piece puzzle.", + "File sharing as easy as getting sand at the beach – but without the cleanup.", + "Like a hot knife through butter, but for your files.", + "Where sending files is easier than finding a parking spot on a busy day!", + "Where sending files is easier than picking a Netflix show on a Friday night!", + "Where sending files is easier than saying no to an extra slice of pizza!", + "Where sending files is easier than finding a needle in a haystack — because who does that anyway?", + "Where sending files is easier than getting out of bed on a Monday morning!", + "Where sending files is easier than keeping a plant alive!", + "Where sending files is easier than resisting hitting snooze on your alarm!", + "Where sending files is easier than deciding what to have for dinner!", + "Where sending files is easier than folding a fitted sheet properly!", + "Where sending files is easier than finding someone who dislikes puppies!", + "Where sending files is easier than trying to remember your passwords!", + "Where sending files is easier than trying to drink water while wearing a facemask!", + "Where sending files is easier than figuring out what your cat is thinking!", + "Where sending files is easier than avoiding spoilers for your favorite show!", + "Where sending files is easier than choosing the perfect emoji for any situation!", + "Where sending files is easier than trying to say 'toy boat' five times fast!", + "Where sending files is easier than finding your way out of an IKEA!", + "Where sending files is easier than putting a USB in the right way on the first try!", + "Where sending files is easier than untangling headphones!", + "Where sending files is easier than finding a matching pair of socks on laundry day—wait, we've been here before!", + "Where sharing files is easier than finding a matching sock on laundry day!" +] +export default slogans;