@cluesmith/codev 2.0.0-rc.25 → 2.0.0-rc.26
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/templates/tower.html +3 -5
package/package.json
CHANGED
package/templates/tower.html
CHANGED
|
@@ -1125,15 +1125,14 @@
|
|
|
1125
1125
|
const statusText = instance.running ? 'Running' : 'Stopped';
|
|
1126
1126
|
const hasGate = instance.gateStatus?.hasGate;
|
|
1127
1127
|
|
|
1128
|
-
const
|
|
1129
|
-
// Use proxy URL
|
|
1128
|
+
const terminalsHtml = instance.ports.map(port => {
|
|
1129
|
+
// Use proxy URL - works both locally and through tunnel
|
|
1130
1130
|
const proxyUrl = getProxyUrl(instance, port.type);
|
|
1131
1131
|
return `
|
|
1132
1132
|
<div class="port-item">
|
|
1133
1133
|
<div class="port-info">
|
|
1134
1134
|
<span class="port-status ${port.active ? 'active' : 'inactive'}"></span>
|
|
1135
1135
|
<span class="port-type">${escapeHtml(port.type)}</span>
|
|
1136
|
-
<span class="port-url">Port ${port.port}</span>
|
|
1137
1136
|
</div>
|
|
1138
1137
|
<div class="port-actions">
|
|
1139
1138
|
<a href="${escapeHtml(proxyUrl)}" target="_blank" class="${port.active ? '' : 'disabled'}">
|
|
@@ -1184,11 +1183,10 @@
|
|
|
1184
1183
|
</div>
|
|
1185
1184
|
<div class="instance-body">
|
|
1186
1185
|
<div class="ports-list">
|
|
1187
|
-
${
|
|
1186
|
+
${terminalsHtml}
|
|
1188
1187
|
</div>
|
|
1189
1188
|
<div class="instance-meta">
|
|
1190
1189
|
<span>Last active: ${lastUsed}</span>
|
|
1191
|
-
<span>Port block: ${instance.basePort}-${instance.basePort + 99}</span>
|
|
1192
1190
|
</div>
|
|
1193
1191
|
</div>
|
|
1194
1192
|
</div>
|