@rip-lang/server 0.7.1 → 0.7.3
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 +8 -6
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
|
-
<a :href="getAppUrl()" target="_blank" class="block bg-white/70 backdrop-blur-sm rounded-xl shadow-lg p-6 border border-white/20 hover:bg-white/90 hover:shadow-xl
|
|
59
|
+
<a :href="getAppUrl()" target="_blank" @click="!getAppUrl() && $event.preventDefault()" class="block bg-white/70 backdrop-blur-sm rounded-xl shadow-lg p-6 border border-white/20 transition-all duration-200" :class="getAppUrl() ? 'hover:bg-white/90 hover:shadow-xl cursor-pointer' : 'cursor-default'">
|
|
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>
|
|
@@ -69,7 +69,6 @@
|
|
|
69
69
|
</div>
|
|
70
70
|
</div>
|
|
71
71
|
</a>
|
|
72
|
-
</div>
|
|
73
72
|
|
|
74
73
|
<!-- Status Card -->
|
|
75
74
|
<div class="bg-white/70 backdrop-blur-sm rounded-xl shadow-lg p-6 border border-white/20">
|
|
@@ -135,7 +134,7 @@
|
|
|
135
134
|
:class="connected ? 'countdown-arc' : 'countdown-arc countdown-arc-paused'"
|
|
136
135
|
/>
|
|
137
136
|
</svg>
|
|
138
|
-
|
|
137
|
+
<style>
|
|
139
138
|
.countdown-arc {
|
|
140
139
|
animation: countdown-progress 10s linear infinite;
|
|
141
140
|
}
|
|
@@ -163,6 +162,7 @@
|
|
|
163
162
|
</div>
|
|
164
163
|
</div>
|
|
165
164
|
</div>
|
|
165
|
+
</div>
|
|
166
166
|
|
|
167
167
|
<!-- Apps and Hosts Section -->
|
|
168
168
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">
|
|
@@ -406,9 +406,11 @@
|
|
|
406
406
|
},
|
|
407
407
|
|
|
408
408
|
getAppUrl() {
|
|
409
|
-
//
|
|
410
|
-
const
|
|
411
|
-
|
|
409
|
+
// Prefer .local hosts, then any host, never localhost
|
|
410
|
+
const hosts = this.status.hosts || []
|
|
411
|
+
const localHost = hosts.find(h => h.endsWith('.local'))
|
|
412
|
+
const host = localHost || hosts[0]
|
|
413
|
+
return host ? this.getHostUrl(host) : null
|
|
412
414
|
}
|
|
413
415
|
}
|
|
414
416
|
}
|