@devtable/settings-form 13.10.1 → 13.11.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
|
@@ -1873,7 +1873,7 @@ function ma({
|
|
|
1873
1873
|
const an = {
|
|
1874
1874
|
pre: ["function pre_process({ method, url, params, headers, data }, utils) {", " // your code goes here", " return { method, url, params, headers, data }", "}"].join(`
|
|
1875
1875
|
`),
|
|
1876
|
-
post: ["function post_process(
|
|
1876
|
+
post: ["function post_process(resp, utils) {", " return resp.data", "}"].join(`
|
|
1877
1877
|
`)
|
|
1878
1878
|
};
|
|
1879
1879
|
function ha({
|
|
@@ -6606,7 +6606,7 @@ const Ts = Je("DataSourceList", ({
|
|
|
6606
6606
|
] })
|
|
6607
6607
|
] })
|
|
6608
6608
|
] });
|
|
6609
|
-
}), js = () => import("./package-
|
|
6609
|
+
}), js = () => import("./package-ccf0beeb.mjs").then(({
|
|
6610
6610
|
version: e
|
|
6611
6611
|
}) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|
|
6612
6612
|
export {
|
|
@@ -27,7 +27,7 @@ Check your code at `+S+":"+E+"."}return""}}var gn={};function ga(o){{var S=pn();
|
|
|
27
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
|
-
`),post:["function post_process(
|
|
30
|
+
`),post:["function post_process(resp, utils) {"," return resp.data","}"].join(`
|
|
31
31
|
`)};function lr({name:e,config:t,submit:n,styles:r=ue}){const{t:s}=L.useTranslation(),{control:i,handleSubmit:l}=j.useForm({defaultValues:{config:t}});return a.jsx(h.Box,{mx:"auto",children:a.jsxs("form",{onSubmit:l(n),children:[a.jsx(h.TextInput,{mb:r.spacing,size:r.size,required:!0,label:s("common.name"),value:e,readOnly:!0}),a.jsx(h.Divider,{label:s("datasource.connection_info"),labelPosition:"center"}),a.jsx(j.Controller,{name:"config.host",control:i,render:({field:u})=>a.jsx(h.TextInput,{mb:r.spacing,size:r.size,label:s("datasource.http.base_url"),sx:{flexGrow:1},...u})}),a.jsxs(h.Group,{grow:!0,children:[a.jsx(j.Controller,{name:"config.processing.pre",control:i,render:({field:u})=>a.jsx(Je,{label:s("datasource.http.processing.pre.label"),modalTitle:s("datasource.http.processing.pre.description"),defaultValue:Ft.pre,...u,styles:r})}),a.jsx(j.Controller,{name:"config.processing.post",control:i,render:({field:u})=>a.jsx(Je,{label:s("datasource.http.processing.post.label"),modalTitle:s("datasource.http.processing.post.description"),defaultValue:Ft.post,...u,styles:r})})]}),a.jsx(h.Group,{position:"right",mt:r.spacing,children:a.jsx(pe,{size:r.button.size})})]})})}function ur({dataSource:e,postSubmit:t,styles:n=ue}){const{t:r}=L.useTranslation(),s=async({config:i})=>{I.showNotification({id:"for-updating",title:r("common.state.pending"),message:r("datasource.state.updating"),loading:!0,autoClose:!1});try{console.log({config:i}),await K.datasource.update(e.id,i),I.updateNotification({id:"for-updating",title:r("common.state.successful"),message:r("datasource.state.updated"),color:"green",autoClose:!0}),t()}catch(l){I.updateNotification({id:"for-updating",title:r("common.state.failed"),message:l.message,color:"red",autoClose:!0})}};return e.config?a.jsx(h.Box,{mx:"auto",children:a.jsx(lr,{name:e.key,config:e.config,submit:s,styles:n})}):(console.error(new Error("unexpected empty config of a http datasource")),null)}function cr({dataSource:e,onSuccess:t,styles:n=ue}){const{t:r}=L.useTranslation(),[s,i]=C.useState(!1),l=()=>i(!0),u=()=>i(!1),c=()=>{t(),u()};return e.is_preset?a.jsx(h.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:r("datasource.cant_edit.preset"),children:a.jsx(h.Button,{size:n.button.size,color:"gray",variant:"light",leftIcon:a.jsx(se.IconLock,{size:16}),sx:{transform:"none !important"},children:r("common.actions.edit")})}):e.type!=="http"?a.jsx(h.Tooltip,{withArrow:!0,events:{hover:!0,touch:!1,focus:!1},label:r("datasource.cant_edit.db"),children:a.jsx(h.Button,{size:n.button.size,color:"gray",variant:"light",leftIcon:a.jsx(se.IconEdit,{size:16}),sx:{transform:"none !important"},children:r("common.actions.edit")})}):a.jsxs(a.Fragment,{children:[a.jsx(h.Modal,{opened:s,onClose:()=>i(!1),title:r("datasource.edit"),trapFocus:!0,onDragStart:g=>{g.stopPropagation()},children:a.jsx(ur,{dataSource:e,postSubmit:c,styles:n})}),a.jsx(h.Button,{size:n.button.size,color:"blue",onClick:l,leftIcon:a.jsx(se.IconEdit,{size:16}),children:r("common.actions.edit")})]})}const dr=qe("DataSourceList",({styles:e=ue})=>{const{t}=L.useTranslation(),{data:n=[],loading:r,refresh:s}=be.useRequest(async()=>{const{data:i}=await K.datasource.list();return i},{refreshDeps:[]});return a.jsxs(a.Fragment,{children:[a.jsx(h.Group,{pt:e.spacing,position:"right",children:a.jsx(Nt,{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.type")}),a.jsx("th",{children:t("common.name")}),a.jsx("th",{children:t("common.action")})]})}),a.jsx("tbody",{children:n.map(i=>{const{id:l,key:u,type:c,is_preset:g}=i;return a.jsxs("tr",{children:[a.jsx("td",{width:200,children:a.jsx(or,{type:c})}),a.jsx("td",{children:u}),a.jsx("td",{width:400,children:a.jsxs(h.Group,{position:"left",children:[a.jsx(cr,{dataSource:i,onSuccess:s,styles:e}),a.jsx($t,{isProtected:g,id:l,name:u,onSuccess:s,styles:e})]})})]},u)})})]})]})]})}),pr=C.forwardRef(({label:e,value:t,description:n,...r},s)=>a.jsxs(h.Stack,{spacing:2,ref:s,...r,children:[a.jsx(h.Text,{size:"sm",children:e}),a.jsx(h.Text,{size:"xs",color:"dimmed",className:"role-description",children:n})]})),gt=C.forwardRef(({styles:e,value:t,onChange:n},r)=>{const{t:s}=L.useTranslation(),{data:i=[],loading:l}=be.useRequest(async()=>(await K.role.list()).map(c=>({label:c.id,value:c.id,description:c.description,disabled:c.id==="SUPERADMIN"})),{refreshDeps:[]});return a.jsx(h.Select,{ref:r,mb:e.spacing,size:e.size,required:!0,label:s("role.label"),itemComponent:pr,data:i,disabled:l,styles:()=>({item:{"&[data-selected]":{"&, &:hover":{".role-description":{color:"rgba(255,255,255,.8)"}}}}}),value:t,onChange:n,withinPortal:!0,maxDropdownHeight:500})}),Se={size:"sm",spacing:"md",button:{size:"xs"}};function gr({postSubmit:e,styles:t=Se,initialRoleID:n}){const{t:r}=L.useTranslation(),{control:s,handleSubmit:i}=j.useForm({defaultValues:{name:"",email:"",role_id:n,password:""}}),l=async({name:u,email:c,password:g,role_id:m})=>{try{I.showNotification({id:"for-creating",title:r("common.state.pending"),message:r("account.state.adding"),loading:!0,autoClose:!1}),await K.account.create(u,c,g,m),I.updateNotification({id:"for-creating",title:r("common.state.successful"),message:r("account.state.added"),color:"green",autoClose:!0}),e()}catch(d){I.updateNotification({id:"for-creating",title:r("common.state.failed"),message:d.message,color:"red",autoClose:!0})}};return a.jsx(h.Box,{mx:"auto",mb:10,children:a.jsxs("form",{onSubmit:i(l),children:[a.jsx(j.Controller,{name:"name",control:s,render:({field:u})=>a.jsx(h.TextInput,{mb:t.spacing,size:t.size,required:!0,label:r("account.username"),...u})}),a.jsx(j.Controller,{name:"email",control:s,render:({field:u})=>a.jsx(h.TextInput,{mb:t.spacing,size:t.size,required:!0,label:r("account.email"),...u})}),a.jsx(j.Controller,{name:"password",control:s,render:({field:u})=>a.jsx(h.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:r("account.password"),description:r("account.password_hint"),...u})}),a.jsx(j.Controller,{name:"role_id",control:s,render:({field:u})=>a.jsx(gt,{styles:t,...u})}),a.jsx(h.Group,{position:"right",mt:t.spacing,children:a.jsx(pe,{size:t.button.size})})]})})}function zt({onSuccess:e,styles:t=Se,initialRoleID:n}){const{t:r}=L.useTranslation(),[s,i]=C.useState(!1),l=()=>i(!0),u=()=>i(!1),c=()=>{e(),u()};return a.jsxs(a.Fragment,{children:[a.jsx(h.Modal,{opened:s,onClose:()=>i(!1),title:r("account.add"),trapFocus:!0,onDragStart:g=>{g.stopPropagation()},children:a.jsx(gr,{postSubmit:c,styles:t,initialRoleID:n})}),a.jsx(h.Button,{size:t.button.size,onClick:l,leftIcon:a.jsx(oe.PlaylistAdd,{size:20}),children:r("account.add")})]})}function Pt({id:e,name:t,onSuccess:n,styles:r=Se}){const{t:s}=L.useTranslation(),i=Ae.useModals(),l=async()=>{if(e){I.showNotification({id:"for-deleting",title:s("common.state.pending"),message:s("account.state.deleting"),loading:!0,autoClose:!1});try{await K.account.delete(e),I.updateNotification({id:"for-deleting",title:s("common.state.successful"),message:s("account.state.deleted",{name:t}),color:"green",autoClose:!0}),n()}catch(c){I.updateNotification({id:"for-deleting",title:s("common.state.failed"),message:c.message,color:"red",autoClose:!0})}}},u=()=>i.openConfirmModal({title:s("account.delete"),labels:{confirm:s("common.actions.confirm"),cancel:s("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:l,cancelProps:{size:r.button.size},confirmProps:{color:"red",size:r.button.size}});return a.jsx(h.Button,{size:r.button.size,color:"red",onClick:u,leftIcon:a.jsx(oe.Trash,{size:20}),children:s("common.actions.delete")})}function fr({id:e,name:t,email:n,role_id:r,postSubmit:s,styles:i=Se}){const{t:l}=L.useTranslation(),{control:u,handleSubmit:c,watch:g}=j.useForm({defaultValues:{name:t,email:n,role_id:r,reset_password:!1,new_password:""}}),m=async({name:f,email:y,role_id:b,reset_password:_,new_password:w})=>{try{I.showNotification({id:"for-updating",title:l("common.state.pending"),message:l("account.state.updating"),loading:!0,autoClose:!1}),await K.account.edit({id:e,name:f.trim(),email:y.trim(),role_id:b,reset_password:_,new_password:w.trim()}),I.updateNotification({id:"for-updating",title:l("common.state.successful"),message:l("account.state.updated"),color:"green",autoClose:!0}),s()}catch(x){I.updateNotification({id:"for-updating",title:l("common.state.failed"),message:x.message,color:"red",autoClose:!0})}},[d,p]=g(["reset_password","new_password"]);return a.jsx(h.Box,{mx:"auto",mb:10,children:a.jsxs("form",{onSubmit:c(m),children:[a.jsx(j.Controller,{name:"name",control:u,render:({field:f})=>a.jsx(h.TextInput,{mb:i.spacing,size:i.size,required:!0,label:l("account.username"),...f})}),a.jsx(j.Controller,{name:"email",control:u,render:({field:f})=>a.jsx(h.TextInput,{mb:i.spacing,size:i.size,required:!0,label:l("account.email"),...f})}),a.jsx(j.Controller,{name:"role_id",control:u,render:({field:f})=>a.jsx(gt,{styles:i,...f})}),a.jsx(h.Divider,{my:20,variant:"dashed",label:"",labelPosition:"center"}),a.jsx(j.Controller,{name:"reset_password",control:u,render:({field:f})=>a.jsx(h.Switch,{mb:i.spacing,size:i.size,label:l("account.reset_password"),checked:f.value,onChange:y=>f.onChange(y.currentTarget.checked),styles:{label:{verticalAlign:"middle"}}})}),d&&a.jsx(j.Controller,{name:"new_password",control:u,render:({field:f})=>a.jsx(h.PasswordInput,{autoComplete:"off",mb:i.spacing,size:i.size,required:!0,description:l("account.password_hint"),label:l("account.new_password"),...f})}),a.jsx(h.Group,{position:"right",mt:i.spacing,children:a.jsx(pe,{size:i.button.size})})]})})}function hr({account:e,onSuccess:t,styles:n=Se}){const{t:r}=L.useTranslation(),[s,i]=C.useState(!1),l=()=>i(!0),u=()=>i(!1),c=()=>{t(),u()};return a.jsxs(a.Fragment,{children:[a.jsx(h.Modal,{opened:s,onClose:()=>i(!1),title:r("account.editing_xx",{name:e.name}),trapFocus:!0,onDragStart:g=>{g.stopPropagation()},children:a.jsx(fr,{...e,postSubmit:c,styles:n})}),a.jsx(h.Button,{size:n.button.size,onClick:l,leftIcon:a.jsx(oe.Edit,{size:20}),children:r("common.actions.edit")})]})}const mr=qe("AccountList",({styles:e=Se})=>{var u;const{t}=L.useTranslation(),{data:n=[],loading:r,refresh:s}=be.useRequest(async()=>{const{data:c}=await K.account.list();return c},{refreshDeps:[]}),{data:i=[],loading:l}=be.useRequest(async()=>(await K.role.list()).map(g=>({label:g.id,value:g.id,description:g.description,disabled:g.id==="SUPERADMIN"})),{refreshDeps:[]});return a.jsxs(a.Fragment,{children:[a.jsx(h.Group,{pt:e.spacing,position:"right",children:a.jsx(zt,{onSuccess:s,initialRoleID:((u=i==null?void 0:i[0])==null?void 0:u.value)??"INACTIVE"})}),a.jsxs(h.Box,{mt:e.spacing,sx:{position:"relative"},children:[a.jsx(h.LoadingOverlay,{visible:r||l}),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("account.username")}),a.jsx("th",{children:t("account.email")}),a.jsx("th",{children:t("role.label")}),a.jsx("th",{children:t("common.action")})]})}),a.jsx("tbody",{children:n.map(c=>{const{id:g,name:m,email:d,role_id:p}=c;return a.jsxs("tr",{children:[a.jsx("td",{width:200,children:m}),a.jsx("td",{width:200,children:d}),a.jsx("td",{width:200,children:p}),a.jsx("td",{width:200,children:a.jsxs(h.Group,{position:"left",children:[a.jsx(hr,{account:c,onSuccess:s}),a.jsx(Pt,{id:g,name:m,onSuccess:s})]})})]},g)})})]})]})]})});function br({postSubmit:e,styles:t=Se}){const{t:n}=L.useTranslation(),{control:r,handleSubmit:s}=j.useForm({defaultValues:{name:"",password:""}}),i=async({name:l,password:u})=>{try{I.showNotification({id:"for-login",title:n("common.state.pending"),message:n("account.state.logging_in"),loading:!0,autoClose:!1});const c=await K.account.login(l.trim(),u.trim());window.localStorage.setItem("token",c.token),I.updateNotification({id:"for-login",title:n("common.state.successful"),message:n("account.state.logged_in"),color:"green",autoClose:!0}),e(c)}catch(c){I.updateNotification({id:"for-login",title:n("common.state.failed"),message:c.message,color:"red",autoClose:!0})}};return a.jsx(h.Box,{mx:"auto",children:a.jsxs("form",{onSubmit:s(i),children:[a.jsx(j.Controller,{name:"name",control:r,render:({field:l})=>a.jsx(h.TextInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.username"),...l})}),a.jsx(j.Controller,{name:"password",control:r,render:({field:l})=>a.jsx(h.PasswordInput,{mb:t.spacing,size:t.size,required:!0,label:n("account.password"),...l})}),a.jsx(h.Group,{position:"right",mt:t.spacing,children:a.jsx(pe,{size:t.button.size})})]})})}const vr=qe("Login",({styles:e=Se,onSuccess:t})=>a.jsx(a.Fragment,{children:a.jsx(h.Box,{mt:e.spacing,sx:{position:"relative"},children:a.jsx(br,{styles:e,postSubmit:t})})})),tt={size:"sm",spacing:"md",button:{size:"xs"}};function yr({postSubmit:e,styles:t=tt,initialRoleID:n}){const{t:r}=L.useTranslation(),{control:s,handleSubmit:i}=j.useForm({defaultValues:{name:"",role_id:n}}),l=async({name:u,role_id:c})=>{try{I.showNotification({id:"for-creating",title:r("common.state.pending"),message:r("api_key.state.adding"),loading:!0,autoClose:!1});const{app_id:g,app_secret:m}=await K.api_key.create(u,c);I.updateNotification({id:"for-creating",title:r("common.state.successful"),message:r("api_key.state.added"),color:"green",autoClose:!0}),e(g,m)}catch(g){I.updateNotification({id:"for-creating",title:r("common.state.failed"),message:g.message,color:"red",autoClose:!0})}};return a.jsx(h.Box,{mx:"auto",mb:10,children:a.jsxs("form",{onSubmit:i(l),children:[a.jsx(j.Controller,{name:"name",control:s,render:({field:u})=>a.jsx(h.TextInput,{mb:t.spacing,size:t.size,required:!0,label:r("common.name"),...u})}),a.jsx(j.Controller,{name:"role_id",control:s,render:({field:u})=>a.jsx(gt,{styles:t,...u})}),a.jsx(h.Group,{position:"right",mt:t.spacing,children:a.jsx(pe,{size:t.button.size})})]})})}function Bt({onSuccess:e,styles:t=tt,initialRoleID:n}){const{t:r}=L.useTranslation(),s=Ae.useModals(),[i,l]=C.useState(!1),u=()=>l(!0),c=()=>l(!1),g=(m,d)=>{c(),s.openModal({title:r("api_key.save.title"),children:a.jsxs(h.Stack,{children:[a.jsx(h.Text,{color:"dimmed",children:r("api_key.save.warn")}),a.jsx(h.TextInput,{defaultValue:m,disabled:!0,label:r("api_key.app_id"),styles:{input:{cursor:"text !important"}}}),a.jsx(h.TextInput,{defaultValue:d,disabled:!0,label:r("api_key.app_secret"),styles:{input:{cursor:"text !important"}}}),a.jsx(h.Button,{size:"sm",onClick:()=>{Ae.closeAllModals()},children:r("api_key.save.saved")})]}),onClose:()=>{e()}})};return a.jsxs(a.Fragment,{children:[a.jsx(h.Modal,{opened:i,onClose:()=>l(!1),title:r("api_key.add"),trapFocus:!0,onDragStart:m=>{m.stopPropagation()},children:a.jsx(yr,{postSubmit:g,styles:t,initialRoleID:n})}),a.jsx(h.Button,{size:t.button.size,onClick:u,leftIcon:a.jsx(oe.PlaylistAdd,{size:20}),children:r("api_key.add")})]})}function Mt({id:e,name:t,onSuccess:n,styles:r=tt}){const{t:s}=L.useTranslation(),i=Ae.useModals(),l=async()=>{if(e){I.showNotification({id:"for-deleting",title:s("common.state.pending"),message:s("global_sql_snippet.state.deleting"),loading:!0,autoClose:!1});try{await K.api_key.delete(e),I.updateNotification({id:"for-deleting",title:s("common.state.successful"),message:s("global_sql_snippet.state.deleted",{name:t}),color:"green",autoClose:!0}),n()}catch(c){I.updateNotification({id:"for-deleting",title:s("common.state.failed"),message:c.message,color:"red",autoClose:!0})}}},u=()=>i.openConfirmModal({title:s("api_key.delete"),labels:{confirm:s("common.actions.confirm"),cancel:s("common.actions.cancel")},onCancel:()=>console.log("Cancel"),onConfirm:l,cancelProps:{size:r.button.size},confirmProps:{color:"red",size:r.button.size}});return a.jsx(h.Button,{size:r.button.size,color:"red",onClick:u,leftIcon:a.jsx(oe.Trash,{size:20}),children:s("common.actions.delete")})}const Sr=qe("APIKeyList",({styles:e=tt})=>{var u;const{t}=L.useTranslation(),{data:n=[],loading:r,refresh:s}=be.useRequest(async()=>{const{data:c}=await K.api_key.list();return c},{refreshDeps:[]}),{data:i=[],loading:l}=be.useRequest(async()=>(await K.role.list()).map(g=>({label:g.id,value:g.id,description:g.description,disabled:g.id==="SUPERADMIN"})),{refreshDeps:[]});return a.jsxs(a.Fragment,{children:[a.jsx(h.Group,{pt:e.spacing,position:"right",children:a.jsx(Bt,{onSuccess:s,initialRoleID:((u=i==null?void 0:i[0])==null?void 0:u.value)??"INACTIVE"})}),a.jsxs(h.Box,{mt:e.spacing,sx:{position:"relative"},children:[a.jsx(h.LoadingOverlay,{visible:r||l}),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",{children:t("api_key.app_id")}),a.jsx("th",{children:t("role.label")}),a.jsx("th",{children:t("common.action")})]})}),a.jsx("tbody",{children:n.map(c=>{const{id:g,name:m,app_id:d,role_id:p}=c;return a.jsxs("tr",{children:[a.jsx("td",{width:200,children:m}),a.jsx("td",{width:200,children:d}),a.jsx("td",{width:200,children:p}),a.jsx("td",{width:200,children:a.jsx(h.Group,{position:"left",children:a.jsx(Mt,{id:g,name:m,onSuccess:s})})})]},g)})})]})]})]})}),Ie={size:"sm",spacing:"md",button:{size:"xs"}};function xr({postSubmit:e,styles:t=Ie}){const{t:n}=L.useTranslation(),{control:r,handleSubmit:s}=j.useForm({defaultValues:{id:"",content:""}}),i=async l=>{try{I.showNotification({id:"for-creating",title:n("common.state.pending"),message:n("global_sql_snippet.state.adding"),loading:!0,autoClose:!1}),await K.sql_snippet.create(l),I.updateNotification({id:"for-creating",title:n("common.state.successful"),message:n("global_sql_snippet.state.added"),color:"green",autoClose:!0}),e()}catch(u){I.updateNotification({id:"for-creating",title:n("common.state.failed"),message:u.message,color:"red",autoClose:!0})}};return a.jsx(h.Box,{mx:"auto",children:a.jsxs("form",{onSubmit:s(i),children:[a.jsx(j.Controller,{name:"id",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(j.Controller,{name:"content",control:r,render:({field:l})=>a.jsxs(h.Stack,{spacing:4,children:[a.jsx(h.Text,{size:14,fw:500,color:"#212529",sx:{cursor:"default"},children:n("global_sql_snippet.content")}),a.jsx(Lt,{height:"600px",...l})]})}),a.jsx(h.Group,{position:"right",mt:t.spacing,children:a.jsx(pe,{size:t.button.size})})]})})}function Gt({onSuccess:e,styles:t=Ie}){const{t:n}=L.useTranslation(),[r,s]=C.useState(!1),i=()=>s(!0),l=()=>s(!1),u=()=>{l(),e()};return a.jsxs(a.Fragment,{children:[a.jsx(h.Modal,{opened:r,onClose:()=>s(!1),title:n("global_sql_snippet.add"),trapFocus:!0,onDragStart:c=>{c.stopPropagation()},size:"80vw",children:a.jsx(xr,{postSubmit:u,styles:t})}),a.jsx(h.Button,{size:t.button.size,onClick:i,leftIcon:a.jsx(oe.PlaylistAdd,{size:18}),children:n("global_sql_snippet.add")})]})}function _r({postSubmit:e,styles:t=Ie,id:n,content:r}){const{t:s}=L.useTranslation(),{control:i,handleSubmit:l}=j.useForm({defaultValues:{id:n,content:r}}),u=async c=>{try{I.showNotification({id:"for-updating",title:s("common.state.pending"),message:s("global_sql_snippet.state.updating"),loading:!0,autoClose:!1}),await K.sql_snippet.update(c),I.updateNotification({id:"for-updating",title:s("common.state.successful"),message:s("global_sql_snippet.state.updated"),color:"green",autoClose:!0}),e()}catch(g){I.updateNotification({id:"for-updating",title:s("common.state.failed"),message:g.message,color:"red",autoClose:!0})}};return a.jsx(h.Box,{mx:"auto",children:a.jsxs("form",{onSubmit:l(u),children:[a.jsx(j.Controller,{name:"id",control:i,render:({field:c})=>a.jsx(h.TextInput,{mb:t.spacing,size:t.size,required:!0,label:s("common.name"),placeholder:s("common.name_placeholder"),...c})}),a.jsx(j.Controller,{name:"content",control:i,render:({field:c})=>a.jsxs(h.Stack,{spacing:4,children:[a.jsx(h.Text,{size:14,fw:500,color:"#212529",sx:{cursor:"default"},children:s("global_sql_snippet.content")}),a.jsx(Lt,{height:"600px",...c})]})}),a.jsx(h.Group,{position:"right",mt:t.spacing,children:a.jsx(pe,{size:t.button.size})})]})})}function Ut({onSuccess:e,styles:t=Ie,...n}){const{t:r}=L.useTranslation(),[s,i]=C.useState(!1),l=()=>i(!0),u=()=>i(!1),c=()=>{u(),e()};return a.jsxs(a.Fragment,{children:[a.jsx(h.Modal,{opened:s,onClose:()=>i(!1),title:r("global_sql_snippet.edit"),trapFocus:!0,onDragStart:g=>{g.stopPropagation()},size:"80vw",children:a.jsx(_r,{postSubmit:c,styles:t,...n})}),a.jsx(h.Button,{size:t.button.size,onClick:l,leftIcon:a.jsx(se.IconEdit,{size:18}),children:r("common.actions.edit")})]})}/**
|
|
32
32
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
33
33
|
*
|
|
@@ -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.11.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":"fb48-171","name":"jsx-runtime.js?commonjs-module"},{"name":"cjs","children":[{"uid":"fb48-173","name":"react-jsx-runtime.production.min.js?commonjs-exports"},{"uid":"fb48-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":"fb48-175","name":"react-jsx-runtime.production.min.js"},{"uid":"fb48-179","name":"react-jsx-runtime.development.js"}]},{"uid":"fb48-181","name":"jsx-runtime.js"}]},{"name":"dayjs/esm","children":[{"uid":"fb48-199","name":"constant.js"},{"name":"locale/en.js","uid":"fb48-201"},{"uid":"fb48-203","name":"utils.js"},{"uid":"fb48-205","name":"index.js"}]},{"name":"prism-react-renderer","children":[{"name":"prism/index.js","uid":"fb48-281"},{"name":"themes/duotoneDark/index.js","uid":"fb48-283"},{"name":"dist/index.js","uid":"fb48-285"}]},{"name":"@mantine/prism/esm","children":[{"name":"Prism","children":[{"uid":"fb48-287","name":"CopyIcon.js"},{"uid":"fb48-289","name":"prism-theme.js"},{"uid":"fb48-291","name":"Prism.styles.js"},{"uid":"fb48-293","name":"Prism.js"}]},{"name":"PrismTabs","children":[{"uid":"fb48-295","name":"PrismTabs.styles.js"},{"uid":"fb48-297","name":"PrismTabs.js"}]},{"uid":"fb48-299","name":"index.js"}]}]},{"name":"shared/src/api-client","children":[{"uid":"fb48-183","name":"utils.ts"},{"uid":"fb48-185","name":"default-api-client.ts"},{"uid":"fb48-187","name":"facade-api-client.ts"}]}]},{"name":"src","children":[{"name":"api-caller","children":[{"uid":"fb48-189","name":"request.ts"},{"uid":"fb48-191","name":"account.ts"},{"uid":"fb48-193","name":"api-key.ts"},{"uid":"fb48-195","name":"datasource.ts"},{"uid":"fb48-197","name":"role.ts"},{"uid":"fb48-207","name":"sql_snippet.ts"},{"uid":"fb48-209","name":"index.ts"}]},{"name":"datasource","children":[{"uid":"fb48-211","name":"styles.ts"},{"name":"add-data-source","children":[{"name":"forms","children":[{"uid":"fb48-229","name":"database.tsx"},{"uid":"fb48-235","name":"http.tsx"}]},{"uid":"fb48-237","name":"db-permission-tips.tsx"},{"uid":"fb48-239","name":"index.tsx"}]},{"name":"components","children":[{"name":"function-string-field","children":[{"uid":"fb48-231","name":"function-string-editor.tsx"},{"uid":"fb48-233","name":"index.tsx"}]},{"uid":"fb48-241","name":"data-source-icon.tsx"}]},{"uid":"fb48-243","name":"delete-data-source.tsx"},{"name":"edit-data-source","children":[{"name":"forms/http.tsx","uid":"fb48-245"},{"uid":"fb48-247","name":"index.tsx"}]},{"uid":"fb48-249","name":"data-source-list.tsx"}]},{"name":"components","children":[{"uid":"fb48-213","name":"minimal-mocaco-editor.tsx"},{"uid":"fb48-215","name":"submit-form-button.tsx"},{"uid":"fb48-227","name":"with-entry.tsx"}]},{"name":"i18n","children":[{"uid":"fb48-217","name":"en.ts"},{"uid":"fb48-219","name":"zh.ts"},{"uid":"fb48-221","name":"i18n.ts"},{"uid":"fb48-223","name":"i18next-context.tsx"}]},{"name":"utils/load-monaco-editor.ts","uid":"fb48-225"},{"name":"account","children":[{"uid":"fb48-251","name":"role-selector.tsx"},{"uid":"fb48-253","name":"styles.ts"},{"uid":"fb48-255","name":"add-account.tsx"},{"uid":"fb48-257","name":"delete-account.tsx"},{"uid":"fb48-259","name":"edit-account.tsx"},{"uid":"fb48-261","name":"account-list.tsx"},{"name":"login","children":[{"uid":"fb48-263","name":"form.tsx"},{"uid":"fb48-265","name":"index.tsx"}]}]},{"name":"api-key","children":[{"uid":"fb48-267","name":"styles.ts"},{"uid":"fb48-269","name":"add-api-key.tsx"},{"uid":"fb48-271","name":"delete-api-key.tsx"},{"uid":"fb48-273","name":"api-key-list.tsx"}]},{"name":"sql_snippet","children":[{"uid":"fb48-275","name":"styles.ts"},{"uid":"fb48-277","name":"add-sql_snippet.tsx"},{"uid":"fb48-279","name":"update-sql_snippet.tsx"},{"uid":"fb48-301","name":"delete-sql_snippet.tsx"},{"uid":"fb48-303","name":"sql_snippet-list.tsx"}]},{"uid":"fb48-305","name":"index.ts"}]},{"uid":"fb48-307","name":"package.json"}]}],"isRoot":true},"nodeParts":{"fb48-171":{"renderedLength":33,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-170"},"fb48-173":{"renderedLength":42,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-172"},"fb48-175":{"renderedLength":1217,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-174"},"fb48-177":{"renderedLength":39,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-176"},"fb48-179":{"renderedLength":45245,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-178"},"fb48-181":{"renderedLength":237,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-180"},"fb48-183":{"renderedLength":949,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-182"},"fb48-185":{"renderedLength":2140,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-184"},"fb48-187":{"renderedLength":422,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-186"},"fb48-189":{"renderedLength":426,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-188"},"fb48-191":{"renderedLength":1913,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-190"},"fb48-193":{"renderedLength":641,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-192"},"fb48-195":{"renderedLength":730,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-194"},"fb48-197":{"renderedLength":132,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-196"},"fb48-199":{"renderedLength":1011,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-198"},"fb48-201":{"renderedLength":496,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-200"},"fb48-203":{"renderedLength":1623,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-202"},"fb48-205":{"renderedLength":14006,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-204"},"fb48-207":{"renderedLength":1079,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-206"},"fb48-209":{"renderedLength":94,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-208"},"fb48-211":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-210"},"fb48-213":{"renderedLength":682,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-212"},"fb48-215":{"renderedLength":367,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-214"},"fb48-217":{"renderedLength":4266,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-216"},"fb48-219":{"renderedLength":4276,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-218"},"fb48-221":{"renderedLength":253,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-220"},"fb48-223":{"renderedLength":246,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-222"},"fb48-225":{"renderedLength":551,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-224"},"fb48-227":{"renderedLength":625,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-226"},"fb48-229":{"renderedLength":3180,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-228"},"fb48-231":{"renderedLength":502,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-230"},"fb48-233":{"renderedLength":2382,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-232"},"fb48-235":{"renderedLength":2892,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-234"},"fb48-237":{"renderedLength":572,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-236"},"fb48-239":{"renderedLength":3067,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-238"},"fb48-241":{"renderedLength":790,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-240"},"fb48-243":{"renderedLength":2213,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-242"},"fb48-245":{"renderedLength":2536,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-244"},"fb48-247":{"renderedLength":3542,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-246"},"fb48-249":{"renderedLength":2550,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-248"},"fb48-251":{"renderedLength":1458,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-250"},"fb48-253":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-252"},"fb48-255":{"renderedLength":3801,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-254"},"fb48-257":{"renderedLength":1777,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-256"},"fb48-259":{"renderedLength":4913,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-258"},"fb48-261":{"renderedLength":3049,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-260"},"fb48-263":{"renderedLength":2208,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-262"},"fb48-265":{"renderedLength":397,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-264"},"fb48-267":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-266"},"fb48-269":{"renderedLength":4196,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-268"},"fb48-271":{"renderedLength":1798,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-270"},"fb48-273":{"renderedLength":2907,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-272"},"fb48-275":{"renderedLength":102,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-274"},"fb48-277":{"renderedLength":3371,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-276"},"fb48-279":{"renderedLength":3408,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-278"},"fb48-281":{"renderedLength":148464,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-280"},"fb48-283":{"renderedLength":1767,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-282"},"fb48-285":{"renderedLength":9562,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-284"},"fb48-287":{"renderedLength":1394,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-286"},"fb48-289":{"renderedLength":3572,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-288"},"fb48-291":{"renderedLength":1430,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-290"},"fb48-293":{"renderedLength":6332,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-292"},"fb48-295":{"renderedLength":1639,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-294"},"fb48-297":{"renderedLength":2707,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-296"},"fb48-299":{"renderedLength":170,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-298"},"fb48-301":{"renderedLength":1807,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-300"},"fb48-303":{"renderedLength":3690,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-302"},"fb48-305":{"renderedLength":183,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-304"},"fb48-307":{"renderedLength":28,"gzipLength":0,"brotliLength":0,"metaUid":"fb48-306"}},"nodeMetas":{"fb48-170":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js?commonjs-module","moduleParts":{"settings-form.umd.js":"fb48-171"},"imported":[],"importedBy":[{"uid":"fb48-180"}]},"fb48-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":"fb48-173"},"imported":[],"importedBy":[{"uid":"fb48-174"}]},"fb48-174":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.production.min.js","moduleParts":{"settings-form.umd.js":"fb48-175"},"imported":[{"uid":"fb48-329"},{"uid":"fb48-172"},{"uid":"fb48-332"}],"importedBy":[{"uid":"fb48-180"}]},"fb48-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":"fb48-177"},"imported":[],"importedBy":[{"uid":"fb48-178"}]},"fb48-178":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.development.js","moduleParts":{"settings-form.umd.js":"fb48-179"},"imported":[{"uid":"fb48-329"},{"uid":"fb48-176"},{"uid":"fb48-332"}],"importedBy":[{"uid":"fb48-180"}]},"fb48-180":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js","moduleParts":{"settings-form.umd.js":"fb48-181"},"imported":[{"uid":"fb48-329"},{"uid":"fb48-170"},{"uid":"fb48-174"},{"uid":"fb48-178"}],"importedBy":[{"uid":"fb48-238"},{"uid":"fb48-248"},{"uid":"fb48-242"},{"uid":"fb48-254"},{"uid":"fb48-260"},{"uid":"fb48-256"},{"uid":"fb48-264"},{"uid":"fb48-268"},{"uid":"fb48-272"},{"uid":"fb48-270"},{"uid":"fb48-276"},{"uid":"fb48-278"},{"uid":"fb48-302"},{"uid":"fb48-300"},{"uid":"fb48-228"},{"uid":"fb48-234"},{"uid":"fb48-236"},{"uid":"fb48-240"},{"uid":"fb48-246"},{"uid":"fb48-250"},{"uid":"fb48-258"},{"uid":"fb48-262"},{"uid":"fb48-212"},{"uid":"fb48-232"},{"uid":"fb48-214"},{"uid":"fb48-226"},{"uid":"fb48-244"},{"uid":"fb48-230"},{"uid":"fb48-222"}]},"fb48-182":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/utils.ts","moduleParts":{"settings-form.umd.js":"fb48-183"},"imported":[{"uid":"fb48-334"}],"importedBy":[{"uid":"fb48-328"},{"uid":"fb48-184"}]},"fb48-184":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/default-api-client.ts","moduleParts":{"settings-form.umd.js":"fb48-185"},"imported":[{"uid":"fb48-335"},{"uid":"fb48-182"},{"uid":"fb48-336"}],"importedBy":[{"uid":"fb48-328"}]},"fb48-186":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/facade-api-client.ts","moduleParts":{"settings-form.umd.js":"fb48-187"},"imported":[],"importedBy":[{"uid":"fb48-328"}]},"fb48-188":{"id":"/src/api-caller/request.ts","moduleParts":{"settings-form.umd.js":"fb48-189"},"imported":[{"uid":"fb48-317"}],"importedBy":[{"uid":"fb48-304"},{"uid":"fb48-190"},{"uid":"fb48-192"},{"uid":"fb48-194"},{"uid":"fb48-196"},{"uid":"fb48-206"},{"uid":"fb48-226"}]},"fb48-190":{"id":"/src/api-caller/account.ts","moduleParts":{"settings-form.umd.js":"fb48-191"},"imported":[{"uid":"fb48-188"}],"importedBy":[{"uid":"fb48-208"}]},"fb48-192":{"id":"/src/api-caller/api-key.ts","moduleParts":{"settings-form.umd.js":"fb48-193"},"imported":[{"uid":"fb48-188"}],"importedBy":[{"uid":"fb48-208"}]},"fb48-194":{"id":"/src/api-caller/datasource.ts","moduleParts":{"settings-form.umd.js":"fb48-195"},"imported":[{"uid":"fb48-188"}],"importedBy":[{"uid":"fb48-208"}]},"fb48-196":{"id":"/src/api-caller/role.ts","moduleParts":{"settings-form.umd.js":"fb48-197"},"imported":[{"uid":"fb48-188"}],"importedBy":[{"uid":"fb48-208"}]},"fb48-198":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/constant.js","moduleParts":{"settings-form.umd.js":"fb48-199"},"imported":[],"importedBy":[{"uid":"fb48-204"},{"uid":"fb48-202"}]},"fb48-200":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/locale/en.js","moduleParts":{"settings-form.umd.js":"fb48-201"},"imported":[],"importedBy":[{"uid":"fb48-204"}]},"fb48-202":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/utils.js","moduleParts":{"settings-form.umd.js":"fb48-203"},"imported":[{"uid":"fb48-198"}],"importedBy":[{"uid":"fb48-204"}]},"fb48-204":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/index.js","moduleParts":{"settings-form.umd.js":"fb48-205"},"imported":[{"uid":"fb48-198"},{"uid":"fb48-200"},{"uid":"fb48-202"}],"importedBy":[{"uid":"fb48-206"}]},"fb48-206":{"id":"/src/api-caller/sql_snippet.ts","moduleParts":{"settings-form.umd.js":"fb48-207"},"imported":[{"uid":"fb48-204"},{"uid":"fb48-188"}],"importedBy":[{"uid":"fb48-208"}]},"fb48-208":{"id":"/src/api-caller/index.ts","moduleParts":{"settings-form.umd.js":"fb48-209"},"imported":[{"uid":"fb48-190"},{"uid":"fb48-192"},{"uid":"fb48-194"},{"uid":"fb48-196"},{"uid":"fb48-206"}],"importedBy":[{"uid":"fb48-238"},{"uid":"fb48-248"},{"uid":"fb48-242"},{"uid":"fb48-254"},{"uid":"fb48-260"},{"uid":"fb48-256"},{"uid":"fb48-268"},{"uid":"fb48-272"},{"uid":"fb48-270"},{"uid":"fb48-276"},{"uid":"fb48-278"},{"uid":"fb48-302"},{"uid":"fb48-300"},{"uid":"fb48-246"},{"uid":"fb48-250"},{"uid":"fb48-258"},{"uid":"fb48-262"}]},"fb48-210":{"id":"/src/datasource/styles.ts","moduleParts":{"settings-form.umd.js":"fb48-211"},"imported":[],"importedBy":[{"uid":"fb48-238"},{"uid":"fb48-248"},{"uid":"fb48-242"},{"uid":"fb48-228"},{"uid":"fb48-234"},{"uid":"fb48-236"},{"uid":"fb48-246"},{"uid":"fb48-244"}]},"fb48-212":{"id":"/src/components/minimal-mocaco-editor.tsx","moduleParts":{"settings-form.umd.js":"fb48-213"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-330"}],"importedBy":[{"uid":"fb48-276"},{"uid":"fb48-278"},{"uid":"fb48-324"}]},"fb48-214":{"id":"/src/components/submit-form-button.tsx","moduleParts":{"settings-form.umd.js":"fb48-215"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-326"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-324"}]},"fb48-216":{"id":"/src/i18n/en.ts","moduleParts":{"settings-form.umd.js":"fb48-217"},"imported":[],"importedBy":[{"uid":"fb48-220"}]},"fb48-218":{"id":"/src/i18n/zh.ts","moduleParts":{"settings-form.umd.js":"fb48-219"},"imported":[],"importedBy":[{"uid":"fb48-220"}]},"fb48-220":{"id":"/src/i18n/i18n.ts","moduleParts":{"settings-form.umd.js":"fb48-221"},"imported":[{"uid":"fb48-337"},{"uid":"fb48-322"},{"uid":"fb48-338"},{"uid":"fb48-339"},{"uid":"fb48-216"},{"uid":"fb48-218"}],"importedBy":[{"uid":"fb48-222"}]},"fb48-222":{"id":"/src/i18n/i18next-context.tsx","moduleParts":{"settings-form.umd.js":"fb48-223"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-320"},{"uid":"fb48-322"},{"uid":"fb48-220"}],"importedBy":[{"uid":"fb48-226"}]},"fb48-224":{"id":"/src/utils/load-monaco-editor.ts","moduleParts":{"settings-form.umd.js":"fb48-225"},"imported":[{"uid":"fb48-330"},{"uid":"fb48-320"}],"importedBy":[{"uid":"fb48-226"}]},"fb48-226":{"id":"/src/components/with-entry.tsx","moduleParts":{"settings-form.umd.js":"fb48-227"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-320"},{"uid":"fb48-188"},{"uid":"fb48-222"},{"uid":"fb48-224"},{"uid":"fb48-318"}],"importedBy":[{"uid":"fb48-324"}]},"fb48-228":{"id":"/src/datasource/add-data-source/forms/database.tsx","moduleParts":{"settings-form.umd.js":"fb48-229"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-320"},{"uid":"fb48-327"},{"uid":"fb48-324"},{"uid":"fb48-210"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-238"}]},"fb48-230":{"id":"/src/datasource/components/function-string-field/function-string-editor.tsx","moduleParts":{"settings-form.umd.js":"fb48-231"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-330"}],"importedBy":[{"uid":"fb48-232"}]},"fb48-232":{"id":"/src/datasource/components/function-string-field/index.tsx","moduleParts":{"settings-form.umd.js":"fb48-233"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-323"},{"uid":"fb48-320"},{"uid":"fb48-321"},{"uid":"fb48-230"},{"uid":"fb48-322"},{"uid":"fb48-326"}],"importedBy":[{"uid":"fb48-234"},{"uid":"fb48-244"}]},"fb48-234":{"id":"/src/datasource/add-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"fb48-235"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-327"},{"uid":"fb48-210"},{"uid":"fb48-232"},{"uid":"fb48-324"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-238"}]},"fb48-236":{"id":"/src/datasource/add-data-source/db-permission-tips.tsx","moduleParts":{"settings-form.umd.js":"fb48-237"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-322"},{"uid":"fb48-321"},{"uid":"fb48-210"}],"importedBy":[{"uid":"fb48-238"}]},"fb48-238":{"id":"/src/datasource/add-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"fb48-239"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-319"},{"uid":"fb48-320"},{"uid":"fb48-321"},{"uid":"fb48-208"},{"uid":"fb48-210"},{"uid":"fb48-228"},{"uid":"fb48-234"},{"uid":"fb48-236"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-308"},{"uid":"fb48-248"}]},"fb48-240":{"id":"/src/datasource/components/data-source-icon.tsx","moduleParts":{"settings-form.umd.js":"fb48-241"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-326"},{"uid":"fb48-318"}],"importedBy":[{"uid":"fb48-248"}]},"fb48-242":{"id":"/src/datasource/delete-data-source.tsx","moduleParts":{"settings-form.umd.js":"fb48-243"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-325"},{"uid":"fb48-319"},{"uid":"fb48-326"},{"uid":"fb48-321"},{"uid":"fb48-208"},{"uid":"fb48-210"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-308"},{"uid":"fb48-248"}]},"fb48-244":{"id":"/src/datasource/edit-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"fb48-245"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-327"},{"uid":"fb48-232"},{"uid":"fb48-210"},{"uid":"fb48-324"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-246"}]},"fb48-246":{"id":"/src/datasource/edit-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"fb48-247"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-319"},{"uid":"fb48-326"},{"uid":"fb48-320"},{"uid":"fb48-208"},{"uid":"fb48-210"},{"uid":"fb48-244"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-248"}]},"fb48-248":{"id":"/src/datasource/data-source-list.tsx","moduleParts":{"settings-form.umd.js":"fb48-249"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-323"},{"uid":"fb48-322"},{"uid":"fb48-208"},{"uid":"fb48-324"},{"uid":"fb48-238"},{"uid":"fb48-240"},{"uid":"fb48-242"},{"uid":"fb48-246"},{"uid":"fb48-210"}],"importedBy":[{"uid":"fb48-308"}]},"fb48-250":{"id":"/src/account/role-selector.tsx","moduleParts":{"settings-form.umd.js":"fb48-251"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-323"},{"uid":"fb48-320"},{"uid":"fb48-208"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-254"},{"uid":"fb48-268"},{"uid":"fb48-258"}]},"fb48-252":{"id":"/src/account/styles.ts","moduleParts":{"settings-form.umd.js":"fb48-253"},"imported":[],"importedBy":[{"uid":"fb48-254"},{"uid":"fb48-260"},{"uid":"fb48-256"},{"uid":"fb48-264"},{"uid":"fb48-258"},{"uid":"fb48-262"}]},"fb48-254":{"id":"/src/account/add-account.tsx","moduleParts":{"settings-form.umd.js":"fb48-255"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-319"},{"uid":"fb48-320"},{"uid":"fb48-327"},{"uid":"fb48-321"},{"uid":"fb48-208"},{"uid":"fb48-324"},{"uid":"fb48-250"},{"uid":"fb48-252"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-309"},{"uid":"fb48-260"}]},"fb48-256":{"id":"/src/account/delete-account.tsx","moduleParts":{"settings-form.umd.js":"fb48-257"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-325"},{"uid":"fb48-319"},{"uid":"fb48-321"},{"uid":"fb48-208"},{"uid":"fb48-252"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-309"},{"uid":"fb48-260"}]},"fb48-258":{"id":"/src/account/edit-account.tsx","moduleParts":{"settings-form.umd.js":"fb48-259"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-319"},{"uid":"fb48-320"},{"uid":"fb48-327"},{"uid":"fb48-321"},{"uid":"fb48-208"},{"uid":"fb48-250"},{"uid":"fb48-252"},{"uid":"fb48-324"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-260"}]},"fb48-260":{"id":"/src/account/account-list.tsx","moduleParts":{"settings-form.umd.js":"fb48-261"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-323"},{"uid":"fb48-322"},{"uid":"fb48-208"},{"uid":"fb48-324"},{"uid":"fb48-254"},{"uid":"fb48-256"},{"uid":"fb48-258"},{"uid":"fb48-252"}],"importedBy":[{"uid":"fb48-309"}]},"fb48-262":{"id":"/src/account/login/form.tsx","moduleParts":{"settings-form.umd.js":"fb48-263"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-319"},{"uid":"fb48-327"},{"uid":"fb48-208"},{"uid":"fb48-252"},{"uid":"fb48-324"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-264"}]},"fb48-264":{"id":"/src/account/login/index.tsx","moduleParts":{"settings-form.umd.js":"fb48-265"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-324"},{"uid":"fb48-252"},{"uid":"fb48-262"}],"importedBy":[{"uid":"fb48-309"}]},"fb48-266":{"id":"/src/api-key/styles.ts","moduleParts":{"settings-form.umd.js":"fb48-267"},"imported":[],"importedBy":[{"uid":"fb48-268"},{"uid":"fb48-272"},{"uid":"fb48-270"}]},"fb48-268":{"id":"/src/api-key/add-api-key.tsx","moduleParts":{"settings-form.umd.js":"fb48-269"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-325"},{"uid":"fb48-319"},{"uid":"fb48-320"},{"uid":"fb48-327"},{"uid":"fb48-321"},{"uid":"fb48-250"},{"uid":"fb48-208"},{"uid":"fb48-324"},{"uid":"fb48-266"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-310"},{"uid":"fb48-272"}]},"fb48-270":{"id":"/src/api-key/delete-api-key.tsx","moduleParts":{"settings-form.umd.js":"fb48-271"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-325"},{"uid":"fb48-319"},{"uid":"fb48-321"},{"uid":"fb48-208"},{"uid":"fb48-266"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-310"},{"uid":"fb48-272"}]},"fb48-272":{"id":"/src/api-key/api-key-list.tsx","moduleParts":{"settings-form.umd.js":"fb48-273"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-323"},{"uid":"fb48-322"},{"uid":"fb48-208"},{"uid":"fb48-324"},{"uid":"fb48-268"},{"uid":"fb48-270"},{"uid":"fb48-266"}],"importedBy":[{"uid":"fb48-310"}]},"fb48-274":{"id":"/src/sql_snippet/styles.ts","moduleParts":{"settings-form.umd.js":"fb48-275"},"imported":[],"importedBy":[{"uid":"fb48-276"},{"uid":"fb48-278"},{"uid":"fb48-302"},{"uid":"fb48-300"}]},"fb48-276":{"id":"/src/sql_snippet/add-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"fb48-277"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-319"},{"uid":"fb48-320"},{"uid":"fb48-327"},{"uid":"fb48-321"},{"uid":"fb48-208"},{"uid":"fb48-212"},{"uid":"fb48-274"},{"uid":"fb48-324"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-311"},{"uid":"fb48-302"}]},"fb48-278":{"id":"/src/sql_snippet/update-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"fb48-279"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-319"},{"uid":"fb48-326"},{"uid":"fb48-320"},{"uid":"fb48-327"},{"uid":"fb48-208"},{"uid":"fb48-212"},{"uid":"fb48-274"},{"uid":"fb48-324"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-311"},{"uid":"fb48-302"}]},"fb48-280":{"id":"/Users/leto/github/merico-dev/table/node_modules/prism-react-renderer/prism/index.js","moduleParts":{"settings-form.umd.js":"fb48-281"},"imported":[],"importedBy":[{"uid":"fb48-284"}]},"fb48-282":{"id":"/Users/leto/github/merico-dev/table/node_modules/prism-react-renderer/themes/duotoneDark/index.js","moduleParts":{"settings-form.umd.js":"fb48-283"},"imported":[],"importedBy":[{"uid":"fb48-284"}]},"fb48-284":{"id":"/Users/leto/github/merico-dev/table/node_modules/prism-react-renderer/dist/index.js","moduleParts":{"settings-form.umd.js":"fb48-285"},"imported":[{"uid":"fb48-280"},{"uid":"fb48-282"},{"uid":"fb48-320"}],"importedBy":[{"uid":"fb48-292"}]},"fb48-286":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/CopyIcon.js","moduleParts":{"settings-form.umd.js":"fb48-287"},"imported":[{"uid":"fb48-320"}],"importedBy":[{"uid":"fb48-292"}]},"fb48-288":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/prism-theme.js","moduleParts":{"settings-form.umd.js":"fb48-289"},"imported":[],"importedBy":[{"uid":"fb48-292"}]},"fb48-290":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/Prism.styles.js","moduleParts":{"settings-form.umd.js":"fb48-291"},"imported":[{"uid":"fb48-318"}],"importedBy":[{"uid":"fb48-292"}]},"fb48-292":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/Prism.js","moduleParts":{"settings-form.umd.js":"fb48-293"},"imported":[{"uid":"fb48-320"},{"uid":"fb48-284"},{"uid":"fb48-318"},{"uid":"fb48-333"},{"uid":"fb48-286"},{"uid":"fb48-288"},{"uid":"fb48-290"}],"importedBy":[{"uid":"fb48-298"},{"uid":"fb48-296"}]},"fb48-294":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/PrismTabs/PrismTabs.styles.js","moduleParts":{"settings-form.umd.js":"fb48-295"},"imported":[{"uid":"fb48-318"}],"importedBy":[{"uid":"fb48-296"}]},"fb48-296":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/PrismTabs/PrismTabs.js","moduleParts":{"settings-form.umd.js":"fb48-297"},"imported":[{"uid":"fb48-320"},{"uid":"fb48-318"},{"uid":"fb48-292"},{"uid":"fb48-294"}],"importedBy":[{"uid":"fb48-298"}]},"fb48-298":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/index.js","moduleParts":{"settings-form.umd.js":"fb48-299"},"imported":[{"uid":"fb48-318"},{"uid":"fb48-296"},{"uid":"fb48-292"}],"importedBy":[{"uid":"fb48-302"}]},"fb48-300":{"id":"/src/sql_snippet/delete-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"fb48-301"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-325"},{"uid":"fb48-319"},{"uid":"fb48-321"},{"uid":"fb48-208"},{"uid":"fb48-274"},{"uid":"fb48-322"}],"importedBy":[{"uid":"fb48-311"},{"uid":"fb48-302"}]},"fb48-302":{"id":"/src/sql_snippet/sql_snippet-list.tsx","moduleParts":{"settings-form.umd.js":"fb48-303"},"imported":[{"uid":"fb48-180"},{"uid":"fb48-318"},{"uid":"fb48-298"},{"uid":"fb48-323"},{"uid":"fb48-208"},{"uid":"fb48-276"},{"uid":"fb48-300"},{"uid":"fb48-274"},{"uid":"fb48-326"},{"uid":"fb48-322"},{"uid":"fb48-324"},{"uid":"fb48-278"}],"importedBy":[{"uid":"fb48-311"}]},"fb48-304":{"id":"/src/index.ts","moduleParts":{"settings-form.umd.js":"fb48-305"},"imported":[{"uid":"fb48-308"},{"uid":"fb48-309"},{"uid":"fb48-310"},{"uid":"fb48-311"},{"uid":"fb48-188"},{"uid":"fb48-312"},{"uid":"fb48-313"},{"uid":"fb48-314"},{"uid":"fb48-315"},{"uid":"fb48-316"},{"uid":"fb48-306","dynamic":true}],"importedBy":[],"isEntry":true},"fb48-306":{"id":"/package.json","moduleParts":{"settings-form.umd.js":"fb48-307"},"imported":[],"importedBy":[{"uid":"fb48-304"}]},"fb48-308":{"id":"/src/datasource/index.tsx","moduleParts":{},"imported":[{"uid":"fb48-238"},{"uid":"fb48-248"},{"uid":"fb48-242"}],"importedBy":[{"uid":"fb48-304"}]},"fb48-309":{"id":"/src/account/index.tsx","moduleParts":{},"imported":[{"uid":"fb48-254"},{"uid":"fb48-260"},{"uid":"fb48-256"},{"uid":"fb48-264"}],"importedBy":[{"uid":"fb48-304"}]},"fb48-310":{"id":"/src/api-key/index.tsx","moduleParts":{},"imported":[{"uid":"fb48-268"},{"uid":"fb48-272"},{"uid":"fb48-270"}],"importedBy":[{"uid":"fb48-304"}]},"fb48-311":{"id":"/src/sql_snippet/index.tsx","moduleParts":{},"imported":[{"uid":"fb48-276"},{"uid":"fb48-278"},{"uid":"fb48-302"},{"uid":"fb48-300"}],"importedBy":[{"uid":"fb48-304"}]},"fb48-312":{"id":"/src/api-caller/account.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-304"}]},"fb48-313":{"id":"/src/api-caller/api-key.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-304"}]},"fb48-314":{"id":"/src/api-caller/datasource.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-304"}]},"fb48-315":{"id":"/src/api-caller/role.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-304"}]},"fb48-316":{"id":"/src/api-caller/sql_snippet.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-304"}]},"fb48-317":{"id":"/Users/leto/github/merico-dev/table/shared/src/index.ts","moduleParts":{},"imported":[{"uid":"fb48-328"}],"importedBy":[{"uid":"fb48-188"}]},"fb48-318":{"id":"@mantine/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-238"},{"uid":"fb48-248"},{"uid":"fb48-242"},{"uid":"fb48-254"},{"uid":"fb48-260"},{"uid":"fb48-256"},{"uid":"fb48-264"},{"uid":"fb48-268"},{"uid":"fb48-272"},{"uid":"fb48-270"},{"uid":"fb48-276"},{"uid":"fb48-278"},{"uid":"fb48-302"},{"uid":"fb48-300"},{"uid":"fb48-228"},{"uid":"fb48-234"},{"uid":"fb48-236"},{"uid":"fb48-240"},{"uid":"fb48-246"},{"uid":"fb48-250"},{"uid":"fb48-258"},{"uid":"fb48-262"},{"uid":"fb48-298"},{"uid":"fb48-232"},{"uid":"fb48-214"},{"uid":"fb48-226"},{"uid":"fb48-244"},{"uid":"fb48-296"},{"uid":"fb48-292"},{"uid":"fb48-230"},{"uid":"fb48-294"},{"uid":"fb48-290"}],"isExternal":true},"fb48-319":{"id":"@mantine/notifications","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-238"},{"uid":"fb48-242"},{"uid":"fb48-254"},{"uid":"fb48-256"},{"uid":"fb48-268"},{"uid":"fb48-270"},{"uid":"fb48-276"},{"uid":"fb48-278"},{"uid":"fb48-300"},{"uid":"fb48-246"},{"uid":"fb48-258"},{"uid":"fb48-262"}],"isExternal":true},"fb48-320":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-238"},{"uid":"fb48-254"},{"uid":"fb48-268"},{"uid":"fb48-276"},{"uid":"fb48-278"},{"uid":"fb48-228"},{"uid":"fb48-246"},{"uid":"fb48-250"},{"uid":"fb48-258"},{"uid":"fb48-232"},{"uid":"fb48-226"},{"uid":"fb48-296"},{"uid":"fb48-292"},{"uid":"fb48-332"},{"uid":"fb48-222"},{"uid":"fb48-224"},{"uid":"fb48-284"},{"uid":"fb48-286"}],"isExternal":true},"fb48-321":{"id":"tabler-icons-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-238"},{"uid":"fb48-242"},{"uid":"fb48-254"},{"uid":"fb48-256"},{"uid":"fb48-268"},{"uid":"fb48-270"},{"uid":"fb48-276"},{"uid":"fb48-300"},{"uid":"fb48-236"},{"uid":"fb48-258"},{"uid":"fb48-232"}],"isExternal":true},"fb48-322":{"id":"react-i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-238"},{"uid":"fb48-248"},{"uid":"fb48-242"},{"uid":"fb48-254"},{"uid":"fb48-260"},{"uid":"fb48-256"},{"uid":"fb48-268"},{"uid":"fb48-272"},{"uid":"fb48-270"},{"uid":"fb48-276"},{"uid":"fb48-278"},{"uid":"fb48-302"},{"uid":"fb48-300"},{"uid":"fb48-228"},{"uid":"fb48-234"},{"uid":"fb48-236"},{"uid":"fb48-246"},{"uid":"fb48-250"},{"uid":"fb48-258"},{"uid":"fb48-262"},{"uid":"fb48-232"},{"uid":"fb48-214"},{"uid":"fb48-244"},{"uid":"fb48-222"},{"uid":"fb48-220"}],"isExternal":true},"fb48-323":{"id":"ahooks","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-248"},{"uid":"fb48-260"},{"uid":"fb48-272"},{"uid":"fb48-302"},{"uid":"fb48-250"},{"uid":"fb48-232"}],"isExternal":true},"fb48-324":{"id":"/src/components/index.ts","moduleParts":{},"imported":[{"uid":"fb48-212"},{"uid":"fb48-214"},{"uid":"fb48-226"}],"importedBy":[{"uid":"fb48-248"},{"uid":"fb48-254"},{"uid":"fb48-260"},{"uid":"fb48-264"},{"uid":"fb48-268"},{"uid":"fb48-272"},{"uid":"fb48-276"},{"uid":"fb48-278"},{"uid":"fb48-302"},{"uid":"fb48-228"},{"uid":"fb48-234"},{"uid":"fb48-258"},{"uid":"fb48-262"},{"uid":"fb48-244"}]},"fb48-325":{"id":"@mantine/modals","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-242"},{"uid":"fb48-256"},{"uid":"fb48-268"},{"uid":"fb48-270"},{"uid":"fb48-300"}],"isExternal":true},"fb48-326":{"id":"@tabler/icons-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-242"},{"uid":"fb48-278"},{"uid":"fb48-302"},{"uid":"fb48-240"},{"uid":"fb48-246"},{"uid":"fb48-232"},{"uid":"fb48-214"}],"isExternal":true},"fb48-327":{"id":"react-hook-form","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-254"},{"uid":"fb48-268"},{"uid":"fb48-276"},{"uid":"fb48-278"},{"uid":"fb48-228"},{"uid":"fb48-234"},{"uid":"fb48-258"},{"uid":"fb48-262"},{"uid":"fb48-244"}],"isExternal":true},"fb48-328":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/index.ts","moduleParts":{},"imported":[{"uid":"fb48-331"},{"uid":"fb48-182"},{"uid":"fb48-184"},{"uid":"fb48-186"}],"importedBy":[{"uid":"fb48-317"}]},"fb48-329":{"id":"\u0000commonjsHelpers.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-180"},{"uid":"fb48-174"},{"uid":"fb48-178"}]},"fb48-330":{"id":"@monaco-editor/react","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-212"},{"uid":"fb48-230"},{"uid":"fb48-224"}],"isExternal":true},"fb48-331":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-328"}]},"fb48-332":{"id":"\u0000react?commonjs-external","moduleParts":{},"imported":[{"uid":"fb48-320"}],"importedBy":[{"uid":"fb48-174"},{"uid":"fb48-178"}]},"fb48-333":{"id":"@mantine/hooks","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-292"}],"isExternal":true},"fb48-334":{"id":"crypto-js","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-182"}],"isExternal":true},"fb48-335":{"id":"lodash","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-184"}],"isExternal":true},"fb48-336":{"id":"axios","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-184"}],"isExternal":true},"fb48-337":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-220"}],"isExternal":true},"fb48-338":{"id":"i18next-browser-languagedetector","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-220"}],"isExternal":true},"fb48-339":{"id":"intl-pluralrules","moduleParts":{},"imported":[],"importedBy":[{"uid":"fb48-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":"093d-171","name":"jsx-runtime.js?commonjs-module"},{"name":"cjs","children":[{"uid":"093d-173","name":"react-jsx-runtime.production.min.js?commonjs-exports"},{"uid":"093d-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":"093d-175","name":"react-jsx-runtime.production.min.js"},{"uid":"093d-179","name":"react-jsx-runtime.development.js"}]},{"uid":"093d-181","name":"jsx-runtime.js"}]},{"name":"dayjs/esm","children":[{"uid":"093d-199","name":"constant.js"},{"name":"locale/en.js","uid":"093d-201"},{"uid":"093d-203","name":"utils.js"},{"uid":"093d-205","name":"index.js"}]},{"name":"prism-react-renderer","children":[{"name":"prism/index.js","uid":"093d-281"},{"name":"themes/duotoneDark/index.js","uid":"093d-283"},{"name":"dist/index.js","uid":"093d-285"}]},{"name":"@mantine/prism/esm","children":[{"name":"Prism","children":[{"uid":"093d-287","name":"CopyIcon.js"},{"uid":"093d-289","name":"prism-theme.js"},{"uid":"093d-291","name":"Prism.styles.js"},{"uid":"093d-293","name":"Prism.js"}]},{"name":"PrismTabs","children":[{"uid":"093d-295","name":"PrismTabs.styles.js"},{"uid":"093d-297","name":"PrismTabs.js"}]},{"uid":"093d-299","name":"index.js"}]}]},{"name":"shared/src/api-client","children":[{"uid":"093d-183","name":"utils.ts"},{"uid":"093d-185","name":"default-api-client.ts"},{"uid":"093d-187","name":"facade-api-client.ts"}]}]},{"name":"src","children":[{"name":"api-caller","children":[{"uid":"093d-189","name":"request.ts"},{"uid":"093d-191","name":"account.ts"},{"uid":"093d-193","name":"api-key.ts"},{"uid":"093d-195","name":"datasource.ts"},{"uid":"093d-197","name":"role.ts"},{"uid":"093d-207","name":"sql_snippet.ts"},{"uid":"093d-209","name":"index.ts"}]},{"name":"datasource","children":[{"uid":"093d-211","name":"styles.ts"},{"name":"add-data-source","children":[{"name":"forms","children":[{"uid":"093d-229","name":"database.tsx"},{"uid":"093d-235","name":"http.tsx"}]},{"uid":"093d-237","name":"db-permission-tips.tsx"},{"uid":"093d-239","name":"index.tsx"}]},{"name":"components","children":[{"name":"function-string-field","children":[{"uid":"093d-231","name":"function-string-editor.tsx"},{"uid":"093d-233","name":"index.tsx"}]},{"uid":"093d-241","name":"data-source-icon.tsx"}]},{"uid":"093d-243","name":"delete-data-source.tsx"},{"name":"edit-data-source","children":[{"name":"forms/http.tsx","uid":"093d-245"},{"uid":"093d-247","name":"index.tsx"}]},{"uid":"093d-249","name":"data-source-list.tsx"}]},{"name":"components","children":[{"uid":"093d-213","name":"minimal-mocaco-editor.tsx"},{"uid":"093d-215","name":"submit-form-button.tsx"},{"uid":"093d-227","name":"with-entry.tsx"}]},{"name":"i18n","children":[{"uid":"093d-217","name":"en.ts"},{"uid":"093d-219","name":"zh.ts"},{"uid":"093d-221","name":"i18n.ts"},{"uid":"093d-223","name":"i18next-context.tsx"}]},{"name":"utils/load-monaco-editor.ts","uid":"093d-225"},{"name":"account","children":[{"uid":"093d-251","name":"role-selector.tsx"},{"uid":"093d-253","name":"styles.ts"},{"uid":"093d-255","name":"add-account.tsx"},{"uid":"093d-257","name":"delete-account.tsx"},{"uid":"093d-259","name":"edit-account.tsx"},{"uid":"093d-261","name":"account-list.tsx"},{"name":"login","children":[{"uid":"093d-263","name":"form.tsx"},{"uid":"093d-265","name":"index.tsx"}]}]},{"name":"api-key","children":[{"uid":"093d-267","name":"styles.ts"},{"uid":"093d-269","name":"add-api-key.tsx"},{"uid":"093d-271","name":"delete-api-key.tsx"},{"uid":"093d-273","name":"api-key-list.tsx"}]},{"name":"sql_snippet","children":[{"uid":"093d-275","name":"styles.ts"},{"uid":"093d-277","name":"add-sql_snippet.tsx"},{"uid":"093d-279","name":"update-sql_snippet.tsx"},{"uid":"093d-301","name":"delete-sql_snippet.tsx"},{"uid":"093d-303","name":"sql_snippet-list.tsx"}]},{"uid":"093d-305","name":"index.ts"}]},{"uid":"093d-307","name":"package.json"}]}],"isRoot":true},"nodeParts":{"093d-171":{"renderedLength":33,"gzipLength":0,"brotliLength":0,"metaUid":"093d-170"},"093d-173":{"renderedLength":42,"gzipLength":0,"brotliLength":0,"metaUid":"093d-172"},"093d-175":{"renderedLength":1217,"gzipLength":0,"brotliLength":0,"metaUid":"093d-174"},"093d-177":{"renderedLength":39,"gzipLength":0,"brotliLength":0,"metaUid":"093d-176"},"093d-179":{"renderedLength":45245,"gzipLength":0,"brotliLength":0,"metaUid":"093d-178"},"093d-181":{"renderedLength":237,"gzipLength":0,"brotliLength":0,"metaUid":"093d-180"},"093d-183":{"renderedLength":949,"gzipLength":0,"brotliLength":0,"metaUid":"093d-182"},"093d-185":{"renderedLength":2140,"gzipLength":0,"brotliLength":0,"metaUid":"093d-184"},"093d-187":{"renderedLength":422,"gzipLength":0,"brotliLength":0,"metaUid":"093d-186"},"093d-189":{"renderedLength":426,"gzipLength":0,"brotliLength":0,"metaUid":"093d-188"},"093d-191":{"renderedLength":1913,"gzipLength":0,"brotliLength":0,"metaUid":"093d-190"},"093d-193":{"renderedLength":641,"gzipLength":0,"brotliLength":0,"metaUid":"093d-192"},"093d-195":{"renderedLength":730,"gzipLength":0,"brotliLength":0,"metaUid":"093d-194"},"093d-197":{"renderedLength":132,"gzipLength":0,"brotliLength":0,"metaUid":"093d-196"},"093d-199":{"renderedLength":1011,"gzipLength":0,"brotliLength":0,"metaUid":"093d-198"},"093d-201":{"renderedLength":496,"gzipLength":0,"brotliLength":0,"metaUid":"093d-200"},"093d-203":{"renderedLength":1623,"gzipLength":0,"brotliLength":0,"metaUid":"093d-202"},"093d-205":{"renderedLength":14006,"gzipLength":0,"brotliLength":0,"metaUid":"093d-204"},"093d-207":{"renderedLength":1079,"gzipLength":0,"brotliLength":0,"metaUid":"093d-206"},"093d-209":{"renderedLength":94,"gzipLength":0,"brotliLength":0,"metaUid":"093d-208"},"093d-211":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"093d-210"},"093d-213":{"renderedLength":682,"gzipLength":0,"brotliLength":0,"metaUid":"093d-212"},"093d-215":{"renderedLength":367,"gzipLength":0,"brotliLength":0,"metaUid":"093d-214"},"093d-217":{"renderedLength":4266,"gzipLength":0,"brotliLength":0,"metaUid":"093d-216"},"093d-219":{"renderedLength":4276,"gzipLength":0,"brotliLength":0,"metaUid":"093d-218"},"093d-221":{"renderedLength":253,"gzipLength":0,"brotliLength":0,"metaUid":"093d-220"},"093d-223":{"renderedLength":246,"gzipLength":0,"brotliLength":0,"metaUid":"093d-222"},"093d-225":{"renderedLength":551,"gzipLength":0,"brotliLength":0,"metaUid":"093d-224"},"093d-227":{"renderedLength":625,"gzipLength":0,"brotliLength":0,"metaUid":"093d-226"},"093d-229":{"renderedLength":3180,"gzipLength":0,"brotliLength":0,"metaUid":"093d-228"},"093d-231":{"renderedLength":502,"gzipLength":0,"brotliLength":0,"metaUid":"093d-230"},"093d-233":{"renderedLength":2382,"gzipLength":0,"brotliLength":0,"metaUid":"093d-232"},"093d-235":{"renderedLength":2892,"gzipLength":0,"brotliLength":0,"metaUid":"093d-234"},"093d-237":{"renderedLength":572,"gzipLength":0,"brotliLength":0,"metaUid":"093d-236"},"093d-239":{"renderedLength":3067,"gzipLength":0,"brotliLength":0,"metaUid":"093d-238"},"093d-241":{"renderedLength":790,"gzipLength":0,"brotliLength":0,"metaUid":"093d-240"},"093d-243":{"renderedLength":2213,"gzipLength":0,"brotliLength":0,"metaUid":"093d-242"},"093d-245":{"renderedLength":2512,"gzipLength":0,"brotliLength":0,"metaUid":"093d-244"},"093d-247":{"renderedLength":3542,"gzipLength":0,"brotliLength":0,"metaUid":"093d-246"},"093d-249":{"renderedLength":2550,"gzipLength":0,"brotliLength":0,"metaUid":"093d-248"},"093d-251":{"renderedLength":1458,"gzipLength":0,"brotliLength":0,"metaUid":"093d-250"},"093d-253":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"093d-252"},"093d-255":{"renderedLength":3801,"gzipLength":0,"brotliLength":0,"metaUid":"093d-254"},"093d-257":{"renderedLength":1777,"gzipLength":0,"brotliLength":0,"metaUid":"093d-256"},"093d-259":{"renderedLength":4913,"gzipLength":0,"brotliLength":0,"metaUid":"093d-258"},"093d-261":{"renderedLength":3049,"gzipLength":0,"brotliLength":0,"metaUid":"093d-260"},"093d-263":{"renderedLength":2208,"gzipLength":0,"brotliLength":0,"metaUid":"093d-262"},"093d-265":{"renderedLength":397,"gzipLength":0,"brotliLength":0,"metaUid":"093d-264"},"093d-267":{"renderedLength":104,"gzipLength":0,"brotliLength":0,"metaUid":"093d-266"},"093d-269":{"renderedLength":4196,"gzipLength":0,"brotliLength":0,"metaUid":"093d-268"},"093d-271":{"renderedLength":1798,"gzipLength":0,"brotliLength":0,"metaUid":"093d-270"},"093d-273":{"renderedLength":2907,"gzipLength":0,"brotliLength":0,"metaUid":"093d-272"},"093d-275":{"renderedLength":102,"gzipLength":0,"brotliLength":0,"metaUid":"093d-274"},"093d-277":{"renderedLength":3371,"gzipLength":0,"brotliLength":0,"metaUid":"093d-276"},"093d-279":{"renderedLength":3408,"gzipLength":0,"brotliLength":0,"metaUid":"093d-278"},"093d-281":{"renderedLength":148464,"gzipLength":0,"brotliLength":0,"metaUid":"093d-280"},"093d-283":{"renderedLength":1767,"gzipLength":0,"brotliLength":0,"metaUid":"093d-282"},"093d-285":{"renderedLength":9562,"gzipLength":0,"brotliLength":0,"metaUid":"093d-284"},"093d-287":{"renderedLength":1394,"gzipLength":0,"brotliLength":0,"metaUid":"093d-286"},"093d-289":{"renderedLength":3572,"gzipLength":0,"brotliLength":0,"metaUid":"093d-288"},"093d-291":{"renderedLength":1430,"gzipLength":0,"brotliLength":0,"metaUid":"093d-290"},"093d-293":{"renderedLength":6332,"gzipLength":0,"brotliLength":0,"metaUid":"093d-292"},"093d-295":{"renderedLength":1639,"gzipLength":0,"brotliLength":0,"metaUid":"093d-294"},"093d-297":{"renderedLength":2707,"gzipLength":0,"brotliLength":0,"metaUid":"093d-296"},"093d-299":{"renderedLength":170,"gzipLength":0,"brotliLength":0,"metaUid":"093d-298"},"093d-301":{"renderedLength":1807,"gzipLength":0,"brotliLength":0,"metaUid":"093d-300"},"093d-303":{"renderedLength":3690,"gzipLength":0,"brotliLength":0,"metaUid":"093d-302"},"093d-305":{"renderedLength":183,"gzipLength":0,"brotliLength":0,"metaUid":"093d-304"},"093d-307":{"renderedLength":28,"gzipLength":0,"brotliLength":0,"metaUid":"093d-306"}},"nodeMetas":{"093d-170":{"id":"\u0000/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js?commonjs-module","moduleParts":{"settings-form.umd.js":"093d-171"},"imported":[],"importedBy":[{"uid":"093d-180"}]},"093d-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":"093d-173"},"imported":[],"importedBy":[{"uid":"093d-174"}]},"093d-174":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.production.min.js","moduleParts":{"settings-form.umd.js":"093d-175"},"imported":[{"uid":"093d-329"},{"uid":"093d-172"},{"uid":"093d-332"}],"importedBy":[{"uid":"093d-180"}]},"093d-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":"093d-177"},"imported":[],"importedBy":[{"uid":"093d-178"}]},"093d-178":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/cjs/react-jsx-runtime.development.js","moduleParts":{"settings-form.umd.js":"093d-179"},"imported":[{"uid":"093d-329"},{"uid":"093d-176"},{"uid":"093d-332"}],"importedBy":[{"uid":"093d-180"}]},"093d-180":{"id":"/Users/leto/github/merico-dev/table/node_modules/react/jsx-runtime.js","moduleParts":{"settings-form.umd.js":"093d-181"},"imported":[{"uid":"093d-329"},{"uid":"093d-170"},{"uid":"093d-174"},{"uid":"093d-178"}],"importedBy":[{"uid":"093d-238"},{"uid":"093d-248"},{"uid":"093d-242"},{"uid":"093d-254"},{"uid":"093d-260"},{"uid":"093d-256"},{"uid":"093d-264"},{"uid":"093d-268"},{"uid":"093d-272"},{"uid":"093d-270"},{"uid":"093d-276"},{"uid":"093d-278"},{"uid":"093d-302"},{"uid":"093d-300"},{"uid":"093d-228"},{"uid":"093d-234"},{"uid":"093d-236"},{"uid":"093d-240"},{"uid":"093d-246"},{"uid":"093d-250"},{"uid":"093d-258"},{"uid":"093d-262"},{"uid":"093d-212"},{"uid":"093d-232"},{"uid":"093d-214"},{"uid":"093d-226"},{"uid":"093d-244"},{"uid":"093d-230"},{"uid":"093d-222"}]},"093d-182":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/utils.ts","moduleParts":{"settings-form.umd.js":"093d-183"},"imported":[{"uid":"093d-334"}],"importedBy":[{"uid":"093d-328"},{"uid":"093d-184"}]},"093d-184":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/default-api-client.ts","moduleParts":{"settings-form.umd.js":"093d-185"},"imported":[{"uid":"093d-335"},{"uid":"093d-182"},{"uid":"093d-336"}],"importedBy":[{"uid":"093d-328"}]},"093d-186":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/facade-api-client.ts","moduleParts":{"settings-form.umd.js":"093d-187"},"imported":[],"importedBy":[{"uid":"093d-328"}]},"093d-188":{"id":"/src/api-caller/request.ts","moduleParts":{"settings-form.umd.js":"093d-189"},"imported":[{"uid":"093d-317"}],"importedBy":[{"uid":"093d-304"},{"uid":"093d-190"},{"uid":"093d-192"},{"uid":"093d-194"},{"uid":"093d-196"},{"uid":"093d-206"},{"uid":"093d-226"}]},"093d-190":{"id":"/src/api-caller/account.ts","moduleParts":{"settings-form.umd.js":"093d-191"},"imported":[{"uid":"093d-188"}],"importedBy":[{"uid":"093d-208"}]},"093d-192":{"id":"/src/api-caller/api-key.ts","moduleParts":{"settings-form.umd.js":"093d-193"},"imported":[{"uid":"093d-188"}],"importedBy":[{"uid":"093d-208"}]},"093d-194":{"id":"/src/api-caller/datasource.ts","moduleParts":{"settings-form.umd.js":"093d-195"},"imported":[{"uid":"093d-188"}],"importedBy":[{"uid":"093d-208"}]},"093d-196":{"id":"/src/api-caller/role.ts","moduleParts":{"settings-form.umd.js":"093d-197"},"imported":[{"uid":"093d-188"}],"importedBy":[{"uid":"093d-208"}]},"093d-198":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/constant.js","moduleParts":{"settings-form.umd.js":"093d-199"},"imported":[],"importedBy":[{"uid":"093d-204"},{"uid":"093d-202"}]},"093d-200":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/locale/en.js","moduleParts":{"settings-form.umd.js":"093d-201"},"imported":[],"importedBy":[{"uid":"093d-204"}]},"093d-202":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/utils.js","moduleParts":{"settings-form.umd.js":"093d-203"},"imported":[{"uid":"093d-198"}],"importedBy":[{"uid":"093d-204"}]},"093d-204":{"id":"/Users/leto/github/merico-dev/table/node_modules/dayjs/esm/index.js","moduleParts":{"settings-form.umd.js":"093d-205"},"imported":[{"uid":"093d-198"},{"uid":"093d-200"},{"uid":"093d-202"}],"importedBy":[{"uid":"093d-206"}]},"093d-206":{"id":"/src/api-caller/sql_snippet.ts","moduleParts":{"settings-form.umd.js":"093d-207"},"imported":[{"uid":"093d-204"},{"uid":"093d-188"}],"importedBy":[{"uid":"093d-208"}]},"093d-208":{"id":"/src/api-caller/index.ts","moduleParts":{"settings-form.umd.js":"093d-209"},"imported":[{"uid":"093d-190"},{"uid":"093d-192"},{"uid":"093d-194"},{"uid":"093d-196"},{"uid":"093d-206"}],"importedBy":[{"uid":"093d-238"},{"uid":"093d-248"},{"uid":"093d-242"},{"uid":"093d-254"},{"uid":"093d-260"},{"uid":"093d-256"},{"uid":"093d-268"},{"uid":"093d-272"},{"uid":"093d-270"},{"uid":"093d-276"},{"uid":"093d-278"},{"uid":"093d-302"},{"uid":"093d-300"},{"uid":"093d-246"},{"uid":"093d-250"},{"uid":"093d-258"},{"uid":"093d-262"}]},"093d-210":{"id":"/src/datasource/styles.ts","moduleParts":{"settings-form.umd.js":"093d-211"},"imported":[],"importedBy":[{"uid":"093d-238"},{"uid":"093d-248"},{"uid":"093d-242"},{"uid":"093d-228"},{"uid":"093d-234"},{"uid":"093d-236"},{"uid":"093d-246"},{"uid":"093d-244"}]},"093d-212":{"id":"/src/components/minimal-mocaco-editor.tsx","moduleParts":{"settings-form.umd.js":"093d-213"},"imported":[{"uid":"093d-180"},{"uid":"093d-330"}],"importedBy":[{"uid":"093d-276"},{"uid":"093d-278"},{"uid":"093d-324"}]},"093d-214":{"id":"/src/components/submit-form-button.tsx","moduleParts":{"settings-form.umd.js":"093d-215"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-326"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-324"}]},"093d-216":{"id":"/src/i18n/en.ts","moduleParts":{"settings-form.umd.js":"093d-217"},"imported":[],"importedBy":[{"uid":"093d-220"}]},"093d-218":{"id":"/src/i18n/zh.ts","moduleParts":{"settings-form.umd.js":"093d-219"},"imported":[],"importedBy":[{"uid":"093d-220"}]},"093d-220":{"id":"/src/i18n/i18n.ts","moduleParts":{"settings-form.umd.js":"093d-221"},"imported":[{"uid":"093d-337"},{"uid":"093d-322"},{"uid":"093d-338"},{"uid":"093d-339"},{"uid":"093d-216"},{"uid":"093d-218"}],"importedBy":[{"uid":"093d-222"}]},"093d-222":{"id":"/src/i18n/i18next-context.tsx","moduleParts":{"settings-form.umd.js":"093d-223"},"imported":[{"uid":"093d-180"},{"uid":"093d-320"},{"uid":"093d-322"},{"uid":"093d-220"}],"importedBy":[{"uid":"093d-226"}]},"093d-224":{"id":"/src/utils/load-monaco-editor.ts","moduleParts":{"settings-form.umd.js":"093d-225"},"imported":[{"uid":"093d-330"},{"uid":"093d-320"}],"importedBy":[{"uid":"093d-226"}]},"093d-226":{"id":"/src/components/with-entry.tsx","moduleParts":{"settings-form.umd.js":"093d-227"},"imported":[{"uid":"093d-180"},{"uid":"093d-320"},{"uid":"093d-188"},{"uid":"093d-222"},{"uid":"093d-224"},{"uid":"093d-318"}],"importedBy":[{"uid":"093d-324"}]},"093d-228":{"id":"/src/datasource/add-data-source/forms/database.tsx","moduleParts":{"settings-form.umd.js":"093d-229"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-320"},{"uid":"093d-327"},{"uid":"093d-324"},{"uid":"093d-210"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-238"}]},"093d-230":{"id":"/src/datasource/components/function-string-field/function-string-editor.tsx","moduleParts":{"settings-form.umd.js":"093d-231"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-330"}],"importedBy":[{"uid":"093d-232"}]},"093d-232":{"id":"/src/datasource/components/function-string-field/index.tsx","moduleParts":{"settings-form.umd.js":"093d-233"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-323"},{"uid":"093d-320"},{"uid":"093d-321"},{"uid":"093d-230"},{"uid":"093d-322"},{"uid":"093d-326"}],"importedBy":[{"uid":"093d-234"},{"uid":"093d-244"}]},"093d-234":{"id":"/src/datasource/add-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"093d-235"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-327"},{"uid":"093d-210"},{"uid":"093d-232"},{"uid":"093d-324"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-238"}]},"093d-236":{"id":"/src/datasource/add-data-source/db-permission-tips.tsx","moduleParts":{"settings-form.umd.js":"093d-237"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-322"},{"uid":"093d-321"},{"uid":"093d-210"}],"importedBy":[{"uid":"093d-238"}]},"093d-238":{"id":"/src/datasource/add-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"093d-239"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-319"},{"uid":"093d-320"},{"uid":"093d-321"},{"uid":"093d-208"},{"uid":"093d-210"},{"uid":"093d-228"},{"uid":"093d-234"},{"uid":"093d-236"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-308"},{"uid":"093d-248"}]},"093d-240":{"id":"/src/datasource/components/data-source-icon.tsx","moduleParts":{"settings-form.umd.js":"093d-241"},"imported":[{"uid":"093d-180"},{"uid":"093d-326"},{"uid":"093d-318"}],"importedBy":[{"uid":"093d-248"}]},"093d-242":{"id":"/src/datasource/delete-data-source.tsx","moduleParts":{"settings-form.umd.js":"093d-243"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-325"},{"uid":"093d-319"},{"uid":"093d-326"},{"uid":"093d-321"},{"uid":"093d-208"},{"uid":"093d-210"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-308"},{"uid":"093d-248"}]},"093d-244":{"id":"/src/datasource/edit-data-source/forms/http.tsx","moduleParts":{"settings-form.umd.js":"093d-245"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-327"},{"uid":"093d-322"},{"uid":"093d-324"},{"uid":"093d-232"},{"uid":"093d-210"}],"importedBy":[{"uid":"093d-246"}]},"093d-246":{"id":"/src/datasource/edit-data-source/index.tsx","moduleParts":{"settings-form.umd.js":"093d-247"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-319"},{"uid":"093d-326"},{"uid":"093d-320"},{"uid":"093d-208"},{"uid":"093d-210"},{"uid":"093d-244"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-248"}]},"093d-248":{"id":"/src/datasource/data-source-list.tsx","moduleParts":{"settings-form.umd.js":"093d-249"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-323"},{"uid":"093d-322"},{"uid":"093d-208"},{"uid":"093d-324"},{"uid":"093d-238"},{"uid":"093d-240"},{"uid":"093d-242"},{"uid":"093d-246"},{"uid":"093d-210"}],"importedBy":[{"uid":"093d-308"}]},"093d-250":{"id":"/src/account/role-selector.tsx","moduleParts":{"settings-form.umd.js":"093d-251"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-323"},{"uid":"093d-320"},{"uid":"093d-208"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-254"},{"uid":"093d-268"},{"uid":"093d-258"}]},"093d-252":{"id":"/src/account/styles.ts","moduleParts":{"settings-form.umd.js":"093d-253"},"imported":[],"importedBy":[{"uid":"093d-254"},{"uid":"093d-260"},{"uid":"093d-256"},{"uid":"093d-264"},{"uid":"093d-258"},{"uid":"093d-262"}]},"093d-254":{"id":"/src/account/add-account.tsx","moduleParts":{"settings-form.umd.js":"093d-255"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-319"},{"uid":"093d-320"},{"uid":"093d-327"},{"uid":"093d-321"},{"uid":"093d-208"},{"uid":"093d-324"},{"uid":"093d-250"},{"uid":"093d-252"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-309"},{"uid":"093d-260"}]},"093d-256":{"id":"/src/account/delete-account.tsx","moduleParts":{"settings-form.umd.js":"093d-257"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-325"},{"uid":"093d-319"},{"uid":"093d-321"},{"uid":"093d-208"},{"uid":"093d-252"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-309"},{"uid":"093d-260"}]},"093d-258":{"id":"/src/account/edit-account.tsx","moduleParts":{"settings-form.umd.js":"093d-259"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-319"},{"uid":"093d-320"},{"uid":"093d-327"},{"uid":"093d-321"},{"uid":"093d-208"},{"uid":"093d-250"},{"uid":"093d-252"},{"uid":"093d-324"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-260"}]},"093d-260":{"id":"/src/account/account-list.tsx","moduleParts":{"settings-form.umd.js":"093d-261"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-323"},{"uid":"093d-322"},{"uid":"093d-208"},{"uid":"093d-324"},{"uid":"093d-254"},{"uid":"093d-256"},{"uid":"093d-258"},{"uid":"093d-252"}],"importedBy":[{"uid":"093d-309"}]},"093d-262":{"id":"/src/account/login/form.tsx","moduleParts":{"settings-form.umd.js":"093d-263"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-319"},{"uid":"093d-327"},{"uid":"093d-208"},{"uid":"093d-252"},{"uid":"093d-324"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-264"}]},"093d-264":{"id":"/src/account/login/index.tsx","moduleParts":{"settings-form.umd.js":"093d-265"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-324"},{"uid":"093d-252"},{"uid":"093d-262"}],"importedBy":[{"uid":"093d-309"}]},"093d-266":{"id":"/src/api-key/styles.ts","moduleParts":{"settings-form.umd.js":"093d-267"},"imported":[],"importedBy":[{"uid":"093d-268"},{"uid":"093d-272"},{"uid":"093d-270"}]},"093d-268":{"id":"/src/api-key/add-api-key.tsx","moduleParts":{"settings-form.umd.js":"093d-269"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-325"},{"uid":"093d-319"},{"uid":"093d-320"},{"uid":"093d-327"},{"uid":"093d-321"},{"uid":"093d-250"},{"uid":"093d-208"},{"uid":"093d-324"},{"uid":"093d-266"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-310"},{"uid":"093d-272"}]},"093d-270":{"id":"/src/api-key/delete-api-key.tsx","moduleParts":{"settings-form.umd.js":"093d-271"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-325"},{"uid":"093d-319"},{"uid":"093d-321"},{"uid":"093d-208"},{"uid":"093d-266"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-310"},{"uid":"093d-272"}]},"093d-272":{"id":"/src/api-key/api-key-list.tsx","moduleParts":{"settings-form.umd.js":"093d-273"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-323"},{"uid":"093d-322"},{"uid":"093d-208"},{"uid":"093d-324"},{"uid":"093d-268"},{"uid":"093d-270"},{"uid":"093d-266"}],"importedBy":[{"uid":"093d-310"}]},"093d-274":{"id":"/src/sql_snippet/styles.ts","moduleParts":{"settings-form.umd.js":"093d-275"},"imported":[],"importedBy":[{"uid":"093d-276"},{"uid":"093d-278"},{"uid":"093d-302"},{"uid":"093d-300"}]},"093d-276":{"id":"/src/sql_snippet/add-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"093d-277"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-319"},{"uid":"093d-320"},{"uid":"093d-327"},{"uid":"093d-321"},{"uid":"093d-208"},{"uid":"093d-212"},{"uid":"093d-274"},{"uid":"093d-324"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-311"},{"uid":"093d-302"}]},"093d-278":{"id":"/src/sql_snippet/update-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"093d-279"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-319"},{"uid":"093d-326"},{"uid":"093d-320"},{"uid":"093d-327"},{"uid":"093d-208"},{"uid":"093d-212"},{"uid":"093d-274"},{"uid":"093d-324"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-311"},{"uid":"093d-302"}]},"093d-280":{"id":"/Users/leto/github/merico-dev/table/node_modules/prism-react-renderer/prism/index.js","moduleParts":{"settings-form.umd.js":"093d-281"},"imported":[],"importedBy":[{"uid":"093d-284"}]},"093d-282":{"id":"/Users/leto/github/merico-dev/table/node_modules/prism-react-renderer/themes/duotoneDark/index.js","moduleParts":{"settings-form.umd.js":"093d-283"},"imported":[],"importedBy":[{"uid":"093d-284"}]},"093d-284":{"id":"/Users/leto/github/merico-dev/table/node_modules/prism-react-renderer/dist/index.js","moduleParts":{"settings-form.umd.js":"093d-285"},"imported":[{"uid":"093d-280"},{"uid":"093d-282"},{"uid":"093d-320"}],"importedBy":[{"uid":"093d-292"}]},"093d-286":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/CopyIcon.js","moduleParts":{"settings-form.umd.js":"093d-287"},"imported":[{"uid":"093d-320"}],"importedBy":[{"uid":"093d-292"}]},"093d-288":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/prism-theme.js","moduleParts":{"settings-form.umd.js":"093d-289"},"imported":[],"importedBy":[{"uid":"093d-292"}]},"093d-290":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/Prism.styles.js","moduleParts":{"settings-form.umd.js":"093d-291"},"imported":[{"uid":"093d-318"}],"importedBy":[{"uid":"093d-292"}]},"093d-292":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/Prism/Prism.js","moduleParts":{"settings-form.umd.js":"093d-293"},"imported":[{"uid":"093d-320"},{"uid":"093d-284"},{"uid":"093d-318"},{"uid":"093d-333"},{"uid":"093d-286"},{"uid":"093d-288"},{"uid":"093d-290"}],"importedBy":[{"uid":"093d-298"},{"uid":"093d-296"}]},"093d-294":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/PrismTabs/PrismTabs.styles.js","moduleParts":{"settings-form.umd.js":"093d-295"},"imported":[{"uid":"093d-318"}],"importedBy":[{"uid":"093d-296"}]},"093d-296":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/PrismTabs/PrismTabs.js","moduleParts":{"settings-form.umd.js":"093d-297"},"imported":[{"uid":"093d-320"},{"uid":"093d-318"},{"uid":"093d-292"},{"uid":"093d-294"}],"importedBy":[{"uid":"093d-298"}]},"093d-298":{"id":"/Users/leto/github/merico-dev/table/node_modules/@mantine/prism/esm/index.js","moduleParts":{"settings-form.umd.js":"093d-299"},"imported":[{"uid":"093d-318"},{"uid":"093d-296"},{"uid":"093d-292"}],"importedBy":[{"uid":"093d-302"}]},"093d-300":{"id":"/src/sql_snippet/delete-sql_snippet.tsx","moduleParts":{"settings-form.umd.js":"093d-301"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-325"},{"uid":"093d-319"},{"uid":"093d-321"},{"uid":"093d-208"},{"uid":"093d-274"},{"uid":"093d-322"}],"importedBy":[{"uid":"093d-311"},{"uid":"093d-302"}]},"093d-302":{"id":"/src/sql_snippet/sql_snippet-list.tsx","moduleParts":{"settings-form.umd.js":"093d-303"},"imported":[{"uid":"093d-180"},{"uid":"093d-318"},{"uid":"093d-298"},{"uid":"093d-323"},{"uid":"093d-208"},{"uid":"093d-276"},{"uid":"093d-300"},{"uid":"093d-274"},{"uid":"093d-326"},{"uid":"093d-322"},{"uid":"093d-324"},{"uid":"093d-278"}],"importedBy":[{"uid":"093d-311"}]},"093d-304":{"id":"/src/index.ts","moduleParts":{"settings-form.umd.js":"093d-305"},"imported":[{"uid":"093d-308"},{"uid":"093d-309"},{"uid":"093d-310"},{"uid":"093d-311"},{"uid":"093d-188"},{"uid":"093d-312"},{"uid":"093d-313"},{"uid":"093d-314"},{"uid":"093d-315"},{"uid":"093d-316"},{"uid":"093d-306","dynamic":true}],"importedBy":[],"isEntry":true},"093d-306":{"id":"/package.json","moduleParts":{"settings-form.umd.js":"093d-307"},"imported":[],"importedBy":[{"uid":"093d-304"}]},"093d-308":{"id":"/src/datasource/index.tsx","moduleParts":{},"imported":[{"uid":"093d-238"},{"uid":"093d-248"},{"uid":"093d-242"}],"importedBy":[{"uid":"093d-304"}]},"093d-309":{"id":"/src/account/index.tsx","moduleParts":{},"imported":[{"uid":"093d-254"},{"uid":"093d-260"},{"uid":"093d-256"},{"uid":"093d-264"}],"importedBy":[{"uid":"093d-304"}]},"093d-310":{"id":"/src/api-key/index.tsx","moduleParts":{},"imported":[{"uid":"093d-268"},{"uid":"093d-272"},{"uid":"093d-270"}],"importedBy":[{"uid":"093d-304"}]},"093d-311":{"id":"/src/sql_snippet/index.tsx","moduleParts":{},"imported":[{"uid":"093d-276"},{"uid":"093d-278"},{"uid":"093d-302"},{"uid":"093d-300"}],"importedBy":[{"uid":"093d-304"}]},"093d-312":{"id":"/src/api-caller/account.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-304"}]},"093d-313":{"id":"/src/api-caller/api-key.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-304"}]},"093d-314":{"id":"/src/api-caller/datasource.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-304"}]},"093d-315":{"id":"/src/api-caller/role.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-304"}]},"093d-316":{"id":"/src/api-caller/sql_snippet.typed.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-304"}]},"093d-317":{"id":"/Users/leto/github/merico-dev/table/shared/src/index.ts","moduleParts":{},"imported":[{"uid":"093d-328"}],"importedBy":[{"uid":"093d-188"}]},"093d-318":{"id":"@mantine/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-238"},{"uid":"093d-248"},{"uid":"093d-242"},{"uid":"093d-254"},{"uid":"093d-260"},{"uid":"093d-256"},{"uid":"093d-264"},{"uid":"093d-268"},{"uid":"093d-272"},{"uid":"093d-270"},{"uid":"093d-276"},{"uid":"093d-278"},{"uid":"093d-302"},{"uid":"093d-300"},{"uid":"093d-228"},{"uid":"093d-234"},{"uid":"093d-236"},{"uid":"093d-240"},{"uid":"093d-246"},{"uid":"093d-250"},{"uid":"093d-258"},{"uid":"093d-262"},{"uid":"093d-298"},{"uid":"093d-232"},{"uid":"093d-214"},{"uid":"093d-226"},{"uid":"093d-244"},{"uid":"093d-296"},{"uid":"093d-292"},{"uid":"093d-230"},{"uid":"093d-294"},{"uid":"093d-290"}],"isExternal":true},"093d-319":{"id":"@mantine/notifications","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-238"},{"uid":"093d-242"},{"uid":"093d-254"},{"uid":"093d-256"},{"uid":"093d-268"},{"uid":"093d-270"},{"uid":"093d-276"},{"uid":"093d-278"},{"uid":"093d-300"},{"uid":"093d-246"},{"uid":"093d-258"},{"uid":"093d-262"}],"isExternal":true},"093d-320":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-238"},{"uid":"093d-254"},{"uid":"093d-268"},{"uid":"093d-276"},{"uid":"093d-278"},{"uid":"093d-228"},{"uid":"093d-246"},{"uid":"093d-250"},{"uid":"093d-258"},{"uid":"093d-232"},{"uid":"093d-226"},{"uid":"093d-296"},{"uid":"093d-292"},{"uid":"093d-332"},{"uid":"093d-222"},{"uid":"093d-224"},{"uid":"093d-284"},{"uid":"093d-286"}],"isExternal":true},"093d-321":{"id":"tabler-icons-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-238"},{"uid":"093d-242"},{"uid":"093d-254"},{"uid":"093d-256"},{"uid":"093d-268"},{"uid":"093d-270"},{"uid":"093d-276"},{"uid":"093d-300"},{"uid":"093d-236"},{"uid":"093d-258"},{"uid":"093d-232"}],"isExternal":true},"093d-322":{"id":"react-i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-238"},{"uid":"093d-248"},{"uid":"093d-242"},{"uid":"093d-254"},{"uid":"093d-260"},{"uid":"093d-256"},{"uid":"093d-268"},{"uid":"093d-272"},{"uid":"093d-270"},{"uid":"093d-276"},{"uid":"093d-278"},{"uid":"093d-302"},{"uid":"093d-300"},{"uid":"093d-228"},{"uid":"093d-234"},{"uid":"093d-236"},{"uid":"093d-246"},{"uid":"093d-250"},{"uid":"093d-258"},{"uid":"093d-262"},{"uid":"093d-232"},{"uid":"093d-214"},{"uid":"093d-244"},{"uid":"093d-222"},{"uid":"093d-220"}],"isExternal":true},"093d-323":{"id":"ahooks","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-248"},{"uid":"093d-260"},{"uid":"093d-272"},{"uid":"093d-302"},{"uid":"093d-250"},{"uid":"093d-232"}],"isExternal":true},"093d-324":{"id":"/src/components/index.ts","moduleParts":{},"imported":[{"uid":"093d-212"},{"uid":"093d-214"},{"uid":"093d-226"}],"importedBy":[{"uid":"093d-248"},{"uid":"093d-254"},{"uid":"093d-260"},{"uid":"093d-264"},{"uid":"093d-268"},{"uid":"093d-272"},{"uid":"093d-276"},{"uid":"093d-278"},{"uid":"093d-302"},{"uid":"093d-228"},{"uid":"093d-234"},{"uid":"093d-258"},{"uid":"093d-262"},{"uid":"093d-244"}]},"093d-325":{"id":"@mantine/modals","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-242"},{"uid":"093d-256"},{"uid":"093d-268"},{"uid":"093d-270"},{"uid":"093d-300"}],"isExternal":true},"093d-326":{"id":"@tabler/icons-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-242"},{"uid":"093d-278"},{"uid":"093d-302"},{"uid":"093d-240"},{"uid":"093d-246"},{"uid":"093d-232"},{"uid":"093d-214"}],"isExternal":true},"093d-327":{"id":"react-hook-form","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-254"},{"uid":"093d-268"},{"uid":"093d-276"},{"uid":"093d-278"},{"uid":"093d-228"},{"uid":"093d-234"},{"uid":"093d-258"},{"uid":"093d-262"},{"uid":"093d-244"}],"isExternal":true},"093d-328":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/index.ts","moduleParts":{},"imported":[{"uid":"093d-331"},{"uid":"093d-182"},{"uid":"093d-184"},{"uid":"093d-186"}],"importedBy":[{"uid":"093d-317"}]},"093d-329":{"id":"\u0000commonjsHelpers.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-180"},{"uid":"093d-174"},{"uid":"093d-178"}]},"093d-330":{"id":"@monaco-editor/react","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-212"},{"uid":"093d-230"},{"uid":"093d-224"}],"isExternal":true},"093d-331":{"id":"/Users/leto/github/merico-dev/table/shared/src/api-client/types.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-328"}]},"093d-332":{"id":"\u0000react?commonjs-external","moduleParts":{},"imported":[{"uid":"093d-320"}],"importedBy":[{"uid":"093d-174"},{"uid":"093d-178"}]},"093d-333":{"id":"@mantine/hooks","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-292"}],"isExternal":true},"093d-334":{"id":"crypto-js","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-182"}],"isExternal":true},"093d-335":{"id":"lodash","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-184"}],"isExternal":true},"093d-336":{"id":"axios","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-184"}],"isExternal":true},"093d-337":{"id":"i18next","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-220"}],"isExternal":true},"093d-338":{"id":"i18next-browser-languagedetector","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-220"}],"isExternal":true},"093d-339":{"id":"intl-pluralrules","moduleParts":{},"imported":[],"importedBy":[{"uid":"093d-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;
|
package/dist/version.json
CHANGED