mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-11-26 10:30:54 +08:00
CI Build Artifacts (commit: bd28ba6f71, version: 1.7.0-dev)
This commit is contained in:
1 parent
b9b6097987
commit
5864aa96d6
21 files changed
+28
-28
No files matched your search
@@ -0,0 +1,19 @@
|
||||
(("undefined"!==typeof self?self:this)["webpackChunkharvester_1_7_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_7_0_dev"]||[]).push([[886],{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 S}});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"},u={class:"row mb-20"},d={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",u,[(0,a.createElementVNode)("span",d,[(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),k=n(14220),E={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.13
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
/*! #__NO_SIDE_EFFECTS__ */
|
||||
function o(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const i={},l=()=>{},r=()=>!1,c=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),u=Object.assign,d=(Object.prototype.hasOwnProperty,Array.isArray),p=e=>"string"===typeof e,h=e=>"symbol"===typeof e,m=e=>null!==e&&"object"===typeof e,_=(Object.prototype.toString,o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted")),v=o("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),f=e=>{const t=Object.create(null);return n=>{const a=t[n];return a||(t[n]=e(n))}},b=/-(\w)/g,g=f((e=>e.replace(b,((e,t)=>t?t.toUpperCase():"")))),y=/\B([A-Z])/g,k=(f((e=>e.replace(y,"-$1").toLowerCase())),f((e=>e.charAt(0).toUpperCase()+e.slice(1)))),E=f((e=>{const t=e?`on${k(e)}`:"";return t}));let w;const N=()=>w||(w="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{});const S=/;(?![^(]*\))/g,x=/:([^]+)/,V=/\/\*[^]*?\*\//g;function C(e){const t={};return e.replace(V,"").split(S).forEach((e=>{if(e){const n=e.split(x);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}const O="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",T="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",A="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",I="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",R=o(O),L=o(T),D=o(A),B=o(I);const P=Symbol(""),M=Symbol(""),U=Symbol(""),j=Symbol(""),$=Symbol(""),K=Symbol(""),F=Symbol(""),q=Symbol(""),G=Symbol(""),W=Symbol(""),z=Symbol(""),Q=Symbol(""),H=Symbol(""),X=Symbol(""),J=Symbol(""),Y=Symbol(""),Z=Symbol(""),ee=Symbol(""),te=Symbol(""),ne=Symbol(""),ae=Symbol(""),se=Symbol(""),oe=Symbol(""),ie=Symbol(""),le=Symbol(""),re=Symbol(""),ce=Symbol(""),ue=Symbol(""),de=Symbol(""),pe=Symbol(""),he=Symbol(""),me=Symbol(""),_e=Symbol(""),ve=Symbol(""),fe=Symbol(""),be=Symbol(""),ge=Symbol(""),ye=Symbol(""),ke=Symbol(""),Ee={[P]:"Fragment",[M]:"Teleport",[U]:"Suspense",[j]:"KeepAlive",[$]:"BaseTransition",[K]:"openBlock",[F]:"createBlock",[q]:"createElementBlock",[G]:"createVNode",[W]:"createElementVNode",[z]:"createCommentVNode",[Q]:"createTextVNode",[H]:"createStaticVNode",[X]:"resolveComponent",[J]:"resolveDynamicComponent",[Y]:"resolveDirective",[Z]:"resolveFilter",[ee]:"withDirectives",[te]:"renderList",[ne]:"renderSlot",[ae]:"createSlots",[se]:"toDisplayString",[oe]:"mergeProps",[ie]:"normalizeClass",[le]:"normalizeStyle",[re]:"normalizeProps",[ce]:"guardReactiveProps",[ue]:"toHandlers",[de]:"camelize",[pe]:"capitalize",[he]:"toHandlerKey",[me]:"setBlockTracking",[_e]:"pushScopeId",[ve]:"popScopeId",[fe]:"withCtx",[be]:"unref",[ge]:"isRef",[ye]:"withMemo",[ke]:"isMemoSame"};function we(e){Object.getOwnPropertySymbols(e).forEach((t=>{Ee[t]=e[t]}))}const Ne={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Se(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Ne}}function xe(e,t,n,a,s,o,i,l=!1,r=!1,c=!1,u=Ne){return e&&(l?(e.helper(K),e.helper(Me(e.inSSR,c))):e.helper(Pe(e.inSSR,c)),i&&e.helper(ee)),{type:13,tag:t,props:n,children:a,patchFlag:s,dynamicProps:o,directives:i,isBlock:l,disableTracking:r,isComponent:c,loc:u}}function Ve(e,t=Ne){return{type:17,loc:t,elements:e}}function Ce(e,t=Ne){return{type:15,loc:t,properties:e}}function Oe(e,tLine truncated
|
||||
/**
|
||||
* @vue/server-renderer v3.5.13
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/const{ensureValidVNode:Ss}=a.ssrUtils;Symbol(""),Symbol(""),Symbol("");{const e=N(),t=(t,n)=>{let a;return(a=e[t])||(a=e[t]=[]),a.push(n),e=>{a.length>1?a.forEach((t=>t(e))):a[0](e)}};t("__VUE_INSTANCE_SETTERS__",(e=>e)),t("__VUE_SSR_SETTERS__",(e=>e))}const{createComponentInstance:xs,setCurrentRenderingInstance:Vs,setupComponent:Cs,renderComponentRoot:Os,normalizeVNode:Ts,pushWarningContext:As,popWarningContext:Is}=a.ssrUtils;const{isVNode:Rs}=a.ssrUtils;const{isVNode:Ls}=a.ssrUtils;(0,a.initDirectivesForSSR)();var Ds=n(4364),Bs=function(e,t){return Bs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Bs(e,t)};function Ps(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Bs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ms=function(){return Ms=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var s in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},Ms.apply(this,arguments)};function Us(e,t,n,a){function s(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function i(e){try{r(a.next(e))}catch(t){o(t)}}function l(e){try{r(a["throw"](e))}catch(t){o(t)}}function r(e){e.done?n(e.value):s(e.value).then(i,l)}r((a=a.apply(e,t||[])).next())}))}function js(e,t){var n,a,s,o,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return r([e,t])}}function r(l){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(i=0)),i)try{if(n=1,a&&(s=2&l[0]?a["return"]:l[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[2&l[0],s.value]),l[0]){case 0:case 1:s=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,a=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(s=i.trys,!(s=s.length>0&&s[s.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!s||l[1]>s[0]&&l[1]<s[3])){i.label=l[1];break}if(6===l[0]&&i.label<s[1]){i.label=s[1],s=l;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(l);break}s[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(r){l=[6,r],a=0}finally{n=s=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function $s(e,t,n){if(n||2===arguments.length)for(var a,s=0,o=t.length;s<o;s++)!a&&s in t||(a||(a=Array.prototype.slice.call(t,0,s)),a[s]=t[s]);return e.concat(a||Array.prototype.slice.call(t))}"function"===typeof SuppressedError&&SuppressedError;var Ks=function(){function e(){this.installedPlugins=[]}return e.prototype.install=function(e,t){"function"!==typeof e&&(Ds.error("plugin.install must receive a function"),e=function(){return{}}),this.installedPlugins.push({handler:e,options:t})},e.prototype.extend=function(e){var t=function(t){var n=t.handler,a=t.options;return n(e,a)},n=function(t){var n=t[0],a=t[1];e[n]="function"===typeof a?a.bind(e):a},a=function(e){e="object"===typeof e?e:{},Object.entries(e).forEach(n)};this.installedPlugins.map(t).forEach(a)},e.prototype.reset=function(){this.installedPlugins=[]},e}(),Fs={global:{stubs:{transition:!0,"transition-group":!0},provide:{},components:{},config:{},directives:{},mixins:[],mocks:{},plugins:[],renderStubDefaultSlot:!1},plugins:{VueWrapper:new Ks,DOMWrapper:new Ks}};function qs(e,t){if(t.stubs)if(Array.isArray(t.stubs))t.stubs.forEach((function(t){return e[t]=!0}));else for(var n=0,a=Object.entries(t.stubs);n<a.length;n++){var s=a[n],o=s[0],i=s[1];e[o]=i}}function Gs(e,t){return Ms(Ms(Ms({},e),t),{globalProperties:Ms(Ms({},null===e||void 0===e?void 0:e.globalProperties),null===t||void 0===t?void 0:t.globalProperties)})}function Ws(e){var t,n,a;void 0===e&&(e={});var s={},o=null!==(t=null===Fs||void 0===Fs?void 0:Fs.global)&&void 0!==t?t:{};qs(s,o),qs(s,e);var i=null!==(a=null!==(n=e.renderStubDefaultSlot)&&void 0!==n?n:o.renderStubDefaultSlot||(null===Fs||void 0===Fs?void 0:Fs.renderStubDefaultSlot))&&void 0!==a&&a;return!0===Fs.renderStubDefaultSlot&&Ds.warn("config.renderStubDefaultSlot is deprecated, use config.global.renderStubDefaultSlot instead"),{mixins:$s($s([],o.mixins||[],!0),e.mixins||[],!0),plugins:$s($s([],o.plugins||[],!0),e.plugins||[],!0),stubs:s,components:Ms(Ms({},o.components),e.components),provide:Ms(Ms({},o.provide),e.provide),mocks:Ms(Ms({},o.mocks),e.mocks),config:Gs(o.config,e.config),directives:Ms(Ms({},o.directives),e.directives),renderStubDefaultSlot:i}}var zs=function(e){return!!e&&"object"===typeof e};function Qs(e){if(e instanceof Object){var t=e.constructor&&"class"===e.constructor.toString().substring(0,5);if(!("prototype"in e))return t;var n=e.prototype,Line truncated
|
||||
/*!
|
||||
* isElementVisible
|
||||
* Adapted from https://github.com/testing-library/jest-dom
|
||||
* Licensed under the MIT License.
|
||||
*/function Wo(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;var t=getComputedStyle(e),n=t.display,a=t.visibility,s=t.opacity;return"none"!==n&&"hidden"!==a&&"collapse"!==a&&"0"!==s}function zo(e){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||e.hasAttribute("open"))}function Qo(e){return"#comment"!==e.nodeName&&Wo(e)&&zo(e)&&(!e.parentElement||Qo(e.parentElement))}function Ho(e){return e instanceof Element}(function(e){e[e["DOMWrapper"]=0]="DOMWrapper",e[e["VueWrapper"]=1]="VueWrapper"})(Bo||(Bo={}));var Xo={};function Jo(e,t){Xo[e]=t}var Yo=function(e){return Xo[Bo.DOMWrapper](e)},Zo=function(e,t,n){return Xo[Bo.VueWrapper](e,t,n)};function ei(e){return e instanceof Element?e.outerHTML:(new XMLSerializer).serializeToString(e)}function ti(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var ni,ai={exports:{}},si={},oi={exports:{}},ii={},li={};function ri(){if(ni)return li;function e(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function t(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function n(n,a){this.__indent_cache=new t(n,a),this.raw=!1,this._end_with_newline=n.end_with_newline,this.indent_size=n.indent_size,this.wrap_line_length=n.wrap_line_length,this.indent_empty_lines=n.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return ni=1,e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},e.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},e.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},e.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},t.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t,n},t.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t],n},t.prototype.__ensure_cache=function(e){while(e>=this.__cache.length)this._Line truncated
|
||||
//# sourceMappingURL=harvester-1.7.0-dev.umd.min.886.js.map
|
||||
Reference in new issue
Block a user