also looking at this
Migrate :text bindings to {{ }} interpolation (stx 0.2.72)
#3
5 files
+229
-27
| @@ -128,17 +128,16 @@ | ||
| 128 | 128 | @click="switchTab(tab.id)" |
| 129 | 129 | :style="tabStyle(tab.id)" |
| 130 | 130 | class="px-4 py-2 font-medium text-sm whitespace-nowrap hover:text-zinc-700 dark:hover:text-zinc-300 bg-transparent border-b-2 transition-colors cursor-pointer" |
| 131 | :text="tab.label" | |
| 132 | ></button> | |
| 131 | >{{ tab.label }}</button> | |
| 133 | 132 | </div> |
| 134 | 133 | |
| 135 | 134 | <!-- Summary --> |
| 136 | 135 | <div class="flex flex-wrap gap-x-4 gap-y-1 items-center mb-5 text-sm"> |
| 137 | <span class="font-medium text-emerald-600 dark:text-emerald-400" :text="tabPassingText"></span> | |
| 138 | <span class="font-medium text-red-500 dark:text-red-400" :text="tabFailingText"></span> | |
| 139 | <span class="text-zinc-400 dark:text-zinc-500" :text="tabTotalText"></span> | |
| 136 | <span class="font-medium text-emerald-600 dark:text-emerald-400">{{ tabPassingText }}</span> | |
| 137 | <span class="font-medium text-red-500 dark:text-red-400">{{ tabFailingText }}</span> | |
| 138 | <span class="text-zinc-400 dark:text-zinc-500">{{ tabTotalText }}</span> | |
| 140 | 139 | <span class="text-zinc-300 dark:text-zinc-700">·</span> |
| 141 | <span class="text-zinc-500 dark:text-zinc-400" :text="tabRunnersText"></span> | |
| 140 | <span class="text-zinc-500 dark:text-zinc-400">{{ tabRunnersText }}</span> | |
| 142 | 141 | </div> |
| 143 | 142 | |
| 144 | 143 | <!-- Repo grid --> |
| @@ -162,17 +161,17 @@ | ||
| 162 | 161 | |
| 163 | 162 | <div class="flex-1 min-w-0"> |
| 164 | 163 | <div class="flex gap-2 items-center"> |
| 165 | <a :href="repo.url" target="_blank" class="font-medium no-underline text-sm text-zinc-900 dark:text-zinc-100 hover:underline" :text="repo.name"></a> | |
| 166 | <span :if="repo.commitSha" class="font-mono text-xs text-zinc-400 dark:text-zinc-600" :text="repo.commitSha"></span> | |
| 167 | <span :if="repo.updatedAt" class="text-xs text-zinc-400 dark:text-zinc-600" :text="timeAgo(repo.updatedAt)"></span> | |
| 164 | <a :href="repo.url" target="_blank" class="font-medium no-underline text-sm text-zinc-900 dark:text-zinc-100 hover:underline">{{ repo.name }}</a> | |
| 165 | <span :if="repo.commitSha" class="font-mono text-xs text-zinc-400 dark:text-zinc-600">{{ repo.commitSha }}</span> | |
| 166 | <span :if="repo.updatedAt" class="text-xs text-zinc-400 dark:text-zinc-600">{{ timeAgo(repo.updatedAt) }}</span> | |
| 168 | 167 | </div> |
| 169 | 168 | |
| 170 | 169 | <div :if="repo.commitMessage" class="mt-1"> |
| 171 | <a :href="repo.commitUrl || repo.url" target="_blank" class="no-underline text-xs text-zinc-500 dark:text-zinc-400 hover:underline" :text="truncate(repo.commitMessage, 50)"></a> | |
| 170 | <a :href="repo.commitUrl || repo.url" target="_blank" class="no-underline text-xs text-zinc-500 dark:text-zinc-400 hover:underline">{{ truncate(repo.commitMessage, 50) }}</a> | |
| 172 | 171 | </div> |
| 173 | 172 | |
| 174 | 173 | <div :if="repo.commitAuthor" class="mt-0.5"> |
| 175 | <span class="text-xs text-zinc-400 dark:text-zinc-600" :text="repo.commitAuthor"></span> | |
| 174 | <span class="text-xs text-zinc-400 dark:text-zinc-600">{{ repo.commitAuthor }}</span> | |
| 176 | 175 | </div> |
| 177 | 176 | |
| 178 | 177 | <div :if="repo.renovatePRs > 0 || repo.actionsPRs > 0" class="mt-2 pt-2 border-t border-zinc-200/60 dark:border-zinc-800"> |
| @@ -184,7 +183,7 @@ | ||
| 184 | 183 | target="_blank" |
| 185 | 184 | class="no-underline text-xs text-zinc-500 dark:text-zinc-400 hover:underline" |
| 186 | 185 | > |
| 187 | renovatebot: <span :text="repo.renovatePRs"></span> | |
| 186 | renovatebot: <span>{{ repo.renovatePRs }}</span> | |
| 188 | 187 | </a> |
| 189 | 188 | <a |
| 190 | 189 | :if="repo.actionsPRs > 0" |
| @@ -192,7 +191,7 @@ | ||
| 192 | 191 | target="_blank" |
| 193 | 192 | class="no-underline text-xs text-zinc-500 dark:text-zinc-400 hover:underline" |
| 194 | 193 | > |
| 195 | github-actions: <span :text="repo.actionsPRs"></span> | |
| 194 | github-actions: <span>{{ repo.actionsPRs }}</span> | |
| 196 | 195 | </a> |
| 197 | 196 | </div> |
| 198 | 197 | </div> |
| @@ -205,7 +204,7 @@ | ||
| 205 | 204 | class="flex gap-1.5 items-center mt-1 no-underline hover:underline group" |
| 206 | 205 | > |
| 207 | 206 | <Icon name="x-circle" size="12" class="text-red-400/70" /> |
| 208 | <span class="text-red-400/80 text-xs dark:text-red-400/70" :text="job.name"></span> | |
| 207 | <span class="text-red-400/80 text-xs dark:text-red-400/70">{{ job.name }}</span> | |
| 209 | 208 | </a> |
| 210 | 209 | </div> |
| 211 | 210 | </div> |