← Back
Editing: ServerSecSection-legacy.js
System.register(["./vue-legacy.js?v=1753755607904","./page_layout-legacy.js?v=1753755607904","./__commonjsHelpers__-legacy.js?v=1753755607904","./naive-legacy.js?v=1753755607904","./common-legacy.js?v=1753755607904","./public-legacy.js?v=1753755607904"],(function(e,t){"use strict";var a,r,l,s,o,n,i,c,u;return{setters:[e=>{a=e.k,r=e.U,l=e.X,s=e.al,o=e.V,n=e.a3,i=e.F,c=e.O},e=>{u=e.e},null,null,null,null],execute:function(){var t=document.createElement("style");t.textContent=".server-sec-summary[data-v-f322e76a]{margin-bottom:30px;padding:20px;border-radius:12px;background-color:#f8f9fa;border:2px solid #e9ecef}.server-sec-summary div[data-v-f322e76a]{font-size:18px;margin-bottom:10px;color:#333}.server-sec-list[data-v-f322e76a]{margin-top:20px}.server-sec-list table[data-v-f322e76a]{width:100%;border-collapse:collapse;font-size:16px;color:#333}.server-sec-list table th[data-v-f322e76a],.server-sec-list table td[data-v-f322e76a]{padding:10px 15px;text-align:left;border-bottom:1px solid #eee}.server-sec-list table th[data-v-f322e76a]{background-color:#f0f0f0;font-weight:700;color:#333}.server-sec-list table tbody tr[data-v-f322e76a]:hover{background-color:#f5f5f5}.pagination-note[data-v-f322e76a]{margin-top:15px;text-align:center;font-style:italic;color:#666;font-size:14px}\n/*$vite$:1*/",document.head.appendChild(t);const d={key:0,class:"server-sec-summary"},p={class:"server-sec-list"},v=["item"],m={key:0,class:"pagination-note"};e("default",u(a({__name:"ServerSecSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(e){const t=e;return(e,a)=>(l(),r("div",null,[t.reportData?.server_security?(l(),r("div",d,[o("div",null,"Check Items Total:"+n(t.reportData.server_security.server_security_count?.security_count||0),1),o("div",null,"Risk Items Number:"+n(t.reportData.server_security.server_security_count?.risk_count?.warning||0),1)])):s("",!0),o("div",p,[o("table",null,[a[0]||(a[0]=o("thead",null,[o("tr",null,[o("th",null,"Name"),o("th",null,"Status"),o("th",null,"Suggestion")])],-1)),o("tbody",null,[(l(!0),r(i,null,c(t.data,(e=>(l(),r("tr",{key:e.topic+e.item,item:e},[o("td",null,n(e.name),1),o("td",null,n(2===e.status?"Risk":"Normal"),1),o("td",null,n(e.info),1)],8,v)))),128))])]),t.totalPages>1?(l(),r("div",m," Total "+n(t.totalPages)+" pages, current page "+n(t.pageIndex+1)+". ",1)):s("",!0)])]))}}),[["__scopeId","data-v-f322e76a"]]))}}}));
Save File
Cancel