ReviewOS

also looking at this

stacks/repo-dashboard

Migrate :text bindings to {⁠{ }} interpolation (stx 0.2.72)

#3
Merged glennmichael123 wants to merge chore/migrate-text-to-mustache into main
5 files +229 -27
pages/ports.stxmodified+4-5
Changes to pages/ports.stx
@@ -80,7 +80,7 @@
8080 class="hover:bg-zinc-50 dark:hover:bg-zinc-900 border-b border-zinc-100 dark:border-zinc-800/50 transition-colors"
8181 >
8282 <td class="px-4 py-3">
83 <span class="font-medium font-mono text-sm text-zinc-900 dark:text-zinc-100" :text="p.port"></span>
83 <span class="font-medium font-mono text-sm text-zinc-900 dark:text-zinc-100">{{ p.port }}</span>
8484 </td>
8585 <td class="px-4 py-3">
8686 <div class="flex gap-2 items-center">
@@ -90,11 +90,11 @@
9090 </div>
9191 </td>
9292 <td class="px-4 py-3">
93 <span :if="p.pid" class="font-mono text-sm text-zinc-500 dark:text-zinc-400" :text="p.pid"></span>
93 <span :if="p.pid" class="font-mono text-sm text-zinc-500 dark:text-zinc-400">{{ p.pid }}</span>
9494 <span :if="!p.pid" class="text-sm text-zinc-300 dark:text-zinc-700">-</span>
9595 </td>
9696 <td class="px-4 py-3">
97 <span :if="p.command" class="block max-w-xs text-xs text-zinc-500 truncate dark:text-zinc-400" :text="p.command"></span>
97 <span :if="p.command" class="block max-w-xs text-xs text-zinc-500 truncate dark:text-zinc-400">{{ p.command }}</span>
9898 <span :if="!p.command" class="text-sm text-zinc-300 dark:text-zinc-700">-</span>
9999 </td>
100100 <td class="px-4 py-3 text-right">
@@ -102,8 +102,7 @@
102102 :if="p.active"
103103 @click="killPort(p.port)"
104104 class="px-3 py-1 font-medium text-red-500 text-xs bg-red-500/10 hover:bg-red-500/20 border border-red-500/20 rounded transition-colors cursor-pointer"
105 :text="isKilling(p.port) ? 'Killing...' : 'Kill'"
106 ></button>
105 >{{ isKilling(p.port) ? 'Killing...' : 'Kill' }}</button>
107106 </td>
108107 </tr>
109108 </tbody>