mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-12-02 05:08:50 +08:00
Revert "Add 1.0.4 release artifacts (#195)"
This reverts commit db61294f01.
This commit is contained in:
179 files changed
+2
-6947
No files matched your search
@@ -1,2 +0,0 @@
|
||||
(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_0_4"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_0_4"]||[]).push([[836],{46877:function(e,t,r){"use strict";r.d(t,{A:function(){return $}});var a=r(9274);const n={class:"consumption-gauge"},o={key:0},i={class:"numbers"},l={key:0},s={key:1},c={class:"numbers-stats"},d={class:"percentage"},u=(0,a.createElementVNode)("i",null,"/ ",-1),p={class:"mt-10"};function h(e,t,r,h,m,f){const g=(0,a.resolveComponent)("PercentageBar");return(0,a.openBlock)(),(0,a.createElementBlock)("div",n,[r.resourceName&&!r.usedAsResourceName?((0,a.openBlock)(),(0,a.createElementBlock)("h3",o,(0,a.toDisplayString)(r.resourceName),1)):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",i,[(0,a.renderSlot)(e.$slots,"title",{amountTemplateValues:f.amountTemplateValues,formattedPercentage:f.formattedPercentage},(()=>[r.usedAsResourceName?((0,a.openBlock)(),(0,a.createElementBlock)("h4",l,(0,a.toDisplayString)(r.resourceName),1)):((0,a.openBlock)(),(0,a.createElementBlock)("span",s,(0,a.toDisplayString)(e.t("node.detail.glance.consumptionGauge.used")),1)),(0,a.createElementVNode)("span",c,[(0,a.createTextVNode)((0,a.toDisplayString)(e.t("node.detail.glance.consumptionGauge.amount",f.amountTemplateValues))+" ",1),(0,a.createElementVNode)("span",d,[u,(0,a.createTextVNode)((0,a.toDisplayString)(f.formattedPercentage),1)])])]))]),(0,a.createElementVNode)("div",p,[(0,a.createVNode)(g,{modelValue:f.percentageBarValue,"color-stops":r.colorStops},null,8,["modelValue","color-stops"])])])}const m={class:"percentage-bar"},f={key:0,class:"ml-5 percentage-value"};function g(e,t,r,n,o,i){const l=(0,a.resolveComponent)("Bar");return(0,a.openBlock)(),(0,a.createElementBlock)("span",m,[(0,a.createVNode)(l,{percentage:r.modelValue,"primary-color":i.primaryColor,slices:r.slices},null,8,["percentage","primary-color","slices"]),r.showPercentage?((0,a.openBlock)(),(0,a.createElementBlock)("span",f,(0,a.toDisplayString)(i.formattedPercentage),1)):(0,a.createCommentVNode)("",!0)])}function v(e,t,r,n,o,i){return(0,a.openBlock)(),(0,a.createElementBlock)("div",{class:"bar",style:(0,a.normalizeStyle)(i.barStyle)},[(0,a.createElementVNode)("div",{class:"indicator",style:(0,a.normalizeStyle)(i.indicatorStyle)},null,4),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(i.sliceStyles,((e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:t,class:"slice",style:(0,a.normalizeStyle)(e)},null,4)))),128))],4)}var y={props:{percentage:{type:Number,required:!0},primaryColor:{type:String,default:"--primary"},secondaryColor:{type:String,default:"--border"},slices:{type:Array,default:()=>[]}},computed:{indicatorStyle(){return{width:`${this.percentage}%`,backgroundColor:`var(${this.primaryColor})`}},barStyle(){return{backgroundColor:`var(${this.secondaryColor})`}},sliceStyles(){return this.slices.map((e=>({left:`${e}%`,visibility:e<this.percentage?"visible":"hidden"})))}}},b=(r(54752),r(47433));const k=(0,b.A)(y,[["render",v],["__scopeId","data-v-b4f4e2ae"]]);var S=k,w=r(92043);const x={LESS:"LESS",MORE:"MORE"};var B={components:{Bar:S},props:{modelValue:{type:Number,required:!0,validator(e){return e>=0}},preferredDirection:{type:String,default:x.LESS},showPercentage:{type:Boolean,default:!1},colorStops:{type:Object,default:null},slices:{type:Array,default:()=>[]}},computed:{primaryColor(){const e=this.preferredDirection===x.LESS;if(this.colorStops){const t=Object.keys(this.colorStops).sort();if(e){let e=t.length-1;while(this.modelValue<t[e])e--;return this.colorStops[t[e]]}{let e=0;while(this.modelValue>t[e])e++;return this.colorStops[t[e]]}}const t=e?80:20,r=e?this.modelValue:t,a=e?t:this.modelValue;return r<=a?"--primary":"--error"},formattedPercentage(){return(0,w.l9)(this.modelValue)}}};r(70738);const V=(0,b.A)(B,[["render",g],["__scopeId","data-v-4ade54a6"]]);var N=V,E={components:{PercentageBar:N},props:{resourceName:{type:String,default:""},capacity:{type:Number,required:!0},used:{type:Number,required:!0},units:{type:String,default:""},numberFormatter:{type:Function,default:e=>Number.isInteger(e)?e:e.toFixed(2)},colorStops:{type:Object,default:null},usedAsResourceName:{type:Boolean,defaut:!1}},computed:{displayUnits(){return this.units?` ${this.units}`:""},percentageBarValue(){return this.used&&this.capacity?100*this.used/this.capacity:0},amountTemplateValues(){return{used:this.numberFormatter(this.used||0),total:this.numberFormatter(this.capacity||0),unit:this.displayUnits}},formattedPercentage(){return(0,w.l9)(this.percentageBarValue)}}};r(95606);const C=(0,b.A)(E,[["render",h]]);var $=C},83030:function(e,t,r){"use strict";r.d(t,{A:function(){return U}});var a=r(9274);const n={class:"graph-options mb-10"},o={class:"info"};function i(e,t,r,i,l,s){const c=(0,a.resolveComponent)("DashboardOptions"),d=(0,a.resolveComponent)("GrafanaDashboard");return(0,a.openBlock)(),(0,a.createElementBlock)("div",{class:(0,a.normalizeClass)(["dashboard-metrics"Line truncated
|
||||
//# sourceMappingURL=harvester-1.0.4.umd.min.836.js.map
|
||||
Reference in new issue
Block a user