mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-11-26 10:30:54 +08:00
CI Build Artifacts (commit: b3961a3483, version: 1.10.0-dev)
This commit is contained in:
1 parent
16ef728225
commit
4f9742a203
30 files changed
+57
-57
No files matched your search
@@ -1,2 +1,2 @@
|
||||
(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]||[]).push([[788],{69549:function(e,t,r){"use strict";r.d(t,{Vc:function(){return u},UO:function(){return d.A}});var o=r(9274),a=r(28533);const n=["aria-label"],s={class:"count"};var l=(0,o.defineComponent)({__name:"RcCounterBadge",props:{count:{},type:{},disabled:{type:Boolean,default:!1},ariaLabel:{},status:{},backgroundColor:{},borderColor:{},textColor:{}},setup(e){(0,o.useCssVars)(e=>({v13607539:p.value,v22c6c477:d.value,v72954550:f.value,v9291234e:v.value}));const t=e;const r=(0,o.computed)(()=>t.count<1e3?t.count:"999+"),l=(0,o.computed)(()=>t.status??"none"),i=(0,a.WZ)(l,"outlined"),c=(0,o.computed)(()=>{const e="active"===t.type;if(t.disabled)return{background:e?"var(--rc-active-disabled-background)":"var(--rc-inactive-background)",border:e?"var(--rc-active-border)":"var(--rc-inactive-disabled-border)",text:"var(--rc-disabled-text-color)",hoverBorder:e?"var(--rc-active-border)":"var(--rc-inactive-disabled-border)"};const r="var(--rc-counter-badge-inactive-border, var(--rc-inactive-border))";return{background:e?"var(--rc-active-background)":"var(--rc-counter-badge-inactive-background, var(--rc-inactive-background))",border:e?"var(--rc-active-border)":r,text:"var(--body-text)",hoverBorder:e?"var(--rc-primary-hover)":r}}),u=(e,r,o)=>e||(t.status?r:o),d=(0,o.computed)(()=>u(t.backgroundColor,i.backgroundColor.value,c.value.background)),p=(0,o.computed)(()=>u(t.borderColor,i.borderColor.value,c.value.border)),f=(0,o.computed)(()=>u(t.textColor,i.textColor.value,c.value.text)),v=(0,o.computed)(()=>u(t.borderColor,i.borderColor.value,c.value.hoverBorder));return(e,a)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["rc-counter-badge",{[t.type]:!0,disabled:t.disabled}]),"aria-label":t.ariaLabel,"data-testid":"rc-counter-badge"},[(0,o.createElementVNode)("span",s,(0,o.toDisplayString)(r.value),1)],10,n))}}),i=(r(84288),r(47433));const c=(0,i.A)(l,[["__scopeId","data-v-096e4b68"]]);var u=c;r(26851);r(13756);var d=r(99435)},459:function(e,t,r){"use strict";r.d(t,{A:function(){return L}});var o=r(9274);const a={class:"chart"},n={key:0,class:"hw-gauge"},s={class:"values text-muted"},l={key:0},i={key:1},c={key:2},u={key:3},d={key:1,class:"hw-gauge"},p={class:"values text-muted"},f={key:0},v={key:1},m={key:2},h={key:3};function g(e,t,r,g,y,b){const x=(0,o.resolveComponent)("ConsumptionGauge"),k=(0,o.resolveComponent)("SimpleBox");return(0,o.openBlock)(),(0,o.createBlock)(k,{class:"hardware-resource-gauge"},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",a,[(0,o.createElementVNode)("h3",null,(0,o.toDisplayString)(r.name),1),!r.reserved||void 0===r.reserved.total&&void 0===r.reserved.useful?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",n,[(0,o.createVNode)(x,{capacity:r.reserved.total,used:r.reserved.useful,"color-stops":b.colorStops},{title:(0,o.withCtx)(()=>[(0,o.createElementVNode)("span",null,[(0,o.createTextVNode)((0,o.toDisplayString)(r.reservedTitle??e.t("clusterIndexPage.hardwareResourceGauge.reserved"))+" ",1),(0,o.createElementVNode)("span",s,[r.reserved.formattedUseful?((0,o.openBlock)(),(0,o.createElementBlock)("span",l,(0,o.toDisplayString)(r.reserved.formattedUseful),1)):((0,o.openBlock)(),(0,o.createElementBlock)("span",i,(0,o.toDisplayString)(b.maxDecimalPlaces(r.reserved.useful)),1)),t[0]||(t[0]=(0,o.createTextVNode)(" / ",-1)),r.reserved.formattedTotal?((0,o.openBlock)(),(0,o.createElementBlock)("span",c,(0,o.toDisplayString)(r.reserved.formattedTotal),1)):((0,o.openBlock)(),(0,o.createElementBlock)("span",u,(0,o.toDisplayString)(b.maxDecimalPlaces(r.reserved.total))+" "+(0,o.toDisplayString)(r.reserved.units),1))])]),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(b.percentage(r.reserved)),1)]),_:1},8,["capacity","used","color-stops"])])),r.used&&void 0!==r.used.useful?((0,o.openBlock)(),(0,o.createElementBlock)("div",d,[(0,o.createVNode)(x,{capacity:r.used.total,used:r.used.useful,"color-stops":b.colorStops},{title:(0,o.withCtx)(()=>[(0,o.createElementVNode)("span",null,[(0,o.createTextVNode)((0,o.toDisplayString)(r.usedTitle??e.t("clusterIndexPage.hardwareResourceGauge.used"))+" ",1),(0,o.createElementVNode)("span",p,[r.used.formattedUseful?((0,o.openBlock)(),(0,o.createElementBlock)("span",f,(0,o.toDisplayString)(r.used.formattedUseful),1)):((0,o.openBlock)(),(0,o.createElementBlock)("span",v,(0,o.toDisplayString)(b.maxDecimalPlaces(r.used.useful)),1)),t[1]||(t[1]=(0,o.createTextVNode)(" / ",-1)),r.used.formattedTotal?((0,o.openBlock)(),(0,o.createElementBlock)("span",m,(0,o.toDisplayString)(r.used.formattedTotal),1)):((0,o.openBlock)(),(0,o.createElementBlock)("span",h,(0,o.toDisplayString)(b.maxDecimalPlaces(r.used.total))+" "+(0,o.toDisplayString)(r.used.units),1))])]),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(b.percentage(r.used)),1)]),_:1}Line truncated
|
||||
(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_dev"]||[]).push([[788],{69549:function(e,t,r){"use strict";r.d(t,{Vc:function(){return u},UO:function(){return d.A}});var o=r(9274),a=r(28533);const n=["aria-label"],s={class:"count"};var l=(0,o.defineComponent)({__name:"RcCounterBadge",props:{count:{},type:{},disabled:{type:Boolean,default:!1},ariaLabel:{},status:{},backgroundColor:{},borderColor:{},textColor:{}},setup(e){(0,o.useCssVars)(e=>({v13607539:p.value,v22c6c477:d.value,v72954550:f.value,v9291234e:v.value}));const t=e;const r=(0,o.computed)(()=>t.count<1e3?t.count:"999+"),l=(0,o.computed)(()=>{var e;return null!==(e=t.status)&&void 0!==e?e:"none"}),i=(0,a.WZ)(l,"outlined"),c=(0,o.computed)(()=>{const e="active"===t.type;if(t.disabled)return{background:e?"var(--rc-active-disabled-background)":"var(--rc-inactive-background)",border:e?"var(--rc-active-border)":"var(--rc-inactive-disabled-border)",text:"var(--rc-disabled-text-color)",hoverBorder:e?"var(--rc-active-border)":"var(--rc-inactive-disabled-border)"};const r="var(--rc-counter-badge-inactive-border, var(--rc-inactive-border))";return{background:e?"var(--rc-active-background)":"var(--rc-counter-badge-inactive-background, var(--rc-inactive-background))",border:e?"var(--rc-active-border)":r,text:"var(--body-text)",hoverBorder:e?"var(--rc-primary-hover)":r}}),u=(e,r,o)=>e||(t.status?r:o),d=(0,o.computed)(()=>u(t.backgroundColor,i.backgroundColor.value,c.value.background)),p=(0,o.computed)(()=>u(t.borderColor,i.borderColor.value,c.value.border)),f=(0,o.computed)(()=>u(t.textColor,i.textColor.value,c.value.text)),v=(0,o.computed)(()=>u(t.borderColor,i.borderColor.value,c.value.hoverBorder));return(e,a)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["rc-counter-badge",{[t.type]:!0,disabled:t.disabled}]),"aria-label":t.ariaLabel,"data-testid":"rc-counter-badge"},[(0,o.createElementVNode)("span",s,(0,o.toDisplayString)(r.value),1)],10,n))}}),i=(r(84288),r(47433));const c=(0,i.A)(l,[["__scopeId","data-v-096e4b68"]]);var u=c;r(26851);r(13756);var d=r(99435)},459:function(e,t,r){"use strict";r.d(t,{A:function(){return L}});var o=r(9274);const a={class:"chart"},n={key:0,class:"hw-gauge"},s={class:"values text-muted"},l={key:0},i={key:1},c={key:2},u={key:3},d={key:1,class:"hw-gauge"},p={class:"values text-muted"},f={key:0},v={key:1},m={key:2},h={key:3};function g(e,t,r,g,y,b){const x=(0,o.resolveComponent)("ConsumptionGauge"),k=(0,o.resolveComponent)("SimpleBox");return(0,o.openBlock)(),(0,o.createBlock)(k,{class:"hardware-resource-gauge"},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",a,[(0,o.createElementVNode)("h3",null,(0,o.toDisplayString)(r.name),1),!r.reserved||void 0===r.reserved.total&&void 0===r.reserved.useful?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",n,[(0,o.createVNode)(x,{capacity:r.reserved.total,used:r.reserved.useful,"color-stops":b.colorStops},{title:(0,o.withCtx)(()=>[(0,o.createElementVNode)("span",null,[(0,o.createTextVNode)((0,o.toDisplayString)(r.reservedTitle??e.t("clusterIndexPage.hardwareResourceGauge.reserved"))+" ",1),(0,o.createElementVNode)("span",s,[r.reserved.formattedUseful?((0,o.openBlock)(),(0,o.createElementBlock)("span",l,(0,o.toDisplayString)(r.reserved.formattedUseful),1)):((0,o.openBlock)(),(0,o.createElementBlock)("span",i,(0,o.toDisplayString)(b.maxDecimalPlaces(r.reserved.useful)),1)),t[0]||(t[0]=(0,o.createTextVNode)(" / ",-1)),r.reserved.formattedTotal?((0,o.openBlock)(),(0,o.createElementBlock)("span",c,(0,o.toDisplayString)(r.reserved.formattedTotal),1)):((0,o.openBlock)(),(0,o.createElementBlock)("span",u,(0,o.toDisplayString)(b.maxDecimalPlaces(r.reserved.total))+" "+(0,o.toDisplayString)(r.reserved.units),1))])]),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(b.percentage(r.reserved)),1)]),_:1},8,["capacity","used","color-stops"])])),r.used&&void 0!==r.used.useful?((0,o.openBlock)(),(0,o.createElementBlock)("div",d,[(0,o.createVNode)(x,{capacity:r.used.total,used:r.used.useful,"color-stops":b.colorStops},{title:(0,o.withCtx)(()=>[(0,o.createElementVNode)("span",null,[(0,o.createTextVNode)((0,o.toDisplayString)(r.usedTitle??e.t("clusterIndexPage.hardwareResourceGauge.used"))+" ",1),(0,o.createElementVNode)("span",p,[r.used.formattedUseful?((0,o.openBlock)(),(0,o.createElementBlock)("span",f,(0,o.toDisplayString)(r.used.formattedUseful),1)):((0,o.openBlock)(),(0,o.createElementBlock)("span",v,(0,o.toDisplayString)(b.maxDecimalPlaces(r.used.useful)),1)),t[1]||(t[1]=(0,o.createTextVNode)(" / ",-1)),r.used.formattedTotal?((0,o.openBlock)(),(0,o.createElementBlock)("span",m,(0,o.toDisplayString)(r.used.formattedTotal),1)):((0,o.openBlock)(),(0,o.createElementBlock)("span",h,(0,o.toDisplayString)(b.maxDecimalPlaces(r.used.total))+" "+(0,o.toDisplayString)(r.used.units),1))])]),(0,o.createElementVNode)("span",null,(0,o.toDisplayLine truncated
|
||||
//# sourceMappingURL=harvester-1.10.0-dev.umd.min.788.js.map
|
||||
Reference in new issue
Block a user