mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-11-26 18:40:51 +08:00
CI Build Artifacts (commit: 62b80b3cec, version: 1.8.0-dev)
This commit is contained in:
1 parent
6c6234fdf5
commit
6e20a461a5
25 files changed
+29
-29
No files matched your search
@@ -1,4 +1,4 @@
|
||||
(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_8_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_8_0_dev"]||[]).push([[793],{53338:function(e,t,n){"use strict";n.r(t);var a=n(38858),s=n(42629);describe("component: Loki",(()=>{it("should display URL placeholder",(()=>{const e=(0,a.Ky)(s["default"],{props:{mode:"edit",namespace:"whatever"}}),t="https://127.0.0.1:8000",n=e.find('[data-testid="loki-url"]').attributes("placeholder");expect(n).toBe(t)}))}))},93498:function(e,t,n){"use strict";n.r(t);var a=n(38858),s=n(14220),o=n(22153);const i=()=>({getters:{"i18n/t":jest.fn()}}),l={query:{}},r=()=>({global:{mocks:{$store:i(),$route:l,$fetchState:{}}}}),c={known_hosts:"S05PV05fSE9TVFM=","ssh-privatekey":"dGVzdDE=","ssh-publickey":"dGVzdDE="};describe.each([s.YQ,s.G5,s.nW])("component: Ssh.vue",(e=>{it(`mode: ${e}, should show input fields`,(()=>{const t=(0,a.Or)(o["default"],{...r(),props:{value:{name:"foo",decodedData:c,supportsSshKnownHosts:!0},mode:e}}),n=t.find('[data-testid="ssh-public-key"]').element,s=t.find('[data-testid="ssh-private-key"]').element,i=t.find('[data-testid="ssh-known-hosts"]').element;expect(n.value).toBe("dGVzdDE="),expect(s.value).toBe("dGVzdDE="),expect(i.value).toBe("S05PV05fSE9TVFM=")})),it.each([["show",!0],["hide",!1]])(`mode: ${e}, should %p known_hosts`,((e,t)=>{const n=(0,a.Or)(o["default"],{...r(),props:{value:{name:"foo",decodedData:c,supportsSshKnownHosts:t},mode:s.G5}}),i=n.find('[data-testid="ssh-known-hosts"]');expect(i.exists()).toBe(t)}))}))},85992:function(e,t,n){"use strict";n.d(t,{A:function(){return x}});var a=n(9274);const s={class:"row"},o={key:0,class:"col span-12"},i={class:"helper-text mb-10"},l={class:"row mb-20"},r={class:"col span-6"},c={class:"col span-6"},d={class:"row mb-20"},u={class:"col span-6"},p={class:"col span-6"},h={key:0,class:"row"},m={class:"col span-6"};function _(e,t,n,_,v,f){const b=(0,a.resolveComponent)("t"),g=(0,a.resolveComponent)("UnitInput");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[(0,a.createElementVNode)("div",s,[n.showTip?((0,a.openBlock)(),(0,a.createElementBlock)("div",o,[(0,a.createElementVNode)("p",i,[n.mode===v.viewMode?((0,a.openBlock)(),(0,a.createBlock)(b,{key:0,k:"containerResourceLimit.helpTextDetail"})):((0,a.openBlock)(),(0,a.createBlock)(b,{key:1,k:"containerResourceLimit.helpText"}))])])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",l,[(0,a.createElementVNode)("span",r,[(0,a.createVNode)(g,{value:v.requestsCpu,"onUpdate:value":[t[0]||(t[0]=e=>v.requestsCpu=e),f.updateLimits],placeholder:e.t("containerResourceLimit.cpuPlaceholder"),label:e.t("containerResourceLimit.requestsCpu"),mode:n.mode,"input-exponent":-1,"output-modifier":!0,"base-unit":e.t("suffix.cpus"),"data-testid":"cpu-reservation"},null,8,["value","placeholder","label","mode","base-unit","onUpdate:value"])]),(0,a.createElementVNode)("span",c,[(0,a.createVNode)(g,{value:v.requestsMemory,"onUpdate:value":[t[1]||(t[1]=e=>v.requestsMemory=e),f.updateLimits],placeholder:e.t("containerResourceLimit.memPlaceholder"),label:e.t("containerResourceLimit.requestsMemory"),mode:n.mode,"input-exponent":2,increment:1024,"output-modifier":!0,"data-testid":"memory-reservation"},null,8,["value","placeholder","label","mode","onUpdate:value"])])]),(0,a.createElementVNode)("div",d,[(0,a.createElementVNode)("span",u,[(0,a.createVNode)(g,{value:v.limitsCpu,"onUpdate:value":[t[2]||(t[2]=e=>v.limitsCpu=e),f.updateLimits],placeholder:e.t("containerResourceLimit.cpuPlaceholder"),label:e.t("containerResourceLimit.limitsCpu"),mode:n.mode,"input-exponent":-1,"output-modifier":!0,"base-unit":e.t("suffix.cpus"),"data-testid":"cpu-limit"},null,8,["value","placeholder","label","mode","base-unit","onUpdate:value"])]),(0,a.createElementVNode)("span",p,[(0,a.createVNode)(g,{value:v.limitsMemory,"onUpdate:value":[t[3]||(t[3]=e=>v.limitsMemory=e),f.updateLimits],placeholder:e.t("containerResourceLimit.memPlaceholder"),label:e.t("containerResourceLimit.limitsMemory"),mode:n.mode,"input-exponent":2,increment:1024,"output-modifier":!0,"data-testid":"memory-limit"},null,8,["value","placeholder","label","mode","onUpdate:value"])])]),n.handleGpuLimit?((0,a.openBlock)(),(0,a.createElementBlock)("div",h,[(0,a.createElementVNode)("span",m,[(0,a.createVNode)(g,{value:v.limitsGpu,"onUpdate:value":[t[4]||(t[4]=e=>v.limitsGpu=e),f.updateLimits],placeholder:e.t("containerResourceLimit.gpuPlaceholder"),label:e.t("containerResourceLimit.limitsGpu"),mode:n.mode,"base-unit":e.t("suffix.gpus"),"data-testid":"gpu-limit"},null,8,["value","placeholder","label","mode","base-unit","onUpdate:value"])])])):(0,a.createCommentVNode)("",!0)])}var v=n(3514),f=n.n(v),b=n(73344),g=n(2841),y=n(76978),E=n(14220),k={emits:["update:value"],components:{UnitInput:b.A},props:{mode:{type:String,default:"create"},namespace:{type:Object,default:null},value:{type:Object,default:()=>({})},handleGpuLimit:{type:Boolean,default:!0},registerBeforeHook:{type:Function,Line truncated
|
||||
(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_8_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_8_0_dev"]||[]).push([[793],{53338:function(e,t,n){"use strict";n.r(t);var a=n(38858),s=n(42629);describe("component: Loki",(()=>{it("should display URL placeholder",(()=>{const e=(0,a.Ky)(s["default"],{props:{mode:"edit",namespace:"whatever"}}),t="https://127.0.0.1:8000",n=e.find('[data-testid="loki-url"]').attributes("placeholder");expect(n).toBe(t)}))}))},93498:function(e,t,n){"use strict";n.r(t);var a=n(38858),s=n(14220),o=n(22153);const i=()=>({getters:{"i18n/t":jest.fn()}}),l={query:{}},r=()=>({global:{mocks:{$store:i(),$route:l,$fetchState:{}}}}),c={known_hosts:"S05PV05fSE9TVFM=","ssh-privatekey":"dGVzdDE=","ssh-publickey":"dGVzdDE="};describe.each([s.YQ,s.G5,s.nW])("component: Ssh.vue",(e=>{it(`mode: ${e}, should show input fields`,(()=>{const t=(0,a.Or)(o["default"],{...r(),props:{value:{name:"foo",decodedData:c,supportsSshKnownHosts:!0},mode:e}}),n=t.find('[data-testid="ssh-public-key"]').element,s=t.find('[data-testid="ssh-private-key"]').element,i=t.find('[data-testid="ssh-known-hosts"]').element;expect(n.value).toBe("dGVzdDE="),expect(s.value).toBe("dGVzdDE="),expect(i.value).toBe("S05PV05fSE9TVFM=")})),it.each([["show",!0],["hide",!1]])(`mode: ${e}, should %p known_hosts`,((e,t)=>{const n=(0,a.Or)(o["default"],{...r(),props:{value:{name:"foo",decodedData:c,supportsSshKnownHosts:t},mode:s.G5}}),i=n.find('[data-testid="ssh-known-hosts"]');expect(i.exists()).toBe(t)}))}))},85992:function(e,t,n){"use strict";n.d(t,{A:function(){return x}});var a=n(9274);const s={class:"row"},o={key:0,class:"col span-12"},i={class:"helper-text mb-10"},l={class:"row mb-20"},r={class:"col span-6"},c={class:"col span-6"},d={class:"row mb-20"},u={class:"col span-6"},p={class:"col span-6"},h={key:0,class:"row"},m={class:"col span-6"};function _(e,t,n,_,v,f){const b=(0,a.resolveComponent)("t"),g=(0,a.resolveComponent)("UnitInput");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[(0,a.createElementVNode)("div",s,[n.showTip?((0,a.openBlock)(),(0,a.createElementBlock)("div",o,[(0,a.createElementVNode)("p",i,[n.mode===v.viewMode?((0,a.openBlock)(),(0,a.createBlock)(b,{key:0,k:"containerResourceLimit.helpTextDetail"})):((0,a.openBlock)(),(0,a.createBlock)(b,{key:1,k:"containerResourceLimit.helpText"}))])])):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",l,[(0,a.createElementVNode)("span",r,[(0,a.createVNode)(g,{value:v.requestsCpu,"onUpdate:value":[t[0]||(t[0]=e=>v.requestsCpu=e),f.updateLimits],placeholder:e.t("containerResourceLimit.cpuPlaceholder"),label:e.t("containerResourceLimit.requestsCpu"),mode:n.mode,"input-exponent":-1,"output-modifier":!0,"base-unit":e.t("suffix.cpus"),"data-testid":"cpu-reservation"},null,8,["value","placeholder","label","mode","base-unit","onUpdate:value"])]),(0,a.createElementVNode)("span",c,[(0,a.createVNode)(g,{value:v.requestsMemory,"onUpdate:value":[t[1]||(t[1]=e=>v.requestsMemory=e),f.updateLimits],placeholder:e.t("containerResourceLimit.memPlaceholder"),label:e.t("containerResourceLimit.requestsMemory"),mode:n.mode,"input-exponent":2,increment:1024,"output-modifier":!0,"data-testid":"memory-reservation"},null,8,["value","placeholder","label","mode","onUpdate:value"])])]),(0,a.createElementVNode)("div",d,[(0,a.createElementVNode)("span",u,[(0,a.createVNode)(g,{value:v.limitsCpu,"onUpdate:value":[t[2]||(t[2]=e=>v.limitsCpu=e),f.updateLimits],placeholder:e.t("containerResourceLimit.cpuPlaceholder"),label:e.t("containerResourceLimit.limitsCpu"),mode:n.mode,"input-exponent":-1,"output-modifier":!0,"base-unit":e.t("suffix.cpus"),"data-testid":"cpu-limit"},null,8,["value","placeholder","label","mode","base-unit","onUpdate:value"])]),(0,a.createElementVNode)("span",p,[(0,a.createVNode)(g,{value:v.limitsMemory,"onUpdate:value":[t[3]||(t[3]=e=>v.limitsMemory=e),f.updateLimits],placeholder:e.t("containerResourceLimit.memPlaceholder"),label:e.t("containerResourceLimit.limitsMemory"),mode:n.mode,"input-exponent":2,increment:1024,"output-modifier":!0,"data-testid":"memory-limit"},null,8,["value","placeholder","label","mode","onUpdate:value"])])]),n.handleGpuLimit?((0,a.openBlock)(),(0,a.createElementBlock)("div",h,[(0,a.createElementVNode)("span",m,[(0,a.createVNode)(g,{value:v.limitsGpu,"onUpdate:value":[t[4]||(t[4]=e=>v.limitsGpu=e),f.updateLimits],placeholder:e.t("containerResourceLimit.gpuPlaceholder"),label:e.t("containerResourceLimit.limitsGpu"),mode:n.mode,"base-unit":e.t("suffix.gpus"),"data-testid":"gpu-limit"},null,8,["value","placeholder","label","mode","base-unit","onUpdate:value"])])])):(0,a.createCommentVNode)("",!0)])}var v=n(3514),f=n.n(v),b=n(73344),g=n(2841),y=n(76978),E=n(14220),k={emits:["update:value"],components:{UnitInput:b.A},props:{mode:{type:String,default:"create"},namespace:{type:Object,default:null},value:{type:Object,default:()=>({})},handleGpuLimit:{type:Boolean,default:!0},registerBeforeHook:{type:Function,Line truncated
|
||||
/**
|
||||
* @vue/shared v3.5.18
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
|
||||
Reference in new issue
Block a user