build: 更新 Dockerfile 并调整项目资源
- 移除 Dockerfile 中的 CMD 指令 - 更新模板文件中的资源链接 - 修正检查组件的当前步骤初始值
This commit is contained in:
1 parent
40367a4e12
commit
f62672d779
5 files changed
+5
-7
No files matched your search
+1
-1
@@ -495,5 +495,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
||||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[Q3]=this[Q3]={accessors:{}}).accessors,r=this.prototype;function i(a){const l=Rs(a);o[l]||(rge(r,a),o[l]=!0)}return Pe.isArray(t)?t.forEach(i):i(t),this}};ho.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Pe.reduceDescriptors(ho.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});Pe.freezeMethods(ho);function Sm(e,t){const n=this||nd,o=t||n,r=ho.from(o.headers);let i=o.data;return Pe.forEach(e,function(l){i=l.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function aE(e){return!!(e&&e.__CANCEL__)}function Ss(e,t,n){mt.call(this,e??"canceled",mt.ERR_CANCELED,t,n),this.name="CanceledError"}Pe.inherits(Ss,mt,{__CANCEL__:!0});function lE(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new mt("Request failed with status code "+n.status,[mt.ERR_BAD_REQUEST,mt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ige(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function age(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,i=0,a;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=o[i];a||(a=u),n[r]=s,o[r]=u;let d=i,f=0;for(;d!==r;)f+=n[d++],d=d%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),u-a<t)return;const h=c&&u-c;return h?Math.round(f*1e3/h):void 0}}function lge(e,t){let n=0,o=1e3/t,r,i;const a=(u,c=Date.now())=>{n=c,r=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=o?a(u,c):(r=u,i||(i=setTimeout(()=>{i=null,a(r)},o-d)))},()=>r&&a(r)]}const Zh=(e,t,n=3)=>{let o=0;const r=age(50,250);return lge(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,s=a-o,u=r(s),c=a<=l;o=a;const d={loaded:a,total:l,progress:l?a/l:void 0,bytes:s,rate:u||void 0,estimated:u&&l&&c?(l-a)/u:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(d)},n)},e6=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},t6=e=>(...t)=>Pe.asap(()=>e(...t)),sge=Hn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Hn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Hn.origin),Hn.navigator&&/(msie|trident)/i.test(Hn.navigator.userAgent)):()=>!0,cge=Hn.hasStandardBrowserEnv?{write(e,t,n,o,r,i){const a=[e+"="+encodeURIComponent(t)];Pe.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Pe.isString(o)&&a.push("path="+o),Pe.isString(r)&&a.push("domain="+r),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function uge(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dge(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function sE(e,t,n){let o=!uge(t);return e&&(o||n==!1)?dge(e,t):t}const n6=e=>e instanceof ho?{...e}:e;function Va(e,t){t=t||{};const n={};function o(u,c,d,f){return Pe.isPlainObject(u)&&Pe.isPlainObject(c)?Pe.merge.call({caseless:f},u,c):Pe.isPlainObject(c)?Pe.merge({},c):Pe.isArray(c)?c.slice():c}function r(u,c,d,f){if(Pe.isUndefined(c)){if(!Pe.isUndefined(u))return o(void 0,u,d,f)}else return o(u,c,d,f)}function i(u,c){if(!Pe.isUndefined(c))return o(void 0,c)}function a(u,c){if(Pe.isUndefined(c)){if(!Pe.isUndefined(u))return o(void 0,u)}else return o(void 0,c)}function l(u,c,d){if(d in t)return o(u,c);if(d in e)return o(void 0,u)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,c,d)=>r(n6(u),n6(c),d,!0)};return Pe.forEach(Object.keys({...e,...t}),function(c){const d=s[c]||r,f=d(e[c],t[c],c);Pe.isUndefined(f)&&d!==l||(n[c]=f)}),n}const cE=e=>{const t=Va({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=ho.from(a),t.url=oE(sE(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let s;if(Pe.isFormData(n)){if(Hn.hasStandardBrowserEnv||Hn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((s=a.getContentType())!==!1){const[u,...c]=s?s.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Hn.hasStandardBrowserEnv&&(o&&Pe.isFunction(o)&
Line truncated
|
||||
`+i.map(i6).join(`
|
||||
`):" "+i6(i[0]):"as no adapter specified";throw new mt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:S1};function Cm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ss(null,e)}function a6(e){return Cm(e),e.headers=ho.from(e.headers),e.data=Sm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fE.getAdapter(e.adapter||nd.adapter)(e).then(function(o){return Cm(e),o.data=Sm.call(e,e.transformResponse,o),o.headers=ho.from(o.headers),o},function(o){return aE(o)||(Cm(e),o&&o.response&&(o.response.data=Sm.call(e,e.transformResponse,o.response),o.response.headers=ho.from(o.response.headers))),Promise.reject(o)})}const hE="1.11.0",Ng={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ng[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const l6={};Ng.transitional=function(t,n,o){function r(i,a){return"[Axios v"+hE+"] Transitional option '"+i+"'"+a+(o?". "+o:"")}return(i,a,l)=>{if(t===!1)throw new mt(r(a," has been removed"+(n?" in "+n:"")),mt.ERR_DEPRECATED);return n&&!l6[a]&&(l6[a]=!0,console.warn(r(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};Ng.spelling=function(t){return(n,o)=>(console.warn(`${o} is likely a misspelling of ${t}`),!0)};function $ge(e,t,n){if(typeof e!="object")throw new mt("options must be an object",mt.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const i=o[r],a=t[i];if(a){const l=e[i],s=l===void 0||a(l,i,e);if(s!==!0)throw new mt("option "+i+" must be "+s,mt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new mt("Unknown option "+i,mt.ERR_BAD_OPTION)}}const zf={assertOptions:$ge,validators:Ng},br=zf.validators;let Aa=class{constructor(t){this.defaults=t||{},this.interceptors={request:new J3,response:new J3}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
||||
`+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Va(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:i}=n;o!==void 0&&zf.assertOptions(o,{silentJSONParsing:br.transitional(br.boolean),forcedJSONParsing:br.transitional(br.boolean),clarifyTimeoutError:br.transitional(br.boolean)},!1),r!=null&&(Pe.isFunction(r)?n.paramsSerializer={serialize:r}:zf.assertOptions(r,{encode:br.function,serialize:br.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),zf.assertOptions(n,{baseUrl:br.spelling("baseURL"),withXsrfToken:br.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Pe.merge(i.common,i[n.method]);i&&Pe.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=ho.concat(a,i);const l=[];let s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(s=s&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,d=0,f;if(!s){const p=[a6.bind(this),void 0];for(p.unshift(...l),p.push(...u),f=p.length,c=Promise.resolve(n);d<f;)c=c.then(p[d++],p[d++]);return c}f=l.length;let h=n;for(d=0;d<f;){const p=l[d++],g=l[d++];try{h=p(h)}catch(m){g.call(this,m);break}}try{c=a6.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=Va(this.defaults,t);const n=sE(t.baseURL,t.url,t.allowAbsoluteUrls);return oE(n,t.params,t.paramsSerializer)}};Pe.forEach(["delete","get","head","options"],function(t){Aa.prototype[t]=function(n,o){return this.request(Va(o||{},{method:t,url:n,data:(o||{}).data}))}});Pe.forEach(["post","put","patch"],function(t){function n(o){return function(i,a,l){return this.request(Va(l||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Aa.prototype[t]=n(),Aa.prototype[t+"Form"]=n(!0)});let _ge=class pE{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const o=this;this.promise.then(r=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(l=>{o.subscribe(l),i=l}).then(r);return a.cancel=function(){o.unsubscribe(i)},a},t(function(i,a,l){o.reason||(o.reason=new Ss(i,a,l),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new pE(function(r){t=r}),cancel:t}}};function Pge(e){return function(n){return e.apply(null,n)}}function Oge(e){return Pe.isObject(e)&&e.isAxiosError===!0}const C1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(C1).forEach(([e,t])=>{C1[t]=e});function gE(e){const t=new Aa(e),n=KI(Aa.prototype.request,t);return Pe.extend(n,Aa.prototype,t,{allOwnKeys:!0}),Pe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return gE(Va(e,r))},n}const an=gE(nd);an.Axios=Aa;an.CanceledError=Ss;an.CancelToken=_ge;an.isCancel=aE;an.VERSION=hE;an.toFormData=Rg;an.AxiosError=mt;an.Cancel=an.CanceledError;an.all=function(t){return Promise.all(t)};an.spread=Pge;an.isAxiosError=Oge;an.mergeConfig=Va;an.AxiosHeaders=ho;an.formToJSON=e=>iE(Pe.isHTMLForm(e)?new FormData(e):e);an.getAdapter=fE.getAdapter;an.HttpStatusCode=C1;an.d
Line truncated
|
||||
`+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Va(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:i}=n;o!==void 0&&zf.assertOptions(o,{silentJSONParsing:br.transitional(br.boolean),forcedJSONParsing:br.transitional(br.boolean),clarifyTimeoutError:br.transitional(br.boolean)},!1),r!=null&&(Pe.isFunction(r)?n.paramsSerializer={serialize:r}:zf.assertOptions(r,{encode:br.function,serialize:br.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),zf.assertOptions(n,{baseUrl:br.spelling("baseURL"),withXsrfToken:br.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Pe.merge(i.common,i[n.method]);i&&Pe.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=ho.concat(a,i);const l=[];let s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(s=s&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,d=0,f;if(!s){const p=[a6.bind(this),void 0];for(p.unshift(...l),p.push(...u),f=p.length,c=Promise.resolve(n);d<f;)c=c.then(p[d++],p[d++]);return c}f=l.length;let h=n;for(d=0;d<f;){const p=l[d++],g=l[d++];try{h=p(h)}catch(m){g.call(this,m);break}}try{c=a6.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=Va(this.defaults,t);const n=sE(t.baseURL,t.url,t.allowAbsoluteUrls);return oE(n,t.params,t.paramsSerializer)}};Pe.forEach(["delete","get","head","options"],function(t){Aa.prototype[t]=function(n,o){return this.request(Va(o||{},{method:t,url:n,data:(o||{}).data}))}});Pe.forEach(["post","put","patch"],function(t){function n(o){return function(i,a,l){return this.request(Va(l||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Aa.prototype[t]=n(),Aa.prototype[t+"Form"]=n(!0)});let _ge=class pE{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const o=this;this.promise.then(r=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](r);o._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(l=>{o.subscribe(l),i=l}).then(r);return a.cancel=function(){o.unsubscribe(i)},a},t(function(i,a,l){o.reason||(o.reason=new Ss(i,a,l),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new pE(function(r){t=r}),cancel:t}}};function Pge(e){return function(n){return e.apply(null,n)}}function Oge(e){return Pe.isObject(e)&&e.isAxiosError===!0}const C1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(C1).forEach(([e,t])=>{C1[t]=e});function gE(e){const t=new Aa(e),n=KI(Aa.prototype.request,t);return Pe.extend(n,Aa.prototype,t,{allOwnKeys:!0}),Pe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return gE(Va(e,r))},n}const an=gE(nd);an.Axios=Aa;an.CanceledError=Ss;an.CancelToken=_ge;an.isCancel=aE;an.VERSION=hE;an.toFormData=Rg;an.AxiosError=mt;an.Cancel=an.CanceledError;an.all=function(t){return Promise.all(t)};an.spread=Pge;an.isAxiosError=Oge;an.mergeConfig=Va;an.AxiosHeaders=ho;an.formToJSON=e=>iE(Pe.isHTMLForm(e)?new FormData(e):e);an.getAdapter=fE.getAdapter;an.HttpStatusCode=C1;an.d
Line truncated
|
||||
`),Y=+this.fontSize(),U=0,G=this.lineHeight()*Y,W=this.attrs.width,J=this.attrs.height,Q=W!==l&&W!==void 0,q=J!==l&&J!==void 0,ee=this.padding(),K=W-ee*2,Z=J-ee*2,te=0,se=this.wrap(),ie=se!==I,ae=se!==T&&ie,le=this.ellipsis();this.textArr=[],E().font=this._getContextFont();const de=le?this._getTextWidth(R):0;for(let he=0,ge=V.length;he<ge;++he){let pe=V[he],ve=this._getTextWidth(pe);if(Q&&ve>K)for(;pe.length>0;){let Ce=0,fe=a(pe).length,ue="",me=0;for(;Ce<fe;){const $e=Ce+fe>>>1,Te=a(pe),Ie=Te.slice(0,$e+1).join(""),Se=this._getTextWidth(Ie);(le&&q&&te+G>Z?Se+de:Se)<=K?(Ce=$e+1,ue=Ie,me=Se):fe=$e}if(ue){if(ae){const Ie=a(pe),Se=a(ue),we=Ie[Se.length],_e=we===_||we===h;let Ae;if(_e&&me<=K)Ae=Se.length;else{const De=Se.lastIndexOf(_),Re=Se.lastIndexOf(h);Ae=Math.max(De,Re)+1}Ae>0&&(Ce=Ae,ue=Ie.slice(0,Ce).join(""),me=this._getTextWidth(ue))}if(ue=ue.trimRight(),this._addTextLine(ue),U=Math.max(U,me),te+=G,this._shouldHandleEllipsis(te)){this._tryToAddEllipsisToLastLine();break}if(pe=a(pe).slice(Ce).join("").trimLeft(),pe.length>0&&(ve=this._getTextWidth(pe),ve<=K)){this._addTextLine(pe),te+=G,U=Math.max(U,ve);break}}else break}else this._addTextLine(pe),te+=G,U=Math.max(U,ve),this._shouldHandleEllipsis(te)&&he<ge-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),q&&te+G>Z)break}this.textHeight=Y,this.textWidth=U}_shouldHandleEllipsis(V){const Y=+this.fontSize(),U=this.lineHeight()*Y,G=this.attrs.height,W=G!==l&&G!==void 0,J=this.padding(),Q=G-J*2;return!(this.wrap()!==I)||W&&V+U>Q}_tryToAddEllipsisToLastLine(){const V=this.attrs.width,Y=V!==l&&V!==void 0,U=this.padding(),G=V-U*2,W=this.ellipsis(),J=this.textArr[this.textArr.length-1];!J||!W||(Y&&(this._getTextWidth(J.text+R)<G||(J.text=J.text.slice(0,J.text.length-3))),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(J.text+R))}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const V=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,Y=this.hasShadow();return V&&Y?!0:super._useBufferCanvas()}};return hl.Text=L,L.prototype._fillFunc=A,L.prototype._strokeFunc=D,L.prototype.className=m,L.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,i._registerNode)(L),t.Factory.overWriteSetter(L,"width",(0,r.getNumberOrAutoValidator)()),t.Factory.overWriteSetter(L,"height",(0,r.getNumberOrAutoValidator)()),t.Factory.addGetterSetter(L,"direction",u),t.Factory.addGetterSetter(L,"fontFamily","Arial"),t.Factory.addGetterSetter(L,"fontSize",12,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(L,"fontStyle",x),t.Factory.addGetterSetter(L,"fontVariant",x),t.Factory.addGetterSetter(L,"padding",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(L,"align",p),t.Factory.addGetterSetter(L,"verticalAlign",S),t.Factory.addGetterSetter(L,"lineHeight",1,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(L,"wrap",O),t.Factory.addGetterSetter(L,"ellipsis",!1,(0,r.getBooleanValidator)()),t.Factory.addGetterSetter(L,"letterSpacing",0,(0,r.getNumberValidator)()),t.Factory.addGetterSetter(L,"text","",(0,r.getStringValidator)()),t.Factory.addGetterSetter(L,"textDecoration",""),hl}var Qs={},j6;function fve(){if(j6)return Qs;j6=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.TextPath=void 0;const e=Jt(),t=xt(),n=_n(),o=l2(),r=xE(),i=Pt(),a=St(),l="",s="normal";function u(f){f.fillText(this.partialText,0,0)}function c(f){f.strokeText(this.partialText,0,0)}let d=class extends n.Shape{constructor(h){super(h),this.dummyCanvas=e.Util.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return o.Path.getPathLength(this.dataArray)}_getPointAtLength(h){if(!this.attrs.data)return null;const p=this.pathLength;return h-1>p?null:o.Path.getPointAtLengthOfDataArray(h,this.dataArray)}_readDataAttribute(){this.dataArray=o.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(h){h.setAttr("font",this._getContextFont()),h.setAttr("textBaseline",this.textBaseline()),h.setAttr("textAlign","left"),h.save();const p=this.textDecoration(),g=this.fill(),m=this.fontSize(),S=this.glyphInfo;p==="underline"&&h.beginPath();for(let y=0;y<S.length;y++){h.save();const b=S[y].p0;h.translate(b.x,b.y),h.rotate(S[y].rotation),this.partialText=S[y].text,h.fillStrokeShape(this),p==="underline"&&(y===0&&h.moveTo(0,m/2+1),h.lineTo(m,m/2+1)),h.restore()}p==="underline"&&(h.strokeStyle=g,h.lineWidth=m/20,h.stroke()),h.restore()}_hitFunc(h){h.beginPath();const p=this.glyphInfo;if(p.length>=1){const g=p[0].p0;h.moveTo(g.x,g.y)}for(let g=0;g<p.length;g++){const m=p[g].p1;h.lineTo(m.x,m.y)}h.setAttr("li
Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.card{padding:2em}#app{width:100%;height:100%;margin:0 auto;padding:2rem;text-align:center}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.pdf[data-v-63a0040f]{width:100%;height:100%}.container[data-v-9f5a173f]{margin-top:50px;height:100%}.pdf[data-v-34c6f13c]{width:100%;height:100%}.ant-steps[data-v-c563b4dc]{padding:0 20px 20px}.table-operations[data-v-08087e29]{margin-bottom:16px;text-align:right}.table-operations>button[data-v-08087e29]{margin-right:8px}#components-layout-demo-top-side .logo[data-v-0093e7ee]{float:left;height:31px;margin:16px 24px 16px 0;background:#ffffff4d}.ant-row-rtl #components-layout-demo-top-side .logo[data-v-0093e7ee]{float:right;margin:16px 0 16px 24px}.container[data-v-0093e7ee]{height:100%}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}
|
||||
:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.card{padding:2em}#app{width:100%;height:100%;margin:0 auto;padding:2rem;text-align:center}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.pdf[data-v-63a0040f]{width:100%;height:100%}.container[data-v-9f5a173f]{margin-top:50px;height:100%}.pdf[data-v-34c6f13c]{width:100%;height:100%}.ant-steps[data-v-65545dab]{padding:0 20px 20px}.table-operations[data-v-08087e29]{margin-bottom:16px;text-align:right}.table-operations>button[data-v-08087e29]{margin-right:8px}#components-layout-demo-top-side .logo[data-v-0093e7ee]{float:left;height:31px;margin:16px 24px 16px 0;background:#ffffff4d}.ant-row-rtl #components-layout-demo-top-side .logo[data-v-0093e7ee]{float:right;margin:16px 0 16px 24px}.container[data-v-0093e7ee]{height:100%}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}
|
||||
@@ -5,8 +5,8 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite + Vue + TS</title>
|
||||
<script type="module" crossorigin src="/assets/index-BKogJWAb.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-DdVjXnlc.css">
|
||||
<script type="module" crossorigin src="/assets/index-CZJjVKTn.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-mR0T4gbb.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>␍
|
||||
|
||||
@@ -3,5 +3,3 @@ WORKDIR /app
|
||||
COPY . .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN python setup.py install
|
||||
|
||||
CMD ["python", "alibabacloud_sample/main.py"]
|
||||
@@ -27,7 +27,7 @@ const items = [
|
||||
] as StepProps[];
|
||||
// 文件路径
|
||||
const filePath = ref('');
|
||||
const current = ref<number>(3);
|
||||
const current = ref<number>(0);
|
||||
// 下一步
|
||||
const nextPage = () => {
|
||||
current.value ++;
|
||||
|
||||
Reference in new issue
Block a user