Skip to content

Commit

Permalink
ui banner
Browse files Browse the repository at this point in the history
  • Loading branch information
leprinco committed Nov 29, 2024
1 parent c233d26 commit 049ca3b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
10 changes: 8 additions & 2 deletions vpin-studio-ui/src/main/java/de/mephisto/vpin/ui/Studio.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.StreamUtils;

import java.awt.*;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.URI;
import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.Locale;
import java.util.Optional;
Expand Down Expand Up @@ -81,10 +83,14 @@ public static void main(String[] args) {

@Override
public void start(Stage stage) throws IOException {
LOG.info("-------------- Studio Starts -------------");
try (InputStream banner = getClass().getResourceAsStream("/banner.txt")) {
String txt = StreamUtils.copyToString(banner, StandardCharsets.UTF_8);
LOG.info("\n" + txt + "\n");
}

LOG.info("Studio Starting...");
LOG.info("Locale: " + Locale.getDefault().getDisplayName());
LOG.info("OS: " + System.getProperty("os.name"));
LOG.info("------------------------------------------");
try {
ss = new ServerSocket(1044);
}
Expand Down
7 changes: 7 additions & 0 deletions vpin-studio-ui/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
_ __ ___
_ ______ (_)___ _____/ /___ ______/ (_)___
| | / / __ \/ / __ \______/ ___/ __/ / / / __ / / __ \
| |/ / /_/ / / / / /_____(__ ) /_/ /_/ / /_/ / / /_/ /
|___/ .___/_/_/ /_/ /____/\__/\__,_/\__,_/_/\____/
/_/
vpin-studio-ui @project.version@

0 comments on commit 049ca3b

Please sign in to comment.