-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
449 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM openjdk:17.0 | ||
WORKDIR / | ||
ADD xdccloader.jar xdccloader.jar | ||
EXPOSE 8080 | ||
CMD java -jar xdccloader.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,40 @@ | ||
# xddcwebloader | ||
# XDCCWebloader | ||
Web based Download Manager for xdcc file transfer with ReactJS in the frontend and Spring Data REST in the backend | ||
|
||
# Releases | ||
Releases and executables can be found here: | ||
[Releases](https://github.com/MaggiWuerze/xddcwebloader/releases) | ||
|
||
# Screenshots | ||
|
||
### The Main Download View | ||
 | ||
|
||
### Configuring Bots for different Servers and Channels | ||
<img src="https://user-images.githubusercontent.com/9729962/184310278-6973ae76-a08e-43f4-93d4-0776c8d0a078.png" width="15%"></img> <img src="https://user-images.githubusercontent.com/9729962/184310219-024bc28c-7226-4aa0-bb75-1be2e3efec65.png" width="15%"></img> <img src="https://user-images.githubusercontent.com/9729962/184310113-8230d5ec-4824-4e36-83a0-0ec65a902819.png" width="15%"></img> | ||
|
||
### Settings page | ||
 | ||
|
||
# Running The App | ||
### Locally | ||
The simplest way to run it is to simply execute the jar from the [releases](https://github.com/MaggiWuerze/xddcwebloader/releases) section. it packs everything except a java runtime, so as long as you have java you can run it and start right away. | ||
### Docker | ||
The next best option is to use the Dockerfiles found in the repository to build and run the app through your docker installation. | ||
### From The IDE | ||
This option is mainly meant for people looking into the code or trying to make a PR/Fork for it. Open the project in your favourite Java IDE and execute the XdccloaderApplication class. | ||
|
||
I'd recommend IntelliJ. For this approach also see the building section. | ||
|
||
-- | ||
|
||
After starting the app (shouldn't take more than a couple of seconds) you can open it in your browser at either [localhost:8080](localhost:8080) or hostname/ip:8080 if you try to access it from another machine. | ||
|
||
# Building | ||
Building the app (and running it from your IDE) requires you to install the following requirements: | ||
- Node.js (17+) | ||
- JDK (17+) | ||
|
||
|
||
# Documentation (soon) | ||
https://maggiwuerze.de/XDCC-Webloader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '3.3' | ||
services: | ||
run: | ||
container_name: xdcc | ||
ports: | ||
- '9999:8080' | ||
environment: | ||
- XDCC_DB_TYPE=org.hibernate.dialect.PostgreSQLDialect | ||
- XDCC_DB_URL=postgresql://mediaserver:49153/postgres | ||
- XDCC_DB_USER=sa | ||
- XDCC_DB_PASSWORD=sa | ||
image: xdcc |
57 changes: 0 additions & 57 deletions
57
src/main/java/de/maggiwuerze/xdccloader/config/AuthenticationSuccessHandlerImpl.java
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
src/main/java/de/maggiwuerze/xdccloader/config/DataSourceConfig.java
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
src/main/java/de/maggiwuerze/xdccloader/config/configConditions/UserDataSourceCondition.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,6 @@ public class UserSettingsForm { | |
DownloadSort downloadSortBy; | ||
|
||
Long sessionTimeout; | ||
|
||
String downloadPath; | ||
} |
40 changes: 40 additions & 0 deletions
40
src/main/java/de/maggiwuerze/xdccloader/model/transport/BotTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package de.maggiwuerze.xdccloader.model.transport; | ||
|
||
import de.maggiwuerze.xdccloader.model.entity.Bot; | ||
import de.maggiwuerze.xdccloader.model.entity.Channel; | ||
import de.maggiwuerze.xdccloader.model.entity.Server; | ||
import java.time.LocalDateTime; | ||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.GenerationType; | ||
import javax.persistence.Id; | ||
import javax.persistence.JoinColumn; | ||
import javax.persistence.ManyToOne; | ||
import lombok.Data; | ||
import lombok.Value; | ||
|
||
@Value | ||
public class BotTO { | ||
|
||
Long id; | ||
|
||
String channel; | ||
|
||
String server; | ||
|
||
String name; | ||
|
||
String pattern; | ||
|
||
Long maxParallelDownloads; | ||
|
||
public BotTO(Bot bot) { | ||
this.id = bot.getId(); | ||
this.name = bot.getName(); | ||
this.pattern = bot.getPattern(); | ||
this.server = bot.getServer().getName(); | ||
this.channel = bot.getChannel().getName(); | ||
this.maxParallelDownloads = bot.getMaxParallelDownloads(); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/de/maggiwuerze/xdccloader/model/transport/ChannelTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package de.maggiwuerze.xdccloader.model.transport; | ||
|
||
import de.maggiwuerze.xdccloader.model.entity.Channel; | ||
import java.time.LocalDateTime; | ||
import lombok.Data; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.Value; | ||
|
||
@Value | ||
public class ChannelTO { | ||
|
||
Long id; | ||
|
||
String name; | ||
|
||
public ChannelTO (Channel channel) { | ||
this.id = channel.getId(); | ||
this.name = channel.getName(); | ||
} | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/de/maggiwuerze/xdccloader/model/transport/ServerTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package de.maggiwuerze.xdccloader.model.transport; | ||
|
||
import de.maggiwuerze.xdccloader.model.entity.Channel; | ||
import de.maggiwuerze.xdccloader.model.entity.Server; | ||
import java.time.LocalDateTime; | ||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.GenerationType; | ||
import javax.persistence.Id; | ||
import lombok.Value; | ||
|
||
@Value | ||
public class ServerTO { | ||
|
||
Long id; | ||
|
||
String name; | ||
|
||
String serverUrl; | ||
|
||
public ServerTO (Server server) { | ||
this.id = server.getId(); | ||
this.name = server.getName(); | ||
this.serverUrl = server.getServerUrl(); | ||
} | ||
|
||
} |
Oops, something went wrong.