CI Build Artifacts (commit: 96629e92f5, version: 1.10.0-rc2)

This commit is contained in:
github-actions[bot] committed 2026-11-20 08:06:35 +00:00
1 parent 91a39fc912
commit 658fe19fa0
29 files changed
+56 -56

No files matched your search

@@ -1,2 +1,2 @@
(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_rc2"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_rc2"]||[]).push([[989],{3532:function(e,t,n){"use strict";n.a(e,async function(e,s){try{var o=n(55512),i=n(3485),r=(n(91352),n(92274),n(47433)),a=e([i]),l=a.then?(await a)():a;i=l[0];const c=(0,r.A)(i.Ay,[["render",o.X],["__scopeId","data-v-0efee1ed"]]);t.Ay=c,s()}catch(c){s(c)}})},9103:function(e,t,n){"use strict";n.d(t,{A:function(){return E}});var s=n(9274);const o={class:"row"},i={class:"col span-12"},r={class:"row"},a={class:"col span-12"},l=["disabled"],c={class:"displayed-keys mt-20"},d={class:"text-default-text"},u={class:"displayed-banners"},h={class:"actions"};function m(e,t,n,m,v,p){const y=(0,s.resolveComponent)("t"),f=(0,s.resolveComponent)("Banner"),g=(0,s.resolveComponent)("AsyncButton"),b=(0,s.resolveComponent)("ModalWithCard"),k=(0,s.resolveDirective)("clean-html");return(0,s.openBlock)(),(0,s.createBlock)(b,{name:"recordShortcutKeys",width:550},{title:(0,s.withCtx)(()=>[(0,s.createVNode)(y,{k:"harvester.virtualMachine.detail.console.customShortcutKeys"})]),content:(0,s.withCtx)(()=>[(0,s.createElementVNode)("div",o,[(0,s.createElementVNode)("div",i,[(0,s.createVNode)(f,{color:"info"},{default:(0,s.withCtx)(()=>[(0,s.withDirectives)((0,s.createElementVNode)("span",null,null,512),[[k,p.keysRecordFormat]])]),_:1})])]),(0,s.createElementVNode)("div",r,[(0,s.createElementVNode)("div",a,[(0,s.createElementVNode)("button",{class:"btn bg-primary",onClick:t[0]||(t[0]=(...e)=>p.toggleRecording&&p.toggleRecording(...e))},[(0,s.createVNode)(y,{k:p.recordButton},null,8,["k"]),(0,s.createElementVNode)("i",{class:(0,s.normalizeClass)(["icon icon-fw",v.isRecording?"icon-dot-open":"icon-dot"])},null,2)]),(0,s.createElementVNode)("button",{disabled:!p.canAdd,class:"btn bg-primary",onClick:t[1]||(t[1]=(...e)=>p.addShortcutKey&&p.addShortcutKey(...e))},[(0,s.createVNode)(y,{k:"generic.add"})],8,l)])]),t[3]||(t[3]=(0,s.createElementVNode)("hr",null,null,-1)),(0,s.createElementVNode)("div",c,[(0,s.withDirectives)((0,s.createElementVNode)("h4",d,null,512),[[k,e.t("harvester.virtualMachine.detail.console.record.preferredKeys")]]),(0,s.createElementVNode)("div",u,[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(p.displayedKeys,(e,t)=>((0,s.openBlock)(),(0,s.createBlock)(f,{key:t,closable:!0,onClose:e=>p.removeKey(t)},{default:(0,s.withCtx)(()=>[(0,s.withDirectives)((0,s.createElementVNode)("span",null,null,512),[[k,e]])]),_:2},1032,["onClose"]))),128))])])]),footer:(0,s.withCtx)(()=>[(0,s.createElementVNode)("div",h,[(0,s.createElementVNode)("button",{class:"btn role-secondary mr-20",onClick:t[2]||(t[2]=(0,s.withModifiers)((...e)=>p.closeRecordingModal&&p.closeRecordingModal(...e),["prevent"]))},[(0,s.createVNode)(y,{k:"generic.cancel"})]),(0,s.createVNode)(g,{mode:"edit",onClick:p.saveKeys},null,8,["onClick"])])]),_:1})}var v=n(35664),p=n(15554),y=n(30699),f=n(24151);const g="prefered-shortcut-keys";var b={name:"NovncConsoleCustomKeys",emits:["close"],components:{ModalWithCard:f.A,Banner:p.A,AsyncButton:y.A},data(){return{keysRecord:[],addedShortcutKeys:[],preferredShortcutKeys:[],isRecording:!1}},computed:{savedShortcutKeys(){const e=this.$store.getters["management/all"](v.m4.PREFERENCE),t=e?.[0]?.data?.[g];let n=[];if(!t)return n;try{n=JSON.parse(t)}catch(s){this.$store.dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:this.t("harvester.virtualMachine.detail.console.customShortcutKeys")}),err:s},{root:!0})}return n},displayedKeys(){const e=this.addedShortcutKeys.concat(this.preferredShortcutKeys).map(e=>{const t=e.map(e=>` <code>${e.key.charAt(0).toUpperCase()+e.key.slice(1)}</code>`);return t.join(",")});return e},recordButton(){return this.isRecording?"harvester.virtualMachine.detail.console.record.stop":"harvester.virtualMachine.detail.console.record.start"},keysRecordFormat(){if(!this.isRecording&&0===this.keysRecord.length)return this.t("harvester.virtualMachine.detail.console.record.tips");const e=this.keysRecord.map(e=>` <code>${e.key.charAt(0).toUpperCase()+e.key.slice(1)}</code>`);return`Keys: ${e.join(",")}`},canAdd(){const e=this.keysRecord.length>0;let t=[].concat(this.preferredShortcutKeys,this.addedShortcutKeys);return!!e&&(t.push(this.keysRecord),t=t.map(e=>{const t=e.map(e=>e.key);return t.join(",")}),t.length===new Set(t).size)}},watch:{savedShortcutKeys:{handler(){this.preferredShortcutKeys=[].concat(this.savedShortcutKeys)||[]},immediate:!0}},methods:{closeRecordingModal(){window.removeEventListener("keydown",this.handleShortcut),this.$emit("close")},toggleRecording(){this.isRecording=!this.isRecording,this.isRecording?(this.keysRecord=[],window.addEventListener("keydown",this.handleShortcut)):window.removeEventListener("keydown",this.handleShortcut)},handleShortcut(e){e.preventDefault();const{key:t,keyCode:n,code:s,location:o,charCode:i}=e;this.keysRecord.push({key:t,keyCode:n,code:s,locaLine truncated
(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_rc2"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_10_0_rc2"]||[]).push([[989],{3532:function(e,t,n){"use strict";n.a(e,async function(e,s){try{var o=n(55512),i=n(3485),r=(n(91352),n(92274),n(47433)),a=e([i]),l=a.then?(await a)():a;i=l[0];const c=(0,r.A)(i.Ay,[["render",o.X],["__scopeId","data-v-0efee1ed"]]);t.Ay=c,s()}catch(c){s(c)}})},9103:function(e,t,n){"use strict";n.d(t,{A:function(){return E}});var s=n(9274);const o={class:"row"},i={class:"col span-12"},r={class:"row"},a={class:"col span-12"},l=["disabled"],c={class:"displayed-keys mt-20"},d={class:"text-default-text"},u={class:"displayed-banners"},h={class:"actions"};function m(e,t,n,m,v,p){const y=(0,s.resolveComponent)("t"),f=(0,s.resolveComponent)("Banner"),g=(0,s.resolveComponent)("AsyncButton"),b=(0,s.resolveComponent)("ModalWithCard"),k=(0,s.resolveDirective)("clean-html");return(0,s.openBlock)(),(0,s.createBlock)(b,{name:"recordShortcutKeys",width:550},{title:(0,s.withCtx)(()=>[(0,s.createVNode)(y,{k:"harvester.virtualMachine.detail.console.customShortcutKeys"})]),content:(0,s.withCtx)(()=>[(0,s.createElementVNode)("div",o,[(0,s.createElementVNode)("div",i,[(0,s.createVNode)(f,{color:"info"},{default:(0,s.withCtx)(()=>[(0,s.withDirectives)((0,s.createElementVNode)("span",null,null,512),[[k,p.keysRecordFormat]])]),_:1})])]),(0,s.createElementVNode)("div",r,[(0,s.createElementVNode)("div",a,[(0,s.createElementVNode)("button",{class:"btn bg-primary",onClick:t[0]||(t[0]=(...e)=>p.toggleRecording&&p.toggleRecording(...e))},[(0,s.createVNode)(y,{k:p.recordButton},null,8,["k"]),(0,s.createElementVNode)("i",{class:(0,s.normalizeClass)(["icon icon-fw",v.isRecording?"icon-dot-open":"icon-dot"])},null,2)]),(0,s.createElementVNode)("button",{disabled:!p.canAdd,class:"btn bg-primary",onClick:t[1]||(t[1]=(...e)=>p.addShortcutKey&&p.addShortcutKey(...e))},[(0,s.createVNode)(y,{k:"generic.add"})],8,l)])]),t[3]||(t[3]=(0,s.createElementVNode)("hr",null,null,-1)),(0,s.createElementVNode)("div",c,[(0,s.withDirectives)((0,s.createElementVNode)("h4",d,null,512),[[k,e.t("harvester.virtualMachine.detail.console.record.preferredKeys")]]),(0,s.createElementVNode)("div",u,[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(p.displayedKeys,(e,t)=>((0,s.openBlock)(),(0,s.createBlock)(f,{key:t,closable:!0,onClose:e=>p.removeKey(t)},{default:(0,s.withCtx)(()=>[(0,s.withDirectives)((0,s.createElementVNode)("span",null,null,512),[[k,e]])]),_:2},1032,["onClose"]))),128))])])]),footer:(0,s.withCtx)(()=>[(0,s.createElementVNode)("div",h,[(0,s.createElementVNode)("button",{class:"btn role-secondary mr-20",onClick:t[2]||(t[2]=(0,s.withModifiers)((...e)=>p.closeRecordingModal&&p.closeRecordingModal(...e),["prevent"]))},[(0,s.createVNode)(y,{k:"generic.cancel"})]),(0,s.createVNode)(g,{mode:"edit",onClick:p.saveKeys},null,8,["onClick"])])]),_:1})}var v=n(35664),p=n(15554),y=n(30699),f=n(24151);const g="prefered-shortcut-keys";var b={name:"NovncConsoleCustomKeys",emits:["close"],components:{ModalWithCard:f.A,Banner:p.A,AsyncButton:y.A},data(){return{keysRecord:[],addedShortcutKeys:[],preferredShortcutKeys:[],isRecording:!1}},computed:{savedShortcutKeys(){const e=this.$store.getters["management/all"](v.m4.PREFERENCE),t=e?.[0]?.data?.[g];let n=[];if(!t)return n;try{n=JSON.parse(t)}catch(s){this.$store.dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:this.t("harvester.virtualMachine.detail.console.customShortcutKeys")}),err:s},{root:!0})}return n},displayedKeys(){const e=this.addedShortcutKeys.concat(this.preferredShortcutKeys).map(e=>{const t=e.map(e=>` <code>${e.key.charAt(0).toUpperCase()+e.key.slice(1)}</code>`);return t.join(",")});return e},recordButton(){return this.isRecording?"harvester.virtualMachine.detail.console.record.stop":"harvester.virtualMachine.detail.console.record.start"},keysRecordFormat(){if(!this.isRecording&&0===this.keysRecord.length)return this.t("harvester.virtualMachine.detail.console.record.tips");const e=this.keysRecord.map(e=>` <code>${e.key.charAt(0).toUpperCase()+e.key.slice(1)}</code>`);return`Keys: ${e.join(",")}`},canAdd(){const e=this.keysRecord.length>0;let t=[].concat(this.preferredShortcutKeys,this.addedShortcutKeys);return!!e&&(t.push(this.keysRecord),t=t.map(e=>{const t=e.map(e=>e.key);return t.join(",")}),t.length===new Set(t).size)}},watch:{savedShortcutKeys:{handler(){this.preferredShortcutKeys=[].concat(this.savedShortcutKeys)||[]},immediate:!0}},methods:{closeRecordingModal(){window.removeEventListener("keydown",this.handleShortcut),this.$emit("close")},toggleRecording(){this.isRecording=!this.isRecording,this.isRecording?(this.keysRecord=[],window.addEventListener("keydown",this.handleShortcut)):window.removeEventListener("keydown",this.handleShortcut)},handleShortcut(e){e.preventDefault();const{key:t,keyCode:n,code:s,location:o,charCode:i}=e;this.keysRecord.push({key:t,keyCode:n,code:s,locaLine truncated
//# sourceMappingURL=harvester-1.10.0-rc2.umd.min.989.js.map