@rip-lang/server 0.7.4 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server.html +6 -5
- package/server.rip +3 -2
package/package.json
CHANGED
package/server.html
CHANGED
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
|
|
57
57
|
|
|
58
58
|
<!-- App Card -->
|
|
59
|
-
<div @click="getAppUrl() && window.open(getAppUrl(), '_blank')" class="block bg-white/70 backdrop-blur-sm rounded-xl shadow-lg p-6 border border-white/20 transition-all duration-200
|
|
59
|
+
<div @click="getAppUrl() && window.open(getAppUrl(), '_blank')" class="block bg-white/70 backdrop-blur-sm rounded-xl shadow-lg p-6 border border-white/20 transition-all duration-200 hover:bg-white/90 hover:shadow-xl cursor-pointer">
|
|
60
60
|
<div class="flex items-center justify-between">
|
|
61
61
|
<div>
|
|
62
62
|
<p class="text-sm font-medium text-gray-600">Current App</p>
|
|
@@ -406,10 +406,11 @@
|
|
|
406
406
|
},
|
|
407
407
|
|
|
408
408
|
getAppUrl() {
|
|
409
|
-
//
|
|
410
|
-
const
|
|
411
|
-
|
|
412
|
-
|
|
409
|
+
// Build URL from app name (e.g., "api" -> "api.local")
|
|
410
|
+
const app = this.status.app
|
|
411
|
+
if (!app) return null
|
|
412
|
+
const host = `${app}.local`
|
|
413
|
+
return this.getHostUrl(host)
|
|
413
414
|
}
|
|
414
415
|
}
|
|
415
416
|
}
|
package/server.rip
CHANGED
|
@@ -728,13 +728,14 @@ class Server
|
|
|
728
728
|
status: ->
|
|
729
729
|
uptime = Math.floor((nowMs() - @startedAt) / 1000)
|
|
730
730
|
healthy = @sockets.length > 0
|
|
731
|
+
hosts = Array.from(@hostRegistry.values())
|
|
731
732
|
body = JSON.stringify
|
|
732
733
|
status: if healthy then 'healthy' else 'degraded'
|
|
733
734
|
app: @flags.appName
|
|
734
735
|
workers: @sockets.length
|
|
735
736
|
ports: { http: @flags.httpPort or undefined, https: @flags.httpsPort or undefined }
|
|
736
|
-
uptime
|
|
737
|
-
hosts:
|
|
737
|
+
uptime: uptime
|
|
738
|
+
hosts: hosts
|
|
738
739
|
headers = new Headers({ 'content-type': 'application/json', 'cache-control': 'no-cache' })
|
|
739
740
|
@maybeAddSecurityHeaders(headers)
|
|
740
741
|
new Response(body, { headers })
|