We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// ==UserScript== // @name 保住肥姑妈(Figma 源文件备份) // @namespace figma-backup // @version 0.2.3 // @description 保住肥姑妈(Figma 源文件备份) // @author Luke // @match *://codesign.qq.com/* // @match *://codesign.woa.com/* // @match *://*.figma.com/* // @icon https://www.google.com/s2/favicons?domain=codesign.qq.com // @grant GM_xmlhttpRequest // @grant GM_getResourceText // @grant GM_addStyle // @connect www.figma.com // @connect codesign.qq.com // @require https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js // @require https://cdn.jsdelivr.net/npm/[email protected]/dist/tdesign.min.js // @resource TDESIGN_CSS https://cdn.jsdelivr.net/npm/[email protected]/dist/tdesign.min.css // @updateURL https://luke.gd/figma-backup/figma.user.js // @downloadURL https://luke.gd/figma-backup/figma.user.js // ==/UserScript== // Load remote CSS // @see https://github.com/Tampermonkey/tampermonkey/issues/835 const TDesignCSS = GM_getResourceText("TDESIGN_CSS"); GM_addStyle(TDesignCSS); (function() { const rules = '@keyframes t-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.t-icon{display:inline-block;vertical-align:middle;width:1em;height:1em}.t-icon:before{font-family:unset}.t-icon-loading{animation:t-spin 1s linear infinite}.t-icon{fill:currentColor}.t-icon.t-size-s{font-size:14px}.t-icon.t-size-m{font-size:16px}.t-icon.t-size-l{font-size:18px}.figma-files__loading{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#ffffff80;z-index:1;display:flex;justify-content:center;align-items:center}.figma-files__item{width:100%;cursor:pointer;border-radius:4px;border:1px solid #fafafa;padding:10px;display:flex;background-color:#fafafa;margin:6px 0;box-sizing:border-box}.figma-files__item:hover,.figma-files__item--checked{border-color:#0152d9!important}.figma-file__check{display:flex;justify-content:center;align-items:center}.figma-file__thumb{width:40px;height:40px;padding:2px;overflow:hidden;border-radius:4px;margin-right:10px;border:1px solid #ddd;display:flex;justify-content:center;align-items:center;background-color:#fff}.figma-file__thumb img{max-width:100%;max-height:100%}.figma-file__info{flex:1;line-height:20px;display:flex;flex-direction:column;justify-content:space-between}.figma-file__name{font-size:14px;font-weight:700;color:#333}.figma-file__name svg{display:inline-block;width:20px;height:20px;vertical-align:text-bottom}.figma-file__folder-name{color:#999}.figma-file__desc{font-size:12px;color:#999}.figma-file__action{display:flex;justify-content:center;align-items:center;border-radius:4px;background-color:#eee;cursor:pointer;font-size:20px;color:#2c3e50;transition:all .3s}.figma-file__action:hover{background-color:#2c3e50;color:#fff}.figma-ws__current{display:flex;align-items:center;padding:0 10px;border-radius:4px;color:#666;line-height:32px;cursor:pointer;font-weight:700}.figma-ws__current:hover{background-color:#eee}.figma-ws__username{margin:0 5px}.figma-ws__orgname{color:#0152d9;font-size:.8em}.figma-ws__usergroup{max-width:200px;font-size:13px;padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid #eee}.figma-ws__usergroup:last-child{border-bottom:none}.figma-ws__usergroup-title{color:#999;font-weight:700;font-size:.8em;padding:0 5px;line-height:26px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.figma-ws__useritem{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;padding:0 5px;line-height:32px;border-radius:4px;margin:1px 0}.figma-ws__useritem:hover{background-color:#eee}.figma-ws__useritem--active{background-color:#e8f0ff}.figma-bk__hd{line-height:32px;display:flex;justify-content:space-between;margin-bottom:12px}.figma-bk__filter{width:50%}.figma-bk__user{text-align:right}.figma-bk__bd{height:300px;max-height:300px;overflow:auto;overflow:overlay}.figma-bk__ft{display:flex;justify-content:space-between;align-items:center}.figma-bk__cloud{font-size:13px;word-spacing:0;color:#999;margin-right:12px}.figma-bk__cloud a{color:#666;border-bottom:1px solid #999}.figma-bk__cloud a:hover{color:#333}.figma-bk__meta{color:#999;word-spacing:0}.figma-bk__meta a{color:#999;cursor:pointer}.figma-bk__error,.figma-bk__progress{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#ffffffb3;font-weight:700;text-align:center;display:flex;align-items:center;justify-content:center}.figma-bk__progress-inner{width:80%}.figma-bk__progress-action{display:flex;justify-content:center;column-gap:15px;margin:15px 0}#figma-bk{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:left;color:#2c3e50}#figma-bk .t-dialog__header{word-spacing:0}.figma-trigger{width:60px;height:60px;position:fixed;bottom:-30px;right:-30px;cursor:pointer;background-color:#000;border-radius:100%;z-index:99}.figma-trigger svg{margin:12px 0 0 12px;width:16px;height:16px}'; const style = document.createElement('style'); style.innerHTML = rules; document.head.appendChild(style); var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))__hasOwnProp.call(t,r)&&__defNormalProp(e,r,t[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(t))__propIsEnum.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t));!function(e,t){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(e),s=r(t);const i=e=>"function"==typeof GM_getValue?GM_getValue(e):localStorage.getItem(e),o=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));var a,c;null===i("__track_uuid__")&&(a="__track_uuid__",c=o(),"function"==typeof GM_setValue?GM_setValue(a,c):localStorage.setItem(a,c));const l=new Image,u=(e="",t="")=>{try{const r={v:1,a:"figma.app",d:location.hostname,dp:`${location.pathname}${location.search}`,t:"event",referer:document.referrer,title:document.title,uid:i("__track_uuid__"),sid:o(),sr:`${window.screen.width}x${window.screen.height}`,vp:`${window.innerWidth}x${window.innerHeight}`,ts:Date.now(),l:navigator.language,ec:e,ea:"",el:"string"==typeof t?t:"",ev:"number"==typeof t?t:"",et:{}},n=`https://horizon-assets.qq.com/collect?${Object.keys(r).map((e=>`${e}=${encodeURIComponent(r[e])}`)).join("&")}`;l.src=n}catch(r){}};var d={install(e,t){e.prototype.$track=u}};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var f={exports:{}},h=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},p=h,m=Object.prototype.toString;function g(e){return Array.isArray(e)}function v(e){return void 0===e}function y(e){return"[object ArrayBuffer]"===m.call(e)}function _(e){return null!==e&&"object"==typeof e}function w(e){if("[object Object]"!==m.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function b(e){return"[object Function]"===m.call(e)}function k(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),g(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}var O={isArray:g,isArrayBuffer:y,isBuffer:function(e){return null!==e&&!v(e)&&null!==e.constructor&&!v(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===m.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&y(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:_,isPlainObject:w,isUndefined:v,isDate:function(e){return"[object Date]"===m.call(e)},isFile:function(e){return"[object File]"===m.call(e)},isBlob:function(e){return"[object Blob]"===m.call(e)},isFunction:b,isStream:function(e){return _(e)&&b(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===m.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:k,merge:function e(){var t={};function r(r,n){w(t[n])&&w(r)?t[n]=e(t[n],r):w(r)?t[n]=e({},r):g(r)?t[n]=r.slice():t[n]=r}for(var n=0,s=arguments.length;n<s;n++)k(arguments[n],r);return t},extend:function(e,t,r){return k(t,(function(t,n){e[n]=r&&"function"==typeof t?p(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},C=O;function S(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var x=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(C.isURLSearchParams(t))n=t.toString();else{var s=[];C.forEach(t,(function(e,t){null!=e&&(C.isArray(e)?t+="[]":e=[e],C.forEach(e,(function(e){C.isDate(e)?e=e.toISOString():C.isObject(e)&&(e=JSON.stringify(e)),s.push(S(t)+"="+S(e))})))})),n=s.join("&")}if(n){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e},$=O;function L(){this.handlers=[]}L.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},L.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},L.prototype.forEach=function(e){$.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var E=L,D=O,j=function(e,t,r,n,s){return e.config=t,r&&(e.code=r),e.request=n,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},P={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},M=j,I=function(e,t,r,n,s){var i=new Error(e);return M(i,t,r,n,s)},T=I,A=O,N=A.isStandardBrowserEnv()?{write:function(e,t,r,n,s,i){var o=[];o.push(e+"="+encodeURIComponent(t)),A.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),A.isString(n)&&o.push("path="+n),A.isString(s)&&o.push("domain="+s),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},F=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},R=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},H=O,B=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Y=O,U=Y.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=Y.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0};function z(e){this.message=e}z.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},z.prototype.__CANCEL__=!0;var q=z,W=O,V=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(T("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},J=N,Z=x,G=function(e,t){return e&&!F(t)?R(e,t):t},X=function(e){var t,r,n,s={};return e?(H.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=H.trim(e.substr(0,n)).toLowerCase(),r=H.trim(e.substr(n+1)),t){if(s[t]&&B.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s},K=U,Q=I,ee=P,te=q,re=function(e){return new Promise((function(t,r){var n,s=e.data,i=e.headers,o=e.responseType;function a(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}W.isFormData(s)&&delete i["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(l+":"+u)}var d=G(e.baseURL,e.url);function f(){if(c){var n="getAllResponseHeaders"in c?X(c.getAllResponseHeaders()):null,s={data:o&&"text"!==o&&"json"!==o?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c};V((function(e){t(e),a()}),(function(e){r(e),a()}),s),c=null}}if(c.open(e.method.toUpperCase(),Z(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(f)},c.onabort=function(){c&&(r(Q("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){r(Q("Network Error",e,null,c)),c=null},c.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||ee;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(Q(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},W.isStandardBrowserEnv()){var h=(e.withCredentials||K(d))&&e.xsrfCookieName?J.read(e.xsrfCookieName):void 0;h&&(i[e.xsrfHeaderName]=h)}"setRequestHeader"in c&&W.forEach(i,(function(e,t){void 0===s&&"content-type"===t.toLowerCase()?delete i[t]:c.setRequestHeader(t,e)})),W.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&"json"!==o&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(n=function(e){c&&(r(!e||e&&e.type?new te("canceled"):e),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n))),s||(s=null),c.send(s)}))},ne=O,se=function(e,t){D.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},ie=j,oe={"Content-Type":"application/x-www-form-urlencoded"};function ae(e,t){!ne.isUndefined(e)&&ne.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var ce,le={transitional:P,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(ce=re),ce),transformRequest:[function(e,t){return se(t,"Accept"),se(t,"Content-Type"),ne.isFormData(e)||ne.isArrayBuffer(e)||ne.isBuffer(e)||ne.isStream(e)||ne.isFile(e)||ne.isBlob(e)?e:ne.isArrayBufferView(e)?e.buffer:ne.isURLSearchParams(e)?(ae(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):ne.isObject(e)||t&&"application/json"===t["Content-Type"]?(ae(t,"application/json"),function(e,t,r){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||le.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||n&&ne.isString(e)&&e.length)try{return JSON.parse(e)}catch(i){if(s){if("SyntaxError"===i.name)throw ie(i,this,"E_JSON_PARSE");throw i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ne.forEach(["delete","get","head"],(function(e){le.headers[e]={}})),ne.forEach(["post","put","patch"],(function(e){le.headers[e]=ne.merge(oe)}));var ue=le,de=O,fe=ue,he=function(e){return!(!e||!e.__CANCEL__)},pe=O,me=function(e,t,r){var n=this||fe;return de.forEach(r,(function(r){e=r.call(n,e,t)})),e},ge=he,ve=ue,ye=q;function _e(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ye("canceled")}var we=O,be=function(e,t){t=t||{};var r={};function n(e,t){return we.isPlainObject(e)&&we.isPlainObject(t)?we.merge(e,t):we.isPlainObject(t)?we.merge({},t):we.isArray(t)?t.slice():t}function s(r){return we.isUndefined(t[r])?we.isUndefined(e[r])?void 0:n(void 0,e[r]):n(e[r],t[r])}function i(e){if(!we.isUndefined(t[e]))return n(void 0,t[e])}function o(r){return we.isUndefined(t[r])?we.isUndefined(e[r])?void 0:n(void 0,e[r]):n(void 0,t[r])}function a(r){return r in t?n(e[r],t[r]):r in e?n(void 0,e[r]):void 0}var c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a};return we.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||s,n=t(e);we.isUndefined(n)&&t!==a||(r[e]=n)})),r},ke="0.26.1",Oe=ke,Ce={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Ce[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var Se={};Ce.transitional=function(e,t,r){function n(e,t){return"[Axios v"+Oe+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,s,i){if(!1===e)throw new Error(n(s," has been removed"+(t?" in "+t:"")));return t&&!Se[s]&&(Se[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,s,i)}};var xe={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),s=n.length;s-- >0;){var i=n[s],o=t[i];if(o){var a=e[i],c=void 0===a||o(a,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:Ce},$e=O,Le=x,Ee=E,De=function(e){return _e(e),e.headers=e.headers||{},e.data=me.call(e,e.data,e.headers,e.transformRequest),e.headers=pe.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),pe.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||ve.adapter)(e).then((function(t){return _e(e),t.data=me.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return ge(t)||(_e(e),t&&t.response&&(t.response.data=me.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},je=be,Pe=xe,Me=Pe.validators;function Ie(e){this.defaults=e,this.interceptors={request:new Ee,response:new Ee}}Ie.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=je(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&Pe.assertOptions(r,{silentJSONParsing:Me.transitional(Me.boolean),forcedJSONParsing:Me.transitional(Me.boolean),clarifyTimeoutError:Me.transitional(Me.boolean)},!1);var n=[],s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!s){var a=[De,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(o),i=Promise.resolve(t);a.length;)i=i.then(a.shift(),a.shift());return i}for(var c=t;n.length;){var l=n.shift(),u=n.shift();try{c=l(c)}catch(d){u(d);break}}try{i=De(c)}catch(d){return Promise.reject(d)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},Ie.prototype.getUri=function(e){return e=je(this.defaults,e),Le(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},$e.forEach(["delete","get","head","options"],(function(e){Ie.prototype[e]=function(t,r){return this.request(je(r||{},{method:e,url:t,data:(r||{}).data}))}})),$e.forEach(["post","put","patch"],(function(e){Ie.prototype[e]=function(t,r,n){return this.request(je(n||{},{method:e,url:t,data:r}))}}));var Te=Ie,Ae=q;function Ne(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new Ae(e),t(r.reason))}))}Ne.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Ne.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},Ne.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},Ne.source=function(){var e;return{token:new Ne((function(t){e=t})),cancel:e}};var Fe=Ne,Re=O,He=O,Be=h,Ye=Te,Ue=be;var ze=function e(t){var r=new Ye(t),n=Be(Ye.prototype.request,r);return He.extend(n,Ye.prototype,r),He.extend(n,r),n.create=function(r){return e(Ue(t,r))},n}(ue);ze.Axios=Ye,ze.Cancel=q,ze.CancelToken=Fe,ze.isCancel=he,ze.VERSION=ke,ze.all=function(e){return Promise.all(e)},ze.spread=function(e){return function(t){return e.apply(null,t)}},ze.isAxiosError=function(e){return Re.isObject(e)&&!0===e.isAxiosError},f.exports=ze,f.exports.default=ze;var qe=f.exports;const We=e=>new Promise(((t,r)=>{console.log(e.method||"GET",e.url),"function"==typeof GM_xmlhttpRequest?GM_xmlhttpRequest({method:e.method||"GET",url:e.url,headers:e.headers||{},data:e.data||{},responseType:e.responseType||"json",onerror:e=>r(e),onabort:e=>r(e),onload:({finalUrl:e,response:n})=>{0===e.indexOf("https://www.figma.com/")?((200!==n.status||n.error)&&r(n),t(n.meta)):t(n)}}):qe(e).then((({data:e})=>{const{status:n,error:s,meta:i}=e;(200!==n||s)&&r(e),i&&t(i),t(e)})).catch((e=>{const{status:t,data:n}=e.response;r(401===t&&n?n:e)}))})),Ve=window.origin.includes("codesign")?window.origin:"https://codesign.qq.com",Je=e=>We({url:`https://www.figma.com/api/folders/${e}/files`}),Ze=e=>We({url:`https://www.figma.com/api/file_metadata/${e}`});var Ge={exports:{}};Ge.exports=function(){var e=1e3,t=6e4,r=36e5,n="millisecond",s="second",i="minute",o="hour",a="day",c="week",l="month",u="quarter",d="year",f="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},y={s:v,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),s=r%60;return(t<=0?"+":"-")+v(n,2,"0")+":"+v(s,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),s=t.clone().add(n,l),i=r-s<0,o=t.clone().add(n+(i?-1:1),l);return+(-(n+(r-s)/(i?s-o:o-s))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:a,D:f,h:o,m:i,s:s,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},_="en",w={};w[_]=g;var b=function(e){return e instanceof S},k=function e(t,r,n){var s;if(!t)return _;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(s=i),r&&(w[i]=r,s=i);var o=t.split("-");if(!s&&o.length>1)return e(o[0])}else{var a=t.name;w[a]=t,s=a}return!n&&s&&(_=s),s||!n&&_},O=function(e,t){if(b(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new S(r)},C=y;C.l=k,C.i=b,C.w=function(e,t){return O(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function g(e){this.$L=k(e.locale,null,!0),this.parse(e)}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(p);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(e,t){var r=O(e);return this.startOf(t)<=r&&r<=this.endOf(t)},v.isAfter=function(e,t){return O(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<O(e)},v.$g=function(e,t,r){return C.u(e)?this[t]:this.set(r,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var r=this,n=!!C.u(t)||t,u=C.p(e),h=function(e,t){var s=C.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?s:s.endOf(a)},p=function(e,t){return C.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return n?h(1,0):h(31,11);case l:return n?h(1,g):h(0,g+1);case c:var _=this.$locale().weekStart||0,w=(m<_?m+7:m)-_;return h(n?v-w:v+(6-w),g);case a:case f:return p(y+"Hours",0);case o:return p(y+"Minutes",1);case i:return p(y+"Seconds",2);case s:return p(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var r,c=C.p(e),u="set"+(this.$u?"UTC":""),h=(r={},r[a]=u+"Date",r[f]=u+"Date",r[l]=u+"Month",r[d]=u+"FullYear",r[o]=u+"Hours",r[i]=u+"Minutes",r[s]=u+"Seconds",r[n]=u+"Milliseconds",r)[c],p=c===a?this.$D+(t-this.$W):t;if(c===l||c===d){var m=this.clone().set(f,1);m.$d[h](p),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(n,u){var f,h=this;n=Number(n);var p=C.p(u),m=function(e){var t=O(h);return C.w(t.date(t.date()+Math.round(e*n)),h)};if(p===l)return this.set(l,this.$M+n);if(p===d)return this.set(d,this.$y+n);if(p===a)return m(1);if(p===c)return m(7);var g=(f={},f[i]=t,f[o]=r,f[s]=e,f)[p]||1,v=this.$d.getTime()+n*g;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=e||"YYYY-MM-DDTHH:mm:ssZ",s=C.z(this),i=this.$H,o=this.$m,a=this.$M,c=r.weekdays,l=r.months,u=function(e,r,s,i){return e&&(e[r]||e(t,n))||s[r].substr(0,i)},d=function(e){return C.s(i%12||12,e,"0")},f=r.meridiem||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:C.s(a+1,2,"0"),MMM:u(r.monthsShort,a,l,3),MMMM:u(l,a),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:u(r.weekdaysMin,this.$W,c,2),ddd:u(r.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(i),HH:C.s(i,2,"0"),h:d(1),hh:d(2),a:f(i,o,!0),A:f(i,o,!1),m:String(o),mm:C.s(o,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:s};return n.replace(m,(function(e,t){return t||p[e]||s.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,f,h){var p,m=C.p(f),g=O(n),v=(g.utcOffset()-this.utcOffset())*t,y=this-g,_=C.m(this,g);return _=(p={},p[d]=_/12,p[l]=_,p[u]=_/3,p[c]=(y-v)/6048e5,p[a]=(y-v)/864e5,p[o]=y/r,p[i]=y/t,p[s]=y/e,p)[m]||y,h?_:C.a(_)},v.daysInMonth=function(){return this.endOf(l).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=k(e,t,!0);return n&&(r.$L=n),r},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),x=S.prototype;return O.prototype=x,[["$ms",n],["$s",s],["$m",i],["$H",o],["$W",a],["$M",l],["$y",d],["$D",f]].forEach((function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),O.extend=function(e,t){return e.$i||(e(t,S,O),e.$i=!0),O},O.locale=k,O.isDayjs=b,O.unix=function(e){return O(1e3*e)},O.en=w[_],O.Ls=w,O.p={},O}();var Xe=Ge.exports;!function(e,t){e.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(e),n={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1100?"上午":r<1300?"中午":r<1800?"下午":"晚上"}};return r.default.locale(n,null,!0),n}(Ge.exports)}({exports:{}});var Ke={exports:{}};!function(e,t){e.exports=function(e,t,r){e=e||{};var n=t.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,t,r,s){return n.fromToBase(e,t,r,s)}r.en.relativeTime=s,n.fromToBase=function(t,n,i,o,a){for(var c,l,u,d=i.$locale().relativeTime||s,f=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=f.length,p=0;p<h;p+=1){var m=f[p];m.d&&(c=o?r(t).diff(i,m.d,!0):i.diff(t,m.d,!0));var g=(e.rounding||Math.round)(Math.abs(c));if(u=c>0,g<=m.r||!m.r){g<=1&&p>0&&(m=f[p-1]);var v=d[m.l];a&&(g=a(""+g)),l="string"==typeof v?v.replace("%d",g):v(g,n,m.l,u);break}}if(n)return l;var y=u?d.future:d.past;return"function"==typeof y?y(l):y.replace("%s",l)},n.to=function(e,t){return i(e,t,this,!0)},n.from=function(e,t){return i(e,t,this)};var o=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(o(this),e)},n.fromNow=function(e){return this.from(o(this),e)}}}(Ke);var Qe=Ke.exports;function et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tt(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}var rt=["attrs"];function nt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function st(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function it(e,t,r){var n=st(st({},t.attrs),r.attrs);r.attrs;var s=tt(r,rt);return e(t.tag,st({attrs:n},s),(t.children||[]).map((function(t){return it(e,t,{})})))}var ot={exports:{}}; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(e){!function(){var t={}.hasOwnProperty;function r(){for(var e=[],n=0;n<arguments.length;n++){var s=arguments[n];if(s){var i=typeof s;if("string"===i||"number"===i)e.push(s);else if(Array.isArray(s)){if(s.length){var o=r.apply(null,s);o&&e.push(o)}}else if("object"===i)if(s.toString===Object.prototype.toString)for(var a in s)t.call(s,a)&&s[a]&&e.push(a);else e.push(s.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r}()}(ot);var at=ot.exports,ct=["icon","id"],lt=["staticClass","style","icon","id","onClick"],ut=["class","staticClass","style","staticStyle","attrs"];function dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ht(e){e instanceof Array?e.forEach((function(e){ht(e)})):e instanceof Object&&Object.keys(e).forEach((function(t){var r=t.replace(/([A-Z])/g,"-$1").toLowerCase().replace("view-box","viewBox");r!==t&&(e[r]=e[t],delete e[t]),ht(e[r])}))}var pt=n.default.extend({functional:!0,props:{icon:{type:Object},id:{type:String,default:""}},render:function(e,t){var r=t.props,n=r.icon,s=r.id,i=tt(r,ct),o=t.data.props,a=o.staticClass,c=o.style;o.icon,o.id;var l=o.onClick,u=tt(o,lt),d=t.data,f=d.class,h=d.staticClass,p=d.style,m=d.staticStyle,g=d.attrs,v=tt(d,ut),y=v.domProps,_=v.on,w=v.nativeOn,b=v.directives,k=v.scopedSlots,O=v.slot,C=v.key,S=v.ref,x=v.refInFor,$=at("t-icon","t-icon-".concat(s),a,f,h),L=ft(ft(ft({},c),p),m);ht(n);var E=l||(null==_?void 0:_.click);return it(e,n,{class:void 0,staticClass:$,props:ft(ft({},i),u),attrs:g,style:L,on:ft(ft({},_),{},{click:function(e){return null==E?void 0:E({e:e})}},w),directives:b,scopedSlots:k,slot:O,key:C,ref:S,refInFor:x,domProps:y})}}),mt="t";function gt(e){if(void 0===e)return{className:"",style:{}};var t,r=(t=mt,{SIZE:{default:"",xs:"".concat(t,"-size-xs"),small:"".concat(t,"-size-s"),medium:"".concat(t,"-size-m"),large:"".concat(t,"-size-l"),xl:"".concat(t,"-size-xl"),block:"".concat(t,"-size-full-width")},STATUS:{loading:"".concat(t,"-is-loading"),disabled:"".concat(t,"-is-disabled"),focused:"".concat(t,"-is-focused"),success:"".concat(t,"-is-success"),error:"".concat(t,"-is-error"),warning:"".concat(t,"-is-warning"),selected:"".concat(t,"-is-selected"),active:"".concat(t,"-is-active"),checked:"".concat(t,"-is-checked"),current:"".concat(t,"-is-current"),hidden:"".concat(t,"-is-hidden"),visible:"".concat(t,"-is-visible"),expanded:"".concat(t,"-is-expanded"),indeterminate:"".concat(t,"-is-indeterminate")}}).SIZE;return e in r?{className:r[e],style:{}}:{className:"",style:{fontSize:e}}}var vt=["size"];function yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var wt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12.26 5.81L8.5 9.58V.5h-1v9.08L3.74 5.8l-.71.71 4.62 4.62c.2.2.5.2.7 0l4.62-4.62-.7-.7z",fillOpacity:.9}},{tag:"path",attrs:{fill:"currentColor",d:"M2 11v2a1 1 0 001 1h10a1 1 0 001-1v-2h-1v2H3v-2H2z",fillOpacity:.9}}]},bt=n.default.extend({name:"DownloadIcon",functional:!0,props:{size:{type:String},onClick:{type:Function}},render:function(e,t){var r=t.props,n=t.data,s=r.size,i=tt(r,vt),o=gt(s),a=o.className,c=o.style,l=_t(_t({},i||{}),{},{id:"download",icon:wt,staticClass:a,style:c});return n.props=l,e(pt,n)}}),kt=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"figma-files"},[e.isLoading?r("div",{staticClass:"figma-files__loading"},[r("t-loading",{attrs:{size:"medium"}})],1):e._e(),r("t-checkbox-group",{style:{display:"block"},attrs:{value:e.checked}},e._l(e.files,(function(t){return r("div",{key:t.key,class:["figma-files__item",{"figma-files__item--checked":e.checked.includes(t.key)}],on:{click:function(r){return e.toggleChecked(t.key)}}},[r("div",{staticClass:"figma-file__check"},[r("t-checkbox",{attrs:{value:t.key},on:{click:function(r){return e.toggleChecked(t.key)}}})],1),r("div",{staticClass:"figma-file__thumb"},[r("img",{attrs:{src:t.thumbnail_url,alt:t.name}})]),r("div",{staticClass:"figma-file__info"},[r("div",{staticClass:"figma-file__name"},[t.folder_name?r("span",{staticClass:"figma-file__folder-name"},[e._v(" "+e._s(t.folder_name)+" / ")]):e._e(),e._v(" "+e._s(t.name)+" "),"design"===t.editor_type?r("svg",{attrs:{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"}},[r("path",{staticClass:"file_icons--designFilePrimary--2TWAR",attrs:{d:"M7 28H25C25.5523 28 26 27.5523 26 27V9.91421C26 9.649 25.8946 9.39464 25.7071 9.20711L20.7929 4.29289C20.6054 4.10536 20.351 4 20.0858 4H7C6.44772 4 6 4.44772 6 5V27C6 27.5523 6.44772 28 7 28Z"}}),r("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.8582 12.9953L16.8466 12.992L12.4437 11.7366L15.7009 14.9938C15.8169 14.954 15.9412 14.9324 16.0707 14.9324C16.6993 14.9324 17.2089 15.442 17.2089 16.0707C17.2089 16.6993 16.6993 17.2089 16.0707 17.2089C15.442 17.2089 14.9324 16.6993 14.9324 16.0707C14.9324 15.9412 14.954 15.8169 14.9938 15.7009L11.7425 12.4496L12.9443 16.6419L12.9548 16.6784L12.9625 16.7156C13.26 18.1592 14.5397 19.2442 16.0707 19.2442C16.4199 19.2442 16.7541 19.1882 17.0659 19.0854L17.6507 18.8924L18.0862 19.3279L19.3171 20.5588L20.5858 19.2901L19.3411 18.0455L18.9107 17.615L19.0954 17.035C19.1918 16.7321 19.2443 16.4085 19.2443 16.0707C19.2443 14.5951 18.2363 13.3524 16.8699 12.9983L16.8582 12.9953ZM21.2929 18.583L22 19.2901L21.2929 19.9972L20.0242 21.2659L19.3171 21.973L18.61 21.2659L17.3791 20.035C16.9676 20.1708 16.5277 20.2442 16.0707 20.2442C14.0558 20.2442 12.3744 18.8165 11.983 16.9175L10.3246 11.1324L10 10L11.1329 10.323L17.1208 12.0303C18.9175 12.4959 20.2443 14.1283 20.2443 16.0707C20.2443 16.5127 20.1756 16.9386 20.0482 17.3384L21.2929 18.583Z",fill:"var(--color-icon-ondesign, white)"}}),r("path",{attrs:{d:"M20.5 8.5V6.41421V4L22.2071 5.70711L24.2929 7.79289L26 9.5H23.5858H21.5C20.9477 9.5 20.5 9.05228 20.5 8.5Z",fill:"var(--color-icondesignfilesecondary, #9bd5fd)"}})]):e._e(),"whiteboard"===t.editor_type?r("svg",{attrs:{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"}},[r("path",{staticClass:"file_icons--figjamFilePrimary--3szfo",attrs:{d:"M7 28H25C25.5523 28 26 27.5523 26 27V9.91421C26 9.649 25.8946 9.39464 25.7071 9.20711L20.7929 4.29289C20.6054 4.10536 20.351 4 20.0858 4H7C6.44772 4 6 4.44772 6 5V27C6 27.5523 6.44772 28 7 28Z"}}),r("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.2966 20.8616C19.4811 21.0461 19.7802 21.0461 19.9647 20.8616L21.0059 19.8205C21.1903 19.636 21.1903 19.3369 21.0059 19.1524L15.0579 13.2045L13.3487 14.9137L19.2966 20.8616ZM12.6416 14.2066L11.7021 13.2671L11.2748 11.1305L13.4113 11.5578L14.3508 12.4974L12.6416 14.2066ZM11.0623 10.0682L13.9043 10.6366L21.713 18.4453C22.288 19.0203 22.288 19.9526 21.713 20.5276L20.6718 21.5687C20.0968 22.1438 19.1645 22.1438 18.5895 21.5687L10.7809 13.7601L10.2125 10.9181L10 9.85578L11.0623 10.0682Z",fill:"var(--color-icon-onfigjam, white)"}}),r("path",{attrs:{d:"M20.5 8.5V6.41421V4L22.2071 5.70711L24.2929 7.79289L26 9.5H23.5858H21.5C20.9477 9.5 20.5 9.05228 20.5 8.5Z",fill:"var(--color-iconfigjamfilesecondary, #C599FF)"}})]):e._e()]),r("div",{staticClass:"figma-file__desc",attrs:{title:e.formatAbsoluteDate(t.updated_at)}},[e._v(" "+e._s(e.formatRelativeDate(t.updated_at))+" ")])]),r("div",{staticClass:"figma-file__check"},[r("t-tooltip",{attrs:{content:"下载源文件"}},[r("t-button",{attrs:{shape:"rectangle",variant:"text",size:"medium"},on:{click:function(r){return r.stopPropagation(),e.handleDownload(t)}}},[r("download-icon",{attrs:{slot:"icon"},slot:"icon"})],1)],1)],1)])})),0)],1)},Ot=[];function Ct(e,t,r,n,s,i,o,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=c):s&&(c=a?function(){s.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:s),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}Xe.locale(navigator.language.toLowerCase()),Xe.extend(Qe);const St={name:"FigmaFiles",components:{DownloadIcon:bt},model:{prop:"checked",event:"change"},props:{isLoading:{type:Boolean,default:!1},checked:{type:Array,default:()=>[]},files:{type:Array,default:()=>[]}},methods:{formatRelativeDate:e=>Xe(e).fromNow(),formatAbsoluteDate:e=>Xe(e).format("YYYY-MM-DD HH:mm:ss"),toggleChecked(e){const t=this.checked.includes(e)?this.checked.filter((t=>t!==e)):[...this.checked,e];this.$emit("change",t)},handleDownload(e){this.$track("figma.app.download.file");const t=`${e.name}.${"whiteboard"===e.editor_type?"jam":"fig"}`;this.$EventBus.$emit("DOWNLOAD_FILE",e.key,t)}}},xt={};var $t=Ct(St,kt,Ot,!1,Lt,null,null,null);function Lt(e){for(let t in xt)this[t]=xt[t]}var Et=function(){return $t.exports}();const Dt={};var jt=Ct({data:()=>({popupVisible:!1}),props:{current:{type:Object,default:()=>{}},workspaces:{type:Array,default:()=>[]}},computed:{users(){return(Array.from(new Set(this.workspaces.map((e=>e.userId))))||[]).map((e=>this.workspaces.find((t=>t.userId===e))))}},methods:{handleSwitchWorkspace(e){this.popupVisible=!1,this.$EventBus.$emit("SWITCH_WORKSPACE",{orgId:e.orgId,userId:e.userId})}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"figma-ws"},[e.current.userId?r("t-popup",{attrs:{placement:"bottom-right",trigger:"click"},model:{value:e.popupVisible,callback:function(t){e.popupVisible=t},expression:"popupVisible"}},[r("div",{staticClass:"figma-ws__current",attrs:{slot:"triggerElement"},slot:"triggerElement"},[r("t-avatar",{attrs:{size:"20px",image:e.current.userAvatar,alt:e.current.userName}}),r("span",{staticClass:"figma-ws__username"},[e._v(e._s(e.current.userName))]),e.current.orgName?r("span",{staticClass:"figma-ws__orgname"},[e._v("@"+e._s(e.current.orgName))]):e._e()],1),r("div",{staticClass:"figma-ws-switch",attrs:{slot:"content"},slot:"content"},e._l(e.users,(function(t){return r("div",{key:t.userId,staticClass:"figma-ws__usergroup"},[r("div",{staticClass:"figma-ws__usergroup-title"},[e._v(" "+e._s(t.userName)+"("+e._s(t.userEmail)+") ")]),e._l(e.workspaces.filter((function(e){return e.userId===t.userId})),(function(t){return r("div",{key:t.key,class:["figma-ws__useritem",{"figma-ws__useritem--active":t.userId===e.current.userId&&e.current.orgId===t.orgId}],on:{click:function(r){return e.handleSwitchWorkspace(t)}}},[r("t-avatar",{attrs:{size:"20px",image:t.orgAvatar||t.userAvatar,alt:t.orgName||t.userName}}),r("span",{staticClass:"figma-ws__username"},[e._v(e._s(t.orgName||t.userName))])],1)}))],2)})),0)]):e._e()],1)}),[],!1,Pt,null,null,null);function Pt(e){for(let t in Dt)this[t]=Dt[t]}const Mt={name:"App",components:{FigmaFilesList:Et,FigmaWorkspace:function(){return jt.exports}()},model:{prop:"dialogShow",event:"close"},props:{dialogShow:{type:Boolean,default:!1}},data:()=>({userState:{},sessionState:{},workspace:{},currentFilter:"recent",files:[],checked:[],isLoading:!0,isProcessing:!1,progress:0,progressText:"",groupId:"",group:{},showImportSuccess:!1,isError:!1,errorText:""}),computed:{workspaces(){const{users:e,orgs:t,org_users:r}=this.sessionState,n=[];return null==e||e.map((e=>{n.push({key:e.id,userId:e.id,userName:e.handle,userAvatar:e.img_url,userEmail:e.email,orgId:null,orgName:null,orgAvatar:null,orgRole:null}),null==r||r.filter((t=>t.user_id===e.id)).forEach((r=>{const s=t.find((e=>e.id===r.org_id));n.push({key:r.id,userId:e.id,userName:e.handle,userAvatar:e.img_url,userEmail:e.email,orgId:s.id,orgName:s.name,orgAvatar:s.img_url,orgRole:s.permission})}))})),n},teams(){return this.userState.teams},draftsFolderId(){return this.userState.drafts_folder_id},userId(){var e;return null==(e=this.userState.user_realtime_token)?void 0:e.match(/me-([\d]+):/)[1]},userInfo(){var e;const t=null==(e=this.userState.roles)?void 0:e.find((e=>e.user_id===this.userId));return(null==t?void 0:t.user)||{}},filters(){var e;const t=null==(e=this.teams)?void 0:e.map((e=>({label:`团队/${e.name}`,value:e.id})));return[{label:"最近的文件",value:"recent"},{label:"草稿箱",value:"draft"}].concat(t||[])}},async beforeCreate(){try{const e=await We({url:"https://www.figma.com/api/session/state"});this.sessionState=e,console.log("sessionState",e)}catch(t){return this.$track("figma.app.unauthorized"),this.isLoading=!1,this.isError=!0,this.errorText=401===t.status?"你好像还没有登录 Figma, 请登录后再试":"请求数据发生错误",!1}try{const e=await(async()=>new Promise(((e,t)=>{"function"==typeof GM_xmlhttpRequest?GM_xmlhttpRequest({method:"GET",url:"https://www.figma.com/",onerror:e=>t(e),onabort:e=>t(e),onload:r=>{console.log("getWorkspace",r);const{status:n,finalUrl:s}=r,i=/\/files\/(\d+)?\/?recent\?fuid=(\d+)/i;if(200!==n||!s||!1===i.test(s))return t(!1);const[,o,a]=i.exec(s);e({orgId:o,userId:a})}}):t(!1)})))();this.workspace=this.workspaces.find((t=>!e.orgId&&e.userId?t.userId===e.userId:!(!e.orgId||!e.userId)&&(t.userId===e.userId&&t.orgId===e.orgId)))}catch(t){console.log(t)}finally{if(!this.workspace.userId){console.log("没有获取到默认身份状态 使用第一个组织身份");const e=this.workspaces.filter((e=>null!==e.orgId));this.workspace=e[0]||{}}}var e;this.handleSwitchWorkspace(this.workspace),window.origin.includes("codesign")&&(this.groupId=((e="")=>{const t=e||location.pathname,[,r]=/\/app\/design\/(\w{15})\/?/i.exec(t)||[];return r})(),this.groupId&&(this.group=await(e=this.groupId,We({url:`${Ve}/api/designs/${e}`}))))},async mounted(){this.$track("plugin.app.dialog.mounted"),this.$EventBus.$on("DOWNLOAD_FILE",this.fetchFileAndDownload),this.$EventBus.$on("SWITCH_WORKSPACE",this.handleSwitchWorkspace)},beforeDestroy(){this.$EventBus.$off("DOWNLOAD_FILE",this.fetchFileAndDownload),this.$EventBus.$off("SWITCH_WORKSPACE",this.handleSwitchWorkspace)},methods:{handleDialogClose(){this.isProcessing||this.$emit("close",!1)},handleRefreshAssets(){const e=document.querySelector(".assets-side-panel");e&&e.__vue__?(this.$emit("close",!1),e.__vue__.init()):location.href=`/app/design/${this.groupId}`},handleContinue(){this.isProcessing=!1,this.showImportSuccess=!1,this.progress=0,this.progressText=""},checkedAll(){this.checked=this.files.map((e=>e.key))},checkedRevert(){const e=this.files.map((e=>e.key))||[];this.checked=e.filter((e=>!this.checked.includes(e)))},async handleFilterChange(e){this.$track("figma.app.filter",e),this.isLoading=!0;let t=[],r=[];try{switch(e){case"recent":t=await((e="")=>We({url:`https://www.figma.com/api/recent_files?org_id=${e||""}`}))(this.workspace.orgId),console.log("recentFiles",t),this.files=t.recent_files;break;case"draft":r=await Je(this.draftsFolderId),console.log("draftFiles",r),this.files=r.files;default:if(/^[\d]{18,}$/.test(e)){const t=this.teams.find((t=>t.id===e)),{folders:r}=await(n=e,We({url:`https://www.figma.com/api/teams/${n}/folders`})),s=Object.keys(r),i=await Promise.all(s.map((async e=>{const{files:r,folder:n}=await Je(e);return r.map((e=>__spreadProps(__spreadValues({},e),{folder_name:n.name,team_name:t.name})))})));console.log("filesInFolders",i),this.files=i.flat()}}}finally{this.checked=[],this.isLoading=!1}var n},async handleSwitchWorkspace({orgId:e,userId:t}){this.$track("figma.app.workspace.switch"),this.isLoading=!0,this.workspace=this.workspaces.find((r=>r.orgId===e&&r.userId===t)),this.userState=await((e="")=>We({url:`https://www.figma.com/api/user/state?org_id=${e||""}`}))(e),this.handleFilterChange(this.currentFilter)},async fetchFileAndDownload(e,t){const r=await Ze(e);((e,t)=>{const r=URL.createObjectURL(e),n=document.createElement("a");n.href=r,n.setAttribute("download",t),void 0===n.download&&n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout((()=>{URL.revokeObjectURL(r)}),100)})(await fetch(r.canvas_url).then((e=>e.blob())),t||`${r.name}.fig`)},async handleImportFigmaFiles(){this.$track("figma.app.import",this.checked.length||0),this.isProcessing=!0,this.progress=1,this.progressText="正在导入源文件...";let e=0;const t=this.files.filter((e=>this.checked.includes(e.key)));await Promise.all(t.map((async r=>{try{this.progressText=`正在导入 ${r.name}... (${e+1}/${t.length})`;const n=await Ze(r.key),s=await fetch(n.canvas_url).then((e=>e.blob())),i=await((e,t,r)=>{const n=new FormData;return n.append("sketch",t.slice(0,t.size,"application/x-xfig"),r),qe({method:"POST",url:`${Ve}/api/designs/${e}/upload`,data:n,withCredentials:!0}).then((e=>e.data))})(this.groupId,s,`${r.name}.fig`);console.log("attachment",i),e++}catch(n){console.error(n)}finally{e+=1,this.progress=Math.floor(e/t.length*100)}}))),this.checked=[],this.progress=100,this.progressText="导入已完成",this.showImportSuccess=!0},async handleDownloadFigmaFiles(){this.$track("figma.app.download",this.checked.length||0),this.isProcessing=!0,this.progress=1,this.progressText="正在下载源文件...";let e=0;const t=this.files.filter((e=>this.checked.includes(e.key)));await Promise.all(t.map((async r=>{try{this.progressText=`正在下载 ${r.name}... (${e+1}/${t.length})`;const n=[r.team_name,r.folder_name,r.name].filter((e=>e)).join(" - "),s="whiteboard"===r.editor_type?"jam":"fig";await this.fetchFileAndDownload(r.key,`${n}.${s}`)}catch(n){console.log(n)}finally{e+=1,this.progress=Math.floor(e/t.length*100)}}))),this.checked=[],this.progress=100,this.progressText="下载已完成 5s 后自动关闭",setTimeout((()=>{this.isProcessing=!1}),5e3)}}},It={};var Tt=Ct(Mt,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("t-dialog",{attrs:{header:"👩🏻🦱 保住肥姑妈(Figma 源文件备份)",width:"700px",className:"figma-bk",top:"10%",visible:e.dialogShow},on:{close:e.handleDialogClose}},[r("div",{staticClass:"figma-bk__hd"},[r("div",{staticClass:"figma-bk-filter"},[r("t-select",{style:{width:"200px"},attrs:{"default-value":"recent",onChange:e.handleFilterChange},model:{value:e.currentFilter,callback:function(t){e.currentFilter=t},expression:"currentFilter"}},e._l(e.filters,(function(e){return r("t-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),r("div",{staticClass:"figma-bk__user"},[r("figma-workspace",{attrs:{current:e.workspace,workspaces:e.workspaces}})],1)]),r("div",{staticClass:"figma-bk__bd"},[r("figma-files-list",{attrs:{files:e.files,"is-loading":e.isLoading},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})],1),e.isProcessing?r("div",{staticClass:"figma-bk__progress"},[r("div",{staticClass:"figma-bk__progress-inner"},[r("t-progress",{attrs:{theme:"line",color:{from:"#0052D9",to:"#00A870"},percentage:e.progress,status:"active"}}),r("div",{staticClass:"figma-bk__progress-text"},[e._v(e._s(e.progressText))]),e.showImportSuccess?r("div",{staticClass:"figma-bk__progress-action"},[r("t-button",{attrs:{theme:"default",variant:"outline",size:"small"},on:{click:e.handleContinue}},[e._v(" 继续导入 ")]),r("t-button",{attrs:{theme:"primary",size:"small"},on:{click:e.handleRefreshAssets}},[e._v(" 查看导入的源文件 ")])],1):e._e()],1)]):e._e(),e.isError?r("div",{staticClass:"figma-bk__error"},[e._v(" "+e._s(e.errorText)+" ")]):e._e(),r("div",{staticClass:"figma-bk__ft",attrs:{slot:"footer"},slot:"footer"},[r("div",{staticClass:"figma-bk__meta"},[r("a",{attrs:{href:"javascript:;"},on:{click:e.checkedAll}},[e._v("全选")]),e._v(" | "),r("a",{attrs:{href:"javascript:;"},on:{click:e.checkedRevert}},[e._v("反选")]),r("span",{staticClass:"figma-bk__checked"},[e._v(" ("+e._s(e.checked.length)+"/"+e._s(e.files.length)+") ")])]),r("div",{staticClass:"figma-bk__action"},[e.group.id?e._e():r("span",{staticClass:"figma-bk__cloud"},[e._v(" 支持 "),r("a",{attrs:{target:"_blank",href:"https://codesign.qq.com/?f=bk"}},[e._v("CoDesign")]),e._v(" 云备份("),r("a",{attrs:{target:"_blank",href:"https://docs.qq.com/doc/DSWxvVnJsT1NrWFds"}},[e._v("如何备份?")]),e._v(" ) ")]),r("t-button",{attrs:{theme:"default",variant:"outline",disabled:0===e.checked.length||e.isProcessing},on:{click:e.handleDownloadFigmaFiles}},[e._v(" 下载源文件 ")]),e.group&&e.group.id?r("t-tooltip",{attrs:{content:"将保存到分组 ["+(e.group&&e.group.name)+"] 的源文件内"}},[r("t-button",{attrs:{theme:"primary",disabled:0===e.checked.length||e.isProcessing},on:{click:e.handleImportFigmaFiles}},[e._v(" 导入到 CoDesign ")])],1):e._e()],1)])])}),[],!1,At,null,null,null);function At(e){for(let t in It)this[t]=It[t]}const Nt={};var Ft=Ct({components:{FigmaDialog:function(){return Tt.exports}()},data:()=>({figmaDialogShow:!1}),mounted(){if(this.$track("plugin.app.mounted"),window.origin.includes("figma.com")){this.$track("plugin.app.mounted.figma");let e=setInterval((()=>{const t="figma-bk-navbar-btn";document.getElementById(t)&&clearInterval(e);const r=document.querySelector(".navbar--navbarContainer--13Uu5 > div:nth-child(2)");if(!document.getElementById(t)&&r){const n=document.createElement("div");n.id=t,n.className="figma-bk-trigger action--enabled--16Cku action--root--1ClVW toolbar_styles--enabledButton--2cWGq navbar--navbarAction--3J65x",n.innerHTML='<span style="padding: 0 10px;">源文件备份</span>',n.addEventListener("click",(()=>{this.$track("figma.app.click.figma.navbar"),this.figmaDialogShow=!0})),null==r||r.insertBefore(n,r.firstChild),clearInterval(e)}}),2e3)}if(window.origin.includes("codesign")){this.$track("plugin.app.mounted.codesign");const e="figma-bk-assets-btn",t=()=>{let t=document.getElementById(e),r=document.querySelector(".assets-side-panel__header-right-popup");r&&!t&&(t=document.createElement("li"),t.id=e,t.innerHTML='<a href="javascript:;" style="font-weight: bold; color: #126bff;">\n 通过 Figma 备份源文件\n </a>',t.addEventListener("click",(()=>{this.$track("figma.app.click.codesign.header"),this.figmaDialogShow=!0,document.body.click()})),r.insertBefore(t,r.firstChild))};setInterval((()=>{t()}),1e3)}},methods:{handleClick(){this.$track("figma.app.click.main"),this.figmaDialogShow=!0}}},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"figma-bk"}},[e.figmaDialogShow?r("figma-dialog",{model:{value:e.figmaDialogShow,callback:function(t){e.figmaDialogShow=t},expression:"figmaDialogShow"}}):e._e(),r("div",{staticClass:"figma-trigger",attrs:{title:"Figma 源文件备份"},on:{click:e.handleClick}},[r("svg",{staticClass:"icon",attrs:{t:"1647485577281",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2224",width:"18",height:"18"}},[r("path",{attrs:{d:"M512 512c0-94.4 76.8-171.2 171.2-171.2 94.4 0 171.2 76.8 171.2 171.2s-76.8 171.2-171.2 171.2C588.8 683.2 512 606.4 512 512z",fill:"#1ABCFE","p-id":"2225"}}),r("path",{attrs:{d:"M171.2 852.8c0-94.4 76.8-171.2 171.2-171.2H512v171.2C512 947.2 435.2 1024 340.8 1024s-169.6-76.8-169.6-171.2z",fill:"#0ACF83","p-id":"2226"}}),r("path",{attrs:{d:"M512 0v340.8h171.2c94.4 0 171.2-76.8 171.2-171.2S777.6 0 683.2 0H512z",fill:"#FF7262","p-id":"2227"}}),r("path",{attrs:{d:"M171.2 171.2c0 94.4 76.8 171.2 171.2 171.2H512V0H340.8c-94.4 0-169.6 76.8-169.6 171.2z",fill:"#F24E1E","p-id":"2228"}}),r("path",{attrs:{d:"M171.2 512c0 94.4 76.8 171.2 171.2 171.2H512V340.8H340.8c-94.4 0-169.6 76.8-169.6 171.2z",fill:"#A259FF","p-id":"2229"}})])])],1)}),[],!1,Rt,null,null,null);function Rt(e){for(let t in Nt)this[t]=Nt[t]}var Ht=function(){return Ft.exports}();const Bt=document.createElement("div");Bt.id="import-figma-to-codesign",document.body.appendChild(Bt),s.default&&n.default.use(s.default),n.default.use(d),n.default.prototype.$EventBus=new n.default,new n.default({render:e=>e(Ht)}).$mount("#import-figma-to-codesign")}(Vue,TDesign); })();
The text was updated successfully, but these errors were encountered:
另外,文档中没更新,现在按钮在网页的右下角
Sorry, something went wrong.
右下角一个按钮,点开,最近文件里面啥也没有,什么问题😂
不清楚,我用着没什么问题
现在下载下来的都是207kb的空文件,大佬们有解决办法不
No branches or pull requests
The text was updated successfully, but these errors were encountered: