Skip to content

Commit

Permalink
Merge pull request #147 from Suwayomi/port-change
Browse files Browse the repository at this point in the history
Port change
  • Loading branch information
aless2003 authored Sep 26, 2024
2 parents 337225e + 4bb7b45 commit 3ef61a8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ flatpak run online.hatsune_miku.tachidesk-vaadinui

## I started the Application, but it doesn't open in my browser

You can manually open the Application by going to http://localhost:8080 or go in the task tray and
You can manually open the Application by going to http://localhost:3901 or go in the task tray and
double click the icon there.

# Support and Help
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public RedirectView redirectAniListToken(@RequestBody OAuthResponse response) {
return new RedirectView("/");
}

// mal = http://localhost:8080/validate/mal?code={code}
// mal = http://localhost:3901/validate/mal?code={code}
@GetMapping("mal")
public RedirectView validateMALToken(
@RequestParam("code") String code, @RequestParam("state") MALTokenState state) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private String getStateAuthParam(int id) {
String jsonTemplate =
"""
{\
"redirectUrl":"http://localhost:8080/validate/suwayomi",\
"redirectUrl":"http://localhost:3901/validate/suwayomi",\
"trackerId":%d,\
"anyOtherInfo":"%s"\
}\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ public void registerTray() {
String caption = "Tachidesk Vaadin UI";
String text =
"""
Click here or open the browser and enter localhost:8080 - You can also click the icon in the system tray with the right mouse button and select "Open in browser"
Click here or open the browser and enter localhost:3901 - You can also click the icon in the system tray with the right mouse button and select "Open in browser"
""";
trayIcon.displayMessage(caption, text, MessageType.INFO);

trayIcon.addActionListener(
e -> {
try {
BrowserUtils.openBrowser("http://localhost:8080");
BrowserUtils.openBrowser("http://localhost:3901");
} catch (IOException ex) {
log.error("Couldn't open browser", ex);
}
Expand Down Expand Up @@ -95,7 +95,7 @@ private PopupMenu createTrayMenu() {
openInBrowserItem.addActionListener(
e -> {
try {
BrowserUtils.openBrowser("http://localhost:8080");
BrowserUtils.openBrowser("http://localhost:3901");
} catch (IOException ex) {
throw new RuntimeException(ex);
}
Expand All @@ -116,7 +116,7 @@ private void showPopup() {
String title = "Tachidesk VaadinUI started";
String message =
"""
Please visit http://localhost:8080 to use the UI.
Please visit http://localhost:3901 to use the UI.
If you have a System Tray, you can also click the tray icon there to open the UI.
Do you want to open the UI in your browser now?
""";
Expand All @@ -129,7 +129,7 @@ private void showPopup() {

if (answer == JOptionPane.YES_OPTION) {
try {
BrowserUtils.openBrowser("http://localhost:8080");
BrowserUtils.openBrowser("http://localhost:3901");
} catch (IOException e) {
log.error("Couldn't open browser", e);
}
Expand All @@ -141,4 +141,3 @@ private void showPopup() {
thread.start();
}
}
;
4 changes: 3 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#

server.port=3901

vaadin.frontend.hotdeploy=false
vaadin.bun.enable=true

Expand All @@ -16,6 +18,6 @@ spring.devtools.restart.poll-interval=4000

vaadin.webpush.privateKey=sK5jl2pxAary08e_T-Ped3kDKBov8uKvuD9HYGT7xmI
vaadin.webpush.publicKey=BF0Du2SjgjCWO9gpAlBbnmJ339bCivNAeJaAKr-SNg1hgyjQ-uo_Mj64w3xy-HylqjHTstzI9FKAGd_tmwOmPAM
vaadin.webpush.subject=http://localhost:8080
vaadin.webpush.subject=http://localhost:3901

vaadin.allowed-packages=org.vaadin.*,online.hatsunemiku.*

0 comments on commit 3ef61a8

Please sign in to comment.