@cubejs-backend/server-core 1.1.4 → 1.1.6
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/package.json +8 -8
- package/playground/assets/{index-ahHyZdd8.js → index-CH7p8ya-.js} +1 -1
- package/playground/index.html +1 -1
- package/playground/vizard/download/react-typescript-antd-table.zip +0 -0
- package/playground/vizard/download/react-typescript-chartjs-area+bar+doughnut+line+pie.zip +0 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@cubejs-backend/server-core",
|
|
3
3
|
"description": "Cube.js base component to wire all backend components together",
|
|
4
4
|
"author": "Cube Dev, Inc.",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.6",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/cube-js/cube.git",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"unit": "jest --runInBand --forceExit --coverage dist/test"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cubejs-backend/api-gateway": "1.1.
|
|
32
|
+
"@cubejs-backend/api-gateway": "1.1.5",
|
|
33
33
|
"@cubejs-backend/cloud": "1.1.4",
|
|
34
34
|
"@cubejs-backend/dotenv": "^9.0.2",
|
|
35
|
-
"@cubejs-backend/native": "1.1.
|
|
36
|
-
"@cubejs-backend/query-orchestrator": "1.1.
|
|
37
|
-
"@cubejs-backend/schema-compiler": "1.1.
|
|
35
|
+
"@cubejs-backend/native": "1.1.5",
|
|
36
|
+
"@cubejs-backend/query-orchestrator": "1.1.5",
|
|
37
|
+
"@cubejs-backend/schema-compiler": "1.1.6",
|
|
38
38
|
"@cubejs-backend/shared": "1.1.4",
|
|
39
39
|
"@cubejs-backend/templates": "1.1.4",
|
|
40
40
|
"codesandbox-import-utils": "^2.1.12",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"ws": "^7.5.3"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@cubejs-backend/cubestore-driver": "1.1.
|
|
60
|
+
"@cubejs-backend/cubestore-driver": "1.1.5",
|
|
61
61
|
"@cubejs-backend/linter": "^1.0.0",
|
|
62
|
-
"@cubejs-client/playground": "1.1.
|
|
62
|
+
"@cubejs-client/playground": "1.1.6",
|
|
63
63
|
"@types/cross-spawn": "^6.0.2",
|
|
64
64
|
"@types/express": "^4.17.9",
|
|
65
65
|
"@types/fs-extra": "^9.0.8",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
".*\\.d\\.ts"
|
|
93
93
|
]
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "471e10cb533d1c79b362513d02295d06dcb2653f"
|
|
96
96
|
}
|
|
@@ -3251,7 +3251,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):y
|
|
|
3251
3251
|
overflow: hidden;
|
|
3252
3252
|
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
3253
3253
|
0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
3254
|
-
`;function TooltipTrigger({children:tt,shown:nt,onClose:st,...mt}){const vt=reactExports.useRef(null);return reactExports.useEffect(()=>{document.addEventListener("mousedown",gt=>{vt!=null&&vt.current&&(vt.current.contains(gt.target)||st())})},[]),jsxs(TooltipTriggerWrapper,{children:[tt[0],nt?jsx(TooltipContent,{ref:vt,className:"ant-dropdown ant-dropdown-placement-bottomLeft ",style:{...mt},children:tt[1]}):null]})}function ButtonDropdown({show:tt,overlay:nt,disabled:st=!1,overlayStyles:mt,onOverlayClose:vt,onOverlayOpen:gt,onItemClick:yt,...bt}){return jsxs(TooltipTrigger,{shown:tt,...mt,onClose:()=>{vt()},children:[jsx(StyledButton,{...bt,onClick:()=>{gt()},disabled:st}),jsx("div",{onClick:yt,children:nt})]})}var SchemaFormat=(tt=>(tt.js="js",tt.yaml="yaml",tt))(SchemaFormat||{});const{Content:Content$1,Sider}=Layout$1,{TreeNode}=StyledTree,{TabPane:TabPane$2}=StyledTabs$1,schemasMap={},schemaToTreeData=tt=>Object.keys(tt).map(nt=>({title:nt,key:nt,treeData:Object.keys(tt[nt]).map(st=>{const mt=`${nt}.${st}`;return schemasMap[mt]=[nt,st],{title:st,key:mt}})})),lo=class lo extends reactExports.Component{constructor(nt){super(nt),this.state={expandedKeys:[],autoExpandParent:!0,checkedKeys:[],selectedKeys:[],activeTab:"schema",files:[],isDocker:null,shown:!1}}async componentDidMount(){await this.loadDBSchema(),await this.loadFiles()}onExpand(nt){playgroundAction("Expand Tables"),this.setState({expandedKeys:nt,autoExpandParent:!1})}onCheck(nt){playgroundAction("Check Tables"),this.setState({checkedKeys:nt})}onSelect(nt){this.setState({selectedKeys:nt})}async loadDBSchema(){this.setState({schemaLoading:!0});try{const st=await(await playgroundFetch("/playground/db-schema")).json();this.setState({tablesSchema:st.tablesSchema})}catch(nt){this.setState({schemaLoadingError:nt})}finally{this.setState({schemaLoading:!1})}}async loadFiles(){const st=await(await playgroundFetch("/playground/files")).json();this.setState({files:st.files,activeTab:st.files&&st.files.length>0?"files":"schema"})}async generateSchema(nt=SchemaFormat.js){const{checkedKeys:st,tablesSchema:mt}=this.state,{history:vt}=this.props,gt={format:nt};playgroundAction("Generate Schema",gt);const yt=await playgroundFetch("/playground/generate-schema",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({format:nt,tables:st.filter(bt=>!!schemasMap[bt]).map(bt=>schemasMap[bt]),tablesSchema:mt})});yt.status===200?(playgroundAction("Generate Schema Success",gt),await this.loadFiles(),this.setState({checkedKeys:[],activeTab:"files"}),Modal$1.success({title:"Data model files successfully generated!",content:"You can start exploring your data model and building the charts",okText:"Build",cancelText:"Close",okCancel:!0,onOk(){vt.push("/build")}})):playgroundAction("Generate Schema Fail",{error:await yt.text(),...gt})}selectedFileContent(){const nt=this.selectedFile();return nt&&nt.content}selectedFile(){const{files:nt,selectedFile:st}=this.state;return nt.find(mt=>mt.fileName===st)}renderFilesMenu(){const{selectedFile:nt,files:st}=this.state;return jsx(StyledMenu$1,{mode:"inline",onClick:({key:mt})=>{playgroundAction("Select File"),this.setState({selectedFile:mt})},selectedKeys:nt?[nt]:[],children:st.map(mt=>jsx(StyledMenu$1.Item,{children:mt.fileName},mt.fileName))})}render(){const{schemaLoading:nt,schemaLoadingError:st,tablesSchema:mt,selectedFile:vt,expandedKeys:gt,autoExpandParent:yt,checkedKeys:bt,selectedKeys:$t,activeTab:xt,isDocker:Et}=this.state,{playgroundContext:Ct}=this.context,[,St]=Ct.coreServerVersion?Ct.coreServerVersion.split("."):[],Tt=!St||Number(St)>=31,wt=At=>At.map(Pt=>Pt.treeData?jsx(TreeNode,{title:Pt.title,dataRef:Pt,children:wt(Pt.treeData)},Pt.key):jsx(TreeNode,{...Pt})),_t=()=>Object.keys(mt||{}).length>0?jsx(StyledTree,{checkable:!0,onExpand:this.onExpand.bind(this),expandedKeys:gt,autoExpandParent:yt,onCheck:this.onCheck.bind(this),checkedKeys:bt,onSelect:this.onSelect.bind(this),selectedKeys:$t,children:wt(schemaToTreeData(mt||{}))}):jsx(Alert,{message:"Empty DB Schema",description:"Please check connection settings",type:"warning"}),Dt=()=>st?jsx(Alert,{"data-testid":"schema-error",message:"Error while loading DB schema",description:st.toString(),type:"error"}):_t();return jsxs(Layout$1,{style:{height:"100%"},children:[jsx(Sider,{width:340,className:"schema-sidebar",children:jsxs(StyledTabs$1,{activeKey:xt,onChange:At=>this.setState({activeTab:At}),tabBarExtraContent:jsx(ButtonDropdown,{show:this.state.shown,disabled:!bt.length,type:"primary","data-testid":"chart-type-btn",overlay:jsxs(StyledMenu$1,{"data-testid":"generate-schema",children:[jsx(StyledMenu$1.Item,{title:Tt?"":"yaml schema format is supported by Cube 0.31.0 and later",disabled:!Tt,onClick:()=>this.generateSchema(SchemaFormat.yaml),children:"YAML"}),jsx(StyledMenu$1.Item,{onClick:()=>this.generateSchema(),children:"JavaScript"})]}),style:{border:0},onOverlayOpen:()=>this.setState({shown:!0}),onOverlayClose:()=>this.setState({shown:!1}),onItemClick:()=>this.setState({shown:!1}),children:"Generate Data Model"}),children:[jsx(TabPane$2,{tab:"Tables",children:nt?jsx(CubeLoader,{}):Dt()},"schema"),jsx(TabPane$2,{tab:"Files",children:this.renderFilesMenu()},"files")]})}),jsxs(Content$1,{style:{minHeight:280,padding:24},children:[vt&&jsx(Alert,{message:Et?jsxs("span",{children:["Data model files are located and can be edited in the mount volume directory."," ",jsx(Typography.Link,{href:"https://cube.dev/docs/schema/getting-started",target:"_blank",children:"Learn more about working with Cube data model in the docs"})]}):jsxs("span",{children:["This file can be edited at ",jsx("b",{children:this.selectedFile().absPath})]}),type:"info",style:{paddingTop:10,paddingBottom:11}}),vt?jsx(PrismCode,{code:this.selectedFileContent(),style:{padding:0,marginTop:24}}):jsx(Empty,{style:{marginTop:50},description:"Select tables to generate Cube data model"}),jsx(AppContextConsumer,{onReady:({playgroundContext:At})=>this.setState({isDocker:At==null?void 0:At.isDocker})})]})]})}};lo.contextType=AppContext$1;let SchemaPage=lo;const logoPostgres="/assets/postgres-CRAWabOt.svg",logoMysql="/assets/mysql-BeONLFsC.svg",logoAthena="/assets/athena-ojPCDZsu.svg",logoClickhouse="data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0)'%3e%3cpath%20d='M9.33325%2040.6006H13.5333V44.8006H9.33325V40.6006Z'%20fill='%23FC0D1B'/%3e%3cpath%20d='M9.33325%2011.2002H13.5333V40.6002H9.33325V11.2002Z'%20fill='%23FECB2F'/%3e%3cpath%20d='M17.7332%2011.2002H21.9332V44.8002H17.7332V11.2002Z'%20fill='%23FECB2F'/%3e%3cpath%20d='M26.1333%2011.2002H30.3333V44.8002H26.1333V11.2002Z'%20fill='%23FECB2F'/%3e%3cpath%20d='M34.5332%2011.2002H38.7332V44.8002H34.5332V11.2002Z'%20fill='%23FECB2F'/%3e%3cpath%20d='M42.9333%2024.8506H47.1334V31.1506H42.9333V24.8506Z'%20fill='%23FECB2F'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0'%3e%3crect%20width='37.8'%20height='33.6'%20fill='white'%20transform='translate(9.33325%2011.2002)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",logoCrate="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20width='56'%20height='56'%20viewBox='0%206%2032.751%2024.563'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cclipPath%20id='clip0_332_69507'%3e%3crect%20width='218'%20height='24.5634'%20transform='translate(0%206)'/%3e%3c/clipPath%3e%3c/defs%3e%3cpath%20d='M%2024.563%2014.188%20L%2024.563%206%20L%2016.376%206%20L%2016.376%2014.188%20L%200%2014.188%20L%200%2022.376%20L%208.188%2022.376%20L%208.188%2030.563%20L%2016.376%2030.563%20L%2016.376%2022.376%20L%2032.751%2022.376%20L%2032.751%2014.188%20L%2024.563%2014.188%20Z'%20fill='%23009DC7'%20clip-path='url(%23clip0_332_69507)'/%3e%3c/svg%3e",logoFirebolt="data:image/svg+xml,%3csvg%20width='72'%20height='72'%20viewBox='0%200%2072%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.48131%2032.625H13.125L0.375%200.375C0.375%200.375%2023.7498%200.375%2036%200.375C55.6751%200.375%2071.625%2016.3249%2071.625%2036C71.625%2055.6751%2055.6751%2071.625%2036%2071.625C32.2036%2071.625%2016.875%2071.625%2016.875%2071.625L1.48131%2032.625Z'%20fill='%23F72A30'/%3e%3cpath%20d='M36.3885%2024.4166V32.2084C36.3885%2032.4386%2036.5908%2032.625%2036.838%2032.625H47.5497C47.7969%2032.625%2047.9992%2032.8114%2047.9992%2033.0416V40.4584C47.9992%2040.6886%2047.7969%2040.875%2047.5497%2040.875H36.8324C36.5852%2040.875%2036.3829%2041.0614%2036.3829%2041.2916V57.3334C36.3829%2057.5636%2036.1806%2057.75%2035.9333%2057.75H27.8246C27.5773%2057.75%2027.375%2057.5636%2027.375%2057.3334V16.1666C27.375%2015.9364%2027.5773%2015.75%2027.8246%2015.75H49.4254C49.6727%2015.75%2049.875%2015.9364%2049.875%2016.1666V23.5834C49.875%2023.8136%2049.6727%2024%2049.4254%2024H36.838C36.5852%2024%2036.3885%2024.1864%2036.3885%2024.4166Z'%20fill='white'/%3e%3cpath%20d='M36.3885%2024.4166V32.2084C36.3885%2032.4386%2036.5908%2032.625%2036.838%2032.625H47.5497C47.7969%2032.625%2047.9992%2032.8114%2047.9992%2033.0416V40.4584C47.9992%2040.6886%2047.7969%2040.875%2047.5497%2040.875H36.8324C36.5852%2040.875%2036.3829%2041.0614%2036.3829%2041.2916V57.3334C36.3829%2057.5636%2036.1806%2057.75%2035.9333%2057.75H27.8246C27.5773%2057.75%2027.375%2057.5636%2027.375%2057.3334V16.1666C27.375%2015.9364%2027.5773%2015.75%2027.8246%2015.75H49.4254C49.6727%2015.75%2049.875%2015.9364%2049.875%2016.1666V23.5834C49.875%2023.8136%2049.6727%2024%2049.4254%2024H36.838C36.5852%2024%2036.3885%2024.1864%2036.3885%2024.4166Z'%20fill='url(%23paint0_linear_197_4577)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_197_4577'%20x1='38.625'%20y1='15.75'%20x2='38.625'%20y2='57.75'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",logoHive="/assets/hive-CnKOdnG1.svg",logoRedshift="data:image/svg+xml,%3csvg%20width='56'%20height='57'%20viewBox='0%200%2056%2057'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M44.9206%2014.5049L28.5906%2018.4903V41.3975L44.9206%2045.383V14.5049Z'%20fill='%23245C96'/%3e%3cpath%20d='M48.0448%2043.8107L44.9023%2045.4013V14.5049L48.0448%2016.0954V43.8107Z'%20fill='%235595CD'/%3e%3cpath%20d='M12.2429%2014.5049L28.573%2018.4903V41.3975L12.2429%2045.383V14.5049Z'%20fill='%235595CD'/%3e%3cpath%20d='M9.1001%2043.8107L12.2426%2045.4013V14.5049L9.1001%2016.0954V43.8107Z'%20fill='%23245C96'/%3e%3cpath%20d='M38.9626%2011.5256L32.7503%208.39941L30.8066%2028.9482L32.7503%2051.5994L38.9626%2048.4915V11.5256Z'%20fill='%235595CD'/%3e%3cpath%20d='M18.1824%2011.5256L24.3947%208.39941L26.3383%2028.8751L24.3947%2051.5994L18.1824%2048.4915V11.5256Z'%20fill='%23245C96'/%3e%3cpath%20d='M24.3945%208.39941H32.7503V51.5812H24.3945V8.39941Z'%20fill='%233174B6'/%3e%3c/svg%3e",logoPresto="/assets/presto-CuvrYmB5.svg",logoSnowflake="/assets/snowflake-BQpm6tUS.svg",logoOracle="data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0)'%3e%3cpath%20d='M19.9804%2042.0692C12.3755%2042.0692%206.2915%2035.9853%206.2915%2028.3803C6.2915%2020.7754%2012.3755%2014.6914%2019.9804%2014.6914H36.0199C43.6248%2014.6914%2049.7088%2020.7754%2049.7088%2028.3803C49.7088%2035.9853%2043.6248%2042.0692%2036.0199%2042.0692H19.9804ZM35.6051%2037.2297C40.5829%2037.2297%2044.4545%2033.2198%2044.4545%2028.3803C44.4545%2023.4026%2040.4446%2019.531%2035.6051%2019.531H20.3952C15.4174%2019.531%2011.5458%2023.5408%2011.5458%2028.3803C11.5458%2033.2198%2015.5557%2037.2297%2020.3952%2037.2297H35.6051Z'%20fill='%23E0252D'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0'%3e%3crect%20width='44.8'%20height='28.7605'%20fill='white'%20transform='translate(5.6001%2014)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",logoMssql="/assets/mssql-D2BHkfVq.svg",logoBigquery="data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M37.6089%208.40039H18.3923C17.8331%208.40083%2017.2839%208.54853%2016.8%208.82863C16.316%209.10873%2015.9144%209.51135%2015.6355%209.99597L6.02712%2026.6388C5.74769%2027.1228%205.60059%2027.6718%205.60059%2028.2307C5.60059%2028.7895%205.74769%2029.3385%206.02712%2029.8225L15.6355%2046.4629C15.9147%2046.947%2016.3165%2047.349%2016.8004%2047.6284C17.2844%2047.9079%2017.8334%2048.0549%2018.3923%2048.0547H37.6089C38.1678%2048.0549%2038.7168%2047.9079%2039.2008%2047.6284C39.6847%2047.349%2040.0865%2046.947%2040.3657%2046.4629L49.9741%2029.8213C50.2535%2029.3373%2050.4006%2028.7883%2050.4006%2028.2294C50.4006%2027.6706%2050.2535%2027.1216%2049.9741%2026.6376L40.3657%209.99597C40.0868%209.51135%2039.6852%209.10873%2039.2012%208.82863C38.7173%208.54853%2038.1681%208.40083%2037.6089%208.40039Z'%20fill='%23468AF9'/%3e%3cpath%20d='M31.2861%2028.8262H30.2904C30.2244%2028.8262%2030.1611%2028.8524%2030.1144%2028.8991C30.0677%2028.9458%2030.0415%2029.0091%2030.0415%2029.0751V32.3559C30.6206%2032.0314%2031.1285%2031.5938%2031.535%2031.069V29.0776C31.5354%2029.0447%2031.5292%2029.012%2031.5168%2028.9816C31.5044%2028.9511%2031.4862%2028.9233%2031.463%2028.9C31.4399%2028.8766%2031.4123%2028.858%2031.3819%2028.8454C31.3516%2028.8327%2031.319%2028.8262%2031.2861%2028.8262Z'%20fill='white'/%3e%3cpath%20d='M25.2386%2032.0583V27.9511C25.2386%2027.8851%2025.2124%2027.8217%2025.1657%2027.7751C25.1191%2027.7284%2025.0557%2027.7021%2024.9897%2027.7021H23.994C23.928%2027.7021%2023.8647%2027.7284%2023.818%2027.7751C23.7713%2027.8217%2023.7451%2027.8851%2023.7451%2027.9511V30.9879C24.1229%2031.4978%2024.5958%2031.9298%2025.1378%2032.2599C25.1693%2032.2366%2025.1949%2032.2062%2025.2124%2032.1711C25.2299%2032.1361%2025.2389%2032.0974%2025.2386%2032.0583Z'%20fill='white'/%3e%3cpath%20d='M28.3856%2026.0634C28.3856%2025.9974%2028.3594%2025.934%2028.3127%2025.8874C28.266%2025.8407%2028.2027%2025.8145%2028.1367%2025.8145H27.141C27.075%2025.8145%2027.0117%2025.8407%2026.965%2025.8874C26.9183%2025.934%2026.8921%2025.9974%2026.8921%2026.0634V32.8813C26.8914%2032.8908%2026.8914%2032.9004%2026.8921%2032.9099C27.1481%2032.9509%2027.4069%2032.9717%2027.6662%2032.9722C27.9049%2032.9717%2028.1432%2032.9543%2028.3794%2032.9199C28.3794%2032.9062%2028.3794%2032.8938%2028.3794%2032.8813L28.3856%2026.0634Z'%20fill='white'/%3e%3cpath%20d='M37.5053%2036.4363L34.1449%2033.0758C35.4208%2031.4218%2036.0175%2029.3433%2035.8133%2027.2644C35.6091%2025.1855%2034.6194%2023.2628%2033.046%2021.8887C31.4727%2020.5145%2029.4343%2019.7925%2027.3468%2019.8699C25.2593%2019.9473%2023.28%2020.8183%2021.8127%2022.3051C20.3454%2023.792%2019.5008%2025.7827%2019.4511%2027.871C19.4013%2029.9594%2020.1503%2031.988%2021.5452%2033.543C22.9401%2035.098%2024.8757%2036.0621%2026.9572%2036.2388C29.0386%2036.4154%2031.109%2035.7912%2032.746%2034.4934L36.094%2037.8402C36.1171%2037.8633%2036.1445%2037.8817%2036.1747%2037.8942C36.205%2037.9067%2036.2374%2037.9132%2036.2701%2037.9132C36.3028%2037.9132%2036.3352%2037.9067%2036.3654%2037.8942C36.3956%2037.8817%2036.4231%2037.8633%2036.4462%2037.8402L37.5016%2036.7848C37.5477%2036.7387%2037.5739%2036.6764%2037.5746%2036.6113C37.5753%2036.5461%2037.5504%2036.4833%2037.5053%2036.4363ZM27.673%2034.2806C26.4483%2034.2806%2025.2512%2033.9175%2024.2329%2033.2371C23.2147%2032.5567%2022.421%2031.5897%2021.9524%2030.4583C21.4837%2029.3268%2021.3611%2028.0819%2021.6%2026.8807C21.839%2025.6796%2022.4287%2024.5763%2023.2946%2023.7104C24.1606%2022.8444%2025.2639%2022.2547%2026.465%2022.0158C27.6661%2021.7769%2028.9111%2021.8995%2030.0425%2022.3682C31.1739%2022.8368%2032.141%2023.6304%2032.8213%2024.6487C33.5017%2025.6669%2033.8649%2026.8641%2033.8649%2028.0887C33.8629%2029.7307%2033.2096%2031.3049%2032.0482%2032.4658C30.8869%2033.6266%2029.3125%2034.2793%2027.6705%2034.2806H27.673Z'%20fill='white'/%3e%3c/svg%3e",logoMongodb="data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M38.3073%2023.2375C35.8487%2012.3917%2030.7245%209.5044%2029.4174%207.46338C28.8784%206.56426%2028.4009%205.62967%2027.9882%204.66602C27.9191%205.62952%2027.7923%206.23652%2026.9733%206.96718C25.3289%208.43331%2018.3451%2014.1244%2017.7574%2026.4476C17.2098%2037.9373%2026.2041%2045.0223%2027.3924%2045.7546C28.3061%2046.2042%2029.419%2045.7642%2029.9618%2045.3515C34.2975%2042.3759%2040.2214%2034.443%2038.3121%2023.2375'%20fill='%2310AA50'/%3e%3cpath%20d='M28.361%2039.6357C28.1345%2042.4797%2027.9724%2044.1321%2027.3975%2045.7572C27.3975%2045.7572%2027.7748%2048.4646%2028.0398%2051.3327H28.9776C29.2013%2049.313%2029.5429%2047.3082%2030.0005%2045.3284C28.7865%2044.7311%2028.4075%2042.1312%2028.361%2039.6357Z'%20fill='%23B8C4C2'/%3e%3cpath%20d='M29.9986%2045.3297C28.7717%2044.7628%2028.4168%2042.1084%2028.3622%2039.6354C28.6656%2035.556%2028.7541%2031.4635%2028.6272%2027.3748C28.563%2025.2294%2028.6577%207.50421%2028.0989%204.90918C28.4811%205.78809%2028.9216%206.64054%2029.4173%207.46085C30.7244%209.50348%2035.8502%2012.3908%2038.3072%2023.2366C40.2213%2034.4229%2034.3295%2042.3348%2029.9986%2045.3297Z'%20fill='%2312924F'/%3e%3c/svg%3e",logoDruid="data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.5112%2012.1406C31.2535%2012.1406%2033.9957%2012.1266%2036.7367%2012.1406C41.9878%2012.1733%2046.8059%2015.5246%2048.6392%2020.4163C49.4291%2022.5284%2049.6007%2024.714%2049.3755%2026.9579C49.0452%2030.2533%2048.0615%2033.3117%2046.198%2036.0528C43.3227%2040.284%2039.2701%2042.6353%2034.2512%2043.4183C32.5499%2043.6832%2030.8427%2043.6516%2029.1332%2043.6516C28.4237%2043.6516%2028.0445%2043.3273%2028.0025%2042.7403C27.957%2042.1113%2028.3525%2041.6282%2029.0527%2041.5862C29.8275%2041.5384%2030.6082%2041.5781%2031.3865%2041.5571C36.1113%2041.4287%2040.2024%2039.8009%2043.4429%2036.306C45.7137%2033.8555%2046.8643%2030.8706%2047.254%2027.5811C47.5248%2025.2986%2047.4956%2023.0301%2046.5936%2020.8679C45.2096%2017.5597%2042.73%2015.5316%2039.3156%2014.5911C37.99%2014.2258%2036.6317%2014.157%2035.2723%2014.1488C30.1974%2014.1185%2025.1202%2014.1372%2020.0465%2014.136C19.833%2014.136%2019.6171%2014.1442%2019.4047%2014.1255C19.1612%2014.103%2018.9338%2013.9937%2018.764%2013.8177C18.5941%2013.6417%2018.4931%2013.4105%2018.4794%2013.1663C18.4758%2012.9306%2018.5559%2012.7012%2018.7054%2012.519C18.855%2012.3367%2019.0643%2012.2134%2019.2962%2012.1709C19.5281%2012.1388%2019.7624%2012.1275%2019.9963%2012.1371C22.835%2012.1371%2025.6745%2012.1371%2028.5147%2012.1371L28.5112%2012.1406Z'%20fill='%2329F1FB'/%3e%3cpath%20d='M23.3141%2036.4119H14.2122C14.0176%2036.4205%2013.8227%2036.4163%2013.6288%2036.3991C13.1025%2036.3279%2012.7711%2036.0257%2012.7197%2035.4936C12.6684%2034.9615%2012.9181%2034.5974%2013.4199%2034.4107C13.7384%2034.294%2014.0722%2034.3185%2014.4012%2034.3185C20.3886%2034.3185%2026.3772%2034.3278%2032.3646%2034.308C34.465%2034.301%2036.2784%2033.5227%2037.7195%2031.9824C38.9552%2030.6614%2039.6029%2029.0651%2039.7954%2027.2681C39.9471%2025.8585%2039.7464%2024.562%2038.8712%2023.4115C37.898%2022.1279%2036.5829%2021.4837%2035.0018%2021.4767C29.3446%2021.4522%2023.6828%2021.4674%2018.0303%2021.4592C17.4294%2021.4592%2016.8272%2021.4102%2016.2286%2021.3542C15.7117%2021.3064%2015.4258%2020.9948%2015.3908%2020.4744C15.3523%2019.9072%2015.6428%2019.4988%2016.1574%2019.3996C16.3298%2019.3752%2016.504%2019.367%2016.6779%2019.3751C22.7458%2019.3751%2028.8137%2019.3751%2034.8816%2019.3751C37.94%2019.381%2040.5842%2021.2305%2041.5481%2024.1221C42.2319%2026.1747%2041.988%2028.2436%2041.2214%2030.2332C39.7487%2034.0525%2036.2819%2036.4014%2032.179%2036.4119C29.2244%2036.4201%2026.2687%2036.4119%2023.3141%2036.4119Z'%20fill='%2329F1FB'/%3e%3cpath%20d='M9.7404%2021.3591C9.04026%2021.3591%208.34011%2021.3684%207.63997%2021.3591C7.05652%2021.3486%206.60843%2020.9647%206.54192%2020.4419C6.4754%2019.9191%206.8033%2019.4699%207.4346%2019.3415C7.77937%2019.2856%208.12868%2019.2625%208.47781%2019.2727C9.43%2019.2645%2010.3834%2019.2622%2011.3356%2019.2727C11.6263%2019.2722%2011.9161%2019.3059%2012.1991%2019.373C12.7137%2019.5037%2012.9949%2019.9425%2012.9342%2020.4757C12.8735%2021.009%2012.5515%2021.3299%2012.0124%2021.3474C11.255%2021.3731%2010.4954%2021.3544%209.73806%2021.3544L9.7404%2021.3591Z'%20fill='%2329F1FB'/%3e%3cpath%20d='M22.5123%2043.6468C21.8519%2043.6468%2021.1914%2043.6585%2020.5286%2043.6468C19.9008%2043.6328%2019.4784%2043.2769%2019.4142%2042.7518C19.3899%2042.4756%2019.4757%2042.2011%2019.653%2041.9879C19.8302%2041.7748%2020.0846%2041.6404%2020.3606%2041.6141C21.7734%2041.503%2023.1927%2041.5011%2024.6058%2041.6082C24.7391%2041.6139%2024.8699%2041.6468%2024.99%2041.7048C25.1102%2041.7628%2025.2173%2041.8447%2025.3047%2041.9456C25.3921%2042.0464%2025.458%2042.164%2025.4983%2042.2912C25.5387%2042.4184%2025.5526%2042.5525%2025.5393%2042.6853C25.4961%2043.2687%2025.0854%2043.6258%2024.4366%2043.6515H22.5123V43.6468Z'%20fill='%2329F1FB'/%3e%3c/svg%3e",logoQuestdb="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Vectornator%20(http://vectornator.io/)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20height='100%25'%20stroke-miterlimit='10'%20style='fill-rule:nonzero;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;'%20version='1.1'%20viewBox='0%200%20300%20283'%20width='100%25'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:vectornator='http://vectornator.io'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cmetadata%3e%3cvectornator:setting%20key='IsTimeLapseWatermarkDisabled'%20value='false'/%3e%3cvectornator:setting%20key='UndoHistoryDisabled'%20value='true'/%3e%3cvectornator:setting%20key='VNDimensionsVisible'%20value='true'/%3e%3cvectornator:setting%20key='VNSnapToGuides'%20value='true'/%3e%3cvectornator:setting%20key='WDCMYKEnabledKey'%20value='false'/%3e%3cvectornator:setting%20key='WDDisplayWhiteBackground'%20value='false'/%3e%3cvectornator:setting%20key='WDDynamicGuides'%20value='false'/%3e%3cvectornator:setting%20key='WDGuidesVisible'%20value='true'/%3e%3cvectornator:setting%20key='WDIsolateActiveLayer'%20value='false'/%3e%3cvectornator:setting%20key='WDOutlineMode'%20value='false'/%3e%3cvectornator:setting%20key='WDRulersVisible'%20value='true'/%3e%3cvectornator:setting%20key='WDSnapToEdges'%20value='false'/%3e%3cvectornator:setting%20key='WDSnapToGrid'%20value='true'/%3e%3cvectornator:setting%20key='WDSnapToPoints'%20value='false'/%3e%3cvectornator:setting%20key='WDUnits'%20value='Points'/%3e%3c/metadata%3e%3cdefs%3e%3cpath%20d='M0.75%200.816406L327.575%200.816406L327.575%200.816406L327.575%20282.87L327.575%20282.87L0.75%20282.87L0.75%20282.87L0.75%200.816406L0.75%200.816406Z'%20fill-rule='evenodd'%20id='Fill'/%3e%3clinearGradient%20gradientTransform='matrix(1%200%200%201%200%200)'%20gradientUnits='userSpaceOnUse'%20id='LinearGradient'%20x1='324.34'%20x2='72.659'%20y1='283.316'%20y2='22.6459'%3e%3cstop%20offset='0'%20stop-color='%23892c6c'/%3e%3cstop%20offset='1'%20stop-color='%23d14671'/%3e%3c/linearGradient%3e%3clinearGradient%20gradientTransform='matrix(1%200%200%201%200%200)'%20gradientUnits='userSpaceOnUse'%20id='LinearGradient_2'%20x1='58.5308'%20x2='319.201'%20y1='17.5099'%20y2='279.464'%3e%3cstop%20offset='0'%20stop-color='%23c34170'/%3e%3cstop%20offset='1'%20stop-color='%238b2c6c'/%3e%3c/linearGradient%3e%3clinearGradient%20gradientTransform='matrix(1%200%200%201%200%200)'%20gradientUnits='userSpaceOnUse'%20id='LinearGradient_3'%20x1='312.783'%20x2='46.9766'%20y1='276.898'%20y2='17.5118'%3e%3cstop%20offset='0'%20stop-color='%23882b6b'/%3e%3cstop%20offset='1'%20stop-color='%23cf4671'/%3e%3c/linearGradient%3e%3clinearGradient%20gradientTransform='matrix(1%200%200%201%200%200)'%20gradientUnits='userSpaceOnUse'%20id='LinearGradient_4'%20x1='35.2576'%20x2='71.5179'%20y1='192.381'%20y2='89.5761'%3e%3cstop%20offset='0'%20stop-color='%23ffffff'/%3e%3cstop%20offset='0.8598'%20stop-color='%23ffffff'/%3e%3cstop%20offset='1'%20stop-color='%23ffffff'/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='Untitled'%20vectornator:layerName='Untitled'%3e%3cg%20opacity='1'%20vectornator:mask='%23Fill'%3e%3cclipPath%20id='ClipPath'%3e%3cuse%20overflow='%23visible'%20xlink:href='%23Fill'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23ClipPath)'%3e%3cpath%20d='M54.3733%20141.617C54.3733%2092.7218%2094.5908%2053.3338%20144.516%2053.3338C162.545%2053.3338%20179.186%2058.3139%20193.054%2067.3686L231.885%2029.7915C207.847%2011.6821%20177.337%200.816406%20144.516%200.816406C65.0055%200.816406%200.75%2063.7467%200.75%20141.617C0.75%20219.488%2065.0055%20282.418%20144.516%20282.418L144.516%20229.901C94.5908%20229.901%2054.3733%20190.513%2054.3733%20141.617Z'%20fill='url(%23LinearGradient)'%20fill-rule='evenodd'%20opacity='1'%20stroke='none'/%3e%3cpath%20d='M234.656%20141.618L288.28%20141.618C288.28%20104.494%20273.487%2070.5387%20249.449%2045.1855L211.543%2082.3099C225.873%2098.1556%20234.656%20118.981%20234.656%20141.618Z'%20fill='url(%23LinearGradient_2)'%20fill-rule='evenodd'%20opacity='1'%20stroke='none'/%3e%3cpath%20d='M188.431%20146.146L109.383%20146.146L248.988%20282.873L327.574%20282.42L188.431%20146.146Z'%20fill='url(%23LinearGradient_3)'%20fill-rule='evenodd'%20opacity='1'%20stroke='none'/%3e%3cpath%20d='M19.7028%2071.4473C-14.9674%20170.144%2088.5811%20211.343%2088.5811%20211.343C77.4866%20203.193%2063.6185%20184.179%2059.4581%20170.596C50.6749%20142.527%2053.4485%20120.343%2067.7789%2095.895'%20fill='url(%23LinearGradient_4)'%20fill-rule='evenodd'%20opacity='0.6'%20stroke='none'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",logoMaterialize="data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%20127%20128'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M79.8298%2075.7245C81.1903%2077.2183%2082.6219%2078.6321%2084.1068%2079.9926C84.2935%2080.206%2084.4714%2080.4372%2084.6759%2080.6417C87.2101%2083.1759%2089.762%2085.6834%2092.2873%2088.2264C93.4877%2089.4446%2094.7859%2090.5739%2095.8441%2091.9077H77.4379C77.2512%2091.6854%2077.0733%2091.4542%2076.8688%2091.2497C73.8515%2088.2502%2070.8313%2085.2417%2067.808%2082.2244C57.5112%2071.9573%2047.2115%2061.6901%2036.9088%2051.423C34.508%2049.0311%2032.1783%2046.5769%2029.6797%2044.3095V36.2446C32.8897%2036.2446%2036.1085%2036.2446%2039.3274%2036.2446C39.5831%2036.2353%2039.8379%2036.2814%2040.0742%2036.3796C40.3105%2036.4778%2040.5229%2036.6259%2040.6967%2036.8137C49.1914%2045.2787%2057.692%2053.7438%2066.1986%2062.2088C66.365%2062.3723%2066.5402%2062.5266%2066.7232%2062.6712C69.2218%2065.1876%2071.7115%2067.7218%2074.2279%2070.2293C76.0775%2072.0788%2077.9625%2073.8927%2079.8298%2075.7245Z'%20fill='%23472F85'/%3e%3cpath%20opacity='0.7'%20d='M95.8695%2091.9067C94.7847%2090.5729%2093.4865%2089.4436%2092.3127%2088.2254C89.7874%2085.6824%2087.2355%2083.1749%2084.7013%2080.6407C84.4968%2080.4362%2084.3189%2080.205%2084.1322%2079.9916C84.1322%2079.6092%2084.1322%2079.2358%2084.1322%2078.8534C84.1322%2065.8831%2084.1322%2052.9069%2084.1322%2039.9248C84.1208%2039.2368%2084.3756%2038.5709%2084.8436%2038.0664C85.3406%2037.3894%2086.0108%2036.8588%2086.7837%2036.5303C87.5566%2036.2017%2088.4038%2036.0873%2089.2361%2036.1991C91.5925%2036.3769%2093.9755%2036.2702%2096.3496%2036.1991C97.0788%2036.1991%2097.2388%2036.3947%2097.2388%2037.0883C97.2388%2050.106%2097.2388%2063.1029%2097.2388%2076.0791C97.2388%2081.0052%2097.2388%2085.9343%2097.2388%2090.8663C97.2388%2091.2131%2097.2388%2091.5599%2097.2922%2091.9067H95.8695Z'%20fill='%2313D461'/%3e%3cpath%20d='M29.6611%2068.796V50.4165C29.9368%2050.4787%2030.0791%2050.7188%2030.2569%2050.9056L35.9388%2056.5163C46.4075%2066.9554%2056.8762%2077.3944%2067.3449%2087.8335C68.6787%2089.1673%2070.0925%2090.4388%2071.2929%2091.906H52.8511C52.8511%2091.6392%2052.5933%2091.5236%2052.4332%2091.3636C45.9896%2084.9259%2039.5341%2078.4941%2033.0667%2072.0682C31.9937%2070.9145%2030.8567%2069.8221%2029.6611%2068.796H29.6611Z'%20fill='%23472F85'/%3e%3cpath%20d='M46.7068%2091.9056C41.2206%2091.9056%2035.7343%2091.9056%2030.248%2091.9056C29.7589%2091.9056%2029.6611%2091.8078%2029.6611%2091.3276C29.6611%2085.868%2029.6611%2080.3995%2029.6611%2074.9221C30.0257%2074.9221%2030.1769%2075.2689%2030.3992%2075.4823C35.6572%2080.7048%2040.9064%2085.9421%2046.1467%2091.1942C46.3601%2091.381%2046.6891%2091.5321%2046.7068%2091.9056Z'%20fill='%23472F85'/%3e%3cpath%20opacity='0.7'%20d='M79.8289%2075.7235C77.9616%2073.8918%2076.0765%2072.0779%2074.227%2070.2284C71.7106%2067.7208%2069.2209%2065.1867%2066.7223%2062.6703C66.7223%2060.7141%2066.7223%2058.7667%2066.7223%2056.8105C66.7027%2056.6106%2066.7277%2056.4089%2066.7953%2056.2198C66.863%2056.0307%2066.9716%2055.8589%2067.1135%2055.7168L79.3576%2043.535C79.4554%2043.4372%2079.5799%2043.3571%2079.6688%2043.2771C79.9445%2043.3749%2079.8645%2043.5794%2079.8645%2043.7306C79.8645%2054.2526%2079.8645%2064.7717%2079.8645%2075.2878C79.8618%2075.4337%2079.8499%2075.5792%2079.8289%2075.7235V75.7235Z'%20fill='%2313D461'/%3e%3c/svg%3e",BASE_SERVER=[{env:"CUBEJS_DB_HOST",title:"Hostname"},{env:"CUBEJS_DB_PORT",title:"Port"}],BASE_CRED=[{env:"CUBEJS_DB_USER",title:"Username"},{env:"CUBEJS_DB_PASS",title:"Password"}],DB_NAME={env:"CUBEJS_DB_NAME",title:"Database"},envVarsDbMap=[{databases:[{title:"PostgreSQL",driver:"postgres",logo:logoPostgres},{title:"MySQL",driver:"mysql",logo:logoMysql},{title:"AWS Redshift",driver:"redshift",logo:logoRedshift},{title:"ClickHouse",driver:"clickhouse",logo:logoClickhouse},{title:"Hive/SparkSQL",driver:"hive",logo:logoHive},{title:"Oracle",driver:"oracle",logo:logoOracle},{title:"QuestDB",driver:"questdb",logo:logoQuestdb},{title:"Crate",driver:"crate",logo:logoCrate}],settings:[...BASE_SERVER,DB_NAME,...BASE_CRED]},{databases:[{title:"MS SQL",driver:"mssql",logo:logoMssql}],settings:[...BASE_SERVER,...BASE_CRED,DB_NAME,{env:"CUBEJS_DB_DOMAIN",title:"Domain Name"}]},{databases:[{title:"AWS Athena",driver:"athena",logo:logoAthena,instructions:`
|
|
3254
|
+
`;function TooltipTrigger({children:tt,shown:nt,onClose:st,...mt}){const vt=reactExports.useRef(null);return reactExports.useEffect(()=>{document.addEventListener("mousedown",gt=>{vt!=null&&vt.current&&(vt.current.contains(gt.target)||st())})},[]),jsxs(TooltipTriggerWrapper,{children:[tt[0],nt?jsx(TooltipContent,{ref:vt,className:"ant-dropdown ant-dropdown-placement-bottomLeft ",style:{...mt},children:tt[1]}):null]})}function ButtonDropdown({show:tt,overlay:nt,disabled:st=!1,overlayStyles:mt,onOverlayClose:vt,onOverlayOpen:gt,onItemClick:yt,...bt}){return jsxs(TooltipTrigger,{shown:tt,...mt,onClose:()=>{vt()},children:[jsx(StyledButton,{...bt,onClick:()=>{gt()},disabled:st}),jsx("div",{onClick:yt,children:nt})]})}var SchemaFormat=(tt=>(tt.js="js",tt.yaml="yaml",tt))(SchemaFormat||{});const{Content:Content$1,Sider}=Layout$1,{TreeNode}=StyledTree,{TabPane:TabPane$2}=StyledTabs$1,schemasMap={},schemaToTreeData=tt=>Object.keys(tt).map(nt=>({title:nt,key:nt,treeData:Object.keys(tt[nt]).map(st=>{const mt=`${nt}.${st}`;return schemasMap[mt]=[nt,st],{title:st,key:mt}})})),lo=class lo extends reactExports.Component{constructor(nt){super(nt),this.state={expandedKeys:[],autoExpandParent:!0,checkedKeys:[],selectedKeys:[],activeTab:"schema",files:[],isDocker:null,shown:!1}}async componentDidMount(){await this.loadDBSchema(),await this.loadFiles()}onExpand(nt){playgroundAction("Expand Tables"),this.setState({expandedKeys:nt,autoExpandParent:!1})}onCheck(nt){playgroundAction("Check Tables"),this.setState({checkedKeys:nt})}onSelect(nt){this.setState({selectedKeys:nt})}async loadDBSchema(){this.setState({schemaLoading:!0});try{const st=await(await playgroundFetch("/playground/db-schema")).json();this.setState({tablesSchema:st.tablesSchema})}catch(nt){this.setState({schemaLoadingError:nt})}finally{this.setState({schemaLoading:!1})}}async loadFiles(){const st=await(await playgroundFetch("/playground/files")).json();this.setState({files:st.files,activeTab:st.files&&st.files.length>0?"files":"schema"})}async generateSchema(nt=SchemaFormat.js){const{checkedKeys:st,tablesSchema:mt}=this.state,{history:vt}=this.props,gt={format:nt};playgroundAction("Generate Schema",gt);const yt=await playgroundFetch("/playground/generate-schema",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({format:nt,tables:st.filter(bt=>!!schemasMap[bt]).map(bt=>schemasMap[bt]),tablesSchema:mt})});yt.status===200?(playgroundAction("Generate Schema Success",gt),await this.loadFiles(),this.setState({checkedKeys:[],activeTab:"files"}),Modal$1.success({title:"Data model files successfully generated!",content:"You can start exploring your data model and building the charts",okText:"Build",cancelText:"Close",okCancel:!0,onOk(){vt.push("/build")}})):playgroundAction("Generate Schema Fail",{error:await yt.text(),...gt})}selectedFileContent(){const nt=this.selectedFile();return nt&&nt.content}selectedFile(){const{files:nt,selectedFile:st}=this.state;return nt.find(mt=>mt.fileName===st)}renderFilesMenu(){const{selectedFile:nt,files:st}=this.state;return jsx(StyledMenu$1,{mode:"inline",onClick:({key:mt})=>{playgroundAction("Select File"),this.setState({selectedFile:mt})},selectedKeys:nt?[nt]:[],children:st.map(mt=>jsx(StyledMenu$1.Item,{children:mt.fileName},mt.fileName))})}render(){const{schemaLoading:nt,schemaLoadingError:st,tablesSchema:mt,selectedFile:vt,expandedKeys:gt,autoExpandParent:yt,checkedKeys:bt,selectedKeys:$t,activeTab:xt,isDocker:Et}=this.state,{playgroundContext:Ct}=this.context,[St,Tt]=Ct.coreServerVersion?Ct.coreServerVersion.split("."):[],wt=Number(St)>0||!Tt||Number(Tt)>=31,_t=Pt=>Pt.map(Ot=>Ot.treeData?jsx(TreeNode,{title:Ot.title,dataRef:Ot,children:_t(Ot.treeData)},Ot.key):jsx(TreeNode,{...Ot})),Dt=()=>Object.keys(mt||{}).length>0?jsx(StyledTree,{checkable:!0,onExpand:this.onExpand.bind(this),expandedKeys:gt,autoExpandParent:yt,onCheck:this.onCheck.bind(this),checkedKeys:bt,onSelect:this.onSelect.bind(this),selectedKeys:$t,children:_t(schemaToTreeData(mt||{}))}):jsx(Alert,{message:"Empty DB Schema",description:"Please check connection settings",type:"warning"}),At=()=>st?jsx(Alert,{"data-testid":"schema-error",message:"Error while loading DB schema",description:st.toString(),type:"error"}):Dt();return jsxs(Layout$1,{style:{height:"100%"},children:[jsx(Sider,{width:340,className:"schema-sidebar",children:jsxs(StyledTabs$1,{activeKey:xt,onChange:Pt=>this.setState({activeTab:Pt}),tabBarExtraContent:jsx(ButtonDropdown,{show:this.state.shown,disabled:!bt.length,type:"primary","data-testid":"chart-type-btn",overlay:jsxs(StyledMenu$1,{"data-testid":"generate-schema",children:[jsx(StyledMenu$1.Item,{title:wt?"":"yaml schema format is supported by Cube 0.31.0 and later",disabled:!wt,onClick:()=>this.generateSchema(SchemaFormat.yaml),children:"YAML"}),jsx(StyledMenu$1.Item,{onClick:()=>this.generateSchema(),children:"JavaScript"})]}),style:{border:0},onOverlayOpen:()=>this.setState({shown:!0}),onOverlayClose:()=>this.setState({shown:!1}),onItemClick:()=>this.setState({shown:!1}),children:"Generate Data Model"}),children:[jsx(TabPane$2,{tab:"Tables",children:nt?jsx(CubeLoader,{}):At()},"schema"),jsx(TabPane$2,{tab:"Files",children:this.renderFilesMenu()},"files")]})}),jsxs(Content$1,{style:{minHeight:280,padding:24},children:[vt&&jsx(Alert,{message:Et?jsxs("span",{children:["Data model files are located and can be edited in the mount volume directory."," ",jsx(Typography.Link,{href:"https://cube.dev/docs/schema/getting-started",target:"_blank",children:"Learn more about working with Cube data model in the docs"})]}):jsxs("span",{children:["This file can be edited at ",jsx("b",{children:this.selectedFile().absPath})]}),type:"info",style:{paddingTop:10,paddingBottom:11}}),vt?jsx(PrismCode,{code:this.selectedFileContent(),style:{padding:0,marginTop:24}}):jsx(Empty,{style:{marginTop:50},description:"Select tables to generate Cube data model"}),jsx(AppContextConsumer,{onReady:({playgroundContext:Pt})=>this.setState({isDocker:Pt==null?void 0:Pt.isDocker})})]})]})}};lo.contextType=AppContext$1;let SchemaPage=lo;const logoPostgres="/assets/postgres-CRAWabOt.svg",logoMysql="/assets/mysql-BeONLFsC.svg",logoAthena="/assets/athena-ojPCDZsu.svg",logoClickhouse="data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0)'%3e%3cpath%20d='M9.33325%2040.6006H13.5333V44.8006H9.33325V40.6006Z'%20fill='%23FC0D1B'/%3e%3cpath%20d='M9.33325%2011.2002H13.5333V40.6002H9.33325V11.2002Z'%20fill='%23FECB2F'/%3e%3cpath%20d='M17.7332%2011.2002H21.9332V44.8002H17.7332V11.2002Z'%20fill='%23FECB2F'/%3e%3cpath%20d='M26.1333%2011.2002H30.3333V44.8002H26.1333V11.2002Z'%20fill='%23FECB2F'/%3e%3cpath%20d='M34.5332%2011.2002H38.7332V44.8002H34.5332V11.2002Z'%20fill='%23FECB2F'/%3e%3cpath%20d='M42.9333%2024.8506H47.1334V31.1506H42.9333V24.8506Z'%20fill='%23FECB2F'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0'%3e%3crect%20width='37.8'%20height='33.6'%20fill='white'%20transform='translate(9.33325%2011.2002)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",logoCrate="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20width='56'%20height='56'%20viewBox='0%206%2032.751%2024.563'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cclipPath%20id='clip0_332_69507'%3e%3crect%20width='218'%20height='24.5634'%20transform='translate(0%206)'/%3e%3c/clipPath%3e%3c/defs%3e%3cpath%20d='M%2024.563%2014.188%20L%2024.563%206%20L%2016.376%206%20L%2016.376%2014.188%20L%200%2014.188%20L%200%2022.376%20L%208.188%2022.376%20L%208.188%2030.563%20L%2016.376%2030.563%20L%2016.376%2022.376%20L%2032.751%2022.376%20L%2032.751%2014.188%20L%2024.563%2014.188%20Z'%20fill='%23009DC7'%20clip-path='url(%23clip0_332_69507)'/%3e%3c/svg%3e",logoFirebolt="data:image/svg+xml,%3csvg%20width='72'%20height='72'%20viewBox='0%200%2072%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.48131%2032.625H13.125L0.375%200.375C0.375%200.375%2023.7498%200.375%2036%200.375C55.6751%200.375%2071.625%2016.3249%2071.625%2036C71.625%2055.6751%2055.6751%2071.625%2036%2071.625C32.2036%2071.625%2016.875%2071.625%2016.875%2071.625L1.48131%2032.625Z'%20fill='%23F72A30'/%3e%3cpath%20d='M36.3885%2024.4166V32.2084C36.3885%2032.4386%2036.5908%2032.625%2036.838%2032.625H47.5497C47.7969%2032.625%2047.9992%2032.8114%2047.9992%2033.0416V40.4584C47.9992%2040.6886%2047.7969%2040.875%2047.5497%2040.875H36.8324C36.5852%2040.875%2036.3829%2041.0614%2036.3829%2041.2916V57.3334C36.3829%2057.5636%2036.1806%2057.75%2035.9333%2057.75H27.8246C27.5773%2057.75%2027.375%2057.5636%2027.375%2057.3334V16.1666C27.375%2015.9364%2027.5773%2015.75%2027.8246%2015.75H49.4254C49.6727%2015.75%2049.875%2015.9364%2049.875%2016.1666V23.5834C49.875%2023.8136%2049.6727%2024%2049.4254%2024H36.838C36.5852%2024%2036.3885%2024.1864%2036.3885%2024.4166Z'%20fill='white'/%3e%3cpath%20d='M36.3885%2024.4166V32.2084C36.3885%2032.4386%2036.5908%2032.625%2036.838%2032.625H47.5497C47.7969%2032.625%2047.9992%2032.8114%2047.9992%2033.0416V40.4584C47.9992%2040.6886%2047.7969%2040.875%2047.5497%2040.875H36.8324C36.5852%2040.875%2036.3829%2041.0614%2036.3829%2041.2916V57.3334C36.3829%2057.5636%2036.1806%2057.75%2035.9333%2057.75H27.8246C27.5773%2057.75%2027.375%2057.5636%2027.375%2057.3334V16.1666C27.375%2015.9364%2027.5773%2015.75%2027.8246%2015.75H49.4254C49.6727%2015.75%2049.875%2015.9364%2049.875%2016.1666V23.5834C49.875%2023.8136%2049.6727%2024%2049.4254%2024H36.838C36.5852%2024%2036.3885%2024.1864%2036.3885%2024.4166Z'%20fill='url(%23paint0_linear_197_4577)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_197_4577'%20x1='38.625'%20y1='15.75'%20x2='38.625'%20y2='57.75'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",logoHive="/assets/hive-CnKOdnG1.svg",logoRedshift="data:image/svg+xml,%3csvg%20width='56'%20height='57'%20viewBox='0%200%2056%2057'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M44.9206%2014.5049L28.5906%2018.4903V41.3975L44.9206%2045.383V14.5049Z'%20fill='%23245C96'/%3e%3cpath%20d='M48.0448%2043.8107L44.9023%2045.4013V14.5049L48.0448%2016.0954V43.8107Z'%20fill='%235595CD'/%3e%3cpath%20d='M12.2429%2014.5049L28.573%2018.4903V41.3975L12.2429%2045.383V14.5049Z'%20fill='%235595CD'/%3e%3cpath%20d='M9.1001%2043.8107L12.2426%2045.4013V14.5049L9.1001%2016.0954V43.8107Z'%20fill='%23245C96'/%3e%3cpath%20d='M38.9626%2011.5256L32.7503%208.39941L30.8066%2028.9482L32.7503%2051.5994L38.9626%2048.4915V11.5256Z'%20fill='%235595CD'/%3e%3cpath%20d='M18.1824%2011.5256L24.3947%208.39941L26.3383%2028.8751L24.3947%2051.5994L18.1824%2048.4915V11.5256Z'%20fill='%23245C96'/%3e%3cpath%20d='M24.3945%208.39941H32.7503V51.5812H24.3945V8.39941Z'%20fill='%233174B6'/%3e%3c/svg%3e",logoPresto="/assets/presto-CuvrYmB5.svg",logoSnowflake="/assets/snowflake-BQpm6tUS.svg",logoOracle="data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0)'%3e%3cpath%20d='M19.9804%2042.0692C12.3755%2042.0692%206.2915%2035.9853%206.2915%2028.3803C6.2915%2020.7754%2012.3755%2014.6914%2019.9804%2014.6914H36.0199C43.6248%2014.6914%2049.7088%2020.7754%2049.7088%2028.3803C49.7088%2035.9853%2043.6248%2042.0692%2036.0199%2042.0692H19.9804ZM35.6051%2037.2297C40.5829%2037.2297%2044.4545%2033.2198%2044.4545%2028.3803C44.4545%2023.4026%2040.4446%2019.531%2035.6051%2019.531H20.3952C15.4174%2019.531%2011.5458%2023.5408%2011.5458%2028.3803C11.5458%2033.2198%2015.5557%2037.2297%2020.3952%2037.2297H35.6051Z'%20fill='%23E0252D'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0'%3e%3crect%20width='44.8'%20height='28.7605'%20fill='white'%20transform='translate(5.6001%2014)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",logoMssql="/assets/mssql-D2BHkfVq.svg",logoBigquery="data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M37.6089%208.40039H18.3923C17.8331%208.40083%2017.2839%208.54853%2016.8%208.82863C16.316%209.10873%2015.9144%209.51135%2015.6355%209.99597L6.02712%2026.6388C5.74769%2027.1228%205.60059%2027.6718%205.60059%2028.2307C5.60059%2028.7895%205.74769%2029.3385%206.02712%2029.8225L15.6355%2046.4629C15.9147%2046.947%2016.3165%2047.349%2016.8004%2047.6284C17.2844%2047.9079%2017.8334%2048.0549%2018.3923%2048.0547H37.6089C38.1678%2048.0549%2038.7168%2047.9079%2039.2008%2047.6284C39.6847%2047.349%2040.0865%2046.947%2040.3657%2046.4629L49.9741%2029.8213C50.2535%2029.3373%2050.4006%2028.7883%2050.4006%2028.2294C50.4006%2027.6706%2050.2535%2027.1216%2049.9741%2026.6376L40.3657%209.99597C40.0868%209.51135%2039.6852%209.10873%2039.2012%208.82863C38.7173%208.54853%2038.1681%208.40083%2037.6089%208.40039Z'%20fill='%23468AF9'/%3e%3cpath%20d='M31.2861%2028.8262H30.2904C30.2244%2028.8262%2030.1611%2028.8524%2030.1144%2028.8991C30.0677%2028.9458%2030.0415%2029.0091%2030.0415%2029.0751V32.3559C30.6206%2032.0314%2031.1285%2031.5938%2031.535%2031.069V29.0776C31.5354%2029.0447%2031.5292%2029.012%2031.5168%2028.9816C31.5044%2028.9511%2031.4862%2028.9233%2031.463%2028.9C31.4399%2028.8766%2031.4123%2028.858%2031.3819%2028.8454C31.3516%2028.8327%2031.319%2028.8262%2031.2861%2028.8262Z'%20fill='white'/%3e%3cpath%20d='M25.2386%2032.0583V27.9511C25.2386%2027.8851%2025.2124%2027.8217%2025.1657%2027.7751C25.1191%2027.7284%2025.0557%2027.7021%2024.9897%2027.7021H23.994C23.928%2027.7021%2023.8647%2027.7284%2023.818%2027.7751C23.7713%2027.8217%2023.7451%2027.8851%2023.7451%2027.9511V30.9879C24.1229%2031.4978%2024.5958%2031.9298%2025.1378%2032.2599C25.1693%2032.2366%2025.1949%2032.2062%2025.2124%2032.1711C25.2299%2032.1361%2025.2389%2032.0974%2025.2386%2032.0583Z'%20fill='white'/%3e%3cpath%20d='M28.3856%2026.0634C28.3856%2025.9974%2028.3594%2025.934%2028.3127%2025.8874C28.266%2025.8407%2028.2027%2025.8145%2028.1367%2025.8145H27.141C27.075%2025.8145%2027.0117%2025.8407%2026.965%2025.8874C26.9183%2025.934%2026.8921%2025.9974%2026.8921%2026.0634V32.8813C26.8914%2032.8908%2026.8914%2032.9004%2026.8921%2032.9099C27.1481%2032.9509%2027.4069%2032.9717%2027.6662%2032.9722C27.9049%2032.9717%2028.1432%2032.9543%2028.3794%2032.9199C28.3794%2032.9062%2028.3794%2032.8938%2028.3794%2032.8813L28.3856%2026.0634Z'%20fill='white'/%3e%3cpath%20d='M37.5053%2036.4363L34.1449%2033.0758C35.4208%2031.4218%2036.0175%2029.3433%2035.8133%2027.2644C35.6091%2025.1855%2034.6194%2023.2628%2033.046%2021.8887C31.4727%2020.5145%2029.4343%2019.7925%2027.3468%2019.8699C25.2593%2019.9473%2023.28%2020.8183%2021.8127%2022.3051C20.3454%2023.792%2019.5008%2025.7827%2019.4511%2027.871C19.4013%2029.9594%2020.1503%2031.988%2021.5452%2033.543C22.9401%2035.098%2024.8757%2036.0621%2026.9572%2036.2388C29.0386%2036.4154%2031.109%2035.7912%2032.746%2034.4934L36.094%2037.8402C36.1171%2037.8633%2036.1445%2037.8817%2036.1747%2037.8942C36.205%2037.9067%2036.2374%2037.9132%2036.2701%2037.9132C36.3028%2037.9132%2036.3352%2037.9067%2036.3654%2037.8942C36.3956%2037.8817%2036.4231%2037.8633%2036.4462%2037.8402L37.5016%2036.7848C37.5477%2036.7387%2037.5739%2036.6764%2037.5746%2036.6113C37.5753%2036.5461%2037.5504%2036.4833%2037.5053%2036.4363ZM27.673%2034.2806C26.4483%2034.2806%2025.2512%2033.9175%2024.2329%2033.2371C23.2147%2032.5567%2022.421%2031.5897%2021.9524%2030.4583C21.4837%2029.3268%2021.3611%2028.0819%2021.6%2026.8807C21.839%2025.6796%2022.4287%2024.5763%2023.2946%2023.7104C24.1606%2022.8444%2025.2639%2022.2547%2026.465%2022.0158C27.6661%2021.7769%2028.9111%2021.8995%2030.0425%2022.3682C31.1739%2022.8368%2032.141%2023.6304%2032.8213%2024.6487C33.5017%2025.6669%2033.8649%2026.8641%2033.8649%2028.0887C33.8629%2029.7307%2033.2096%2031.3049%2032.0482%2032.4658C30.8869%2033.6266%2029.3125%2034.2793%2027.6705%2034.2806H27.673Z'%20fill='white'/%3e%3c/svg%3e",logoMongodb="data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M38.3073%2023.2375C35.8487%2012.3917%2030.7245%209.5044%2029.4174%207.46338C28.8784%206.56426%2028.4009%205.62967%2027.9882%204.66602C27.9191%205.62952%2027.7923%206.23652%2026.9733%206.96718C25.3289%208.43331%2018.3451%2014.1244%2017.7574%2026.4476C17.2098%2037.9373%2026.2041%2045.0223%2027.3924%2045.7546C28.3061%2046.2042%2029.419%2045.7642%2029.9618%2045.3515C34.2975%2042.3759%2040.2214%2034.443%2038.3121%2023.2375'%20fill='%2310AA50'/%3e%3cpath%20d='M28.361%2039.6357C28.1345%2042.4797%2027.9724%2044.1321%2027.3975%2045.7572C27.3975%2045.7572%2027.7748%2048.4646%2028.0398%2051.3327H28.9776C29.2013%2049.313%2029.5429%2047.3082%2030.0005%2045.3284C28.7865%2044.7311%2028.4075%2042.1312%2028.361%2039.6357Z'%20fill='%23B8C4C2'/%3e%3cpath%20d='M29.9986%2045.3297C28.7717%2044.7628%2028.4168%2042.1084%2028.3622%2039.6354C28.6656%2035.556%2028.7541%2031.4635%2028.6272%2027.3748C28.563%2025.2294%2028.6577%207.50421%2028.0989%204.90918C28.4811%205.78809%2028.9216%206.64054%2029.4173%207.46085C30.7244%209.50348%2035.8502%2012.3908%2038.3072%2023.2366C40.2213%2034.4229%2034.3295%2042.3348%2029.9986%2045.3297Z'%20fill='%2312924F'/%3e%3c/svg%3e",logoDruid="data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M28.5112%2012.1406C31.2535%2012.1406%2033.9957%2012.1266%2036.7367%2012.1406C41.9878%2012.1733%2046.8059%2015.5246%2048.6392%2020.4163C49.4291%2022.5284%2049.6007%2024.714%2049.3755%2026.9579C49.0452%2030.2533%2048.0615%2033.3117%2046.198%2036.0528C43.3227%2040.284%2039.2701%2042.6353%2034.2512%2043.4183C32.5499%2043.6832%2030.8427%2043.6516%2029.1332%2043.6516C28.4237%2043.6516%2028.0445%2043.3273%2028.0025%2042.7403C27.957%2042.1113%2028.3525%2041.6282%2029.0527%2041.5862C29.8275%2041.5384%2030.6082%2041.5781%2031.3865%2041.5571C36.1113%2041.4287%2040.2024%2039.8009%2043.4429%2036.306C45.7137%2033.8555%2046.8643%2030.8706%2047.254%2027.5811C47.5248%2025.2986%2047.4956%2023.0301%2046.5936%2020.8679C45.2096%2017.5597%2042.73%2015.5316%2039.3156%2014.5911C37.99%2014.2258%2036.6317%2014.157%2035.2723%2014.1488C30.1974%2014.1185%2025.1202%2014.1372%2020.0465%2014.136C19.833%2014.136%2019.6171%2014.1442%2019.4047%2014.1255C19.1612%2014.103%2018.9338%2013.9937%2018.764%2013.8177C18.5941%2013.6417%2018.4931%2013.4105%2018.4794%2013.1663C18.4758%2012.9306%2018.5559%2012.7012%2018.7054%2012.519C18.855%2012.3367%2019.0643%2012.2134%2019.2962%2012.1709C19.5281%2012.1388%2019.7624%2012.1275%2019.9963%2012.1371C22.835%2012.1371%2025.6745%2012.1371%2028.5147%2012.1371L28.5112%2012.1406Z'%20fill='%2329F1FB'/%3e%3cpath%20d='M23.3141%2036.4119H14.2122C14.0176%2036.4205%2013.8227%2036.4163%2013.6288%2036.3991C13.1025%2036.3279%2012.7711%2036.0257%2012.7197%2035.4936C12.6684%2034.9615%2012.9181%2034.5974%2013.4199%2034.4107C13.7384%2034.294%2014.0722%2034.3185%2014.4012%2034.3185C20.3886%2034.3185%2026.3772%2034.3278%2032.3646%2034.308C34.465%2034.301%2036.2784%2033.5227%2037.7195%2031.9824C38.9552%2030.6614%2039.6029%2029.0651%2039.7954%2027.2681C39.9471%2025.8585%2039.7464%2024.562%2038.8712%2023.4115C37.898%2022.1279%2036.5829%2021.4837%2035.0018%2021.4767C29.3446%2021.4522%2023.6828%2021.4674%2018.0303%2021.4592C17.4294%2021.4592%2016.8272%2021.4102%2016.2286%2021.3542C15.7117%2021.3064%2015.4258%2020.9948%2015.3908%2020.4744C15.3523%2019.9072%2015.6428%2019.4988%2016.1574%2019.3996C16.3298%2019.3752%2016.504%2019.367%2016.6779%2019.3751C22.7458%2019.3751%2028.8137%2019.3751%2034.8816%2019.3751C37.94%2019.381%2040.5842%2021.2305%2041.5481%2024.1221C42.2319%2026.1747%2041.988%2028.2436%2041.2214%2030.2332C39.7487%2034.0525%2036.2819%2036.4014%2032.179%2036.4119C29.2244%2036.4201%2026.2687%2036.4119%2023.3141%2036.4119Z'%20fill='%2329F1FB'/%3e%3cpath%20d='M9.7404%2021.3591C9.04026%2021.3591%208.34011%2021.3684%207.63997%2021.3591C7.05652%2021.3486%206.60843%2020.9647%206.54192%2020.4419C6.4754%2019.9191%206.8033%2019.4699%207.4346%2019.3415C7.77937%2019.2856%208.12868%2019.2625%208.47781%2019.2727C9.43%2019.2645%2010.3834%2019.2622%2011.3356%2019.2727C11.6263%2019.2722%2011.9161%2019.3059%2012.1991%2019.373C12.7137%2019.5037%2012.9949%2019.9425%2012.9342%2020.4757C12.8735%2021.009%2012.5515%2021.3299%2012.0124%2021.3474C11.255%2021.3731%2010.4954%2021.3544%209.73806%2021.3544L9.7404%2021.3591Z'%20fill='%2329F1FB'/%3e%3cpath%20d='M22.5123%2043.6468C21.8519%2043.6468%2021.1914%2043.6585%2020.5286%2043.6468C19.9008%2043.6328%2019.4784%2043.2769%2019.4142%2042.7518C19.3899%2042.4756%2019.4757%2042.2011%2019.653%2041.9879C19.8302%2041.7748%2020.0846%2041.6404%2020.3606%2041.6141C21.7734%2041.503%2023.1927%2041.5011%2024.6058%2041.6082C24.7391%2041.6139%2024.8699%2041.6468%2024.99%2041.7048C25.1102%2041.7628%2025.2173%2041.8447%2025.3047%2041.9456C25.3921%2042.0464%2025.458%2042.164%2025.4983%2042.2912C25.5387%2042.4184%2025.5526%2042.5525%2025.5393%2042.6853C25.4961%2043.2687%2025.0854%2043.6258%2024.4366%2043.6515H22.5123V43.6468Z'%20fill='%2329F1FB'/%3e%3c/svg%3e",logoQuestdb="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Vectornator%20(http://vectornator.io/)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20height='100%25'%20stroke-miterlimit='10'%20style='fill-rule:nonzero;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;'%20version='1.1'%20viewBox='0%200%20300%20283'%20width='100%25'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:vectornator='http://vectornator.io'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cmetadata%3e%3cvectornator:setting%20key='IsTimeLapseWatermarkDisabled'%20value='false'/%3e%3cvectornator:setting%20key='UndoHistoryDisabled'%20value='true'/%3e%3cvectornator:setting%20key='VNDimensionsVisible'%20value='true'/%3e%3cvectornator:setting%20key='VNSnapToGuides'%20value='true'/%3e%3cvectornator:setting%20key='WDCMYKEnabledKey'%20value='false'/%3e%3cvectornator:setting%20key='WDDisplayWhiteBackground'%20value='false'/%3e%3cvectornator:setting%20key='WDDynamicGuides'%20value='false'/%3e%3cvectornator:setting%20key='WDGuidesVisible'%20value='true'/%3e%3cvectornator:setting%20key='WDIsolateActiveLayer'%20value='false'/%3e%3cvectornator:setting%20key='WDOutlineMode'%20value='false'/%3e%3cvectornator:setting%20key='WDRulersVisible'%20value='true'/%3e%3cvectornator:setting%20key='WDSnapToEdges'%20value='false'/%3e%3cvectornator:setting%20key='WDSnapToGrid'%20value='true'/%3e%3cvectornator:setting%20key='WDSnapToPoints'%20value='false'/%3e%3cvectornator:setting%20key='WDUnits'%20value='Points'/%3e%3c/metadata%3e%3cdefs%3e%3cpath%20d='M0.75%200.816406L327.575%200.816406L327.575%200.816406L327.575%20282.87L327.575%20282.87L0.75%20282.87L0.75%20282.87L0.75%200.816406L0.75%200.816406Z'%20fill-rule='evenodd'%20id='Fill'/%3e%3clinearGradient%20gradientTransform='matrix(1%200%200%201%200%200)'%20gradientUnits='userSpaceOnUse'%20id='LinearGradient'%20x1='324.34'%20x2='72.659'%20y1='283.316'%20y2='22.6459'%3e%3cstop%20offset='0'%20stop-color='%23892c6c'/%3e%3cstop%20offset='1'%20stop-color='%23d14671'/%3e%3c/linearGradient%3e%3clinearGradient%20gradientTransform='matrix(1%200%200%201%200%200)'%20gradientUnits='userSpaceOnUse'%20id='LinearGradient_2'%20x1='58.5308'%20x2='319.201'%20y1='17.5099'%20y2='279.464'%3e%3cstop%20offset='0'%20stop-color='%23c34170'/%3e%3cstop%20offset='1'%20stop-color='%238b2c6c'/%3e%3c/linearGradient%3e%3clinearGradient%20gradientTransform='matrix(1%200%200%201%200%200)'%20gradientUnits='userSpaceOnUse'%20id='LinearGradient_3'%20x1='312.783'%20x2='46.9766'%20y1='276.898'%20y2='17.5118'%3e%3cstop%20offset='0'%20stop-color='%23882b6b'/%3e%3cstop%20offset='1'%20stop-color='%23cf4671'/%3e%3c/linearGradient%3e%3clinearGradient%20gradientTransform='matrix(1%200%200%201%200%200)'%20gradientUnits='userSpaceOnUse'%20id='LinearGradient_4'%20x1='35.2576'%20x2='71.5179'%20y1='192.381'%20y2='89.5761'%3e%3cstop%20offset='0'%20stop-color='%23ffffff'/%3e%3cstop%20offset='0.8598'%20stop-color='%23ffffff'/%3e%3cstop%20offset='1'%20stop-color='%23ffffff'/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='Untitled'%20vectornator:layerName='Untitled'%3e%3cg%20opacity='1'%20vectornator:mask='%23Fill'%3e%3cclipPath%20id='ClipPath'%3e%3cuse%20overflow='%23visible'%20xlink:href='%23Fill'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23ClipPath)'%3e%3cpath%20d='M54.3733%20141.617C54.3733%2092.7218%2094.5908%2053.3338%20144.516%2053.3338C162.545%2053.3338%20179.186%2058.3139%20193.054%2067.3686L231.885%2029.7915C207.847%2011.6821%20177.337%200.816406%20144.516%200.816406C65.0055%200.816406%200.75%2063.7467%200.75%20141.617C0.75%20219.488%2065.0055%20282.418%20144.516%20282.418L144.516%20229.901C94.5908%20229.901%2054.3733%20190.513%2054.3733%20141.617Z'%20fill='url(%23LinearGradient)'%20fill-rule='evenodd'%20opacity='1'%20stroke='none'/%3e%3cpath%20d='M234.656%20141.618L288.28%20141.618C288.28%20104.494%20273.487%2070.5387%20249.449%2045.1855L211.543%2082.3099C225.873%2098.1556%20234.656%20118.981%20234.656%20141.618Z'%20fill='url(%23LinearGradient_2)'%20fill-rule='evenodd'%20opacity='1'%20stroke='none'/%3e%3cpath%20d='M188.431%20146.146L109.383%20146.146L248.988%20282.873L327.574%20282.42L188.431%20146.146Z'%20fill='url(%23LinearGradient_3)'%20fill-rule='evenodd'%20opacity='1'%20stroke='none'/%3e%3cpath%20d='M19.7028%2071.4473C-14.9674%20170.144%2088.5811%20211.343%2088.5811%20211.343C77.4866%20203.193%2063.6185%20184.179%2059.4581%20170.596C50.6749%20142.527%2053.4485%20120.343%2067.7789%2095.895'%20fill='url(%23LinearGradient_4)'%20fill-rule='evenodd'%20opacity='0.6'%20stroke='none'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",logoMaterialize="data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%20127%20128'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M79.8298%2075.7245C81.1903%2077.2183%2082.6219%2078.6321%2084.1068%2079.9926C84.2935%2080.206%2084.4714%2080.4372%2084.6759%2080.6417C87.2101%2083.1759%2089.762%2085.6834%2092.2873%2088.2264C93.4877%2089.4446%2094.7859%2090.5739%2095.8441%2091.9077H77.4379C77.2512%2091.6854%2077.0733%2091.4542%2076.8688%2091.2497C73.8515%2088.2502%2070.8313%2085.2417%2067.808%2082.2244C57.5112%2071.9573%2047.2115%2061.6901%2036.9088%2051.423C34.508%2049.0311%2032.1783%2046.5769%2029.6797%2044.3095V36.2446C32.8897%2036.2446%2036.1085%2036.2446%2039.3274%2036.2446C39.5831%2036.2353%2039.8379%2036.2814%2040.0742%2036.3796C40.3105%2036.4778%2040.5229%2036.6259%2040.6967%2036.8137C49.1914%2045.2787%2057.692%2053.7438%2066.1986%2062.2088C66.365%2062.3723%2066.5402%2062.5266%2066.7232%2062.6712C69.2218%2065.1876%2071.7115%2067.7218%2074.2279%2070.2293C76.0775%2072.0788%2077.9625%2073.8927%2079.8298%2075.7245Z'%20fill='%23472F85'/%3e%3cpath%20opacity='0.7'%20d='M95.8695%2091.9067C94.7847%2090.5729%2093.4865%2089.4436%2092.3127%2088.2254C89.7874%2085.6824%2087.2355%2083.1749%2084.7013%2080.6407C84.4968%2080.4362%2084.3189%2080.205%2084.1322%2079.9916C84.1322%2079.6092%2084.1322%2079.2358%2084.1322%2078.8534C84.1322%2065.8831%2084.1322%2052.9069%2084.1322%2039.9248C84.1208%2039.2368%2084.3756%2038.5709%2084.8436%2038.0664C85.3406%2037.3894%2086.0108%2036.8588%2086.7837%2036.5303C87.5566%2036.2017%2088.4038%2036.0873%2089.2361%2036.1991C91.5925%2036.3769%2093.9755%2036.2702%2096.3496%2036.1991C97.0788%2036.1991%2097.2388%2036.3947%2097.2388%2037.0883C97.2388%2050.106%2097.2388%2063.1029%2097.2388%2076.0791C97.2388%2081.0052%2097.2388%2085.9343%2097.2388%2090.8663C97.2388%2091.2131%2097.2388%2091.5599%2097.2922%2091.9067H95.8695Z'%20fill='%2313D461'/%3e%3cpath%20d='M29.6611%2068.796V50.4165C29.9368%2050.4787%2030.0791%2050.7188%2030.2569%2050.9056L35.9388%2056.5163C46.4075%2066.9554%2056.8762%2077.3944%2067.3449%2087.8335C68.6787%2089.1673%2070.0925%2090.4388%2071.2929%2091.906H52.8511C52.8511%2091.6392%2052.5933%2091.5236%2052.4332%2091.3636C45.9896%2084.9259%2039.5341%2078.4941%2033.0667%2072.0682C31.9937%2070.9145%2030.8567%2069.8221%2029.6611%2068.796H29.6611Z'%20fill='%23472F85'/%3e%3cpath%20d='M46.7068%2091.9056C41.2206%2091.9056%2035.7343%2091.9056%2030.248%2091.9056C29.7589%2091.9056%2029.6611%2091.8078%2029.6611%2091.3276C29.6611%2085.868%2029.6611%2080.3995%2029.6611%2074.9221C30.0257%2074.9221%2030.1769%2075.2689%2030.3992%2075.4823C35.6572%2080.7048%2040.9064%2085.9421%2046.1467%2091.1942C46.3601%2091.381%2046.6891%2091.5321%2046.7068%2091.9056Z'%20fill='%23472F85'/%3e%3cpath%20opacity='0.7'%20d='M79.8289%2075.7235C77.9616%2073.8918%2076.0765%2072.0779%2074.227%2070.2284C71.7106%2067.7208%2069.2209%2065.1867%2066.7223%2062.6703C66.7223%2060.7141%2066.7223%2058.7667%2066.7223%2056.8105C66.7027%2056.6106%2066.7277%2056.4089%2066.7953%2056.2198C66.863%2056.0307%2066.9716%2055.8589%2067.1135%2055.7168L79.3576%2043.535C79.4554%2043.4372%2079.5799%2043.3571%2079.6688%2043.2771C79.9445%2043.3749%2079.8645%2043.5794%2079.8645%2043.7306C79.8645%2054.2526%2079.8645%2064.7717%2079.8645%2075.2878C79.8618%2075.4337%2079.8499%2075.5792%2079.8289%2075.7235V75.7235Z'%20fill='%2313D461'/%3e%3c/svg%3e",BASE_SERVER=[{env:"CUBEJS_DB_HOST",title:"Hostname"},{env:"CUBEJS_DB_PORT",title:"Port"}],BASE_CRED=[{env:"CUBEJS_DB_USER",title:"Username"},{env:"CUBEJS_DB_PASS",title:"Password"}],DB_NAME={env:"CUBEJS_DB_NAME",title:"Database"},envVarsDbMap=[{databases:[{title:"PostgreSQL",driver:"postgres",logo:logoPostgres},{title:"MySQL",driver:"mysql",logo:logoMysql},{title:"AWS Redshift",driver:"redshift",logo:logoRedshift},{title:"ClickHouse",driver:"clickhouse",logo:logoClickhouse},{title:"Hive/SparkSQL",driver:"hive",logo:logoHive},{title:"Oracle",driver:"oracle",logo:logoOracle},{title:"QuestDB",driver:"questdb",logo:logoQuestdb},{title:"Crate",driver:"crate",logo:logoCrate}],settings:[...BASE_SERVER,DB_NAME,...BASE_CRED]},{databases:[{title:"MS SQL",driver:"mssql",logo:logoMssql}],settings:[...BASE_SERVER,...BASE_CRED,DB_NAME,{env:"CUBEJS_DB_DOMAIN",title:"Domain Name"}]},{databases:[{title:"AWS Athena",driver:"athena",logo:logoAthena,instructions:`
|
|
3255
3255
|
Specify the AWS access and secret keys with the <a href="https://docs.aws.amazon.com/athena/latest/ug/security-iam-athena.html" target="_blank">access necessary to run Athena queries</a>,
|
|
3256
3256
|
and the target AWS region and <a href="https://docs.aws.amazon.com/athena/latest/ug/querying.html" target="_blank">S3 output location</a> where query results are stored.
|
|
3257
3257
|
`}],settings:[{env:"CUBEJS_AWS_KEY",title:"AWS Access Key ID"},{env:"CUBEJS_AWS_SECRET",title:"AWS Secret Access Key"},{env:"CUBEJS_AWS_REGION",title:"AWS Region"},{env:"CUBEJS_AWS_S3_OUTPUT_LOCATION",title:"S3 Output Location"}]},{databases:[{title:"Google Bigquery",driver:"bigquery",logo:logoBigquery,instructions:`
|
package/playground/index.html
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
</style>
|
|
25
25
|
<title>Cube Playground</title>
|
|
26
|
-
<script type="module" crossorigin src="/assets/index-
|
|
26
|
+
<script type="module" crossorigin src="/assets/index-CH7p8ya-.js"></script>
|
|
27
27
|
<link rel="stylesheet" crossorigin href="/assets/index-xEIXRErq.css">
|
|
28
28
|
</head>
|
|
29
29
|
<body>
|
|
Binary file
|