@7365admin1/layer-common 4.97.1-staging.641 → 4.97.1-staging.642
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.
|
@@ -57,7 +57,8 @@
|
|
|
57
57
|
<v-card variant="outlined" :class="{ 'cctv-dd__picked': picked.has(p.file) }">
|
|
58
58
|
<div class="cctv-dd__thumb" @click="togglePick(p.file)">
|
|
59
59
|
<img v-if="thumbs[key(p.file)]" :src="thumbs[key(p.file)]" :alt="`Waiting photo from ${when(p.at)}`" />
|
|
60
|
-
<v-icon v-else icon="mdi-image-
|
|
60
|
+
<v-icon v-else-if="thumbFailed.has(key(p.file))" icon="mdi-image-broken-variant" size="28" />
|
|
61
|
+
<v-progress-circular v-else indeterminate size="24" width="2" aria-label="Loading photo" />
|
|
61
62
|
<v-checkbox-btn :model-value="picked.has(p.file)" class="cctv-dd__check" density="compact" aria-label="Select photo" @click.stop @update:model-value="togglePick(p.file)" />
|
|
62
63
|
</div>
|
|
63
64
|
<div class="pa-2">
|
|
@@ -84,7 +85,8 @@
|
|
|
84
85
|
<v-col v-for="f in data.sorted[s]" :key="f" cols="4" sm="3" md="2">
|
|
85
86
|
<div class="cctv-dd__thumb cctv-dd__thumb--sm">
|
|
86
87
|
<img v-if="thumbs[key(f, s)]" :src="thumbs[key(f, s)]" :alt="`Photo sorted as ${s}`" />
|
|
87
|
-
<v-icon v-else icon="mdi-image-
|
|
88
|
+
<v-icon v-else-if="thumbFailed.has(key(f, s))" icon="mdi-image-broken-variant" size="24" />
|
|
89
|
+
<v-progress-circular v-else indeterminate size="20" width="2" aria-label="Loading photo" />
|
|
88
90
|
<v-btn icon="mdi-close" size="x-small" variant="flat" class="cctv-dd__remove" :disabled="busy" :aria-label="`Remove this photo from ${s}`" @click="discard([f], s)" />
|
|
89
91
|
</div>
|
|
90
92
|
</v-col>
|
|
@@ -122,6 +124,8 @@ const loading = ref(false);
|
|
|
122
124
|
const error = ref<unknown>(null);
|
|
123
125
|
const busy = ref(false);
|
|
124
126
|
const thumbs = ref<Record<string, string>>({});
|
|
127
|
+
// Photos that could not be fetched (shown as a broken picture instead of a spinner).
|
|
128
|
+
const thumbFailed = ref<Set<string>>(new Set());
|
|
125
129
|
const picked = ref<Set<string>>(new Set());
|
|
126
130
|
const alerts = ref<string[]>([]);
|
|
127
131
|
const confirmDiscard = ref(false);
|
|
@@ -158,7 +162,7 @@ async function loadThumbs() {
|
|
|
158
162
|
const url = await classifierPhoto(props.engine, props.name, t.file, t.state);
|
|
159
163
|
thumbs.value = { ...thumbs.value, [t.k]: url };
|
|
160
164
|
} catch {
|
|
161
|
-
|
|
165
|
+
thumbFailed.value = new Set(thumbFailed.value).add(t.k);
|
|
162
166
|
}
|
|
163
167
|
}
|
|
164
168
|
};
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
<tr v-if="event.faceName"><th>Face</th><td>{{ event.faceName }}</td></tr>
|
|
34
34
|
<tr v-if="event.plate"><th>Plate</th><td>{{ event.plate }}</td></tr>
|
|
35
35
|
<tr v-if="!isClassification"><th>Zones</th><td>{{ (event.zones ?? []).join(", ") || "None" }}<template v-if="(event.enteredZones ?? []).length"> (entered: {{ event.enteredZones.join(" then ") }})</template></td></tr>
|
|
36
|
-
|
|
36
|
+
<!-- A smart detection result carries no score from the engine. -->
|
|
37
|
+
<tr v-if="!isClassification"><th>Confidence</th><td>{{ scoreText(event.score) }}</td></tr>
|
|
37
38
|
<tr v-if="event.incident"><th>Incident</th><td>An incident report was created for this alert.</td></tr>
|
|
38
39
|
</tbody>
|
|
39
40
|
</v-table>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.97.1-staging.
|
|
5
|
+
"version": "4.97.1-staging.642",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|