-
-
- content_copy
-
-
-
Update 9Router{latestVersion ? ` to v${latestVersion}` : ""}
-
- {isDisconnected
- ? "Server stopped. Paste the command into a terminal to install."
- : isCountingDown
- ? `Command copied. Server will stop in ${countdown}s...`
- : "Click the button below to copy the install command and shutdown."}
-
-
-
-
-
Install command:
-
- {installCmd}
-
-
-
- Click Copy & Shutdown below.
- Paste the command into your terminal and press Enter.
- Run 9router again after install.
-
-
- {isDisconnected ? (
-
globalThis.location.reload()}>
- Reload Page
-
- ) : (
-
-
- Cancel
-
-
- {copied ? "✓ Copied — shutting down..." : isCountingDown ? `Shutting down in ${countdown}s` : "Copy & Shutdown"}
-
-
- )}
-
- );
-}
-
-ManualUpdatePanel.propTypes = {
- latestVersion: PropTypes.string,
- installCmd: PropTypes.string.isRequired,
- copied: PropTypes.bool,
- onCopyAndShutdown: PropTypes.func.isRequired,
- onCancel: PropTypes.func.isRequired,
- countdown: PropTypes.number,
- isDisconnected: PropTypes.bool,
-};
diff --git a/src/shared/constants/config.js b/src/shared/constants/config.js
index 0650d086..f6955bd8 100644
--- a/src/shared/constants/config.js
+++ b/src/shared/constants/config.js
@@ -5,6 +5,7 @@ export const APP_CONFIG = {
name: "9Router Proxy",
description: "AI Infrastructure Management",
version: pkg.version,
+ defaultPort: 20128,
};
// GitHub configuration
@@ -13,25 +14,6 @@ export const GITHUB_CONFIG = {
donateUrl: "https://9router.com/api/donate",
};
-// Updater configuration
-export const UPDATER_CONFIG = {
- npmPackageName: "9router",
- installCmd: "npm i -g 9router",
- installCmdLatest: "npm i -g 9router@latest --prefer-online",
- shutdownCountdownSec: 3,
- exitDelayMs: 500,
- statusPort: 20129,
- statusPollIntervalMs: 1000,
- statusLogTailLines: 8,
- installRetries: 3,
- installRetryDelayMs: 5000,
- lingerAfterDoneMs: 30000,
- waitForExitMinMs: 5000,
- waitForExitMaxMs: 20000,
- waitForExitCheckMs: 500,
- appPort: 20128,
-};
-
// Theme configuration
export const THEME_CONFIG = {
storageKey: "theme",