fix: visible host card links in Hosts table; bump SAC to 0.8.0
Hostname and display name always link to /hosts/:id with sac-row-link styling. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
"""Единый источник версии SAC (API, health, логи, OpenAPI)."""
|
"""Единый источник версии SAC (API, health, логи, OpenAPI)."""
|
||||||
|
|
||||||
APP_NAME = "Security Alert Center"
|
APP_NAME = "Security Alert Center"
|
||||||
APP_VERSION = "0.7.5"
|
APP_VERSION = "0.8.0"
|
||||||
APP_VERSION_LABEL = f"{APP_NAME} v.{APP_VERSION}"
|
APP_VERSION_LABEL = f"{APP_NAME} v.{APP_VERSION}"
|
||||||
|
|||||||
@@ -17,6 +17,17 @@ a {
|
|||||||
color: #7eb8ff;
|
color: #7eb8ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sac-row-link {
|
||||||
|
color: #7eb8ff;
|
||||||
|
cursor: pointer;
|
||||||
|
text-decoration: underline;
|
||||||
|
text-underline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sac-row-link:hover {
|
||||||
|
color: #a8d4ff;
|
||||||
|
}
|
||||||
|
|
||||||
.layout {
|
.layout {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: none;
|
max-width: none;
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
export const APP_NAME = "Security Alert Center";
|
export const APP_NAME = "Security Alert Center";
|
||||||
export const APP_VERSION = "0.7.5";
|
export const APP_VERSION = "0.8.0";
|
||||||
export const APP_VERSION_LABEL = `${APP_NAME} v.${APP_VERSION}`;
|
export const APP_VERSION_LABEL = `${APP_NAME} v.${APP_VERSION}`;
|
||||||
|
|||||||
@@ -32,15 +32,14 @@
|
|||||||
<tr v-for="h in sortedItems" :key="h.id">
|
<tr v-for="h in sortedItems" :key="h.id">
|
||||||
<td>{{ h.id }}</td>
|
<td>{{ h.id }}</td>
|
||||||
<td>
|
<td>
|
||||||
<RouterLink :to="`/hosts/${h.id}`" class="host-link">
|
<RouterLink :to="`/hosts/${h.id}`" class="sac-row-link" :title="`Карточка хоста ${h.hostname}`">
|
||||||
{{ h.display_name || h.hostname }}
|
{{ h.display_name || h.hostname }}
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<RouterLink v-if="h.hostname !== (h.display_name || h.hostname)" :to="`/hosts/${h.id}`" class="host-link">
|
<RouterLink :to="`/hosts/${h.id}`" class="sac-row-link" :title="`Карточка хоста ${h.hostname}`">
|
||||||
{{ h.hostname }}
|
{{ h.hostname }}
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
<span v-else>{{ h.hostname }}</span>
|
|
||||||
</td>
|
</td>
|
||||||
<td>{{ h.product_version || "—" }}</td>
|
<td>{{ h.product_version || "—" }}</td>
|
||||||
<td>{{ h.os_family }}</td>
|
<td>{{ h.os_family }}</td>
|
||||||
@@ -276,13 +275,3 @@ onMounted(() => {
|
|||||||
loadHosts();
|
loadHosts();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.host-link {
|
|
||||||
cursor: pointer;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
.host-link:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user