File tree Expand file tree Collapse file tree 3 files changed +14
-16
lines changed
extensions/publisher-cves Expand file tree Collapse file tree 3 files changed +14
-16
lines changed Original file line number Diff line number Diff line change 2323 "dist/assets/index-CteWUkOR.css" : {
2424 "checksum" : " e26ddbd6163e429121aaac82256c8f53"
2525 },
26- "dist/assets/index-D9njY8KV .js" : {
27- "checksum" : " ed84b7e7f30da13f30b2d2022e2dffcc "
26+ "dist/assets/index-l2VTngKw .js" : {
27+ "checksum" : " 4f068289d30f758c18bd7f9cb05d6d6f "
2828 },
2929 "dist/index.html" : {
30- "checksum" : " 0db7cc766b97ee12ea2a91470ea5a36e "
30+ "checksum" : " ea3a868abc19067f9de6ba46808ba337 "
3131 },
3232 "main.py" : {
3333 "checksum" : " f8385dbd8a8cd24204f1eb6209f8bb30"
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ const loadingMessage = "Fetching content and vulnerabilities...";
2424 />
2525 <main v-else class =" flex-1 p-4 md:p-8 bg-gray-100" >
2626 <div class =" max-w-4xl mx-auto" >
27- <ContentList v-if =" ! contentStore.currentContentId" />
28- <VulnerabilityChecker v-else />
27+ <VulnerabilityChecker v-if =" contentStore.currentContentId" />
28+ <ContentList v-else />
2929 </div >
3030 </main >
3131
Original file line number Diff line number Diff line change @@ -207,10 +207,7 @@ const totalVulnerabilities = computed(() => {
207207
208208<template >
209209 <!-- Only show the component if we have content to analyze -->
210- <div
211- v-if =" hasPackages || isLoadingPackages"
212- class =" max-w-4xl mx-auto p-5 bg-white rounded-lg shadow-md"
213- >
210+ <div class =" max-w-4xl mx-auto p-5 bg-white rounded-lg shadow-md" >
214211 <!-- Content header with title and back button -->
215212 <div class =" flex justify-between items-center mb-6" >
216213 <div >
@@ -247,26 +244,27 @@ const totalVulnerabilities = computed(() => {
247244 <StatusMessage
248245 v-else-if =" hasError"
249246 type =" error"
250- message =" Error analyzing packages. Please try again ."
247+ message =" Error analyzing packages. The content may not be fully deployed ."
251248 />
252249
253250 <!-- Content loaded successfully -->
254- <div v-else-if =" hasPackages" >
255- <!-- Stats panel -->
251+ <template v-else >
256252 <StatsPanel
257253 :totalPackages =" totalPackages"
258254 :pythonPackages =" pythonPackages"
259255 :rPackages =" rPackages"
260256 :vulnerabilities =" totalVulnerabilities"
261257 />
262258
263- <!-- No vulnerabilities found -->
264- <EmptyState v-if =" vulnerablePackages.length === 0" >
259+ <EmptyState v-if =" !hasPackages" >
260+ <p >This content has no packages. No vulnerabilities found.</p >
261+ </EmptyState >
262+
263+ <EmptyState v-else-if =" vulnerablePackages.length === 0" >
265264 <p >No vulnerabilities found.</p >
266265 </EmptyState >
267266
268- <!-- Vulnerability list -->
269267 <VulnerabilityList v-else :vulnerablePackages =" vulnerablePackages" />
270- </div >
268+ </template >
271269 </div >
272270</template >
You can’t perform that action at this time.
0 commit comments