@devtable/settings-form 13.7.0 → 13.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/settings-form.es.js
CHANGED
|
@@ -1556,7 +1556,7 @@ function Je(e, t) {
|
|
|
1556
1556
|
} = r;
|
|
1557
1557
|
return Lr(o), sa(o.monacoPath), /* @__PURE__ */ a.jsx(Jn, { fallback: /* @__PURE__ */ a.jsx(tr, { color: "gray" }), children: /* @__PURE__ */ a.jsx(ra, { lang: s, children: /* @__PURE__ */ a.jsx(t, { ...l }) }) });
|
|
1558
1558
|
};
|
|
1559
|
-
return n.displayName = `withEntry(${e})`,
|
|
1559
|
+
return n.displayName = `withEntry(${e})`, n;
|
|
1560
1560
|
}
|
|
1561
1561
|
function oa({
|
|
1562
1562
|
submit: e,
|
|
@@ -6606,7 +6606,7 @@ const Ts = Je("DataSourceList", ({
|
|
|
6606
6606
|
] })
|
|
6607
6607
|
] })
|
|
6608
6608
|
] });
|
|
6609
|
-
}), js = () => import("./package-
|
|
6609
|
+
}), js = () => import("./package-8bc2905a.mjs").then(({
|
|
6610
6610
|
version: e
|
|
6611
6611
|
}) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|
|
6612
6612
|
export {
|
|
@@ -24,7 +24,7 @@ Check the render method of \``+o+"`."}return""}}function pa(o){{if(o!==void 0){v
|
|
|
24
24
|
|
|
25
25
|
Check your code at `+S+":"+E+"."}return""}}var gn={};function ga(o){{var S=pn();if(!S){var E=typeof o=="string"?o:o.displayName||o.name;E&&(S=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+E+">.")}return S}}function fn(o,S){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var E=ga(S);if(gn[E])return;gn[E]=!0;var A="";o&&o._owner&&o._owner!==vt.current&&(A=" It was passed a child from "+U(o._owner.type)+"."),Fe(o),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,A),Fe(null)}}function hn(o,S){{if(typeof o!="object")return;if(mt(o))for(var E=0;E<o.length;E++){var A=o[E];St(A)&&fn(A,S)}else if(St(o))o._store&&(o._store.validated=!0);else if(o){var N=_(o);if(typeof N=="function"&&N!==o.entries)for(var F=N.call(o),R;!(R=F.next()).done;)St(R.value)&&fn(R.value,S)}}}function fa(o){{var S=o.type;if(S==null||typeof S=="string")return;var E;if(typeof S=="function")E=S.propTypes;else if(typeof S=="object"&&(S.$$typeof===c||S.$$typeof===d))E=S.propTypes;else return;if(E){var A=U(S);ea(E,o.props,"prop",A,o)}else if(S.PropTypes!==void 0&&!yt){yt=!0;var N=U(S);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",N||"Unknown")}typeof S.getDefaultProps=="function"&&!S.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ha(o){{for(var S=Object.keys(o.props),E=0;E<S.length;E++){var A=S[E];if(A!=="children"&&A!=="key"){Fe(o),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),Fe(null);break}}o.ref!==null&&(Fe(o),x("Invalid attribute `ref` supplied to `React.Fragment`."),Fe(null))}}function mn(o,S,E,A,N,F){{var R=ee(o);if(!R){var D="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(D+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ne=pa(N);ne?D+=ne:D+=pn();var q;o===null?q="null":mt(o)?q="array":o!==void 0&&o.$$typeof===t?(q="<"+(U(o.type)||"Unknown")+" />",D=" Did you accidentally export a JSX literal instead of a component?"):q=typeof o,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",q,D)}var V=da(o,S,E,N,F);if(V==null)return V;if(R){var ie=S.children;if(ie!==void 0)if(A)if(mt(ie)){for(var ze=0;ze<ie.length;ze++)hn(ie[ze],o);Object.freeze&&Object.freeze(ie)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else hn(ie,o)}return o===r?ha(V):fa(V),V}}function ma(o,S,E){return mn(o,S,E,!0)}function ba(o,S,E){return mn(o,S,E,!1)}var va=ba,ya=ma;Me.Fragment=r,Me.jsx=va,Me.jsxs=ya}()),Me}process.env.NODE_ENV==="production"?ot.exports=An():ot.exports=kn();var a=ot.exports;function Cn(e){e=e||{};const t=Object.keys(e).sort(),n=[];for(let r=0;r<t.length;r++){const s=t[r];if(s!="authentication"&&e[s])n.push(t[r]+"="+(typeof e[s]=="object"?JSON.stringify(e[s]):e[s]));else{const i=Object.keys(e[s]).sort();for(let l=0;l<i.length;l++){const u=i[l];u!="sign"&&e[s][u]&&n.push(i[l]+"="+(typeof e[s][u]=="object"?JSON.stringify(e[s][u]):e[s][u]))}}}return n.sort().join("&")}function jn(e,t){let n=Cn(e);return n+="&key="+t,Tn.MD5(n).toString().toUpperCase()}class wt{constructor(){this.type="default_api_client",this.baseURL="http://localhost:31200",this.app_id="",this.app_secret=""}getAuthentication(t){if(!this.app_id||!this.app_secret)return;const n=new Date().getTime().toString();return{app_id:this.app_id,nonce_str:n,sign:jn({app_id:this.app_id,nonce_str:n,...t},this.app_secret)}}getRequest(t,n){return(r,s,i,l)=>{const u=this.buildHeader(i),c=this.buildAxiosConfig(t,r,s,i,u,n);return Sn(c).then(g=>l?g:g.data).catch(g=>{const m=yn.get(g,"response.data.detail.message",g.message);return Promise.reject(new Error(m))})}}get(t){return this.getRequest("GET",t)}post(t){return this.getRequest("POST",t)}put(t){return this.getRequest("PUT",t)}buildAxiosConfig(t,n,r,s,i,l){const u={baseURL:this.baseURL,method:t,url:n,params:t==="GET"?r:s.params,headers:i,signal:l};return["POST","PUT"].includes(t)&&(u.data=s.string?JSON.stringify(r):r,u.data.authentication=this.getAuthentication(u.data)),u}buildHeader(t){const n=window.localStorage.getItem("token");return{"X-Requested-With":"XMLHttpRequest","Content-Type":t.string?"application/x-www-form-urlencoded":"application/json",authorization:n?`bearer ${n}`:"",...t.headers}}}class Et{constructor(t){this.implementation=t}getRequest(t,n){return this.implementation.getRequest(t,n)}get(t){return this.getRequest("GET",t)}post(t){return this.getRequest("POST",t)}put(t){return this.getRequest("PUT",t)}}const Ge=new wt,Tt=new Et(Ge),M=Tt;function At(e){Ge.baseURL!==e.apiBaseURL&&(Ge.baseURL=e.apiBaseURL),e.app_id&&(Ge.app_id=e.app_id),e.app_secret&&(Ge.app_secret=e.app_secret)}const On={login:async(e,t)=>{const n={name:e,password:t};return await M.post()("/account/login",n,{})},list:async()=>await M.post()("/account/list",{filter:{},sort:[{field:"name",order:"ASC"}],pagination:{page:1,pagesize:100}},{}),get:async()=>await M.get()("/account/get",{},{}),update:async(e,t)=>{const n={name:e.trim(),email:t.trim()};return await M.put()("/account/update",n,{})},changepassword:async(e,t)=>{const n={old_password:e.trim(),new_password:t.trim()};return await M.post()("/account/changepassword",n,{})},create:async(e,t,n,r)=>await M.post()("/account/create",{name:e.trim(),email:t.trim(),password:n.trim(),role_id:r},{}),edit:async e=>(e.reset_password||(e.new_password=void 0),await M.put()("/account/edit",e,{})),delete:async e=>{if(e)return M.post()("/account/delete",{id:e},{})}},Dn={list:async()=>await M.post()("/api/key/list",{filter:{search:""},sort:[{field:"name",order:"ASC"}],pagination:{page:1,pagesize:100}},{}),create:async(e,t)=>M.post()("/api/key/create",{name:e,role_id:t},{}),delete:async e=>{if(e)return M.post()("/api/key/delete",{id:e},{})}},In={list:async()=>await M.post()("/datasource/list",{filter:{},sort:[{field:"create_time",order:"ASC"}],pagination:{page:1,pagesize:100}},{}),create:async(e,t,n)=>await M.post()("/datasource/create",{type:e,key:t,config:n},{}),update:async(e,t)=>await M.put()("/datasource/update",{id:e,config:t},{}),delete:async e=>{await M.post()("/datasource/delete",{id:e},{})}},Rn={list:async()=>await M.get()("/role/list",{},{})};var kt=60,Ct=kt*60,jt=Ct*24,Ln=jt*7,ke=1e3,lt=kt*ke,Ot=Ct*ke,Nn=jt*ke,$n=Ln*ke,ut="millisecond",Ce="second",je="minute",Oe="hour",ve="day",Ze="week",le="month",Dt="quarter",ye="year",De="date",Fn="YYYY-MM-DDTHH:mm:ssZ",It="Invalid Date",zn=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Pn=/\[([^\]]+)]|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;const Bn={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("_"),ordinal:function(t){var n=["th","st","nd","rd"],r=t%100;return"["+t+(n[(r-20)%10]||n[r]||n[0])+"]"}};var ct=function(t,n,r){var s=String(t);return!s||s.length>=n?t:""+Array(n+1-s.length).join(r)+t},Mn=function(t){var n=-t.utcOffset(),r=Math.abs(n),s=Math.floor(r/60),i=r%60;return(n<=0?"+":"-")+ct(s,2,"0")+":"+ct(i,2,"0")},Gn=function e(t,n){if(t.date()<n.date())return-e(n,t);var r=(n.year()-t.year())*12+(n.month()-t.month()),s=t.clone().add(r,le),i=n-s<0,l=t.clone().add(r+(i?-1:1),le);return+(-(r+(n-s)/(i?s-l:l-s))||0)},Un=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},qn=function(t){var n={M:le,y:ye,w:Ze,d:ve,D:De,h:Oe,m:je,s:Ce,ms:ut,Q:Dt};return n[t]||String(t||"").toLowerCase().replace(/s$/,"")},Yn=function(t){return t===void 0};const Hn={s:ct,z:Mn,m:Gn,a:Un,p:qn,u:Yn};var Ue="en",we={};we[Ue]=Bn;var dt=function(t){return t instanceof Qe},Xe=function e(t,n,r){var s;if(!t)return Ue;if(typeof t=="string"){var i=t.toLowerCase();we[i]&&(s=i),n&&(we[i]=n,s=i);var l=t.split("-");if(!s&&l.length>1)return e(l[0])}else{var u=t.name;we[u]=t,s=u}return!r&&s&&(Ue=s),s||!r&&Ue},W=function(t,n){if(dt(t))return t.clone();var r=typeof n=="object"?n:{};return r.date=t,r.args=arguments,new Qe(r)},Vn=function(t,n){return W(t,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})},$=Hn;$.l=Xe,$.i=dt,$.w=Vn;var Wn=function(t){var n=t.date,r=t.utc;if(n===null)return new Date(NaN);if($.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var s=n.match(zn);if(s){var i=s[2]-1||0,l=(s[7]||"0").substring(0,3);return r?new Date(Date.UTC(s[1],i,s[3]||1,s[4]||0,s[5]||0,s[6]||0,l)):new Date(s[1],i,s[3]||1,s[4]||0,s[5]||0,s[6]||0,l)}}return new Date(n)},Qe=function(){function e(n){this.$L=Xe(n.locale,null,!0),this.parse(n)}var t=e.prototype;return t.parse=function(r){this.$d=Wn(r),this.$x=r.x||{},this.init()},t.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds()},t.$utils=function(){return $},t.isValid=function(){return this.$d.toString()!==It},t.isSame=function(r,s){var i=W(r);return this.startOf(s)<=i&&i<=this.endOf(s)},t.isAfter=function(r,s){return W(r)<this.startOf(s)},t.isBefore=function(r,s){return this.endOf(s)<W(r)},t.$g=function(r,s,i){return $.u(r)?this[s]:this.set(i,r)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(r,s){var i=this,l=$.u(s)?!0:s,u=$.p(r),c=function(w,x){var T=$.w(i.$u?Date.UTC(i.$y,x,w):new Date(i.$y,x,w),i);return l?T:T.endOf(ve)},g=function(w,x){var T=[0,0,0,0],O=[23,59,59,999];return $.w(i.toDate()[w].apply(i.toDate("s"),(l?T:O).slice(x)),i)},m=this.$W,d=this.$M,p=this.$D,f="set"+(this.$u?"UTC":"");switch(u){case ye:return l?c(1,0):c(31,11);case le:return l?c(1,d):c(0,d+1);case Ze:{var y=this.$locale().weekStart||0,b=(m<y?m+7:m)-y;return c(l?p-b:p+(6-b),d)}case ve:case De:return g(f+"Hours",0);case Oe:return g(f+"Minutes",1);case je:return g(f+"Seconds",2);case Ce:return g(f+"Milliseconds",3);default:return this.clone()}},t.endOf=function(r){return this.startOf(r,!1)},t.$set=function(r,s){var i,l=$.p(r),u="set"+(this.$u?"UTC":""),c=(i={},i[ve]=u+"Date",i[De]=u+"Date",i[le]=u+"Month",i[ye]=u+"FullYear",i[Oe]=u+"Hours",i[je]=u+"Minutes",i[Ce]=u+"Seconds",i[ut]=u+"Milliseconds",i)[l],g=l===ve?this.$D+(s-this.$W):s;if(l===le||l===ye){var m=this.clone().set(De,1);m.$d[c](g),m.init(),this.$d=m.set(De,Math.min(this.$D,m.daysInMonth())).$d}else c&&this.$d[c](g);return this.init(),this},t.set=function(r,s){return this.clone().$set(r,s)},t.get=function(r){return this[$.p(r)]()},t.add=function(r,s){var i=this,l;r=Number(r);var u=$.p(s),c=function(p){var f=W(i);return $.w(f.date(f.date()+Math.round(p*r)),i)};if(u===le)return this.set(le,this.$M+r);if(u===ye)return this.set(ye,this.$y+r);if(u===ve)return c(1);if(u===Ze)return c(7);var g=(l={},l[je]=lt,l[Oe]=Ot,l[Ce]=ke,l)[u]||1,m=this.$d.getTime()+r*g;return $.w(m,this)},t.subtract=function(r,s){return this.add(r*-1,s)},t.format=function(r){var s=this,i=this.$locale();if(!this.isValid())return i.invalidDate||It;var l=r||Fn,u=$.z(this),c=this.$H,g=this.$m,m=this.$M,d=i.weekdays,p=i.months,f=i.meridiem,y=function(T,O,Y,Q){return T&&(T[O]||T(s,l))||Y[O].slice(0,Q)},b=function(T){return $.s(c%12||12,T,"0")},_=f||function(x,T,O){var Y=x<12?"AM":"PM";return O?Y.toLowerCase():Y},w=function(T){switch(T){case"YY":return String(s.$y).slice(-2);case"YYYY":return $.s(s.$y,4,"0");case"M":return m+1;case"MM":return $.s(m+1,2,"0");case"MMM":return y(i.monthsShort,m,p,3);case"MMMM":return y(p,m);case"D":return s.$D;case"DD":return $.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return y(i.weekdaysMin,s.$W,d,2);case"ddd":return y(i.weekdaysShort,s.$W,d,3);case"dddd":return d[s.$W];case"H":return String(c);case"HH":return $.s(c,2,"0");case"h":return b(1);case"hh":return b(2);case"a":return _(c,g,!0);case"A":return _(c,g,!1);case"m":return String(g);case"mm":return $.s(g,2,"0");case"s":return String(s.$s);case"ss":return $.s(s.$s,2,"0");case"SSS":return $.s(s.$ms,3,"0");case"Z":return u}return null};return l.replace(Pn,function(x,T){return T||w(x)||u.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(r,s,i){var l=this,u=$.p(s),c=W(r),g=(c.utcOffset()-this.utcOffset())*lt,m=this-c,d=function(){return $.m(l,c)},p;switch(u){case ye:p=d()/12;break;case le:p=d();break;case Dt:p=d()/3;break;case Ze:p=(m-g)/$n;break;case ve:p=(m-g)/Nn;break;case Oe:p=m/Ot;break;case je:p=m/lt;break;case Ce:p=m/ke;break;default:p=m;break}return i?p:$.a(p)},t.daysInMonth=function(){return this.endOf(le).$D},t.$locale=function(){return we[this.$L]},t.locale=function(r,s){if(!r)return this.$L;var i=this.clone(),l=Xe(r,s,!0);return l&&(i.$L=l),i},t.clone=function(){return $.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},e}(),Rt=Qe.prototype;W.prototype=Rt,[["$ms",ut],["$s",Ce],["$m",je],["$H",Oe],["$W",ve],["$M",le],["$y",ye],["$D",De]].forEach(function(e){Rt[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),W.extend=function(e,t){return e.$i||(e(t,Qe,W),e.$i=!0),W},W.locale=Xe,W.isDayjs=dt,W.unix=function(e){return W(e*1e3)},W.en=we[Ue],W.Ls=we,W.p={};const K={datasource:In,account:On,role:Rn,api_key:Dn,sql_snippet:{list:async({pagination:e},t)=>{const n=await M.post(t)("/sql_snippet/list",{sort:[{field:"update_time",order:"DESC"}],pagination:e},{});return n.data.forEach(r=>{r.create_time=W(r.create_time).format("YYYY-MM-DD HH:mm:ss"),r.update_time=W(r.update_time).format("YYYY-MM-DD HH:mm:ss")}),n},get:async(e,t)=>await M.post(t)("/sql_snippet/get",{id:e},{}),create:async(e,t)=>await M.post(t)("/sql_snippet/create",e,{}),update:async(e,t)=>await M.put(t)("/sql_snippet/update",e,{}),delete:async(e,t)=>M.post(t)("/sql_snippet/delete",{id:e},{})}},ue={size:"sm",spacing:"md",button:{size:"xs"}},Lt=({value:e,onChange:t,height:n="200px",defaultLanguage:r="sql"})=>{const s=l=>{console.log("changing"),t==null||t(l??"")},i=!t;return a.jsx(Pe,{className:"minimal-monaco-editor",height:n,defaultLanguage:r,value:e,onChange:i?void 0:s,theme:"vs-dark",options:{lineNumbers:"off",folding:!1,lineDecorationsWidth:20,lineNumbersMinChars:0,wordWrap:"on",minimap:{enabled:!1},readOnly:i||!t}})};function pe({size:e,disabled:t}){const{t:n}=L.useTranslation();return a.jsx(h.Button,{type:"submit",color:"green",leftIcon:a.jsx(se.IconDeviceFloppy,{size:16}),size:e,disabled:t,children:n("common.actions.submit")})}const Kn={translation:{datasource:{label:"Data Source",add:"Add a data source",edit:"Edit data source",connection_info:"Connection Info",db:{host:"Host",port:"Port",username:"Username",password:"Password",database:"Database",permission_tip:"Only <1>SELECT</1> privilege is needed."},cant_edit:{db:"Only HTTP datasources can be edited",preset:"This is a preset datasource, it can not be changed"},delete:{title:"Delete this data source?",hint:"This action won't affect your database or HTTP service.",cant_delete_preset:"This is a preset datasource, it can not be deleted"},http:{base_url:"Base URL",processing:{pre:{label:"Pre processing of queries",description:"This function will run before sending the request (for scenarios like encryption)"},post:{label:"Post processing of queries",description:"This function will run after getting a response (for scenarios like decryption)"}}},state:{adding:"Adding data source...",added:"Data source is added",updating:"Updating data source...",updated:"Data source is updated",deleting:"Deleting data source...",deleted:"Data source [{{name}}] is deleted"}},account:{label:"Account",add:"Add an account",edit:"Edit account",editing_xx:"Editing account [{{name}}]",username:"Username",email:"Email",password:"Password",password_hint:"Password must be at least 8 characters long",new_password:"New password",reset_password:"Reset password",state:{adding:"Adding account...",added:"Account is added",updating:"Updating account...",updated:"Account is updated",deleting:"Deleting account...",deleted:"Account [{{name}}] is deleted",logging_in:"Logging in...",logged_in:"Logged in"},delete:"Delete this account?"},global_sql_snippet:{label:"Global SQL Snippet",add:"Add a snippet",edit:"Edit snippet",content:"Content",description:"Global SQL Snippets are shared among dashboards",state:{adding:"Adding snippet...",added:"Snippet is added",updating:"Updating snippet...",updated:"Snippet is updated",deleting:"Deleting snippet...",deleted:"Snippet [{{name}}] is deleted"},delete:"Delete this snippet?"},api_key:{label:"API Key",add:"Add an API Key",edit:"Edit API key",app_id:"APP ID",app_secret:"APP Secret",state:{adding:"Adding API key...",added:"API key is added",updating:"Updating API key...",updated:"API Key is updated",deleting:"Deleting API key...",deleted:"API key [{{name}}] is deleted"},save:{title:"API Key is generated",warn:"Make sure you save it - you won't be able to access it again.",saved:"I've saved this API Key"},delete:"Delete this key?"},role:{label:"Role"},common:{type:"Type",name:"Name",name_placeholder:"A unique name",created_at:"Created At",updated_at:"Updated At",state:{pending:"Pending",successful:"Successful",failed:"Failed"},action:"Action",actions:{edit:"Edit",delete:"Delete",submit:"Submit",reset_to_default:"Reset to default",cancel:"Cancel",save:"Save",confirm:"Confirm"}}}},Zn={translation:{datasource:{label:"数据源",add:"添加数据源",edit:"编辑数据源",connection_info:"连接信息",db:{host:"主机(host)",port:"端口(port)",username:"用户名(username)",password:"密码(password)",database:"数据库(database)",permission_tip:"只需具备 <1>SELECT</1> 权限"},cant_edit:{db:"只有HTTP数据源可以编辑",preset:"这是预设数据源,不可编辑"},delete:{title:"删除这个数据源?",hint:"此操作不会影响您的数据库或HTTP服务",cant_delete_preset:"这是预设数据源,不可删除"},http:{base_url:"访问地址",processing:{pre:{label:"查询请求预处理",description:"此函数在请求发起前执行(例如加密场景)"},post:{label:"查询请求后处理",description:"此函数在请求获得响应后执行(例如解密场景)"}}},state:{adding:"正在添加数据源...",added:"数据源已添加",updating:"正在更新数据源...",updated:"数据源已更新",deleting:"正在删除数据源...",deleted:'数据源"{{name}}"已删除'}},account:{label:"账户",add:"添加账户",edit:"编辑账户",editing_xx:'正在编辑账户 "{{name}}"',username:"用户名",email:"邮箱",password:"密码",password_hint:"密码得至少包含8个字符",new_password:"新密码",reset_password:"重置密码",state:{adding:"正在添加账户...",added:"账户已添加",updating:"正在更新账户...",updated:"账户已更新",deleting:"正在删除账户...",deleted:'账户"{{name}}"已删除',logging_in:"正在登录...",logged_in:"已登录"},delete:"删除这个账户?"},global_sql_snippet:{label:"全局SQL片段",add:"添加片段",edit:"编辑片段",content:"SQL片段内容",description:"在制作任何看板时,既可以制订该看板自己的SQL片段,也可以使用这里的全局SQL片段",state:{adding:"正在添加片段...",added:"片段已添加",updating:"正在更新片段...",updated:"片段已更新",deleting:"正在删除片段...",deleted:'片段"{{name}}"已删除'},delete:"删除这个片段?"},api_key:{label:"API令牌",add:"添加令牌",edit:"编辑令牌",app_id:"应用ID",app_secret:"应用密钥",state:{adding:"正在添加令牌...",added:"令牌已添加",updating:"正在更新令牌...",updated:"令牌已更新",deleting:"正在删除令牌...",deleted:'令牌"{{name}}"已删除'},save:{title:"API令牌已生成",warn:"此信息只出现一次,请务必保存",saved:"我已保存"},delete:"删除这个片段?"},role:{label:"角色"},common:{type:"类型",name:"名称",name_placeholder:"名称须唯一",created_at:"创建时间",updated_at:"更新时间",state:{pending:"处理中",successful:"成功",failed:"失败"},action:"动作",actions:{edit:"编辑",delete:"删除",submit:"提交",reset_to_default:"还原为默认值",cancel:"取消",save:"保存",confirm:"确认"}}}},pt=xn.createInstance({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},resources:{en:Kn,zh:Zn}}).use(_n).use(L.initReactI18next);pt.init();function Xn({lang:e,children:t}){return C.useEffect(()=>{pt.changeLanguage(e)},[e]),a.jsx(L.I18nextProvider,{i18n:pt,children:t})}const Qn=e=>e.replace(/([^:])(\/\/+)/g,"$1/");function Jn(e){C.useEffect(()=>{if(Pe.loader.__getMonacoInstance())return;console.log("loading monaco for @devtable/settings-form");const n=Qn(e);Pe.loader.config({paths:{vs:n}}),Pe.loader.init().then(r=>console.log("monaco instance:",r))},[])}function qe(e,t){const n=r=>{const{lang:s,config:i,...l}=r;return At(i),Jn(i.monacoPath),a.jsx(C.Suspense,{fallback:a.jsx(h.Loader,{color:"gray"}),children:a.jsx(Xn,{lang:s,children:a.jsx(t,{...l})})})};return n.displayName=`withEntry(${e})`,console.log("entry"),n}function er({submit:e,styles:t=ue,type:n}){const{t:r}=L.useTranslation(),{control:s,setValue:i,handleSubmit:l}=j.useForm({defaultValues:{type:n,key:"",config:{host:"",port:5432,username:"",password:"",database:""}}});return C.useEffect(()=>{i("type",n)},[i,n]),a.jsx(h.Box,{mx:"auto",children:a.jsxs("form",{onSubmit:l(e),children:[a.jsx(j.Controller,{name:"key",control:s,render:({field:u})=>a.jsx(h.TextInput,{mb:t.spacing,size:t.size,required:!0,label:r("common.name"),placeholder:r("common.name_placeholder"),...u})}),a.jsx(h.Divider,{label:r("datasource.connection_info"),labelPosition:"center"}),a.jsxs(h.Group,{grow:!0,children:[a.jsx(j.Controller,{name:"config.host",control:s,render:({field:u})=>a.jsx(h.TextInput,{mb:t.spacing,size:t.size,required:!0,label:r("datasource.db.host"),sx:{flexGrow:1},...u})}),a.jsx(j.Controller,{name:"config.port",control:s,render:({field:u})=>a.jsx(h.NumberInput,{mb:t.spacing,size:t.size,required:!0,label:r("datasource.db.port"),hideControls:!0,sx:{width:"8em"},...u})})]}),a.jsx(j.Controller,{name:"config.username",control:s,render:({field:u})=>a.jsx(h.TextInput,{mb:t.spacing,size:t.size,required:!0,label:r("datasource.db.username"),...u})}),a.jsx(j.Controller,{name:"config.password",control:s,render:({field:u})=>a.jsx(h.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:r("datasource.db.password"),...u})}),a.jsx(j.Controller,{name:"config.database",control:s,render:({field:u})=>a.jsx(h.TextInput,{mb:t.spacing,size:t.size,required:!0,label:r("datasource.db.database"),...u})}),a.jsx(h.Group,{position:"right",mt:t.spacing,children:a.jsx(pe,{size:t.button.size})})]})})}const tr=({value:e,onChange:t})=>{const n=r=>{r&&t(r)};return a.jsx(h.Box,{sx:{position:"relative"},children:a.jsx(Pe,{height:"500px",defaultLanguage:"javascript",value:e,onChange:n,theme:"vs-dark",options:{minimap:{enabled:!1}}})})},Je=C.forwardRef(({value:e,onChange:t,label:n,modalTitle:r,defaultValue:s,styles:i},l)=>{const{t:u}=L.useTranslation(),[c,{setTrue:g,setFalse:m}]=be.useBoolean(),[d,p]=C.useState(e),f=()=>{m(),t(d)},y=()=>{m(),p(e)},b=()=>{p(s)};return C.useEffect(()=>{p(e)},[e]),a.jsxs(a.Fragment,{children:[a.jsx(h.Button,{color:"grape",variant:"filled",leftIcon:a.jsx(se.IconMathFunction,{size:16}),size:i.button.size,onClick:g,sx:{flexGrow:1},children:n}),a.jsx(h.Modal,{size:800,title:r,opened:c,onClose:m,closeOnClickOutside:!1,withCloseButton:!1,children:c&&a.jsxs(h.Stack,{children:[a.jsx(tr,{value:d,onChange:p}),a.jsxs(h.Group,{position:"apart",children:[a.jsx(h.Button,{size:i.button.size,onClick:b,color:"red",leftIcon:a.jsx(oe.Recycle,{size:20}),children:u("common.actions.reset_to_default")}),a.jsxs(h.Group,{position:"right",children:[a.jsx(h.Button,{size:i.button.size,onClick:y,variant:"subtle",children:u("common.actions.cancel")}),a.jsx(h.Button,{size:i.button.size,color:"green",leftIcon:a.jsx(se.IconDeviceFloppy,{size:16}),onClick:f,children:u("common.actions.save")})]})]})]})})]})}),et={pre:["function pre_process({ method, url, params, headers, data }, utils) {"," // your code goes here"," return { method, url, params, headers, data }","}"].join(`
|
|
27
|
+
Check the top-level render call using <`+E+">.")}return S}}function fn(o,S){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var E=ga(S);if(gn[E])return;gn[E]=!0;var A="";o&&o._owner&&o._owner!==vt.current&&(A=" It was passed a child from "+U(o._owner.type)+"."),Fe(o),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,A),Fe(null)}}function hn(o,S){{if(typeof o!="object")return;if(mt(o))for(var E=0;E<o.length;E++){var A=o[E];St(A)&&fn(A,S)}else if(St(o))o._store&&(o._store.validated=!0);else if(o){var N=_(o);if(typeof N=="function"&&N!==o.entries)for(var F=N.call(o),R;!(R=F.next()).done;)St(R.value)&&fn(R.value,S)}}}function fa(o){{var S=o.type;if(S==null||typeof S=="string")return;var E;if(typeof S=="function")E=S.propTypes;else if(typeof S=="object"&&(S.$$typeof===c||S.$$typeof===d))E=S.propTypes;else return;if(E){var A=U(S);ea(E,o.props,"prop",A,o)}else if(S.PropTypes!==void 0&&!yt){yt=!0;var N=U(S);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",N||"Unknown")}typeof S.getDefaultProps=="function"&&!S.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ha(o){{for(var S=Object.keys(o.props),E=0;E<S.length;E++){var A=S[E];if(A!=="children"&&A!=="key"){Fe(o),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),Fe(null);break}}o.ref!==null&&(Fe(o),x("Invalid attribute `ref` supplied to `React.Fragment`."),Fe(null))}}function mn(o,S,E,A,N,F){{var R=ee(o);if(!R){var D="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(D+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ne=pa(N);ne?D+=ne:D+=pn();var q;o===null?q="null":mt(o)?q="array":o!==void 0&&o.$$typeof===t?(q="<"+(U(o.type)||"Unknown")+" />",D=" Did you accidentally export a JSX literal instead of a component?"):q=typeof o,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",q,D)}var V=da(o,S,E,N,F);if(V==null)return V;if(R){var ie=S.children;if(ie!==void 0)if(A)if(mt(ie)){for(var ze=0;ze<ie.length;ze++)hn(ie[ze],o);Object.freeze&&Object.freeze(ie)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else hn(ie,o)}return o===r?ha(V):fa(V),V}}function ma(o,S,E){return mn(o,S,E,!0)}function ba(o,S,E){return mn(o,S,E,!1)}var va=ba,ya=ma;Me.Fragment=r,Me.jsx=va,Me.jsxs=ya}()),Me}process.env.NODE_ENV==="production"?ot.exports=An():ot.exports=kn();var a=ot.exports;function Cn(e){e=e||{};const t=Object.keys(e).sort(),n=[];for(let r=0;r<t.length;r++){const s=t[r];if(s!="authentication"&&e[s])n.push(t[r]+"="+(typeof e[s]=="object"?JSON.stringify(e[s]):e[s]));else{const i=Object.keys(e[s]).sort();for(let l=0;l<i.length;l++){const u=i[l];u!="sign"&&e[s][u]&&n.push(i[l]+"="+(typeof e[s][u]=="object"?JSON.stringify(e[s][u]):e[s][u]))}}}return n.sort().join("&")}function jn(e,t){let n=Cn(e);return n+="&key="+t,Tn.MD5(n).toString().toUpperCase()}class wt{constructor(){this.type="default_api_client",this.baseURL="http://localhost:31200",this.app_id="",this.app_secret=""}getAuthentication(t){if(!this.app_id||!this.app_secret)return;const n=new Date().getTime().toString();return{app_id:this.app_id,nonce_str:n,sign:jn({app_id:this.app_id,nonce_str:n,...t},this.app_secret)}}getRequest(t,n){return(r,s,i,l)=>{const u=this.buildHeader(i),c=this.buildAxiosConfig(t,r,s,i,u,n);return Sn(c).then(g=>l?g:g.data).catch(g=>{const m=yn.get(g,"response.data.detail.message",g.message);return Promise.reject(new Error(m))})}}get(t){return this.getRequest("GET",t)}post(t){return this.getRequest("POST",t)}put(t){return this.getRequest("PUT",t)}buildAxiosConfig(t,n,r,s,i,l){const u={baseURL:this.baseURL,method:t,url:n,params:t==="GET"?r:s.params,headers:i,signal:l};return["POST","PUT"].includes(t)&&(u.data=s.string?JSON.stringify(r):r,u.data.authentication=this.getAuthentication(u.data)),u}buildHeader(t){const n=window.localStorage.getItem("token");return{"X-Requested-With":"XMLHttpRequest","Content-Type":t.string?"application/x-www-form-urlencoded":"application/json",authorization:n?`bearer ${n}`:"",...t.headers}}}class Et{constructor(t){this.implementation=t}getRequest(t,n){return this.implementation.getRequest(t,n)}get(t){return this.getRequest("GET",t)}post(t){return this.getRequest("POST",t)}put(t){return this.getRequest("PUT",t)}}const Ge=new wt,Tt=new Et(Ge),M=Tt;function At(e){Ge.baseURL!==e.apiBaseURL&&(Ge.baseURL=e.apiBaseURL),e.app_id&&(Ge.app_id=e.app_id),e.app_secret&&(Ge.app_secret=e.app_secret)}const On={login:async(e,t)=>{const n={name:e,password:t};return await M.post()("/account/login",n,{})},list:async()=>await M.post()("/account/list",{filter:{},sort:[{field:"name",order:"ASC"}],pagination:{page:1,pagesize:100}},{}),get:async()=>await M.get()("/account/get",{},{}),update:async(e,t)=>{const n={name:e.trim(),email:t.trim()};return await M.put()("/account/update",n,{})},changepassword:async(e,t)=>{const n={old_password:e.trim(),new_password:t.trim()};return await M.post()("/account/changepassword",n,{})},create:async(e,t,n,r)=>await M.post()("/account/create",{name:e.trim(),email:t.trim(),password:n.trim(),role_id:r},{}),edit:async e=>(e.reset_password||(e.new_password=void 0),await M.put()("/account/edit",e,{})),delete:async e=>{if(e)return M.post()("/account/delete",{id:e},{})}},Dn={list:async()=>await M.post()("/api/key/list",{filter:{search:""},sort:[{field:"name",order:"ASC"}],pagination:{page:1,pagesize:100}},{}),create:async(e,t)=>M.post()("/api/key/create",{name:e,role_id:t},{}),delete:async e=>{if(e)return M.post()("/api/key/delete",{id:e},{})}},In={list:async()=>await M.post()("/datasource/list",{filter:{},sort:[{field:"create_time",order:"ASC"}],pagination:{page:1,pagesize:100}},{}),create:async(e,t,n)=>await M.post()("/datasource/create",{type:e,key:t,config:n},{}),update:async(e,t)=>await M.put()("/datasource/update",{id:e,config:t},{}),delete:async e=>{await M.post()("/datasource/delete",{id:e},{})}},Rn={list:async()=>await M.get()("/role/list",{},{})};var kt=60,Ct=kt*60,jt=Ct*24,Ln=jt*7,ke=1e3,lt=kt*ke,Ot=Ct*ke,Nn=jt*ke,$n=Ln*ke,ut="millisecond",Ce="second",je="minute",Oe="hour",ve="day",Ze="week",le="month",Dt="quarter",ye="year",De="date",Fn="YYYY-MM-DDTHH:mm:ssZ",It="Invalid Date",zn=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Pn=/\[([^\]]+)]|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;const Bn={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("_"),ordinal:function(t){var n=["th","st","nd","rd"],r=t%100;return"["+t+(n[(r-20)%10]||n[r]||n[0])+"]"}};var ct=function(t,n,r){var s=String(t);return!s||s.length>=n?t:""+Array(n+1-s.length).join(r)+t},Mn=function(t){var n=-t.utcOffset(),r=Math.abs(n),s=Math.floor(r/60),i=r%60;return(n<=0?"+":"-")+ct(s,2,"0")+":"+ct(i,2,"0")},Gn=function e(t,n){if(t.date()<n.date())return-e(n,t);var r=(n.year()-t.year())*12+(n.month()-t.month()),s=t.clone().add(r,le),i=n-s<0,l=t.clone().add(r+(i?-1:1),le);return+(-(r+(n-s)/(i?s-l:l-s))||0)},Un=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},qn=function(t){var n={M:le,y:ye,w:Ze,d:ve,D:De,h:Oe,m:je,s:Ce,ms:ut,Q:Dt};return n[t]||String(t||"").toLowerCase().replace(/s$/,"")},Yn=function(t){return t===void 0};const Hn={s:ct,z:Mn,m:Gn,a:Un,p:qn,u:Yn};var Ue="en",we={};we[Ue]=Bn;var dt=function(t){return t instanceof Qe},Xe=function e(t,n,r){var s;if(!t)return Ue;if(typeof t=="string"){var i=t.toLowerCase();we[i]&&(s=i),n&&(we[i]=n,s=i);var l=t.split("-");if(!s&&l.length>1)return e(l[0])}else{var u=t.name;we[u]=t,s=u}return!r&&s&&(Ue=s),s||!r&&Ue},W=function(t,n){if(dt(t))return t.clone();var r=typeof n=="object"?n:{};return r.date=t,r.args=arguments,new Qe(r)},Vn=function(t,n){return W(t,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})},$=Hn;$.l=Xe,$.i=dt,$.w=Vn;var Wn=function(t){var n=t.date,r=t.utc;if(n===null)return new Date(NaN);if($.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var s=n.match(zn);if(s){var i=s[2]-1||0,l=(s[7]||"0").substring(0,3);return r?new Date(Date.UTC(s[1],i,s[3]||1,s[4]||0,s[5]||0,s[6]||0,l)):new Date(s[1],i,s[3]||1,s[4]||0,s[5]||0,s[6]||0,l)}}return new Date(n)},Qe=function(){function e(n){this.$L=Xe(n.locale,null,!0),this.parse(n)}var t=e.prototype;return t.parse=function(r){this.$d=Wn(r),this.$x=r.x||{},this.init()},t.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds()},t.$utils=function(){return $},t.isValid=function(){return this.$d.toString()!==It},t.isSame=function(r,s){var i=W(r);return this.startOf(s)<=i&&i<=this.endOf(s)},t.isAfter=function(r,s){return W(r)<this.startOf(s)},t.isBefore=function(r,s){return this.endOf(s)<W(r)},t.$g=function(r,s,i){return $.u(r)?this[s]:this.set(i,r)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(r,s){var i=this,l=$.u(s)?!0:s,u=$.p(r),c=function(w,x){var T=$.w(i.$u?Date.UTC(i.$y,x,w):new Date(i.$y,x,w),i);return l?T:T.endOf(ve)},g=function(w,x){var T=[0,0,0,0],O=[23,59,59,999];return $.w(i.toDate()[w].apply(i.toDate("s"),(l?T:O).slice(x)),i)},m=this.$W,d=this.$M,p=this.$D,f="set"+(this.$u?"UTC":"");switch(u){case ye:return l?c(1,0):c(31,11);case le:return l?c(1,d):c(0,d+1);case Ze:{var y=this.$locale().weekStart||0,b=(m<y?m+7:m)-y;return c(l?p-b:p+(6-b),d)}case ve:case De:return g(f+"Hours",0);case Oe:return g(f+"Minutes",1);case je:return g(f+"Seconds",2);case Ce:return g(f+"Milliseconds",3);default:return this.clone()}},t.endOf=function(r){return this.startOf(r,!1)},t.$set=function(r,s){var i,l=$.p(r),u="set"+(this.$u?"UTC":""),c=(i={},i[ve]=u+"Date",i[De]=u+"Date",i[le]=u+"Month",i[ye]=u+"FullYear",i[Oe]=u+"Hours",i[je]=u+"Minutes",i[Ce]=u+"Seconds",i[ut]=u+"Milliseconds",i)[l],g=l===ve?this.$D+(s-this.$W):s;if(l===le||l===ye){var m=this.clone().set(De,1);m.$d[c](g),m.init(),this.$d=m.set(De,Math.min(this.$D,m.daysInMonth())).$d}else c&&this.$d[c](g);return this.init(),this},t.set=function(r,s){return this.clone().$set(r,s)},t.get=function(r){return this[$.p(r)]()},t.add=function(r,s){var i=this,l;r=Number(r);var u=$.p(s),c=function(p){var f=W(i);return $.w(f.date(f.date()+Math.round(p*r)),i)};if(u===le)return this.set(le,this.$M+r);if(u===ye)return this.set(ye,this.$y+r);if(u===ve)return c(1);if(u===Ze)return c(7);var g=(l={},l[je]=lt,l[Oe]=Ot,l[Ce]=ke,l)[u]||1,m=this.$d.getTime()+r*g;return $.w(m,this)},t.subtract=function(r,s){return this.add(r*-1,s)},t.format=function(r){var s=this,i=this.$locale();if(!this.isValid())return i.invalidDate||It;var l=r||Fn,u=$.z(this),c=this.$H,g=this.$m,m=this.$M,d=i.weekdays,p=i.months,f=i.meridiem,y=function(T,O,Y,Q){return T&&(T[O]||T(s,l))||Y[O].slice(0,Q)},b=function(T){return $.s(c%12||12,T,"0")},_=f||function(x,T,O){var Y=x<12?"AM":"PM";return O?Y.toLowerCase():Y},w=function(T){switch(T){case"YY":return String(s.$y).slice(-2);case"YYYY":return $.s(s.$y,4,"0");case"M":return m+1;case"MM":return $.s(m+1,2,"0");case"MMM":return y(i.monthsShort,m,p,3);case"MMMM":return y(p,m);case"D":return s.$D;case"DD":return $.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return y(i.weekdaysMin,s.$W,d,2);case"ddd":return y(i.weekdaysShort,s.$W,d,3);case"dddd":return d[s.$W];case"H":return String(c);case"HH":return $.s(c,2,"0");case"h":return b(1);case"hh":return b(2);case"a":return _(c,g,!0);case"A":return _(c,g,!1);case"m":return String(g);case"mm":return $.s(g,2,"0");case"s":return String(s.$s);case"ss":return $.s(s.$s,2,"0");case"SSS":return $.s(s.$ms,3,"0");case"Z":return u}return null};return l.replace(Pn,function(x,T){return T||w(x)||u.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(r,s,i){var l=this,u=$.p(s),c=W(r),g=(c.utcOffset()-this.utcOffset())*lt,m=this-c,d=function(){return $.m(l,c)},p;switch(u){case ye:p=d()/12;break;case le:p=d();break;case Dt:p=d()/3;break;case Ze:p=(m-g)/$n;break;case ve:p=(m-g)/Nn;break;case Oe:p=m/Ot;break;case je:p=m/lt;break;case Ce:p=m/ke;break;default:p=m;break}return i?p:$.a(p)},t.daysInMonth=function(){return this.endOf(le).$D},t.$locale=function(){return we[this.$L]},t.locale=function(r,s){if(!r)return this.$L;var i=this.clone(),l=Xe(r,s,!0);return l&&(i.$L=l),i},t.clone=function(){return $.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},e}(),Rt=Qe.prototype;W.prototype=Rt,[["$ms",ut],["$s",Ce],["$m",je],["$H",Oe],["$W",ve],["$M",le],["$y",ye],["$D",De]].forEach(function(e){Rt[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),W.extend=function(e,t){return e.$i||(e(t,Qe,W),e.$i=!0),W},W.locale=Xe,W.isDayjs=dt,W.unix=function(e){return W(e*1e3)},W.en=we[Ue],W.Ls=we,W.p={};const K={datasource:In,account:On,role:Rn,api_key:Dn,sql_snippet:{list:async({pagination:e},t)=>{const n=await M.post(t)("/sql_snippet/list",{sort:[{field:"update_time",order:"DESC"}],pagination:e},{});return n.data.forEach(r=>{r.create_time=W(r.create_time).format("YYYY-MM-DD HH:mm:ss"),r.update_time=W(r.update_time).format("YYYY-MM-DD HH:mm:ss")}),n},get:async(e,t)=>await M.post(t)("/sql_snippet/get",{id:e},{}),create:async(e,t)=>await M.post(t)("/sql_snippet/create",e,{}),update:async(e,t)=>await M.put(t)("/sql_snippet/update",e,{}),delete:async(e,t)=>M.post(t)("/sql_snippet/delete",{id:e},{})}},ue={size:"sm",spacing:"md",button:{size:"xs"}},Lt=({value:e,onChange:t,height:n="200px",defaultLanguage:r="sql"})=>{const s=l=>{console.log("changing"),t==null||t(l??"")},i=!t;return a.jsx(Pe,{className:"minimal-monaco-editor",height:n,defaultLanguage:r,value:e,onChange:i?void 0:s,theme:"vs-dark",options:{lineNumbers:"off",folding:!1,lineDecorationsWidth:20,lineNumbersMinChars:0,wordWrap:"on",minimap:{enabled:!1},readOnly:i||!t}})};function pe({size:e,disabled:t}){const{t:n}=L.useTranslation();return a.jsx(h.Button,{type:"submit",color:"green",leftIcon:a.jsx(se.IconDeviceFloppy,{size:16}),size:e,disabled:t,children:n("common.actions.submit")})}const Kn={translation:{datasource:{label:"Data Source",add:"Add a data source",edit:"Edit data source",connection_info:"Connection Info",db:{host:"Host",port:"Port",username:"Username",password:"Password",database:"Database",permission_tip:"Only <1>SELECT</1> privilege is needed."},cant_edit:{db:"Only HTTP datasources can be edited",preset:"This is a preset datasource, it can not be changed"},delete:{title:"Delete this data source?",hint:"This action won't affect your database or HTTP service.",cant_delete_preset:"This is a preset datasource, it can not be deleted"},http:{base_url:"Base URL",processing:{pre:{label:"Pre processing of queries",description:"This function will run before sending the request (for scenarios like encryption)"},post:{label:"Post processing of queries",description:"This function will run after getting a response (for scenarios like decryption)"}}},state:{adding:"Adding data source...",added:"Data source is added",updating:"Updating data source...",updated:"Data source is updated",deleting:"Deleting data source...",deleted:"Data source [{{name}}] is deleted"}},account:{label:"Account",add:"Add an account",edit:"Edit account",editing_xx:"Editing account [{{name}}]",username:"Username",email:"Email",password:"Password",password_hint:"Password must be at least 8 characters long",new_password:"New password",reset_password:"Reset password",state:{adding:"Adding account...",added:"Account is added",updating:"Updating account...",updated:"Account is updated",deleting:"Deleting account...",deleted:"Account [{{name}}] is deleted",logging_in:"Logging in...",logged_in:"Logged in"},delete:"Delete this account?"},global_sql_snippet:{label:"Global SQL Snippet",add:"Add a snippet",edit:"Edit snippet",content:"Content",description:"Global SQL Snippets are shared among dashboards",state:{adding:"Adding snippet...",added:"Snippet is added",updating:"Updating snippet...",updated:"Snippet is updated",deleting:"Deleting snippet...",deleted:"Snippet [{{name}}] is deleted"},delete:"Delete this snippet?"},api_key:{label:"API Key",add:"Add an API Key",edit:"Edit API key",app_id:"APP ID",app_secret:"APP Secret",state:{adding:"Adding API key...",added:"API key is added",updating:"Updating API key...",updated:"API Key is updated",deleting:"Deleting API key...",deleted:"API key [{{name}}] is deleted"},save:{title:"API Key is generated",warn:"Make sure you save it - you won't be able to access it again.",saved:"I've saved this API Key"},delete:"Delete this key?"},role:{label:"Role"},common:{type:"Type",name:"Name",name_placeholder:"A unique name",created_at:"Created At",updated_at:"Updated At",state:{pending:"Pending",successful:"Successful",failed:"Failed"},action:"Action",actions:{edit:"Edit",delete:"Delete",submit:"Submit",reset_to_default:"Reset to default",cancel:"Cancel",save:"Save",confirm:"Confirm"}}}},Zn={translation:{datasource:{label:"数据源",add:"添加数据源",edit:"编辑数据源",connection_info:"连接信息",db:{host:"主机(host)",port:"端口(port)",username:"用户名(username)",password:"密码(password)",database:"数据库(database)",permission_tip:"只需具备 <1>SELECT</1> 权限"},cant_edit:{db:"只有HTTP数据源可以编辑",preset:"这是预设数据源,不可编辑"},delete:{title:"删除这个数据源?",hint:"此操作不会影响您的数据库或HTTP服务",cant_delete_preset:"这是预设数据源,不可删除"},http:{base_url:"访问地址",processing:{pre:{label:"查询请求预处理",description:"此函数在请求发起前执行(例如加密场景)"},post:{label:"查询请求后处理",description:"此函数在请求获得响应后执行(例如解密场景)"}}},state:{adding:"正在添加数据源...",added:"数据源已添加",updating:"正在更新数据源...",updated:"数据源已更新",deleting:"正在删除数据源...",deleted:'数据源"{{name}}"已删除'}},account:{label:"账户",add:"添加账户",edit:"编辑账户",editing_xx:'正在编辑账户 "{{name}}"',username:"用户名",email:"邮箱",password:"密码",password_hint:"密码得至少包含8个字符",new_password:"新密码",reset_password:"重置密码",state:{adding:"正在添加账户...",added:"账户已添加",updating:"正在更新账户...",updated:"账户已更新",deleting:"正在删除账户...",deleted:'账户"{{name}}"已删除',logging_in:"正在登录...",logged_in:"已登录"},delete:"删除这个账户?"},global_sql_snippet:{label:"全局SQL片段",add:"添加片段",edit:"编辑片段",content:"SQL片段内容",description:"在制作任何看板时,既可以制订该看板自己的SQL片段,也可以使用这里的全局SQL片段",state:{adding:"正在添加片段...",added:"片段已添加",updating:"正在更新片段...",updated:"片段已更新",deleting:"正在删除片段...",deleted:'片段"{{name}}"已删除'},delete:"删除这个片段?"},api_key:{label:"API令牌",add:"添加令牌",edit:"编辑令牌",app_id:"应用ID",app_secret:"应用密钥",state:{adding:"正在添加令牌...",added:"令牌已添加",updating:"正在更新令牌...",updated:"令牌已更新",deleting:"正在删除令牌...",deleted:'令牌"{{name}}"已删除'},save:{title:"API令牌已生成",warn:"此信息只出现一次,请务必保存",saved:"我已保存"},delete:"删除这个片段?"},role:{label:"角色"},common:{type:"类型",name:"名称",name_placeholder:"名称须唯一",created_at:"创建时间",updated_at:"更新时间",state:{pending:"处理中",successful:"成功",failed:"失败"},action:"动作",actions:{edit:"编辑",delete:"删除",submit:"提交",reset_to_default:"还原为默认值",cancel:"取消",save:"保存",confirm:"确认"}}}},pt=xn.createInstance({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},resources:{en:Kn,zh:Zn}}).use(_n).use(L.initReactI18next);pt.init();function Xn({lang:e,children:t}){return C.useEffect(()=>{pt.changeLanguage(e)},[e]),a.jsx(L.I18nextProvider,{i18n:pt,children:t})}const Qn=e=>e.replace(/([^:])(\/\/+)/g,"$1/");function Jn(e){C.useEffect(()=>{if(Pe.loader.__getMonacoInstance())return;console.log("loading monaco for @devtable/settings-form");const n=Qn(e);Pe.loader.config({paths:{vs:n}}),Pe.loader.init().then(r=>console.log("monaco instance:",r))},[])}function qe(e,t){const n=r=>{const{lang:s,config:i,...l}=r;return At(i),Jn(i.monacoPath),a.jsx(C.Suspense,{fallback:a.jsx(h.Loader,{color:"gray"}),children:a.jsx(Xn,{lang:s,children:a.jsx(t,{...l})})})};return n.displayName=`withEntry(${e})`,n}function er({submit:e,styles:t=ue,type:n}){const{t:r}=L.useTranslation(),{control:s,setValue:i,handleSubmit:l}=j.useForm({defaultValues:{type:n,key:"",config:{host:"",port:5432,username:"",password:"",database:""}}});return C.useEffect(()=>{i("type",n)},[i,n]),a.jsx(h.Box,{mx:"auto",children:a.jsxs("form",{onSubmit:l(e),children:[a.jsx(j.Controller,{name:"key",control:s,render:({field:u})=>a.jsx(h.TextInput,{mb:t.spacing,size:t.size,required:!0,label:r("common.name"),placeholder:r("common.name_placeholder"),...u})}),a.jsx(h.Divider,{label:r("datasource.connection_info"),labelPosition:"center"}),a.jsxs(h.Group,{grow:!0,children:[a.jsx(j.Controller,{name:"config.host",control:s,render:({field:u})=>a.jsx(h.TextInput,{mb:t.spacing,size:t.size,required:!0,label:r("datasource.db.host"),sx:{flexGrow:1},...u})}),a.jsx(j.Controller,{name:"config.port",control:s,render:({field:u})=>a.jsx(h.NumberInput,{mb:t.spacing,size:t.size,required:!0,label:r("datasource.db.port"),hideControls:!0,sx:{width:"8em"},...u})})]}),a.jsx(j.Controller,{name:"config.username",control:s,render:({field:u})=>a.jsx(h.TextInput,{mb:t.spacing,size:t.size,required:!0,label:r("datasource.db.username"),...u})}),a.jsx(j.Controller,{name:"config.password",control:s,render:({field:u})=>a.jsx(h.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:r("datasource.db.password"),...u})}),a.jsx(j.Controller,{name:"config.database",control:s,render:({field:u})=>a.jsx(h.TextInput,{mb:t.spacing,size:t.size,required:!0,label:r("datasource.db.database"),...u})}),a.jsx(h.Group,{position:"right",mt:t.spacing,children:a.jsx(pe,{size:t.button.size})})]})})}const tr=({value:e,onChange:t})=>{const n=r=>{r&&t(r)};return a.jsx(h.Box,{sx:{position:"relative"},children:a.jsx(Pe,{height:"500px",defaultLanguage:"javascript",value:e,onChange:n,theme:"vs-dark",options:{minimap:{enabled:!1}}})})},Je=C.forwardRef(({value:e,onChange:t,label:n,modalTitle:r,defaultValue:s,styles:i},l)=>{const{t:u}=L.useTranslation(),[c,{setTrue:g,setFalse:m}]=be.useBoolean(),[d,p]=C.useState(e),f=()=>{m(),t(d)},y=()=>{m(),p(e)},b=()=>{p(s)};return C.useEffect(()=>{p(e)},[e]),a.jsxs(a.Fragment,{children:[a.jsx(h.Button,{color:"grape",variant:"filled",leftIcon:a.jsx(se.IconMathFunction,{size:16}),size:i.button.size,onClick:g,sx:{flexGrow:1},children:n}),a.jsx(h.Modal,{size:800,title:r,opened:c,onClose:m,closeOnClickOutside:!1,withCloseButton:!1,children:c&&a.jsxs(h.Stack,{children:[a.jsx(tr,{value:d,onChange:p}),a.jsxs(h.Group,{position:"apart",children:[a.jsx(h.Button,{size:i.button.size,onClick:b,color:"red",leftIcon:a.jsx(oe.Recycle,{size:20}),children:u("common.actions.reset_to_default")}),a.jsxs(h.Group,{position:"right",children:[a.jsx(h.Button,{size:i.button.size,onClick:y,variant:"subtle",children:u("common.actions.cancel")}),a.jsx(h.Button,{size:i.button.size,color:"green",leftIcon:a.jsx(se.IconDeviceFloppy,{size:16}),onClick:f,children:u("common.actions.save")})]})]})]})})]})}),et={pre:["function pre_process({ method, url, params, headers, data }, utils) {"," // your code goes here"," return { method, url, params, headers, data }","}"].join(`
|
|
28
28
|
`),post:["function post_process(res, utils) {"," // your code goes here"," return data","}"].join(`
|
|
29
29
|
`)};function nr({submit:e,styles:t=ue}){const{t:n}=L.useTranslation(),{control:r,setValue:s,handleSubmit:i}=j.useForm({defaultValues:{type:"http",key:"",config:{host:"",processing:{pre:et.pre,post:et.post}}}});return a.jsx(h.Box,{mx:"auto",children:a.jsxs("form",{onSubmit:i(e),children:[a.jsx(j.Controller,{name:"key",control:r,render:({field:l})=>a.jsx(h.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("common.name"),placeholder:n("common.name_placeholder"),...l})}),a.jsx(h.Divider,{label:n("datasource.connection_info"),labelPosition:"center"}),a.jsx(j.Controller,{name:"config.host",control:r,render:({field:l})=>a.jsx(h.TextInput,{mb:t.spacing,size:t.size,label:n("datasource.http.base_url"),sx:{flexGrow:1},...l})}),a.jsxs(h.Group,{grow:!0,children:[a.jsx(j.Controller,{name:"config.processing.pre",control:r,render:({field:l})=>a.jsx(Je,{label:n("datasource.http.processing.pre.label"),modalTitle:n("datasource.http.processing.pre.description"),defaultValue:et.pre,...l,styles:t})}),a.jsx(j.Controller,{name:"config.processing.post",control:r,render:({field:l})=>a.jsx(Je,{label:n("datasource.http.processing.post.label"),modalTitle:n("datasource.http.processing.post.description"),defaultValue:et.post,...l,styles:t})})]}),a.jsx(h.Group,{position:"right",mt:t.spacing,children:a.jsx(pe,{size:t.button.size})})]})})}function rr({styles:e=ue}){return a.jsx(h.Box,{mx:"auto",children:a.jsx(h.Alert,{mt:e.spacing,icon:a.jsx(oe.AlertCircle,{size:16}),children:a.jsxs(L.Trans,{i18nKey:"datasource.db.permission_tip",children:["Only ",a.jsx("b",{children:"SELECT"})," privilege is needed."]})})})}function ar({postSubmit:e,styles:t=ue}){const{t:n}=L.useTranslation(),[r,s]=C.useState("postgresql"),i=async({type:c,key:g,config:m})=>{I.showNotification({id:"for-creating",title:n("common.state.pending"),message:n("datasource.state.adding"),loading:!0,autoClose:!1});try{console.log({type:c,key:g,config:m}),await K.datasource.create(c,g,m),I.updateNotification({id:"for-creating",title:n("common.state.successful"),message:n("datasource.state.added"),color:"green",autoClose:!0}),e()}catch(d){console.error(d),I.updateNotification({id:"for-creating",title:n("common.state.failed"),message:d.message,color:"red",autoClose:!0})}},l=r==="postgresql"||r==="mysql",u=r==="http";return a.jsxs(h.Box,{mx:"auto",children:[a.jsx(h.SegmentedControl,{fullWidth:!0,mb:t.spacing,size:t.size,data:[{label:"PostgreSQL",value:"postgresql"},{label:"MySQL",value:"mysql"},{label:"HTTP",value:"http"}],value:r,onChange:c=>s(c)}),l&&a.jsx(rr,{styles:t}),l&&a.jsx(er,{submit:i,styles:t,type:r}),u&&a.jsx(nr,{submit:i,styles:t})]})}function Nt({onSuccess:e,styles:t=ue}){const{t:n}=L.useTranslation(),[r,s]=C.useState(!1),i=()=>s(!0),l=()=>s(!1),u=()=>{e(),l()};return a.jsxs(a.Fragment,{children:[a.jsx(h.Modal,{opened:r,onClose:()=>s(!1),title:n("datasource.add"),trapFocus:!0,onDragStart:c=>{c.stopPropagation()},children:a.jsx(ar,{postSubmit:u,styles:t})}),a.jsx(h.Button,{size:t.button.size,onClick:i,leftIcon:a.jsx(oe.PlaylistAdd,{size:20}),children:n("datasource.add")})]})}const sr={http:"HTTP",mysql:"MySQL",postgresql:"PostgreSQL"},ir={http:a.jsx(se.IconNetwork,{}),mysql:a.jsx(se.IconBrandMysql,{}),postgresql:a.jsx(se.IconDatabase,{})};function or({type:e}){return a.jsxs(h.Group,{children:[a.jsx(h.ActionIcon,{size:"xs",sx:{transform:"none !important"},children:ir[e]}),a.jsx(h.Text,{sx:{cusor:"default",userSelect:"none"},children:sr[e]})]})}function $t({id:e,name:t,isProtected:n,onSuccess:r,styles:s=ue}){const{t:i}=L.useTranslation(),l=Ae.useModals(),u=async()=>{e&&(I.showNotification({id:"for-deleting",title:i("common.state.pending"),message:i("datasource.state.deleting"),loading:!0,autoClose:!1}),await K.datasource.delete(e),I.updateNotification({id:"for-deleting",title:i("common.state.successful"),message:i("datasource.state.deleted",{name:t}),color:"green",autoClose:!0}),r())},c=()=>l.openConfirmModal({title:i("datasource.delete.title"),children:a.jsx(h.Text,{size:s.size,children:i("datasource.delete.hint")}),labels:{confirm:i("common.actions.confirm"),cancel:i("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:u,cancelProps:{size:s.button.size},confirmProps:{color:"red",size:s.button.size}});return n?a.jsx(h.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:i("datasource.delete.cant_delete_preset"),children:a.jsx(h.Button,{size:s.button.size,color:"gray",variant:"light",leftIcon:a.jsx(se.IconLock,{size:16}),sx:{transform:"none !important"},children:i("common.actions.delete")})}):a.jsx(h.Button,{size:s.button.size,color:"red",onClick:c,leftIcon:a.jsx(oe.Trash,{size:16}),children:i("common.actions.delete")})}const Ft={pre:["function pre_process({ method, url, params, headers, data }, utils) {"," // your code goes here"," return { method, url, params, headers, data }","}"].join(`
|
|
30
30
|
`),post:["function post_process(res, utils) {"," // your code goes here"," return data","}"].join(`
|
|
@@ -41,4 +41,4 @@ Check the top-level render call using <`+E+">.")}return S}}function fn(o,S){{if(
|
|
|
41
41
|
`,empty:!0}):e.length===1&&e[0].content===""&&(e[0].content=`
|
|
42
42
|
`,e[0].empty=!0)},Yt=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},Ar=function(e){for(var t=[[]],n=[e],r=[0],s=[e.length],i=0,l=0,u=[],c=[u];l>-1;){for(;(i=r[l]++)<s[l];){var g=void 0,m=t[l],d=n[l],p=d[i];if(typeof p=="string"?(m=l>0?m:["plain"],g=p):(m=Yt(m,p.type),p.alias&&(m=Yt(m,p.alias)),g=p.content),typeof g!="string"){l++,t.push(m),n.push(g),r.push(0),s.push(g.length);continue}var f=g.split(Tr),y=f.length;u.push({types:m,content:f[0]});for(var b=1;b<y;b++)qt(u),c.push(u=[]),u.push({types:m,content:f[b]})}l--,t.pop(),n.pop(),r.pop(),s.pop()}return qt(u),c},kr=function(e,t){var n=e.plain,r=Object.create(null),s=e.styles.reduce(function(i,l){var u=l.languages,c=l.style;return u&&!u.includes(t)||l.types.forEach(function(g){var m=xe({},i[g],c);i[g]=m}),i},r);return s.root=n,s.plain=xe({},n,{backgroundColor:null}),s};function Ht(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)===-1&&(n[r]=e[r]);return n}var Cr=function(e){function t(){for(var n=this,r=[],s=arguments.length;s--;)r[s]=arguments[s];e.apply(this,r),Ye(this,"getThemeDict",function(i){if(n.themeDict!==void 0&&i.theme===n.prevTheme&&i.language===n.prevLanguage)return n.themeDict;n.prevTheme=i.theme,n.prevLanguage=i.language;var l=i.theme?kr(i.theme,i.language):void 0;return n.themeDict=l}),Ye(this,"getLineProps",function(i){var l=i.key,u=i.className,c=i.style,g=Ht(i,["key","className","style","line"]),m=g,d=xe({},m,{className:"token-line",style:void 0,key:void 0}),p=n.getThemeDict(n.props);return p!==void 0&&(d.style=p.plain),c!==void 0&&(d.style=d.style!==void 0?xe({},d.style,c):c),l!==void 0&&(d.key=l),u&&(d.className+=" "+u),d}),Ye(this,"getStyleForToken",function(i){var l=i.types,u=i.empty,c=l.length,g=n.getThemeDict(n.props);if(g!==void 0){{if(c===1&&l[0]==="plain")return u?{display:"inline-block"}:void 0;if(c===1&&!u)return g[l[0]]}var m=u?{display:"inline-block"}:{},d=l.map(function(p){return g[p]});return Object.assign.apply(Object,[m].concat(d))}}),Ye(this,"getTokenProps",function(i){var l=i.key,u=i.className,c=i.style,g=i.token,m=Ht(i,["key","className","style","token"]),d=m,p=xe({},d,{className:"token "+g.types.join(" "),children:g.content,style:n.getStyleForToken(g),key:void 0});return c!==void 0&&(p.style=p.style!==void 0?xe({},p.style,c):c),l!==void 0&&(p.key=l),u&&(p.className+=" "+u),p}),Ye(this,"tokenize",function(i,l,u,c){var g={code:l,grammar:u,language:c,tokens:[]};i.hooks.run("before-tokenize",g);var m=g.tokens=i.tokenize(g.code,g.grammar,g.language);return i.hooks.run("after-tokenize",g),m})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var r=this.props,s=r.Prism,i=r.language,l=r.code,u=r.children,c=this.getThemeDict(this.props),g=s.languages[i],m=g!==void 0?this.tokenize(s,l,g,i):[l],d=Ar(m);return u({tokens:d,className:"prism-code language-"+i,style:c!==void 0?c.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(C.Component);const jr=Cr;function Vt({copied:e}){return C.createElement("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:"1rem",height:"1rem"}},e?C.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):C.createElement("path",{d:"M5 2V1H10V2H5ZM4.75 0C4.33579 0 4 0.335786 4 0.75V1H3.5C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H11.5C12.3284 14 13 13.3284 13 12.5V2.5C13 1.67157 12.3284 1 11.5 1H11V0.75C11 0.335786 10.6642 0 10.25 0H4.75ZM11 2V2.25C11 2.66421 10.6642 3 10.25 3H4.75C4.33579 3 4 2.66421 4 2.25V2H3.5C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V2.5C12 2.22386 11.7761 2 11.5 2H11Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}Vt.displayName="@mantine/prism/CopyIcon";const Or=e=>({plain:{color:e.colors.gray[4],backgroundColor:e.colors.dark[8]},styles:[{types:["comment"],style:{color:e.colors.gray[6]}},{types:["string","inserted","selector","atrule"],style:{color:e.colors.teal[4]}},{types:["number"],style:{color:e.colors.blue[4]}},{types:["builtin","char","constant","function"],style:{color:e.colors.orange[5]}},{types:["punctuation"],style:{color:e.colors.gray[5]}},{types:["variable"],style:{color:e.colors.gray[5]}},{types:["class-name","attr-name"],style:{color:e.colors.yellow[5]}},{types:["tag","deleted"],style:{color:e.colors.red[6]}},{types:["operator"],style:{color:e.colors.gray[5]}},{types:["boolean"],style:{color:e.colors.red[6]}},{types:["keyword"],style:{color:e.colors.indigo[3]}},{types:["doctype"],style:{color:e.colors.gray[5]}},{types:["url"],style:{color:e.colors.gray[5]}}]}),Dr=e=>({plain:{color:e.colors.gray[9],backgroundColor:e.fn.rgba(e.colors.gray[0],.65)},styles:[{types:["comment"],style:{color:e.colors.gray[6]}},{types:["string","inserted"],style:{color:e.colors.indigo[9]}},{types:["number"],style:{color:e.colors.blue[7]}},{types:["builtin","char","constant","function","selector","atrule"],style:{color:e.colors.lime[9]}},{types:["punctuation"],style:{color:e.colors.gray[7]}},{types:["variable"],style:{color:e.colors.violet[9]}},{types:["attr-name"],style:{color:e.colors.green[9]}},{types:["class-name"],style:{color:e.colors.red[9]}},{types:["tag","deleted"],style:{color:e.colors.violet[9]}},{types:["operator"],style:{color:e.colors.red[9]}},{types:["boolean"],style:{color:e.colors.red[9]}},{types:["keyword"],style:{color:e.colors.red[9]}},{types:["doctype"],style:{color:e.colors.gray[7]}},{types:["url"],style:{color:e.colors.gray[7]}}]}),Ir=(e,t)=>t==="dark"?Or(e):Dr(e);var Rr=h.createStyles((e,{colorScheme:t,native:n,maxLineSize:r,radius:s})=>({scrollArea:{},root:{position:"relative"},code:{boxSizing:"border-box",position:"relative",fontFamily:e.fontFamilyMonospace,lineHeight:1.7,fontSize:h.rem(13),overflowX:n?"auto":void 0,borderRadius:e.fn.radius(s),padding:`${e.spacing.sm} 0`,"&.mantine-Prism-code":{marginTop:0,marginBottom:0}},copy:{position:"absolute",top:e.spacing.xs,right:e.dir==="ltr"?e.spacing.xs:"unset",left:e.dir==="rtl"?e.spacing.xs:"unset",zIndex:2,"&, &:hover":{backgroundColor:t==="dark"?e.colors.dark[8]:e.colors.gray[0]}},line:{display:"flex",width:"100%",padding:`0 ${e.spacing.md}`},lineNumber:{color:t==="dark"?e.colors.dark[4]:e.colors.gray[4],textAlign:"right",width:`calc(8 * ${h.rem(r)})`,marginRight:e.dir==="ltr"?e.spacing.xs:void 0,marginLeft:e.dir==="rtl"?e.spacing.xs:void 0,userSelect:"none"},lineContent:{width:"100%"}}));const Lr=Rr;var Nr=Object.defineProperty,$r=Object.defineProperties,Fr=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,Wt=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,Zt=(e,t,n)=>t in e?Nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Re=(e,t)=>{for(var n in t||(t={}))Wt.call(t,n)&&Zt(e,n,t[n]);if(nt)for(var n of nt(t))Kt.call(t,n)&&Zt(e,n,t[n]);return e},He=(e,t)=>$r(e,Fr(t)),zr=(e,t)=>{var n={};for(var r in e)Wt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&nt)for(var r of nt(e))t.indexOf(r)<0&&Kt.call(e,r)&&(n[r]=e[r]);return n};const Pr={noCopy:!1,copyLabel:"Copy code",copiedLabel:"Copied",withLineNumbers:!1,trim:!0,highlightLines:{},scrollAreaComponent:h.ScrollArea,getPrismTheme:Ir},ht=C.forwardRef((e,t)=>{const n=h.useComponentDefaultProps("Prism",Pr,e),{className:r,children:s,language:i,noCopy:l,classNames:u,styles:c,copyLabel:g,copiedLabel:m,withLineNumbers:d,highlightLines:p,scrollAreaComponent:f,colorScheme:y,trim:b,unstyled:_,radius:w,getPrismTheme:x,variant:T}=n,O=zr(n,["className","children","language","noCopy","classNames","styles","copyLabel","copiedLabel","withLineNumbers","highlightLines","scrollAreaComponent","colorScheme","trim","unstyled","radius","getPrismTheme","variant"]),Y=b&&typeof s=="string"?s.trim():s,Q=Y.split(`
|
|
43
43
|
`).length.toString().length,P=h.useMantineTheme(),H=wn.useClipboard(),B=y||P.colorScheme,{classes:ee,cx:z}=Lr({colorScheme:B,native:f!==h.ScrollArea,maxLineSize:Q,radius:w},{name:"Prism",classNames:u,styles:c,unstyled:_,variant:T});return C.createElement(h.Box,He(Re({className:z(ee.root,r),ref:t},O),{translate:"no"}),!l&&C.createElement(h.Tooltip,{label:H.copied?m:g,position:"left",withArrow:!0,arrowSize:6,offset:6,color:H.copied?"teal":void 0,unstyled:_},C.createElement(h.ActionIcon,{className:ee.copy,"aria-label":H.copied?m:g,onClick:()=>H.copy(Y),unstyled:_},C.createElement(Vt,{copied:H.copied}))),C.createElement(jr,He(Re({},Er),{theme:x(P,B),code:Y,language:i}),({className:Z,style:U,tokens:J,getLineProps:G,getTokenProps:re})=>C.createElement(f,{className:ee.scrollArea,dir:"ltr"},C.createElement("pre",{className:z(ee.code,Z),style:U,dir:"ltr"},J.map((X,te)=>{var ce,de,ge,_e;if(te===J.length-1&&X.length===1&&X[0].content===`
|
|
44
|
-
`)return null;const ae=te+1,fe=G({line:X,key:te}),Ee=ae in p,he=B==="dark"?P.fn.rgba(P.fn.themeColor((ce=p[ae])==null?void 0:ce.color,9),.25):P.fn.themeColor((de=p[ae])==null?void 0:de.color,0);return C.createElement("div",He(Re({},fe),{className:z(ee.line,fe.className),style:Re({},Ee?{backgroundColor:he}:null)}),d&&C.createElement("div",{className:ee.lineNumber,style:{color:Ee?P.fn.themeColor((ge=p[ae])==null?void 0:ge.color,B==="dark"?5:8):void 0}},((_e=p[ae])==null?void 0:_e.label)||ae),C.createElement("div",{className:ee.lineContent},X.map((We,Le)=>{var Ne,Te;const $e=re({token:We,key:Le});return C.createElement("span",He(Re({},$e),{style:He(Re({},$e.style),{color:Ee?P.fn.themeColor((Ne=p[ae])==null?void 0:Ne.color,B==="dark"?5:8):(Te=$e==null?void 0:$e.style)==null?void 0:Te.color})}))})))}).filter(Boolean)))))});ht.displayName="@mantine/prism/Prism";var Br=h.createStyles((e,{radius:t})=>({tab:{paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm,height:h.rem(34),border:`${h.rem(1)} solid ${e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[3]}`,borderBottom:0,fontSize:e.fontSizes.sm,color:e.colorScheme==="dark"?e.colors.dark[1]:e.colors.gray[7],backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,borderRadius:0,"&:first-of-type":{borderTopLeftRadius:e.radius.sm},"&:not(:first-of-type)":{borderLeft:0},"&:last-of-type":{borderTopRightRadius:e.radius.sm},"&:hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.colors.gray[0]},"&[data-active]":{color:e.colorScheme==="dark"?e.white:e.black,backgroundColor:e.colorScheme==="dark"?e.colors.dark[8]:e.fn.rgba(e.colors.gray[0],.65),"&::before":{backgroundColor:"transparent"}}},prism:{borderRadius:e.fn.radius(t),borderTopRightRadius:0,borderTopLeftRadius:0,border:`${h.rem(1)} solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,borderTop:0,overflow:"hidden"},code:{borderTopRightRadius:0,borderTopLeftRadius:0,border:0}}));const Xt=Br;var Mr=Object.defineProperty,Gr=Object.defineProperties,Ur=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,en=(e,t,n)=>t in e?Mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tn=(e,t)=>{for(var n in t||(t={}))Qt.call(t,n)&&en(e,n,t[n]);if(rt)for(var n of rt(t))Jt.call(t,n)&&en(e,n,t[n]);return e},qr=(e,t)=>Gr(e,Ur(t)),Yr=(e,t)=>{var n={};for(var r in e)Qt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&rt)for(var r of rt(e))t.indexOf(r)<0&&Jt.call(e,r)&&(n[r]=e[r]);return n};function Hr(e){const{classes:t}=Xt({radius:e.radius});return C.createElement(h.Tabs,qr(tn({},e),{variant:"outline",classNames:{tab:t.tab},translate:"no"}))}function Vr(e){var t=e,{language:n,children:r,radius:s,noCopy:i,copyLabel:l,copiedLabel:u,withLineNumbers:c,highlightLines:g,scrollAreaComponent:m,trim:d,getPrismTheme:p,colorScheme:f,variant:y}=t,b=Yr(t,["language","children","radius","noCopy","copyLabel","copiedLabel","withLineNumbers","highlightLines","scrollAreaComponent","trim","getPrismTheme","colorScheme","variant"]);const{classes:_}=Xt({radius:s});return C.createElement(h.Tabs.Panel,tn({},b),C.createElement(ht,{language:n,classNames:{root:_.prism,code:_.code},radius:s,noCopy:i,copyLabel:l,copiedLabel:u,withLineNumbers:c,highlightLines:g,scrollAreaComponent:m,trim:d,getPrismTheme:p,colorScheme:f,variant:y},r))}const Ve=ht;Ve.Tabs=Hr,Ve.Tab=h.Tabs.Tab,Ve.TabsList=h.Tabs.List,Ve.Panel=Vr;function nn({id:e,onSuccess:t,styles:n=Ie}){const{t:r}=L.useTranslation(),s=Ae.useModals(),i=async()=>{if(e){I.showNotification({id:"for-deleting",title:r("common.state.pending"),message:r("global_sql_snippet.state.deleting"),loading:!0,autoClose:!1});try{await K.sql_snippet.delete(e),I.updateNotification({id:"for-deleting",title:r("common.state.successful"),message:r("global_sql_snippet.state.deleted",{name:e}),color:"green",autoClose:!0}),t()}catch(u){I.updateNotification({id:"for-deleting",title:r("common.state.failed"),message:u.message,color:"red",autoClose:!0})}}},l=()=>s.openConfirmModal({title:r("global_sql_snippet.delete"),labels:{confirm:r("common.actions.confirm"),cancel:r("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:i,cancelProps:{size:n.button.size},confirmProps:{color:"red",size:n.button.size}});return a.jsx(h.Button,{size:n.button.size,color:"red",onClick:l,leftIcon:a.jsx(oe.Trash,{size:20}),children:r("common.actions.edit")})}function Wr({content:e}){return a.jsxs(h.HoverCard,{width:"60vw",shadow:"md",children:[a.jsx(h.HoverCard.Target,{children:a.jsx(h.ActionIcon,{size:16,children:a.jsx(se.IconEye,{})})}),a.jsx(h.HoverCard.Dropdown,{children:a.jsx(Ve,{language:"sql",noCopy:!0,withLineNumbers:!0,children:e})})]})}const Kr=qe("DataSourceList",({styles:e=Ie})=>{const{t}=L.useTranslation(),{data:n=[],loading:r,refresh:s}=be.useRequest(async()=>{const{data:i}=await K.sql_snippet.list({pagination:{page:1,pagesize:10}});return i},{refreshDeps:[]});return a.jsxs(a.Fragment,{children:[a.jsxs(h.Group,{pt:e.spacing,position:"apart",children:[a.jsx(h.Alert,{children:t("global_sql_snippet.description")}),a.jsx(Gt,{onSuccess:s})]}),a.jsxs(h.Box,{mt:e.spacing,sx:{position:"relative"},children:[a.jsx(h.LoadingOverlay,{visible:r}),a.jsxs(h.Table,{horizontalSpacing:e.spacing,verticalSpacing:e.spacing,fontSize:e.size,highlightOnHover:!0,children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:t("common.name")}),a.jsx("th",{}),a.jsx("th",{children:t("common.created_at")}),a.jsx("th",{children:t("common.updated_at")}),a.jsx("th",{children:t("common.action")})]})}),a.jsx("tbody",{children:n.map(i=>{const{id:l,content:u,create_time:c,update_time:g}=i;return a.jsxs("tr",{children:[a.jsx("td",{children:l}),a.jsx("td",{width:50,children:a.jsx(Wr,{content:u})}),a.jsx("td",{width:200,children:c}),a.jsx("td",{width:200,children:g}),a.jsx("td",{width:400,children:a.jsxs(h.Group,{position:"left",children:[a.jsx(Ut,{...i,onSuccess:s}),a.jsx(nn,{id:l,onSuccess:s})]})})]},l)})})]})]})]})}),Zr=()=>Promise.resolve().then(()=>Xr).then(({version:e})=>(console.log(`[@devtable/dashboard] version: ${e}`),e)),Xr=Object.freeze(Object.defineProperty({__proto__:null,version:"13.
|
|
44
|
+
`)return null;const ae=te+1,fe=G({line:X,key:te}),Ee=ae in p,he=B==="dark"?P.fn.rgba(P.fn.themeColor((ce=p[ae])==null?void 0:ce.color,9),.25):P.fn.themeColor((de=p[ae])==null?void 0:de.color,0);return C.createElement("div",He(Re({},fe),{className:z(ee.line,fe.className),style:Re({},Ee?{backgroundColor:he}:null)}),d&&C.createElement("div",{className:ee.lineNumber,style:{color:Ee?P.fn.themeColor((ge=p[ae])==null?void 0:ge.color,B==="dark"?5:8):void 0}},((_e=p[ae])==null?void 0:_e.label)||ae),C.createElement("div",{className:ee.lineContent},X.map((We,Le)=>{var Ne,Te;const $e=re({token:We,key:Le});return C.createElement("span",He(Re({},$e),{style:He(Re({},$e.style),{color:Ee?P.fn.themeColor((Ne=p[ae])==null?void 0:Ne.color,B==="dark"?5:8):(Te=$e==null?void 0:$e.style)==null?void 0:Te.color})}))})))}).filter(Boolean)))))});ht.displayName="@mantine/prism/Prism";var Br=h.createStyles((e,{radius:t})=>({tab:{paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm,height:h.rem(34),border:`${h.rem(1)} solid ${e.colorScheme==="dark"?e.colors.dark[5]:e.colors.gray[3]}`,borderBottom:0,fontSize:e.fontSizes.sm,color:e.colorScheme==="dark"?e.colors.dark[1]:e.colors.gray[7],backgroundColor:e.colorScheme==="dark"?e.colors.dark[6]:e.white,borderRadius:0,"&:first-of-type":{borderTopLeftRadius:e.radius.sm},"&:not(:first-of-type)":{borderLeft:0},"&:last-of-type":{borderTopRightRadius:e.radius.sm},"&:hover":{backgroundColor:e.colorScheme==="dark"?e.colors.dark[7]:e.colors.gray[0]},"&[data-active]":{color:e.colorScheme==="dark"?e.white:e.black,backgroundColor:e.colorScheme==="dark"?e.colors.dark[8]:e.fn.rgba(e.colors.gray[0],.65),"&::before":{backgroundColor:"transparent"}}},prism:{borderRadius:e.fn.radius(t),borderTopRightRadius:0,borderTopLeftRadius:0,border:`${h.rem(1)} solid ${e.colorScheme==="dark"?e.colors.dark[4]:e.colors.gray[3]}`,borderTop:0,overflow:"hidden"},code:{borderTopRightRadius:0,borderTopLeftRadius:0,border:0}}));const Xt=Br;var Mr=Object.defineProperty,Gr=Object.defineProperties,Ur=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,en=(e,t,n)=>t in e?Mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tn=(e,t)=>{for(var n in t||(t={}))Qt.call(t,n)&&en(e,n,t[n]);if(rt)for(var n of rt(t))Jt.call(t,n)&&en(e,n,t[n]);return e},qr=(e,t)=>Gr(e,Ur(t)),Yr=(e,t)=>{var n={};for(var r in e)Qt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&rt)for(var r of rt(e))t.indexOf(r)<0&&Jt.call(e,r)&&(n[r]=e[r]);return n};function Hr(e){const{classes:t}=Xt({radius:e.radius});return C.createElement(h.Tabs,qr(tn({},e),{variant:"outline",classNames:{tab:t.tab},translate:"no"}))}function Vr(e){var t=e,{language:n,children:r,radius:s,noCopy:i,copyLabel:l,copiedLabel:u,withLineNumbers:c,highlightLines:g,scrollAreaComponent:m,trim:d,getPrismTheme:p,colorScheme:f,variant:y}=t,b=Yr(t,["language","children","radius","noCopy","copyLabel","copiedLabel","withLineNumbers","highlightLines","scrollAreaComponent","trim","getPrismTheme","colorScheme","variant"]);const{classes:_}=Xt({radius:s});return C.createElement(h.Tabs.Panel,tn({},b),C.createElement(ht,{language:n,classNames:{root:_.prism,code:_.code},radius:s,noCopy:i,copyLabel:l,copiedLabel:u,withLineNumbers:c,highlightLines:g,scrollAreaComponent:m,trim:d,getPrismTheme:p,colorScheme:f,variant:y},r))}const Ve=ht;Ve.Tabs=Hr,Ve.Tab=h.Tabs.Tab,Ve.TabsList=h.Tabs.List,Ve.Panel=Vr;function nn({id:e,onSuccess:t,styles:n=Ie}){const{t:r}=L.useTranslation(),s=Ae.useModals(),i=async()=>{if(e){I.showNotification({id:"for-deleting",title:r("common.state.pending"),message:r("global_sql_snippet.state.deleting"),loading:!0,autoClose:!1});try{await K.sql_snippet.delete(e),I.updateNotification({id:"for-deleting",title:r("common.state.successful"),message:r("global_sql_snippet.state.deleted",{name:e}),color:"green",autoClose:!0}),t()}catch(u){I.updateNotification({id:"for-deleting",title:r("common.state.failed"),message:u.message,color:"red",autoClose:!0})}}},l=()=>s.openConfirmModal({title:r("global_sql_snippet.delete"),labels:{confirm:r("common.actions.confirm"),cancel:r("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:i,cancelProps:{size:n.button.size},confirmProps:{color:"red",size:n.button.size}});return a.jsx(h.Button,{size:n.button.size,color:"red",onClick:l,leftIcon:a.jsx(oe.Trash,{size:20}),children:r("common.actions.edit")})}function Wr({content:e}){return a.jsxs(h.HoverCard,{width:"60vw",shadow:"md",children:[a.jsx(h.HoverCard.Target,{children:a.jsx(h.ActionIcon,{size:16,children:a.jsx(se.IconEye,{})})}),a.jsx(h.HoverCard.Dropdown,{children:a.jsx(Ve,{language:"sql",noCopy:!0,withLineNumbers:!0,children:e})})]})}const Kr=qe("DataSourceList",({styles:e=Ie})=>{const{t}=L.useTranslation(),{data:n=[],loading:r,refresh:s}=be.useRequest(async()=>{const{data:i}=await K.sql_snippet.list({pagination:{page:1,pagesize:10}});return i},{refreshDeps:[]});return a.jsxs(a.Fragment,{children:[a.jsxs(h.Group,{pt:e.spacing,position:"apart",children:[a.jsx(h.Alert,{children:t("global_sql_snippet.description")}),a.jsx(Gt,{onSuccess:s})]}),a.jsxs(h.Box,{mt:e.spacing,sx:{position:"relative"},children:[a.jsx(h.LoadingOverlay,{visible:r}),a.jsxs(h.Table,{horizontalSpacing:e.spacing,verticalSpacing:e.spacing,fontSize:e.size,highlightOnHover:!0,children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:t("common.name")}),a.jsx("th",{}),a.jsx("th",{children:t("common.created_at")}),a.jsx("th",{children:t("common.updated_at")}),a.jsx("th",{children:t("common.action")})]})}),a.jsx("tbody",{children:n.map(i=>{const{id:l,content:u,create_time:c,update_time:g}=i;return a.jsxs("tr",{children:[a.jsx("td",{children:l}),a.jsx("td",{width:50,children:a.jsx(Wr,{content:u})}),a.jsx("td",{width:200,children:c}),a.jsx("td",{width:200,children:g}),a.jsx("td",{width:400,children:a.jsxs(h.Group,{position:"left",children:[a.jsx(Ut,{...i,onSuccess:s}),a.jsx(nn,{id:l,onSuccess:s})]})})]},l)})})]})]})]})}),Zr=()=>Promise.resolve().then(()=>Xr).then(({version:e})=>(console.log(`[@devtable/dashboard] version: ${e}`),e)),Xr=Object.freeze(Object.defineProperty({__proto__:null,version:"13.8.0"},Symbol.toStringTag,{value:"Module"}));k.APIClient=M,k.APIKeyList=Sr,k.AccountList=mr,k.AddAPIKey=Bt,k.AddAccount=zt,k.AddDataSource=Nt,k.AddSQLSnippet=Gt,k.DataSourceList=dr,k.DefaultApiClient=wt,k.DeleteAPIKey=Mt,k.DeleteAccount=Pt,k.DeleteDataSource=$t,k.DeleteSQLSnippet=nn,k.FacadeApiClient=Et,k.Login=vr,k.SQLSnippetList=Kr,k.UpdateSQLSnippet=Ut,k.configureAPIClient=At,k.facadeApiClient=Tt,k.getVersion=Zr,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})});
|
package/dist/stats.html
CHANGED
|
@@ -6157,7 +6157,7 @@ var drawChart = (function (exports) {
|
|
|
6157
6157
|
</script>
|
|
6158
6158
|
<script>
|
|
6159
6159
|
/*<!--*/
|
|
6160
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"settings-form.umd.js","children":[{"name":"\u0000/Users/leto/github/merico-dev/table/node_modules/react","children":[{"uid":"594d-171","name":"jsx-runtime.js?commonjs-module"},{"name":"cjs","children":[{"uid":"594d-173","name":"react-jsx-runtime.production.min.js?commonjs-exports"},{"uid":"594d-177","name":"react-jsx-runtime.development.js?commonjs-exports"}]}]},{"name":"Users/leto/github/merico-dev/table","children":[{"name":"node_modules","children":[{"name":"react","children":[{"name":"cjs","children":[{"uid":"594d-175","name":"react-jsx-runtime.production.min.js"},{"uid":"594d-179","name":"react-jsx-runtime.development.js"}]},{"uid":"594d-181","name":"jsx-runtime.js"}]},{"name":"dayjs/esm","children":[{"uid":"594d-199","name":"constant.js"},{"name":"locale/en.js","uid":"594d-201"},{"uid":"594d-203","name":"utils.js"},{"uid":"594d-205","name":"index.js"}]},{"name":"prism-react-renderer","children":[{"name":"prism/index.js","uid":"594d-281"},{"name":"themes/duotoneDark/index.js","uid":"594d-283"},{"name":"dist/index.js","uid":"594d-285"}]},{"name":"@mantine/prism/esm","children":[{"name":"Prism","children":[{"uid":"594d-287","name":"CopyIcon.js"},{"uid":"594d-289","name":"prism-theme.js"},{"uid":"594d-291","name":"Prism.styles.js"},{"uid":"594d-293","name":"Prism.js"}]},{"name":"PrismTabs","children":[{"uid":"594d-295","name":"PrismTabs.styles.js"},{"uid":"594d-297","name":"PrismTabs.js"}]},{"uid":"594d-299","name":"index.js"}]}]},{"name":"shared/src/api-client","children":[{"uid":"594d-183","name":"utils.ts"},{"uid":"594d-185","name":"default-api-client.ts"},{"uid":"594d-187","name":"facade-api-client.ts"}]}]},{"name":"src","children":[{"name":"api-caller","children":[{"uid":"594d-189","name":"request.ts"},{"uid":"594d-191","name":"account.ts"},{"uid":"594d-193","name":"api-key.ts"},{"uid":"594d-195","name":"datasource.ts"},{"uid":"594d-197","name":"role.ts"},{"uid":"594d-207","name":"sql_snippet.ts"},{"uid":"594d-209","name":"index.ts"}]},{"name":"datasource","children":[{"uid":"594d-211","name":"styles.ts"},{"name":"add-data-source","children":[{"name":"forms","children":[{"uid":"594d-229","name":"database.tsx"},{"uid":"594d-235","name":"http.tsx"}]},{"uid":"594d-237","name":"db-permission-tips.tsx"},{"uid":"594d-239","name":"index.tsx"}]},{"name":"components","children":[{"name":"function-string-field","children":[{"uid":"594d-231","name":"function-string-editor.tsx"},{"uid":"594d-233","name":"index.tsx"}]},{"uid":"594d-241","name":"data-source-icon.tsx"}]},{"uid":"594d-243","name":"delete-data-source.tsx"},{"name":"edit-data-source","children":[{"name":"forms/http.tsx","uid":"594d-245"},{"uid":"594d-247","name":"index.tsx"}]},{"uid":"594d-249","name":"data-source-list.tsx"}]},{"name":"components","children":[{"uid":"594d-213","name":"minimal-mocaco-editor.tsx"},{"uid":"594d-215","name":"submit-form-button.tsx"},{"uid":"594d-227","name":"with-entry.tsx"}]},{"name":"i18n","children":[{"uid":"594d-217","name":"en.ts"},{"uid":"594d-219","name":"zh.ts"},{"uid":"594d-221","name":"i18n.ts"},{"uid":"594d-223","name":"i18next-context.tsx"}]},{"name":"utils/load-monaco-editor.ts","uid":"594d-225"},{"name":"account","children":[{"uid":"594d-251","name":"role-selector.tsx"},{"uid":"594d-253","name":"styles.ts"},{"uid":"594d-255","name":"add-account.tsx"},{"uid":"594d-257","name":"delete-account.tsx"},{"uid":"594d-259","name":"edit-account.tsx"},{"uid":"594d-261","name":"account-list.tsx"},{"name":"login","children":[{"uid":"594d-263","name":"form.tsx"},{"uid":"594d-265","name":"index.tsx"}]}]},{"name":"api-key","children":[{"uid":"594d-267","name":"styles.ts"},{"uid":"594d-269","name":"add-api-key.tsx"},{"uid":"594d-271","name":"delete-api-key.tsx"},{"uid":"594d-273","name":"api-key-list.tsx"}]},{"name":"sql_snippet","children":[{"uid":"594d-275","name":"styles.ts"},{"uid":"594d-277","name":"add-sql_snippet.tsx"},{"uid":"594d-279","name":"update-sql_snippet.tsx"},{"uid":"594d-301","name":"delete-sql_snippet.tsx"},{"uid":"594d-303","name":"sql_snippet-list.tsx"}]},{"uid":"594d-305","name":"index.ts"}]},{"uid":"594d-307","name":"package.json"}]}],"isRoot":true},"nodeParts":{"594d-171":{"renderedLength":33,"gzipLength":0,"brotliLength":0,"metaUid":"594d-170"},"594d-173":{"renderedLength":42,"gzipLength":0,"brotliLength":0,"metaUid":"594d-172"},"594d-175":{"renderedLength":1217,"gzipLength":0,"brotliLength":0,"metaUid":"594d-174"},"594d-177":{"renderedLength":39,"gzipLength":0,"brotliLength":0,"metaUid":"594d-176"},"594d-179":{"renderedLength":45245,"gzipLength":0,"brotliLength":0,"metaUid":"594d-178"},"594d-181":{"renderedLength":237,"gzipLength":0,"brotliLength":0,"metaUid":"594d-180"},"594d-183":{"renderedLength":949,"gzipLength":0,"brotliLength":0,"metaUid":"594d-182"},"594d-185":{"renderedLength":2140,"gzipLength":0,"brotliLength":0,"metaUid":"594d-184"},"594d-187":{"renderedLength":422,"gzipLength":0,"brotliLength":0,"metaUid":"594d-186"},"594d-189":{"renderedLength":426,"gzipLength":0,"brotliLength":0,"metaUid":"594d-188"},"594d-191":{"renderedLength":1913,"gzipLength":0,"brotliLength":0,"metaUid":"594d-190"},"594d-193":{"renderedLength":641,"gzipLength":0,"brotliLength":0,"metaUid":"594d-192"},"594d-195":{"renderedLength":730,"gzipLength":0,"brotliLength":0,"metaUid":"594d-194"},"594d-197":{"renderedLength":132,"gzipLength":0,"brotliLength":0,"metaUid":"594d-196"},"594d-199":{"renderedLength":1011,"gzipLength":0,"brotliLength":0,"metaUid":"594d-198"},"594d-201":{"renderedLength":496,"gzipLength":0,"brotliLength":0,"metaUid":"594d-200"},"594d-203":{"renderedLength":1623,"gzipLength":0,"brotliLength":0,"metaUid":"594d-202"},"594d-205":{"renderedLength":14006,"gzipLength":0,"brotliLength":0,"metaUid":"594d-204"},"594d-207":{"renderedLength":1079,"gzipLength":0,"brotliLength":0,"metaUid":"594d-206"},"594d-209":{"renderedLength":94,"gzipLength":0,"brotliLength":0,"metaUid":"594d-208"},"594d-211":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"594d-210"},"594d-213":{"renderedLength":682,"gzipLength":0,"brotliLength":0,"metaUid":"594d-212"},"594d-215":{"renderedLength":367,"gzipLength":0,"brotliLength":0,"metaUid":"594d-214"},"594d-217":{"renderedLength":4266,"gzipLength":0,"brotliLength":0,"metaUid":"594d-216"},"594d-219":{"renderedLength":4276,"gzipLength":0,"brotliLength":0,"metaUid":"594d-218"},"594d-221":{"renderedLength":253,"gzipLength":0,"brotliLength":0,"metaUid":"594d-220"},"594d-223":{"renderedLength":246,"gzipLength":0,"brotliLength":0,"metaUid":"594d-222"},"594d-225":{"renderedLength":551,"gzipLength":0,"brotliLength":0,"metaUid":"594d-224"},"594d-227":{"renderedLength":651,"gzipLength":0,"brotliLength":0,"metaUid":"594d-226"},"594d-229":{"renderedLength":3180,"gzipLength":0,"brotliLength":0,"metaUid":"594d-228"},"594d-231":{"renderedLength":502,"gzipLength":0,"brotliLength":0,"metaUid":"594d-230"},"594d-233":{"renderedLength":2382,"gzipLength":0,"brotliLength":0,"metaUid":"594d-232"},"594d-235":{"renderedLength":2892,"gzipLength":0,"brotliLength":0,"metaUid":"594d-234"},"594d-237":{"renderedLength":572,"gzipLength":0,"brotliLength":0,"metaUid":"594d-236"},"594d-239":{"renderedLength":3067,"gzipLength":0,"brotliLength":0,"metaUid":"594d-238"},"594d-241":{"renderedLength":790,"gzipLength":0,"brotliLength":0,"metaUid":"594d-240"},"594d-243":{"renderedLength":2213,"gzipLength":0,"brotliLength":0,"metaUid":"594d-242"},"594d-245":{"renderedLength":2536,"gzipLength":0,"brotliLength":0,"metaUid":"594d-244"},"594d-247":{"renderedLength":3542,"gzipLength":0,"brotliLength":0,"metaUid":"594d-246"},"594d-249":{"renderedLength":2550,"gzipLength":0,"brotliLength":0,"metaUid":"594d-248"},"594d-251":{"renderedLength":1458,"gzipLength":0,"brotliLength":0,"metaUid":"594d-250"},"594d-253":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"594d-252"},"594d-255":{"renderedLength":3801,"gzipLength":0,"brotliLength":0,"metaUid":"594d-254"},"594d-257":{"renderedLength":1777,"gzipLength":0,"brotliLength":0,"metaUid":"594d-256"},"594d-259":{"renderedLength":4913,"gzipLength":0,"brotliLength":0,"metaUid":"594d-258"},"594d-261":{"renderedLength":3049,"gzipLength":0,"brotliLength":0,"metaUid":"594d-260"},"594d-263":{"renderedLength":2208,"gzipLength":0,"brotliLength":0,"metaUid":"594d-262"},"594d-265":{"renderedLength":397,"gzipLength":0,"brotliLength":0,"metaUid":"594d-264"},"594d-267":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"594d-266"},"594d-269":{"renderedLength":4196,"gzipLength":0,"brotliLength":0,"metaUid":"594d-268"},"594d-271":{"renderedLength":1798,"gzipLength":0,"brotliLength":0,"metaUid":"594d-270"},"594d-273":{"renderedLength":2907,"gzipLength":0,"brotliLength":0,"metaUid":"594d-272"},"594d-275":{"renderedLength":102,"gzipLength":0,"brotliLength":0,"metaUid":"594d-274"},"594d-277":{"renderedLength":3371,"gzipLength":0,"brotliLength":0,"metaUid":"594d-276"},"594d-279":{"renderedLength":3408,"gzipLength":0,"brotliLength":0,"metaUid":"594d-278"},"594d-281":{"renderedLength":148464,"gzipLength":0,"brotliLength":0,"metaUid":"594d-280"},"594d-283":{"renderedLength":1767,"gzipLength":0,"brotliLength":0,"metaUid":"594d-282"},"594d-285":{"renderedLength":9562,"gzipLength":0,"brotliLength":0,"metaUid":"594d-284"},"594d-287":{"renderedLength":1394,"gzipLength":0,"brotliLength":0,"metaUid":"594d-286"},"594d-289":{"renderedLength":3572,"gzipLength":0,"brotliLength":0,"metaUid":"594d-288"},"594d-291":{"renderedLength":1430,"gzipLength":0,"brotliLength":0,"metaUid":"594d-290"},"594d-293":{"renderedLength":6332,"gzipLength":0,"brotliLength":0,"metaUid":"594d-292"},"594d-295":{"renderedLength":1639,"gzipLength":0,"brotliLength":0,"metaUid":"594d-294"},"594d-297":{"renderedLength":2707,"gzipLength":0,"brotliLength":0,"metaUid":"594d-296"},"594d-299":{"renderedLength":170,"gzipLength":0,"brotliLength":0,"metaUid":"594d-298"},"594d-301":{"renderedLength":1807,"gzipLength":0,"brotliLength":0,"metaUid":"594d-300"},"594d-303":{"renderedLength":3690,"gzipLength":0,"brotliLength":0,"metaUid":"594d-302"},"594d-305":{"renderedLength":183,"gzipLength":0,"brotliLength":0,"metaUid":"594d-304"},"594d-307":{"renderedLength":27,"gzipLength":0,"brotliLength":0,"metaUid":"594d-306"}},"nodeMetas":{"594d-170":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js?commonjs-module","moduleParts":{"settings-form.umd.js":"594d-171"},"imported":[],"importedBy":[{"uid":"594d-180"}]},"594d-172":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.production.min.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"594d-173"},"imported":[],"importedBy":[{"uid":"594d-174"}]},"594d-174":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.production.min.js","moduleParts":{"settings-form.umd.js":"594d-175"},"imported":[{"uid":"594d-329"},{"uid":"594d-172"},{"uid":"594d-332"}],"importedBy":[{"uid":"594d-180"}]},"594d-176":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.development.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"594d-177"},"imported":[],"importedBy":[{"uid":"594d-178"}]},"594d-178":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.development.js","moduleParts":{"settings-form.umd.js":"594d-179"},"imported":[{"uid":"594d-329"},{"uid":"594d-176"},{"uid":"594d-332"}],"importedBy":[{"uid":"594d-180"}]},"594d-180":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js","moduleParts":{"settings-form.umd.js":"594d-181"},"imported":[{"uid":"594d-329"},{"uid":"594d-170"},{"uid":"594d-174"},{"uid":"594d-178"}],"importedBy":[{"uid":"594d-238"},{"uid":"594d-248"},{"uid":"594d-242"},{"uid":"594d-254"},{"uid":"594d-260"},{"uid":"594d-256"},{"uid":"594d-264"},{"uid":"594d-268"},{"uid":"594d-272"},{"uid":"594d-270"},{"uid":"594d-276"},{"uid":"594d-278"},{"uid":"594d-302"},{"uid":"594d-300"},{"uid":"594d-228"},{"uid":"594d-234"},{"uid":"594d-236"},{"uid":"594d-240"},{"uid":"594d-246"},{"uid":"594d-250"},{"uid":"594d-258"},{"uid":"594d-262"},{"uid":"594d-212"},{"uid":"594d-232"},{"uid":"594d-214"},{"uid":"594d-226"},{"uid":"594d-244"},{"uid":"594d-230"},{"uid":"594d-222"}]},"594d-182":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/utils.ts","moduleParts":{"settings-form.umd.js":"594d-183"},"imported":[{"uid":"594d-334"}],"importedBy":[{"uid":"594d-328"},{"uid":"594d-184"}]},"594d-184":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/default-api-client.ts","moduleParts":{"settings-form.umd.js":"594d-185"},"imported":[{"uid":"594d-335"},{"uid":"594d-182"},{"uid":"594d-336"}],"importedBy":[{"uid":"594d-328"}]},"594d-186":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/facade-api-client.ts","moduleParts":{"settings-form.umd.js":"594d-187"},"imported":[],"importedBy":[{"uid":"594d-328"}]},"594d-188":{"id":"/src/api-caller/request.ts","moduleParts":{"settings-form.umd.js":"594d-189"},"imported":[{"uid":"594d-317"}],"importedBy":[{"uid":"594d-304"},{"uid":"594d-190"},{"uid":"594d-192"},{"uid":"594d-194"},{"uid":"594d-196"},{"uid":"594d-206"},{"uid":"594d-226"}]},"594d-190":{"id":"/src/api-caller/account.ts","moduleParts":{"settings-form.umd.js":"594d-191"},"imported":[{"uid":"594d-188"}],"importedBy":[{"uid":"594d-208"}]},"594d-192":{"id":"/src/api-caller/api-key.ts","moduleParts":{"settings-form.umd.js":"594d-193"},"imported":[{"uid":"594d-188"}],"importedBy":[{"uid":"594d-208"}]},"594d-194":{"id":"/src/api-caller/datasource.ts","moduleParts":{"settings-form.umd.js":"594d-195"},"imported":[{"uid":"594d-188"}],"importedBy":[{"uid":"594d-208"}]},"594d-196":{"id":"/src/api-caller/role.ts","moduleParts":{"settings-form.umd.js":"594d-197"},"imported":[{"uid":"594d-188"}],"importedBy":[{"uid":"594d-208"}]},"594d-198":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/constant.js","moduleParts":{"settings-form.umd.js":"594d-199"},"imported":[],"importedBy":[{"uid":"594d-204"},{"uid":"594d-202"}]},"594d-200":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/locale/en.js","moduleParts":{"settings-form.umd.js":"594d-201"},"imported":[],"importedBy":[{"uid":"594d-204"}]},"594d-202":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/utils.js","moduleParts":{"settings-form.umd.js":"594d-203"},"imported":[{"uid":"594d-198"}],"importedBy":[{"uid":"594d-204"}]},"594d-204":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/index.js","moduleParts":{"settings-form.umd.js":"594d-205"},"imported":[{"uid":"594d-198"},{"uid":"594d-200"},{"uid":"594d-202"}],"importedBy":[{"uid":"594d-206"}]},"594d-206":{"id":"/src/api-caller/sql_snippet.ts","moduleParts":{"settings-form.umd.js":"594d-207"},"imported":[{"uid":"594d-204"},{"uid":"594d-188"}],"importedBy":[{"uid":"594d-208"}]},"594d-208":{"id":"/src/api-caller/index.ts","moduleParts":{"settings-form.umd.js":"594d-209"},"imported":[{"uid":"594d-190"},{"uid":"594d-192"},{"uid":"594d-194"},{"uid":"594d-196"},{"uid":"594d-206"}],"importedBy":[{"uid":"594d-238"},{"uid":"594d-248"},{"uid":"594d-242"},{"uid":"594d-254"},{"uid":"594d-260"},{"uid":"594d-256"},{"uid":"594d-268"},{"uid":"594d-272"},{"uid":"594d-270"},{"uid":"594d-276"},{"uid":"594d-278"},{"uid":"594d-302"},{"uid":"594d-300"},{"uid":"594d-246"},{"uid":"594d-250"},{"uid":"594d-258"},{"uid":"594d-262"}]},"594d-210":{"id":"/src/datasource/styles.ts","moduleParts":{"settings-form.umd.js":"594d-211"},"imported":[],"importedBy":[{"uid":"594d-238"},{"uid":"594d-248"},{"uid":"594d-242"},{"uid":"594d-228"},{"uid":"594d-234"},{"uid":"594d-236"},{"uid":"594d-246"},{"uid":"594d-244"}]},"594d-212":{"id":"/src/components/minimal-mocaco-editor.tsx","moduleParts":{"settings-form.umd.js":"594d-213"},"imported":[{"uid":"594d-180"},{"uid":"594d-330"}],"importedBy":[{"uid":"594d-276"},{"uid":"594d-278"},{"uid":"594d-324"}]},"594d-214":{"id":"/src/components/submit-form-button.tsx","moduleParts":{"settings-form.umd.js":"594d-215"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-326"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-324"}]},"594d-216":{"id":"/src/i18n/en.ts","moduleParts":{"settings-form.umd.js":"594d-217"},"imported":[],"importedBy":[{"uid":"594d-220"}]},"594d-218":{"id":"/src/i18n/zh.ts","moduleParts":{"settings-form.umd.js":"594d-219"},"imported":[],"importedBy":[{"uid":"594d-220"}]},"594d-220":{"id":"/src/i18n/i18n.ts","moduleParts":{"settings-form.umd.js":"594d-221"},"imported":[{"uid":"594d-337"},{"uid":"594d-322"},{"uid":"594d-338"},{"uid":"594d-339"},{"uid":"594d-216"},{"uid":"594d-218"}],"importedBy":[{"uid":"594d-222"}]},"594d-222":{"id":"/src/i18n/i18next-context.tsx","moduleParts":{"settings-form.umd.js":"594d-223"},"imported":[{"uid":"594d-180"},{"uid":"594d-320"},{"uid":"594d-322"},{"uid":"594d-220"}],"importedBy":[{"uid":"594d-226"}]},"594d-224":{"id":"/src/utils/load-monaco-editor.ts","moduleParts":{"settings-form.umd.js":"594d-225"},"imported":[{"uid":"594d-330"},{"uid":"594d-320"}],"importedBy":[{"uid":"594d-226"}]},"594d-226":{"id":"/src/components/with-entry.tsx","moduleParts":{"settings-form.umd.js":"594d-227"},"imported":[{"uid":"594d-180"},{"uid":"594d-320"},{"uid":"594d-188"},{"uid":"594d-222"},{"uid":"594d-224"},{"uid":"594d-318"}],"importedBy":[{"uid":"594d-324"}]},"594d-228":{"id":"/src/datasource/add-data-source/forms/database.tsx","moduleParts":{"settings-form.umd.js":"594d-229"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-320"},{"uid":"594d-327"},{"uid":"594d-324"},{"uid":"594d-210"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-238"}]},"594d-230":{"id":"/src/datasource/components/function-string-field/function-string-editor.tsx","moduleParts":{"settings-form.umd.js":"594d-231"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-330"}],"importedBy":[{"uid":"594d-232"}]},"594d-232":{"id":"/src/datasource/components/function-string-field/index.tsx","moduleParts":{"settings-form.umd.js":"594d-233"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-323"},{"uid":"594d-320"},{"uid":"594d-321"},{"uid":"594d-230"},{"uid":"594d-322"},{"uid":"594d-326"}],"importedBy":[{"uid":"594d-234"},{"uid":"594d-244"}]},"594d-234":{"id":"/src/datasource/add-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"594d-235"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-327"},{"uid":"594d-210"},{"uid":"594d-232"},{"uid":"594d-324"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-238"}]},"594d-236":{"id":"/src/datasource/add-data-source/db-permission-tips.tsx","moduleParts":{"settings-form.umd.js":"594d-237"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-322"},{"uid":"594d-321"},{"uid":"594d-210"}],"importedBy":[{"uid":"594d-238"}]},"594d-238":{"id":"/src/datasource/add-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"594d-239"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-319"},{"uid":"594d-320"},{"uid":"594d-321"},{"uid":"594d-208"},{"uid":"594d-210"},{"uid":"594d-228"},{"uid":"594d-234"},{"uid":"594d-236"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-308"},{"uid":"594d-248"}]},"594d-240":{"id":"/src/datasource/components/data-source-icon.tsx","moduleParts":{"settings-form.umd.js":"594d-241"},"imported":[{"uid":"594d-180"},{"uid":"594d-326"},{"uid":"594d-318"}],"importedBy":[{"uid":"594d-248"}]},"594d-242":{"id":"/src/datasource/delete-data-source.tsx","moduleParts":{"settings-form.umd.js":"594d-243"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-325"},{"uid":"594d-319"},{"uid":"594d-326"},{"uid":"594d-321"},{"uid":"594d-208"},{"uid":"594d-210"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-308"},{"uid":"594d-248"}]},"594d-244":{"id":"/src/datasource/edit-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"594d-245"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-327"},{"uid":"594d-232"},{"uid":"594d-210"},{"uid":"594d-324"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-246"}]},"594d-246":{"id":"/src/datasource/edit-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"594d-247"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-319"},{"uid":"594d-326"},{"uid":"594d-320"},{"uid":"594d-208"},{"uid":"594d-210"},{"uid":"594d-244"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-248"}]},"594d-248":{"id":"/src/datasource/data-source-list.tsx","moduleParts":{"settings-form.umd.js":"594d-249"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-323"},{"uid":"594d-322"},{"uid":"594d-208"},{"uid":"594d-324"},{"uid":"594d-238"},{"uid":"594d-240"},{"uid":"594d-242"},{"uid":"594d-246"},{"uid":"594d-210"}],"importedBy":[{"uid":"594d-308"}]},"594d-250":{"id":"/src/account/role-selector.tsx","moduleParts":{"settings-form.umd.js":"594d-251"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-323"},{"uid":"594d-320"},{"uid":"594d-208"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-254"},{"uid":"594d-268"},{"uid":"594d-258"}]},"594d-252":{"id":"/src/account/styles.ts","moduleParts":{"settings-form.umd.js":"594d-253"},"imported":[],"importedBy":[{"uid":"594d-254"},{"uid":"594d-260"},{"uid":"594d-256"},{"uid":"594d-264"},{"uid":"594d-258"},{"uid":"594d-262"}]},"594d-254":{"id":"/src/account/add-account.tsx","moduleParts":{"settings-form.umd.js":"594d-255"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-319"},{"uid":"594d-320"},{"uid":"594d-327"},{"uid":"594d-321"},{"uid":"594d-208"},{"uid":"594d-324"},{"uid":"594d-250"},{"uid":"594d-252"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-309"},{"uid":"594d-260"}]},"594d-256":{"id":"/src/account/delete-account.tsx","moduleParts":{"settings-form.umd.js":"594d-257"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-325"},{"uid":"594d-319"},{"uid":"594d-321"},{"uid":"594d-208"},{"uid":"594d-252"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-309"},{"uid":"594d-260"}]},"594d-258":{"id":"/src/account/edit-account.tsx","moduleParts":{"settings-form.umd.js":"594d-259"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-319"},{"uid":"594d-320"},{"uid":"594d-327"},{"uid":"594d-321"},{"uid":"594d-208"},{"uid":"594d-250"},{"uid":"594d-252"},{"uid":"594d-324"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-260"}]},"594d-260":{"id":"/src/account/account-list.tsx","moduleParts":{"settings-form.umd.js":"594d-261"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-323"},{"uid":"594d-322"},{"uid":"594d-208"},{"uid":"594d-324"},{"uid":"594d-254"},{"uid":"594d-256"},{"uid":"594d-258"},{"uid":"594d-252"}],"importedBy":[{"uid":"594d-309"}]},"594d-262":{"id":"/src/account/login/form.tsx","moduleParts":{"settings-form.umd.js":"594d-263"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-319"},{"uid":"594d-327"},{"uid":"594d-208"},{"uid":"594d-252"},{"uid":"594d-324"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-264"}]},"594d-264":{"id":"/src/account/login/index.tsx","moduleParts":{"settings-form.umd.js":"594d-265"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-324"},{"uid":"594d-252"},{"uid":"594d-262"}],"importedBy":[{"uid":"594d-309"}]},"594d-266":{"id":"/src/api-key/styles.ts","moduleParts":{"settings-form.umd.js":"594d-267"},"imported":[],"importedBy":[{"uid":"594d-268"},{"uid":"594d-272"},{"uid":"594d-270"}]},"594d-268":{"id":"/src/api-key/add-api-key.tsx","moduleParts":{"settings-form.umd.js":"594d-269"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-325"},{"uid":"594d-319"},{"uid":"594d-320"},{"uid":"594d-327"},{"uid":"594d-321"},{"uid":"594d-250"},{"uid":"594d-208"},{"uid":"594d-324"},{"uid":"594d-266"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-310"},{"uid":"594d-272"}]},"594d-270":{"id":"/src/api-key/delete-api-key.tsx","moduleParts":{"settings-form.umd.js":"594d-271"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-325"},{"uid":"594d-319"},{"uid":"594d-321"},{"uid":"594d-208"},{"uid":"594d-266"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-310"},{"uid":"594d-272"}]},"594d-272":{"id":"/src/api-key/api-key-list.tsx","moduleParts":{"settings-form.umd.js":"594d-273"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-323"},{"uid":"594d-322"},{"uid":"594d-208"},{"uid":"594d-324"},{"uid":"594d-268"},{"uid":"594d-270"},{"uid":"594d-266"}],"importedBy":[{"uid":"594d-310"}]},"594d-274":{"id":"/src/sql_snippet/styles.ts","moduleParts":{"settings-form.umd.js":"594d-275"},"imported":[],"importedBy":[{"uid":"594d-276"},{"uid":"594d-278"},{"uid":"594d-302"},{"uid":"594d-300"}]},"594d-276":{"id":"/src/sql_snippet/add-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"594d-277"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-319"},{"uid":"594d-320"},{"uid":"594d-327"},{"uid":"594d-321"},{"uid":"594d-208"},{"uid":"594d-212"},{"uid":"594d-274"},{"uid":"594d-324"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-311"},{"uid":"594d-302"}]},"594d-278":{"id":"/src/sql_snippet/update-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"594d-279"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-319"},{"uid":"594d-326"},{"uid":"594d-320"},{"uid":"594d-327"},{"uid":"594d-208"},{"uid":"594d-212"},{"uid":"594d-274"},{"uid":"594d-324"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-311"},{"uid":"594d-302"}]},"594d-280":{"id":"/Users/leto/github/merico-dev/table/node_modules/prism-react-renderer/prism/index.js","moduleParts":{"settings-form.umd.js":"594d-281"},"imported":[],"importedBy":[{"uid":"594d-284"}]},"594d-282":{"id":"/Users/leto/github/merico-dev/table/node_modules/prism-react-renderer/themes/duotoneDark/index.js","moduleParts":{"settings-form.umd.js":"594d-283"},"imported":[],"importedBy":[{"uid":"594d-284"}]},"594d-284":{"id":"/Users/leto/github/merico-dev/table/node_modules/prism-react-renderer/dist/index.js","moduleParts":{"settings-form.umd.js":"594d-285"},"imported":[{"uid":"594d-280"},{"uid":"594d-282"},{"uid":"594d-320"}],"importedBy":[{"uid":"594d-292"}]},"594d-286":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/CopyIcon.js","moduleParts":{"settings-form.umd.js":"594d-287"},"imported":[{"uid":"594d-320"}],"importedBy":[{"uid":"594d-292"}]},"594d-288":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/prism-theme.js","moduleParts":{"settings-form.umd.js":"594d-289"},"imported":[],"importedBy":[{"uid":"594d-292"}]},"594d-290":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/Prism.styles.js","moduleParts":{"settings-form.umd.js":"594d-291"},"imported":[{"uid":"594d-318"}],"importedBy":[{"uid":"594d-292"}]},"594d-292":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/Prism.js","moduleParts":{"settings-form.umd.js":"594d-293"},"imported":[{"uid":"594d-320"},{"uid":"594d-284"},{"uid":"594d-318"},{"uid":"594d-333"},{"uid":"594d-286"},{"uid":"594d-288"},{"uid":"594d-290"}],"importedBy":[{"uid":"594d-298"},{"uid":"594d-296"}]},"594d-294":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/PrismTabs/PrismTabs.styles.js","moduleParts":{"settings-form.umd.js":"594d-295"},"imported":[{"uid":"594d-318"}],"importedBy":[{"uid":"594d-296"}]},"594d-296":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/PrismTabs/PrismTabs.js","moduleParts":{"settings-form.umd.js":"594d-297"},"imported":[{"uid":"594d-320"},{"uid":"594d-318"},{"uid":"594d-292"},{"uid":"594d-294"}],"importedBy":[{"uid":"594d-298"}]},"594d-298":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/index.js","moduleParts":{"settings-form.umd.js":"594d-299"},"imported":[{"uid":"594d-318"},{"uid":"594d-296"},{"uid":"594d-292"}],"importedBy":[{"uid":"594d-302"}]},"594d-300":{"id":"/src/sql_snippet/delete-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"594d-301"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-325"},{"uid":"594d-319"},{"uid":"594d-321"},{"uid":"594d-208"},{"uid":"594d-274"},{"uid":"594d-322"}],"importedBy":[{"uid":"594d-311"},{"uid":"594d-302"}]},"594d-302":{"id":"/src/sql_snippet/sql_snippet-list.tsx","moduleParts":{"settings-form.umd.js":"594d-303"},"imported":[{"uid":"594d-180"},{"uid":"594d-318"},{"uid":"594d-298"},{"uid":"594d-323"},{"uid":"594d-208"},{"uid":"594d-276"},{"uid":"594d-300"},{"uid":"594d-274"},{"uid":"594d-326"},{"uid":"594d-322"},{"uid":"594d-324"},{"uid":"594d-278"}],"importedBy":[{"uid":"594d-311"}]},"594d-304":{"id":"/src/index.ts","moduleParts":{"settings-form.umd.js":"594d-305"},"imported":[{"uid":"594d-308"},{"uid":"594d-309"},{"uid":"594d-310"},{"uid":"594d-311"},{"uid":"594d-188"},{"uid":"594d-312"},{"uid":"594d-313"},{"uid":"594d-314"},{"uid":"594d-315"},{"uid":"594d-316"},{"uid":"594d-306","dynamic":true}],"importedBy":[],"isEntry":true},"594d-306":{"id":"/package.json","moduleParts":{"settings-form.umd.js":"594d-307"},"imported":[],"importedBy":[{"uid":"594d-304"}]},"594d-308":{"id":"/src/datasource/index.tsx","moduleParts":{},"imported":[{"uid":"594d-238"},{"uid":"594d-248"},{"uid":"594d-242"}],"importedBy":[{"uid":"594d-304"}]},"594d-309":{"id":"/src/account/index.tsx","moduleParts":{},"imported":[{"uid":"594d-254"},{"uid":"594d-260"},{"uid":"594d-256"},{"uid":"594d-264"}],"importedBy":[{"uid":"594d-304"}]},"594d-310":{"id":"/src/api-key/index.tsx","moduleParts":{},"imported":[{"uid":"594d-268"},{"uid":"594d-272"},{"uid":"594d-270"}],"importedBy":[{"uid":"594d-304"}]},"594d-311":{"id":"/src/sql_snippet/index.tsx","moduleParts":{},"imported":[{"uid":"594d-276"},{"uid":"594d-278"},{"uid":"594d-302"},{"uid":"594d-300"}],"importedBy":[{"uid":"594d-304"}]},"594d-312":{"id":"/src/api-caller/account.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-304"}]},"594d-313":{"id":"/src/api-caller/api-key.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-304"}]},"594d-314":{"id":"/src/api-caller/datasource.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-304"}]},"594d-315":{"id":"/src/api-caller/role.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-304"}]},"594d-316":{"id":"/src/api-caller/sql_snippet.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-304"}]},"594d-317":{"id":"/Users/leto/github/merico-dev/table/shared/src/index.ts","moduleParts":{},"imported":[{"uid":"594d-328"}],"importedBy":[{"uid":"594d-188"}]},"594d-318":{"id":"@mantine/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-238"},{"uid":"594d-248"},{"uid":"594d-242"},{"uid":"594d-254"},{"uid":"594d-260"},{"uid":"594d-256"},{"uid":"594d-264"},{"uid":"594d-268"},{"uid":"594d-272"},{"uid":"594d-270"},{"uid":"594d-276"},{"uid":"594d-278"},{"uid":"594d-302"},{"uid":"594d-300"},{"uid":"594d-228"},{"uid":"594d-234"},{"uid":"594d-236"},{"uid":"594d-240"},{"uid":"594d-246"},{"uid":"594d-250"},{"uid":"594d-258"},{"uid":"594d-262"},{"uid":"594d-298"},{"uid":"594d-232"},{"uid":"594d-214"},{"uid":"594d-226"},{"uid":"594d-244"},{"uid":"594d-296"},{"uid":"594d-292"},{"uid":"594d-230"},{"uid":"594d-294"},{"uid":"594d-290"}],"isExternal":true},"594d-319":{"id":"@mantine/notifications","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-238"},{"uid":"594d-242"},{"uid":"594d-254"},{"uid":"594d-256"},{"uid":"594d-268"},{"uid":"594d-270"},{"uid":"594d-276"},{"uid":"594d-278"},{"uid":"594d-300"},{"uid":"594d-246"},{"uid":"594d-258"},{"uid":"594d-262"}],"isExternal":true},"594d-320":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-238"},{"uid":"594d-254"},{"uid":"594d-268"},{"uid":"594d-276"},{"uid":"594d-278"},{"uid":"594d-228"},{"uid":"594d-246"},{"uid":"594d-250"},{"uid":"594d-258"},{"uid":"594d-232"},{"uid":"594d-226"},{"uid":"594d-296"},{"uid":"594d-292"},{"uid":"594d-332"},{"uid":"594d-222"},{"uid":"594d-224"},{"uid":"594d-284"},{"uid":"594d-286"}],"isExternal":true},"594d-321":{"id":"tabler-icons-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-238"},{"uid":"594d-242"},{"uid":"594d-254"},{"uid":"594d-256"},{"uid":"594d-268"},{"uid":"594d-270"},{"uid":"594d-276"},{"uid":"594d-300"},{"uid":"594d-236"},{"uid":"594d-258"},{"uid":"594d-232"}],"isExternal":true},"594d-322":{"id":"react-i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-238"},{"uid":"594d-248"},{"uid":"594d-242"},{"uid":"594d-254"},{"uid":"594d-260"},{"uid":"594d-256"},{"uid":"594d-268"},{"uid":"594d-272"},{"uid":"594d-270"},{"uid":"594d-276"},{"uid":"594d-278"},{"uid":"594d-302"},{"uid":"594d-300"},{"uid":"594d-228"},{"uid":"594d-234"},{"uid":"594d-236"},{"uid":"594d-246"},{"uid":"594d-250"},{"uid":"594d-258"},{"uid":"594d-262"},{"uid":"594d-232"},{"uid":"594d-214"},{"uid":"594d-244"},{"uid":"594d-222"},{"uid":"594d-220"}],"isExternal":true},"594d-323":{"id":"ahooks","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-248"},{"uid":"594d-260"},{"uid":"594d-272"},{"uid":"594d-302"},{"uid":"594d-250"},{"uid":"594d-232"}],"isExternal":true},"594d-324":{"id":"/src/components/index.ts","moduleParts":{},"imported":[{"uid":"594d-212"},{"uid":"594d-214"},{"uid":"594d-226"}],"importedBy":[{"uid":"594d-248"},{"uid":"594d-254"},{"uid":"594d-260"},{"uid":"594d-264"},{"uid":"594d-268"},{"uid":"594d-272"},{"uid":"594d-276"},{"uid":"594d-278"},{"uid":"594d-302"},{"uid":"594d-228"},{"uid":"594d-234"},{"uid":"594d-258"},{"uid":"594d-262"},{"uid":"594d-244"}]},"594d-325":{"id":"@mantine/modals","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-242"},{"uid":"594d-256"},{"uid":"594d-268"},{"uid":"594d-270"},{"uid":"594d-300"}],"isExternal":true},"594d-326":{"id":"@tabler/icons-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-242"},{"uid":"594d-278"},{"uid":"594d-302"},{"uid":"594d-240"},{"uid":"594d-246"},{"uid":"594d-232"},{"uid":"594d-214"}],"isExternal":true},"594d-327":{"id":"react-hook-form","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-254"},{"uid":"594d-268"},{"uid":"594d-276"},{"uid":"594d-278"},{"uid":"594d-228"},{"uid":"594d-234"},{"uid":"594d-258"},{"uid":"594d-262"},{"uid":"594d-244"}],"isExternal":true},"594d-328":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/index.ts","moduleParts":{},"imported":[{"uid":"594d-331"},{"uid":"594d-182"},{"uid":"594d-184"},{"uid":"594d-186"}],"importedBy":[{"uid":"594d-317"}]},"594d-329":{"id":"\u0000commonjsHelpers.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-180"},{"uid":"594d-174"},{"uid":"594d-178"}]},"594d-330":{"id":"@monaco-editor/react","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-212"},{"uid":"594d-230"},{"uid":"594d-224"}],"isExternal":true},"594d-331":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-328"}]},"594d-332":{"id":"\u0000react?commonjs-external","moduleParts":{},"imported":[{"uid":"594d-320"}],"importedBy":[{"uid":"594d-174"},{"uid":"594d-178"}]},"594d-333":{"id":"@mantine/hooks","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-292"}],"isExternal":true},"594d-334":{"id":"crypto-js","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-182"}],"isExternal":true},"594d-335":{"id":"lodash","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-184"}],"isExternal":true},"594d-336":{"id":"axios","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-184"}],"isExternal":true},"594d-337":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-220"}],"isExternal":true},"594d-338":{"id":"i18next-browser-languagedetector","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-220"}],"isExternal":true},"594d-339":{"id":"intl-pluralrules","moduleParts":{},"imported":[],"importedBy":[{"uid":"594d-220"}],"isExternal":true}},"env":{"rollup":"3.29.4"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
|
|
6160
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"settings-form.umd.js","children":[{"name":"\u0000/Users/leto/github/merico-dev/table/node_modules/react","children":[{"uid":"120a-171","name":"jsx-runtime.js?commonjs-module"},{"name":"cjs","children":[{"uid":"120a-173","name":"react-jsx-runtime.production.min.js?commonjs-exports"},{"uid":"120a-177","name":"react-jsx-runtime.development.js?commonjs-exports"}]}]},{"name":"Users/leto/github/merico-dev/table","children":[{"name":"node_modules","children":[{"name":"react","children":[{"name":"cjs","children":[{"uid":"120a-175","name":"react-jsx-runtime.production.min.js"},{"uid":"120a-179","name":"react-jsx-runtime.development.js"}]},{"uid":"120a-181","name":"jsx-runtime.js"}]},{"name":"dayjs/esm","children":[{"uid":"120a-199","name":"constant.js"},{"name":"locale/en.js","uid":"120a-201"},{"uid":"120a-203","name":"utils.js"},{"uid":"120a-205","name":"index.js"}]},{"name":"prism-react-renderer","children":[{"name":"prism/index.js","uid":"120a-281"},{"name":"themes/duotoneDark/index.js","uid":"120a-283"},{"name":"dist/index.js","uid":"120a-285"}]},{"name":"@mantine/prism/esm","children":[{"name":"Prism","children":[{"uid":"120a-287","name":"CopyIcon.js"},{"uid":"120a-289","name":"prism-theme.js"},{"uid":"120a-291","name":"Prism.styles.js"},{"uid":"120a-293","name":"Prism.js"}]},{"name":"PrismTabs","children":[{"uid":"120a-295","name":"PrismTabs.styles.js"},{"uid":"120a-297","name":"PrismTabs.js"}]},{"uid":"120a-299","name":"index.js"}]}]},{"name":"shared/src/api-client","children":[{"uid":"120a-183","name":"utils.ts"},{"uid":"120a-185","name":"default-api-client.ts"},{"uid":"120a-187","name":"facade-api-client.ts"}]}]},{"name":"src","children":[{"name":"api-caller","children":[{"uid":"120a-189","name":"request.ts"},{"uid":"120a-191","name":"account.ts"},{"uid":"120a-193","name":"api-key.ts"},{"uid":"120a-195","name":"datasource.ts"},{"uid":"120a-197","name":"role.ts"},{"uid":"120a-207","name":"sql_snippet.ts"},{"uid":"120a-209","name":"index.ts"}]},{"name":"datasource","children":[{"uid":"120a-211","name":"styles.ts"},{"name":"add-data-source","children":[{"name":"forms","children":[{"uid":"120a-229","name":"database.tsx"},{"uid":"120a-235","name":"http.tsx"}]},{"uid":"120a-237","name":"db-permission-tips.tsx"},{"uid":"120a-239","name":"index.tsx"}]},{"name":"components","children":[{"name":"function-string-field","children":[{"uid":"120a-231","name":"function-string-editor.tsx"},{"uid":"120a-233","name":"index.tsx"}]},{"uid":"120a-241","name":"data-source-icon.tsx"}]},{"uid":"120a-243","name":"delete-data-source.tsx"},{"name":"edit-data-source","children":[{"name":"forms/http.tsx","uid":"120a-245"},{"uid":"120a-247","name":"index.tsx"}]},{"uid":"120a-249","name":"data-source-list.tsx"}]},{"name":"components","children":[{"uid":"120a-213","name":"minimal-mocaco-editor.tsx"},{"uid":"120a-215","name":"submit-form-button.tsx"},{"uid":"120a-227","name":"with-entry.tsx"}]},{"name":"i18n","children":[{"uid":"120a-217","name":"en.ts"},{"uid":"120a-219","name":"zh.ts"},{"uid":"120a-221","name":"i18n.ts"},{"uid":"120a-223","name":"i18next-context.tsx"}]},{"name":"utils/load-monaco-editor.ts","uid":"120a-225"},{"name":"account","children":[{"uid":"120a-251","name":"role-selector.tsx"},{"uid":"120a-253","name":"styles.ts"},{"uid":"120a-255","name":"add-account.tsx"},{"uid":"120a-257","name":"delete-account.tsx"},{"uid":"120a-259","name":"edit-account.tsx"},{"uid":"120a-261","name":"account-list.tsx"},{"name":"login","children":[{"uid":"120a-263","name":"form.tsx"},{"uid":"120a-265","name":"index.tsx"}]}]},{"name":"api-key","children":[{"uid":"120a-267","name":"styles.ts"},{"uid":"120a-269","name":"add-api-key.tsx"},{"uid":"120a-271","name":"delete-api-key.tsx"},{"uid":"120a-273","name":"api-key-list.tsx"}]},{"name":"sql_snippet","children":[{"uid":"120a-275","name":"styles.ts"},{"uid":"120a-277","name":"add-sql_snippet.tsx"},{"uid":"120a-279","name":"update-sql_snippet.tsx"},{"uid":"120a-301","name":"delete-sql_snippet.tsx"},{"uid":"120a-303","name":"sql_snippet-list.tsx"}]},{"uid":"120a-305","name":"index.ts"}]},{"uid":"120a-307","name":"package.json"}]}],"isRoot":true},"nodeParts":{"120a-171":{"renderedLength":33,"gzipLength":0,"brotliLength":0,"metaUid":"120a-170"},"120a-173":{"renderedLength":42,"gzipLength":0,"brotliLength":0,"metaUid":"120a-172"},"120a-175":{"renderedLength":1217,"gzipLength":0,"brotliLength":0,"metaUid":"120a-174"},"120a-177":{"renderedLength":39,"gzipLength":0,"brotliLength":0,"metaUid":"120a-176"},"120a-179":{"renderedLength":45245,"gzipLength":0,"brotliLength":0,"metaUid":"120a-178"},"120a-181":{"renderedLength":237,"gzipLength":0,"brotliLength":0,"metaUid":"120a-180"},"120a-183":{"renderedLength":949,"gzipLength":0,"brotliLength":0,"metaUid":"120a-182"},"120a-185":{"renderedLength":2140,"gzipLength":0,"brotliLength":0,"metaUid":"120a-184"},"120a-187":{"renderedLength":422,"gzipLength":0,"brotliLength":0,"metaUid":"120a-186"},"120a-189":{"renderedLength":426,"gzipLength":0,"brotliLength":0,"metaUid":"120a-188"},"120a-191":{"renderedLength":1913,"gzipLength":0,"brotliLength":0,"metaUid":"120a-190"},"120a-193":{"renderedLength":641,"gzipLength":0,"brotliLength":0,"metaUid":"120a-192"},"120a-195":{"renderedLength":730,"gzipLength":0,"brotliLength":0,"metaUid":"120a-194"},"120a-197":{"renderedLength":132,"gzipLength":0,"brotliLength":0,"metaUid":"120a-196"},"120a-199":{"renderedLength":1011,"gzipLength":0,"brotliLength":0,"metaUid":"120a-198"},"120a-201":{"renderedLength":496,"gzipLength":0,"brotliLength":0,"metaUid":"120a-200"},"120a-203":{"renderedLength":1623,"gzipLength":0,"brotliLength":0,"metaUid":"120a-202"},"120a-205":{"renderedLength":14006,"gzipLength":0,"brotliLength":0,"metaUid":"120a-204"},"120a-207":{"renderedLength":1079,"gzipLength":0,"brotliLength":0,"metaUid":"120a-206"},"120a-209":{"renderedLength":94,"gzipLength":0,"brotliLength":0,"metaUid":"120a-208"},"120a-211":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"120a-210"},"120a-213":{"renderedLength":682,"gzipLength":0,"brotliLength":0,"metaUid":"120a-212"},"120a-215":{"renderedLength":367,"gzipLength":0,"brotliLength":0,"metaUid":"120a-214"},"120a-217":{"renderedLength":4266,"gzipLength":0,"brotliLength":0,"metaUid":"120a-216"},"120a-219":{"renderedLength":4276,"gzipLength":0,"brotliLength":0,"metaUid":"120a-218"},"120a-221":{"renderedLength":253,"gzipLength":0,"brotliLength":0,"metaUid":"120a-220"},"120a-223":{"renderedLength":246,"gzipLength":0,"brotliLength":0,"metaUid":"120a-222"},"120a-225":{"renderedLength":551,"gzipLength":0,"brotliLength":0,"metaUid":"120a-224"},"120a-227":{"renderedLength":625,"gzipLength":0,"brotliLength":0,"metaUid":"120a-226"},"120a-229":{"renderedLength":3180,"gzipLength":0,"brotliLength":0,"metaUid":"120a-228"},"120a-231":{"renderedLength":502,"gzipLength":0,"brotliLength":0,"metaUid":"120a-230"},"120a-233":{"renderedLength":2382,"gzipLength":0,"brotliLength":0,"metaUid":"120a-232"},"120a-235":{"renderedLength":2892,"gzipLength":0,"brotliLength":0,"metaUid":"120a-234"},"120a-237":{"renderedLength":572,"gzipLength":0,"brotliLength":0,"metaUid":"120a-236"},"120a-239":{"renderedLength":3067,"gzipLength":0,"brotliLength":0,"metaUid":"120a-238"},"120a-241":{"renderedLength":790,"gzipLength":0,"brotliLength":0,"metaUid":"120a-240"},"120a-243":{"renderedLength":2213,"gzipLength":0,"brotliLength":0,"metaUid":"120a-242"},"120a-245":{"renderedLength":2536,"gzipLength":0,"brotliLength":0,"metaUid":"120a-244"},"120a-247":{"renderedLength":3542,"gzipLength":0,"brotliLength":0,"metaUid":"120a-246"},"120a-249":{"renderedLength":2550,"gzipLength":0,"brotliLength":0,"metaUid":"120a-248"},"120a-251":{"renderedLength":1458,"gzipLength":0,"brotliLength":0,"metaUid":"120a-250"},"120a-253":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"120a-252"},"120a-255":{"renderedLength":3801,"gzipLength":0,"brotliLength":0,"metaUid":"120a-254"},"120a-257":{"renderedLength":1777,"gzipLength":0,"brotliLength":0,"metaUid":"120a-256"},"120a-259":{"renderedLength":4913,"gzipLength":0,"brotliLength":0,"metaUid":"120a-258"},"120a-261":{"renderedLength":3049,"gzipLength":0,"brotliLength":0,"metaUid":"120a-260"},"120a-263":{"renderedLength":2208,"gzipLength":0,"brotliLength":0,"metaUid":"120a-262"},"120a-265":{"renderedLength":397,"gzipLength":0,"brotliLength":0,"metaUid":"120a-264"},"120a-267":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"120a-266"},"120a-269":{"renderedLength":4196,"gzipLength":0,"brotliLength":0,"metaUid":"120a-268"},"120a-271":{"renderedLength":1798,"gzipLength":0,"brotliLength":0,"metaUid":"120a-270"},"120a-273":{"renderedLength":2907,"gzipLength":0,"brotliLength":0,"metaUid":"120a-272"},"120a-275":{"renderedLength":102,"gzipLength":0,"brotliLength":0,"metaUid":"120a-274"},"120a-277":{"renderedLength":3371,"gzipLength":0,"brotliLength":0,"metaUid":"120a-276"},"120a-279":{"renderedLength":3408,"gzipLength":0,"brotliLength":0,"metaUid":"120a-278"},"120a-281":{"renderedLength":148464,"gzipLength":0,"brotliLength":0,"metaUid":"120a-280"},"120a-283":{"renderedLength":1767,"gzipLength":0,"brotliLength":0,"metaUid":"120a-282"},"120a-285":{"renderedLength":9562,"gzipLength":0,"brotliLength":0,"metaUid":"120a-284"},"120a-287":{"renderedLength":1394,"gzipLength":0,"brotliLength":0,"metaUid":"120a-286"},"120a-289":{"renderedLength":3572,"gzipLength":0,"brotliLength":0,"metaUid":"120a-288"},"120a-291":{"renderedLength":1430,"gzipLength":0,"brotliLength":0,"metaUid":"120a-290"},"120a-293":{"renderedLength":6332,"gzipLength":0,"brotliLength":0,"metaUid":"120a-292"},"120a-295":{"renderedLength":1639,"gzipLength":0,"brotliLength":0,"metaUid":"120a-294"},"120a-297":{"renderedLength":2707,"gzipLength":0,"brotliLength":0,"metaUid":"120a-296"},"120a-299":{"renderedLength":170,"gzipLength":0,"brotliLength":0,"metaUid":"120a-298"},"120a-301":{"renderedLength":1807,"gzipLength":0,"brotliLength":0,"metaUid":"120a-300"},"120a-303":{"renderedLength":3690,"gzipLength":0,"brotliLength":0,"metaUid":"120a-302"},"120a-305":{"renderedLength":183,"gzipLength":0,"brotliLength":0,"metaUid":"120a-304"},"120a-307":{"renderedLength":27,"gzipLength":0,"brotliLength":0,"metaUid":"120a-306"}},"nodeMetas":{"120a-170":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js?commonjs-module","moduleParts":{"settings-form.umd.js":"120a-171"},"imported":[],"importedBy":[{"uid":"120a-180"}]},"120a-172":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.production.min.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"120a-173"},"imported":[],"importedBy":[{"uid":"120a-174"}]},"120a-174":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.production.min.js","moduleParts":{"settings-form.umd.js":"120a-175"},"imported":[{"uid":"120a-329"},{"uid":"120a-172"},{"uid":"120a-332"}],"importedBy":[{"uid":"120a-180"}]},"120a-176":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.development.js?commonjs-exports","moduleParts":{"settings-form.umd.js":"120a-177"},"imported":[],"importedBy":[{"uid":"120a-178"}]},"120a-178":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.development.js","moduleParts":{"settings-form.umd.js":"120a-179"},"imported":[{"uid":"120a-329"},{"uid":"120a-176"},{"uid":"120a-332"}],"importedBy":[{"uid":"120a-180"}]},"120a-180":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js","moduleParts":{"settings-form.umd.js":"120a-181"},"imported":[{"uid":"120a-329"},{"uid":"120a-170"},{"uid":"120a-174"},{"uid":"120a-178"}],"importedBy":[{"uid":"120a-238"},{"uid":"120a-248"},{"uid":"120a-242"},{"uid":"120a-254"},{"uid":"120a-260"},{"uid":"120a-256"},{"uid":"120a-264"},{"uid":"120a-268"},{"uid":"120a-272"},{"uid":"120a-270"},{"uid":"120a-276"},{"uid":"120a-278"},{"uid":"120a-302"},{"uid":"120a-300"},{"uid":"120a-228"},{"uid":"120a-234"},{"uid":"120a-236"},{"uid":"120a-240"},{"uid":"120a-246"},{"uid":"120a-250"},{"uid":"120a-258"},{"uid":"120a-262"},{"uid":"120a-212"},{"uid":"120a-232"},{"uid":"120a-214"},{"uid":"120a-226"},{"uid":"120a-244"},{"uid":"120a-230"},{"uid":"120a-222"}]},"120a-182":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/utils.ts","moduleParts":{"settings-form.umd.js":"120a-183"},"imported":[{"uid":"120a-334"}],"importedBy":[{"uid":"120a-328"},{"uid":"120a-184"}]},"120a-184":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/default-api-client.ts","moduleParts":{"settings-form.umd.js":"120a-185"},"imported":[{"uid":"120a-335"},{"uid":"120a-182"},{"uid":"120a-336"}],"importedBy":[{"uid":"120a-328"}]},"120a-186":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/facade-api-client.ts","moduleParts":{"settings-form.umd.js":"120a-187"},"imported":[],"importedBy":[{"uid":"120a-328"}]},"120a-188":{"id":"/src/api-caller/request.ts","moduleParts":{"settings-form.umd.js":"120a-189"},"imported":[{"uid":"120a-317"}],"importedBy":[{"uid":"120a-304"},{"uid":"120a-190"},{"uid":"120a-192"},{"uid":"120a-194"},{"uid":"120a-196"},{"uid":"120a-206"},{"uid":"120a-226"}]},"120a-190":{"id":"/src/api-caller/account.ts","moduleParts":{"settings-form.umd.js":"120a-191"},"imported":[{"uid":"120a-188"}],"importedBy":[{"uid":"120a-208"}]},"120a-192":{"id":"/src/api-caller/api-key.ts","moduleParts":{"settings-form.umd.js":"120a-193"},"imported":[{"uid":"120a-188"}],"importedBy":[{"uid":"120a-208"}]},"120a-194":{"id":"/src/api-caller/datasource.ts","moduleParts":{"settings-form.umd.js":"120a-195"},"imported":[{"uid":"120a-188"}],"importedBy":[{"uid":"120a-208"}]},"120a-196":{"id":"/src/api-caller/role.ts","moduleParts":{"settings-form.umd.js":"120a-197"},"imported":[{"uid":"120a-188"}],"importedBy":[{"uid":"120a-208"}]},"120a-198":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/constant.js","moduleParts":{"settings-form.umd.js":"120a-199"},"imported":[],"importedBy":[{"uid":"120a-204"},{"uid":"120a-202"}]},"120a-200":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/locale/en.js","moduleParts":{"settings-form.umd.js":"120a-201"},"imported":[],"importedBy":[{"uid":"120a-204"}]},"120a-202":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/utils.js","moduleParts":{"settings-form.umd.js":"120a-203"},"imported":[{"uid":"120a-198"}],"importedBy":[{"uid":"120a-204"}]},"120a-204":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/index.js","moduleParts":{"settings-form.umd.js":"120a-205"},"imported":[{"uid":"120a-198"},{"uid":"120a-200"},{"uid":"120a-202"}],"importedBy":[{"uid":"120a-206"}]},"120a-206":{"id":"/src/api-caller/sql_snippet.ts","moduleParts":{"settings-form.umd.js":"120a-207"},"imported":[{"uid":"120a-204"},{"uid":"120a-188"}],"importedBy":[{"uid":"120a-208"}]},"120a-208":{"id":"/src/api-caller/index.ts","moduleParts":{"settings-form.umd.js":"120a-209"},"imported":[{"uid":"120a-190"},{"uid":"120a-192"},{"uid":"120a-194"},{"uid":"120a-196"},{"uid":"120a-206"}],"importedBy":[{"uid":"120a-238"},{"uid":"120a-248"},{"uid":"120a-242"},{"uid":"120a-254"},{"uid":"120a-260"},{"uid":"120a-256"},{"uid":"120a-268"},{"uid":"120a-272"},{"uid":"120a-270"},{"uid":"120a-276"},{"uid":"120a-278"},{"uid":"120a-302"},{"uid":"120a-300"},{"uid":"120a-246"},{"uid":"120a-250"},{"uid":"120a-258"},{"uid":"120a-262"}]},"120a-210":{"id":"/src/datasource/styles.ts","moduleParts":{"settings-form.umd.js":"120a-211"},"imported":[],"importedBy":[{"uid":"120a-238"},{"uid":"120a-248"},{"uid":"120a-242"},{"uid":"120a-228"},{"uid":"120a-234"},{"uid":"120a-236"},{"uid":"120a-246"},{"uid":"120a-244"}]},"120a-212":{"id":"/src/components/minimal-mocaco-editor.tsx","moduleParts":{"settings-form.umd.js":"120a-213"},"imported":[{"uid":"120a-180"},{"uid":"120a-330"}],"importedBy":[{"uid":"120a-276"},{"uid":"120a-278"},{"uid":"120a-324"}]},"120a-214":{"id":"/src/components/submit-form-button.tsx","moduleParts":{"settings-form.umd.js":"120a-215"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-326"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-324"}]},"120a-216":{"id":"/src/i18n/en.ts","moduleParts":{"settings-form.umd.js":"120a-217"},"imported":[],"importedBy":[{"uid":"120a-220"}]},"120a-218":{"id":"/src/i18n/zh.ts","moduleParts":{"settings-form.umd.js":"120a-219"},"imported":[],"importedBy":[{"uid":"120a-220"}]},"120a-220":{"id":"/src/i18n/i18n.ts","moduleParts":{"settings-form.umd.js":"120a-221"},"imported":[{"uid":"120a-337"},{"uid":"120a-322"},{"uid":"120a-338"},{"uid":"120a-339"},{"uid":"120a-216"},{"uid":"120a-218"}],"importedBy":[{"uid":"120a-222"}]},"120a-222":{"id":"/src/i18n/i18next-context.tsx","moduleParts":{"settings-form.umd.js":"120a-223"},"imported":[{"uid":"120a-180"},{"uid":"120a-320"},{"uid":"120a-322"},{"uid":"120a-220"}],"importedBy":[{"uid":"120a-226"}]},"120a-224":{"id":"/src/utils/load-monaco-editor.ts","moduleParts":{"settings-form.umd.js":"120a-225"},"imported":[{"uid":"120a-330"},{"uid":"120a-320"}],"importedBy":[{"uid":"120a-226"}]},"120a-226":{"id":"/src/components/with-entry.tsx","moduleParts":{"settings-form.umd.js":"120a-227"},"imported":[{"uid":"120a-180"},{"uid":"120a-320"},{"uid":"120a-188"},{"uid":"120a-222"},{"uid":"120a-224"},{"uid":"120a-318"}],"importedBy":[{"uid":"120a-324"}]},"120a-228":{"id":"/src/datasource/add-data-source/forms/database.tsx","moduleParts":{"settings-form.umd.js":"120a-229"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-320"},{"uid":"120a-327"},{"uid":"120a-324"},{"uid":"120a-210"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-238"}]},"120a-230":{"id":"/src/datasource/components/function-string-field/function-string-editor.tsx","moduleParts":{"settings-form.umd.js":"120a-231"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-330"}],"importedBy":[{"uid":"120a-232"}]},"120a-232":{"id":"/src/datasource/components/function-string-field/index.tsx","moduleParts":{"settings-form.umd.js":"120a-233"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-323"},{"uid":"120a-320"},{"uid":"120a-321"},{"uid":"120a-230"},{"uid":"120a-322"},{"uid":"120a-326"}],"importedBy":[{"uid":"120a-234"},{"uid":"120a-244"}]},"120a-234":{"id":"/src/datasource/add-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"120a-235"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-327"},{"uid":"120a-210"},{"uid":"120a-232"},{"uid":"120a-324"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-238"}]},"120a-236":{"id":"/src/datasource/add-data-source/db-permission-tips.tsx","moduleParts":{"settings-form.umd.js":"120a-237"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-322"},{"uid":"120a-321"},{"uid":"120a-210"}],"importedBy":[{"uid":"120a-238"}]},"120a-238":{"id":"/src/datasource/add-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"120a-239"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-319"},{"uid":"120a-320"},{"uid":"120a-321"},{"uid":"120a-208"},{"uid":"120a-210"},{"uid":"120a-228"},{"uid":"120a-234"},{"uid":"120a-236"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-308"},{"uid":"120a-248"}]},"120a-240":{"id":"/src/datasource/components/data-source-icon.tsx","moduleParts":{"settings-form.umd.js":"120a-241"},"imported":[{"uid":"120a-180"},{"uid":"120a-326"},{"uid":"120a-318"}],"importedBy":[{"uid":"120a-248"}]},"120a-242":{"id":"/src/datasource/delete-data-source.tsx","moduleParts":{"settings-form.umd.js":"120a-243"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-325"},{"uid":"120a-319"},{"uid":"120a-326"},{"uid":"120a-321"},{"uid":"120a-208"},{"uid":"120a-210"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-308"},{"uid":"120a-248"}]},"120a-244":{"id":"/src/datasource/edit-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"120a-245"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-327"},{"uid":"120a-232"},{"uid":"120a-210"},{"uid":"120a-324"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-246"}]},"120a-246":{"id":"/src/datasource/edit-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"120a-247"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-319"},{"uid":"120a-326"},{"uid":"120a-320"},{"uid":"120a-208"},{"uid":"120a-210"},{"uid":"120a-244"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-248"}]},"120a-248":{"id":"/src/datasource/data-source-list.tsx","moduleParts":{"settings-form.umd.js":"120a-249"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-323"},{"uid":"120a-322"},{"uid":"120a-208"},{"uid":"120a-324"},{"uid":"120a-238"},{"uid":"120a-240"},{"uid":"120a-242"},{"uid":"120a-246"},{"uid":"120a-210"}],"importedBy":[{"uid":"120a-308"}]},"120a-250":{"id":"/src/account/role-selector.tsx","moduleParts":{"settings-form.umd.js":"120a-251"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-323"},{"uid":"120a-320"},{"uid":"120a-208"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-254"},{"uid":"120a-268"},{"uid":"120a-258"}]},"120a-252":{"id":"/src/account/styles.ts","moduleParts":{"settings-form.umd.js":"120a-253"},"imported":[],"importedBy":[{"uid":"120a-254"},{"uid":"120a-260"},{"uid":"120a-256"},{"uid":"120a-264"},{"uid":"120a-258"},{"uid":"120a-262"}]},"120a-254":{"id":"/src/account/add-account.tsx","moduleParts":{"settings-form.umd.js":"120a-255"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-319"},{"uid":"120a-320"},{"uid":"120a-327"},{"uid":"120a-321"},{"uid":"120a-208"},{"uid":"120a-324"},{"uid":"120a-250"},{"uid":"120a-252"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-309"},{"uid":"120a-260"}]},"120a-256":{"id":"/src/account/delete-account.tsx","moduleParts":{"settings-form.umd.js":"120a-257"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-325"},{"uid":"120a-319"},{"uid":"120a-321"},{"uid":"120a-208"},{"uid":"120a-252"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-309"},{"uid":"120a-260"}]},"120a-258":{"id":"/src/account/edit-account.tsx","moduleParts":{"settings-form.umd.js":"120a-259"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-319"},{"uid":"120a-320"},{"uid":"120a-327"},{"uid":"120a-321"},{"uid":"120a-208"},{"uid":"120a-250"},{"uid":"120a-252"},{"uid":"120a-324"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-260"}]},"120a-260":{"id":"/src/account/account-list.tsx","moduleParts":{"settings-form.umd.js":"120a-261"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-323"},{"uid":"120a-322"},{"uid":"120a-208"},{"uid":"120a-324"},{"uid":"120a-254"},{"uid":"120a-256"},{"uid":"120a-258"},{"uid":"120a-252"}],"importedBy":[{"uid":"120a-309"}]},"120a-262":{"id":"/src/account/login/form.tsx","moduleParts":{"settings-form.umd.js":"120a-263"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-319"},{"uid":"120a-327"},{"uid":"120a-208"},{"uid":"120a-252"},{"uid":"120a-324"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-264"}]},"120a-264":{"id":"/src/account/login/index.tsx","moduleParts":{"settings-form.umd.js":"120a-265"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-324"},{"uid":"120a-252"},{"uid":"120a-262"}],"importedBy":[{"uid":"120a-309"}]},"120a-266":{"id":"/src/api-key/styles.ts","moduleParts":{"settings-form.umd.js":"120a-267"},"imported":[],"importedBy":[{"uid":"120a-268"},{"uid":"120a-272"},{"uid":"120a-270"}]},"120a-268":{"id":"/src/api-key/add-api-key.tsx","moduleParts":{"settings-form.umd.js":"120a-269"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-325"},{"uid":"120a-319"},{"uid":"120a-320"},{"uid":"120a-327"},{"uid":"120a-321"},{"uid":"120a-250"},{"uid":"120a-208"},{"uid":"120a-324"},{"uid":"120a-266"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-310"},{"uid":"120a-272"}]},"120a-270":{"id":"/src/api-key/delete-api-key.tsx","moduleParts":{"settings-form.umd.js":"120a-271"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-325"},{"uid":"120a-319"},{"uid":"120a-321"},{"uid":"120a-208"},{"uid":"120a-266"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-310"},{"uid":"120a-272"}]},"120a-272":{"id":"/src/api-key/api-key-list.tsx","moduleParts":{"settings-form.umd.js":"120a-273"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-323"},{"uid":"120a-322"},{"uid":"120a-208"},{"uid":"120a-324"},{"uid":"120a-268"},{"uid":"120a-270"},{"uid":"120a-266"}],"importedBy":[{"uid":"120a-310"}]},"120a-274":{"id":"/src/sql_snippet/styles.ts","moduleParts":{"settings-form.umd.js":"120a-275"},"imported":[],"importedBy":[{"uid":"120a-276"},{"uid":"120a-278"},{"uid":"120a-302"},{"uid":"120a-300"}]},"120a-276":{"id":"/src/sql_snippet/add-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"120a-277"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-319"},{"uid":"120a-320"},{"uid":"120a-327"},{"uid":"120a-321"},{"uid":"120a-208"},{"uid":"120a-212"},{"uid":"120a-274"},{"uid":"120a-324"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-311"},{"uid":"120a-302"}]},"120a-278":{"id":"/src/sql_snippet/update-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"120a-279"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-319"},{"uid":"120a-326"},{"uid":"120a-320"},{"uid":"120a-327"},{"uid":"120a-208"},{"uid":"120a-212"},{"uid":"120a-274"},{"uid":"120a-324"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-311"},{"uid":"120a-302"}]},"120a-280":{"id":"/Users/leto/github/merico-dev/table/node_modules/prism-react-renderer/prism/index.js","moduleParts":{"settings-form.umd.js":"120a-281"},"imported":[],"importedBy":[{"uid":"120a-284"}]},"120a-282":{"id":"/Users/leto/github/merico-dev/table/node_modules/prism-react-renderer/themes/duotoneDark/index.js","moduleParts":{"settings-form.umd.js":"120a-283"},"imported":[],"importedBy":[{"uid":"120a-284"}]},"120a-284":{"id":"/Users/leto/github/merico-dev/table/node_modules/prism-react-renderer/dist/index.js","moduleParts":{"settings-form.umd.js":"120a-285"},"imported":[{"uid":"120a-280"},{"uid":"120a-282"},{"uid":"120a-320"}],"importedBy":[{"uid":"120a-292"}]},"120a-286":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/CopyIcon.js","moduleParts":{"settings-form.umd.js":"120a-287"},"imported":[{"uid":"120a-320"}],"importedBy":[{"uid":"120a-292"}]},"120a-288":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/prism-theme.js","moduleParts":{"settings-form.umd.js":"120a-289"},"imported":[],"importedBy":[{"uid":"120a-292"}]},"120a-290":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/Prism.styles.js","moduleParts":{"settings-form.umd.js":"120a-291"},"imported":[{"uid":"120a-318"}],"importedBy":[{"uid":"120a-292"}]},"120a-292":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/Prism.js","moduleParts":{"settings-form.umd.js":"120a-293"},"imported":[{"uid":"120a-320"},{"uid":"120a-284"},{"uid":"120a-318"},{"uid":"120a-333"},{"uid":"120a-286"},{"uid":"120a-288"},{"uid":"120a-290"}],"importedBy":[{"uid":"120a-298"},{"uid":"120a-296"}]},"120a-294":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/PrismTabs/PrismTabs.styles.js","moduleParts":{"settings-form.umd.js":"120a-295"},"imported":[{"uid":"120a-318"}],"importedBy":[{"uid":"120a-296"}]},"120a-296":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/PrismTabs/PrismTabs.js","moduleParts":{"settings-form.umd.js":"120a-297"},"imported":[{"uid":"120a-320"},{"uid":"120a-318"},{"uid":"120a-292"},{"uid":"120a-294"}],"importedBy":[{"uid":"120a-298"}]},"120a-298":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/index.js","moduleParts":{"settings-form.umd.js":"120a-299"},"imported":[{"uid":"120a-318"},{"uid":"120a-296"},{"uid":"120a-292"}],"importedBy":[{"uid":"120a-302"}]},"120a-300":{"id":"/src/sql_snippet/delete-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"120a-301"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-325"},{"uid":"120a-319"},{"uid":"120a-321"},{"uid":"120a-208"},{"uid":"120a-274"},{"uid":"120a-322"}],"importedBy":[{"uid":"120a-311"},{"uid":"120a-302"}]},"120a-302":{"id":"/src/sql_snippet/sql_snippet-list.tsx","moduleParts":{"settings-form.umd.js":"120a-303"},"imported":[{"uid":"120a-180"},{"uid":"120a-318"},{"uid":"120a-298"},{"uid":"120a-323"},{"uid":"120a-208"},{"uid":"120a-276"},{"uid":"120a-300"},{"uid":"120a-274"},{"uid":"120a-326"},{"uid":"120a-322"},{"uid":"120a-324"},{"uid":"120a-278"}],"importedBy":[{"uid":"120a-311"}]},"120a-304":{"id":"/src/index.ts","moduleParts":{"settings-form.umd.js":"120a-305"},"imported":[{"uid":"120a-308"},{"uid":"120a-309"},{"uid":"120a-310"},{"uid":"120a-311"},{"uid":"120a-188"},{"uid":"120a-312"},{"uid":"120a-313"},{"uid":"120a-314"},{"uid":"120a-315"},{"uid":"120a-316"},{"uid":"120a-306","dynamic":true}],"importedBy":[],"isEntry":true},"120a-306":{"id":"/package.json","moduleParts":{"settings-form.umd.js":"120a-307"},"imported":[],"importedBy":[{"uid":"120a-304"}]},"120a-308":{"id":"/src/datasource/index.tsx","moduleParts":{},"imported":[{"uid":"120a-238"},{"uid":"120a-248"},{"uid":"120a-242"}],"importedBy":[{"uid":"120a-304"}]},"120a-309":{"id":"/src/account/index.tsx","moduleParts":{},"imported":[{"uid":"120a-254"},{"uid":"120a-260"},{"uid":"120a-256"},{"uid":"120a-264"}],"importedBy":[{"uid":"120a-304"}]},"120a-310":{"id":"/src/api-key/index.tsx","moduleParts":{},"imported":[{"uid":"120a-268"},{"uid":"120a-272"},{"uid":"120a-270"}],"importedBy":[{"uid":"120a-304"}]},"120a-311":{"id":"/src/sql_snippet/index.tsx","moduleParts":{},"imported":[{"uid":"120a-276"},{"uid":"120a-278"},{"uid":"120a-302"},{"uid":"120a-300"}],"importedBy":[{"uid":"120a-304"}]},"120a-312":{"id":"/src/api-caller/account.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-304"}]},"120a-313":{"id":"/src/api-caller/api-key.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-304"}]},"120a-314":{"id":"/src/api-caller/datasource.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-304"}]},"120a-315":{"id":"/src/api-caller/role.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-304"}]},"120a-316":{"id":"/src/api-caller/sql_snippet.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-304"}]},"120a-317":{"id":"/Users/leto/github/merico-dev/table/shared/src/index.ts","moduleParts":{},"imported":[{"uid":"120a-328"}],"importedBy":[{"uid":"120a-188"}]},"120a-318":{"id":"@mantine/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-238"},{"uid":"120a-248"},{"uid":"120a-242"},{"uid":"120a-254"},{"uid":"120a-260"},{"uid":"120a-256"},{"uid":"120a-264"},{"uid":"120a-268"},{"uid":"120a-272"},{"uid":"120a-270"},{"uid":"120a-276"},{"uid":"120a-278"},{"uid":"120a-302"},{"uid":"120a-300"},{"uid":"120a-228"},{"uid":"120a-234"},{"uid":"120a-236"},{"uid":"120a-240"},{"uid":"120a-246"},{"uid":"120a-250"},{"uid":"120a-258"},{"uid":"120a-262"},{"uid":"120a-298"},{"uid":"120a-232"},{"uid":"120a-214"},{"uid":"120a-226"},{"uid":"120a-244"},{"uid":"120a-296"},{"uid":"120a-292"},{"uid":"120a-230"},{"uid":"120a-294"},{"uid":"120a-290"}],"isExternal":true},"120a-319":{"id":"@mantine/notifications","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-238"},{"uid":"120a-242"},{"uid":"120a-254"},{"uid":"120a-256"},{"uid":"120a-268"},{"uid":"120a-270"},{"uid":"120a-276"},{"uid":"120a-278"},{"uid":"120a-300"},{"uid":"120a-246"},{"uid":"120a-258"},{"uid":"120a-262"}],"isExternal":true},"120a-320":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-238"},{"uid":"120a-254"},{"uid":"120a-268"},{"uid":"120a-276"},{"uid":"120a-278"},{"uid":"120a-228"},{"uid":"120a-246"},{"uid":"120a-250"},{"uid":"120a-258"},{"uid":"120a-232"},{"uid":"120a-226"},{"uid":"120a-296"},{"uid":"120a-292"},{"uid":"120a-332"},{"uid":"120a-222"},{"uid":"120a-224"},{"uid":"120a-284"},{"uid":"120a-286"}],"isExternal":true},"120a-321":{"id":"tabler-icons-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-238"},{"uid":"120a-242"},{"uid":"120a-254"},{"uid":"120a-256"},{"uid":"120a-268"},{"uid":"120a-270"},{"uid":"120a-276"},{"uid":"120a-300"},{"uid":"120a-236"},{"uid":"120a-258"},{"uid":"120a-232"}],"isExternal":true},"120a-322":{"id":"react-i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-238"},{"uid":"120a-248"},{"uid":"120a-242"},{"uid":"120a-254"},{"uid":"120a-260"},{"uid":"120a-256"},{"uid":"120a-268"},{"uid":"120a-272"},{"uid":"120a-270"},{"uid":"120a-276"},{"uid":"120a-278"},{"uid":"120a-302"},{"uid":"120a-300"},{"uid":"120a-228"},{"uid":"120a-234"},{"uid":"120a-236"},{"uid":"120a-246"},{"uid":"120a-250"},{"uid":"120a-258"},{"uid":"120a-262"},{"uid":"120a-232"},{"uid":"120a-214"},{"uid":"120a-244"},{"uid":"120a-222"},{"uid":"120a-220"}],"isExternal":true},"120a-323":{"id":"ahooks","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-248"},{"uid":"120a-260"},{"uid":"120a-272"},{"uid":"120a-302"},{"uid":"120a-250"},{"uid":"120a-232"}],"isExternal":true},"120a-324":{"id":"/src/components/index.ts","moduleParts":{},"imported":[{"uid":"120a-212"},{"uid":"120a-214"},{"uid":"120a-226"}],"importedBy":[{"uid":"120a-248"},{"uid":"120a-254"},{"uid":"120a-260"},{"uid":"120a-264"},{"uid":"120a-268"},{"uid":"120a-272"},{"uid":"120a-276"},{"uid":"120a-278"},{"uid":"120a-302"},{"uid":"120a-228"},{"uid":"120a-234"},{"uid":"120a-258"},{"uid":"120a-262"},{"uid":"120a-244"}]},"120a-325":{"id":"@mantine/modals","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-242"},{"uid":"120a-256"},{"uid":"120a-268"},{"uid":"120a-270"},{"uid":"120a-300"}],"isExternal":true},"120a-326":{"id":"@tabler/icons-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-242"},{"uid":"120a-278"},{"uid":"120a-302"},{"uid":"120a-240"},{"uid":"120a-246"},{"uid":"120a-232"},{"uid":"120a-214"}],"isExternal":true},"120a-327":{"id":"react-hook-form","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-254"},{"uid":"120a-268"},{"uid":"120a-276"},{"uid":"120a-278"},{"uid":"120a-228"},{"uid":"120a-234"},{"uid":"120a-258"},{"uid":"120a-262"},{"uid":"120a-244"}],"isExternal":true},"120a-328":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/index.ts","moduleParts":{},"imported":[{"uid":"120a-331"},{"uid":"120a-182"},{"uid":"120a-184"},{"uid":"120a-186"}],"importedBy":[{"uid":"120a-317"}]},"120a-329":{"id":"\u0000commonjsHelpers.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-180"},{"uid":"120a-174"},{"uid":"120a-178"}]},"120a-330":{"id":"@monaco-editor/react","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-212"},{"uid":"120a-230"},{"uid":"120a-224"}],"isExternal":true},"120a-331":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-328"}]},"120a-332":{"id":"\u0000react?commonjs-external","moduleParts":{},"imported":[{"uid":"120a-320"}],"importedBy":[{"uid":"120a-174"},{"uid":"120a-178"}]},"120a-333":{"id":"@mantine/hooks","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-292"}],"isExternal":true},"120a-334":{"id":"crypto-js","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-182"}],"isExternal":true},"120a-335":{"id":"lodash","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-184"}],"isExternal":true},"120a-336":{"id":"axios","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-184"}],"isExternal":true},"120a-337":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-220"}],"isExternal":true},"120a-338":{"id":"i18next-browser-languagedetector","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-220"}],"isExternal":true},"120a-339":{"id":"intl-pluralrules","moduleParts":{},"imported":[],"importedBy":[{"uid":"120a-220"}],"isExternal":true}},"env":{"rollup":"3.29.4"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
|
|
6161
6161
|
|
|
6162
6162
|
const run = () => {
|
|
6163
6163
|
const width = window.innerWidth;
|