@cubejs-client/playground 1.7.50 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1768,7 +1768,7 @@ and the target AWS region and <a href="https://docs.aws.amazon.com/athena/latest
1768
1768
  Upload a service account JSON keyfile to connect to BigQuery.<br/>Alternatively, you can encode the key file with base64 and specify it manually.
1769
1769
  `}],settings:[{env:`CUBEJS_DB_BQ_KEY_FILE`,title:`Upload a Service Account JSON file`,type:`base64upload`,uploadTarget:`CUBEJS_DB_BQ_CREDENTIALS`,extractField:{jsonField:`project_id`,formField:`CUBEJS_DB_BQ_PROJECT_ID`}},{env:`CUBEJS_DB_BQ_PROJECT_ID`,title:`Project ID`},{env:`CUBEJS_DB_BQ_CREDENTIALS`,title:`Encoded Key File`}]},{databases:[{title:`Firebolt`,driver:`firebolt`,logo:firebolt_default,instructions:`
1770
1770
  Specify the Firebolt Service Account <a href="https://docs.firebolt.io/godocs/Guides/managing-your-organization/service-accounts.html" target="_blank">client ID and secret.</a>
1771
- `}],settings:[{env:`CUBEJS_DB_USER`,title:`Client ID`},{env:`CUBEJS_DB_PASS`,title:`Client Secret`},DB_NAME,{env:`CUBEJS_FIREBOLT_ACCOUNT`,title:`Account`},{env:`CUBEJS_FIREBOLT_ENGINE_NAME`,title:`Engine name`}]},{databases:[{title:`MongoDB`,driver:`mongobi`,logo:mongodb_default}],settings:[...BASE_SERVER,...BASE_CRED,DB_NAME]},{databases:[{title:`Materialize`,driver:`materialize`,logo:materialize_default}],settings:[...BASE_SERVER,...BASE_CRED,DB_NAME,{env:`CUBEJS_DB_MATERIALIZE_CLUSTER`,title:`Cluster`}]},{databases:[{title:`Snowflake`,driver:`snowflake`,logo:snowflake_default}],settings:[...BASE_CRED,DB_NAME,{env:`CUBEJS_DB_SNOWFLAKE_ACCOUNT`,title:`Account`},{env:`CUBEJS_DB_SNOWFLAKE_REGION`,title:`Region`},{env:`CUBEJS_DB_SNOWFLAKE_WAREHOUSE`,title:`Warehouse`},{env:`CUBEJS_DB_SNOWFLAKE_ROLE`,title:`Role`}]},{databases:[{title:`Presto`,driver:`prestodb`,logo:presto_default}],settings:[...BASE_SERVER,...BASE_CRED,{env:`CUBEJS_DB_CATALOG`,title:`Catalog`},{env:`CUBEJS_DB_SCHEMA`,title:`Schema`}]},{databases:[{title:`Druid`,driver:`druid`,logo:druid_default}],settings:[{env:`CUBEJS_DB_URL`,title:`URL`},...BASE_CRED]}];function ConnectionTest({loading:g,result:_}){return g?(0,import_jsx_runtime.jsxs)(Space$1,{align:`center`,size:`middle`,children:[(0,import_jsx_runtime.jsx)(Spin,{"data-testid":`wizard-test-connection-spinner`}),(0,import_jsx_runtime.jsx)(Typography.Text,{children:`Testing database connection`})]}):_?.success?(0,import_jsx_runtime.jsxs)(Typography.Text,{type:`success`,children:[(0,import_jsx_runtime.jsx)(RefIcon$32,{}),`\xA0\xA0Connection successful`]}):_?.error?(0,import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment,{children:[(0,import_jsx_runtime.jsx)(Typography.Text,{type:`danger`,children:`We couldn’t connect. Please double check the provided data and try again`}),(0,import_jsx_runtime.jsx)(Alert$2,{"data-testid":`wizard-connection-error`,style:{marginTop:20},message:`Runtime Error`,type:`error`,description:(0,import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment,{children:[(0,import_jsx_runtime.jsx)(`p`,{style:{paddingLeft:20},children:`Cube was unable to connect to the specified database.`}),(0,import_jsx_runtime.jsx)(`p`,{style:{paddingLeft:20},children:`The database returned the following error:`}),(0,import_jsx_runtime.jsx)(`br`,{}),(0,import_jsx_runtime.jsx)(`p`,{style:{paddingLeft:40},children:`>Database Error`}),(0,import_jsx_runtime.jsx)(`p`,{style:{paddingLeft:40},children:_.error.toString()}),(0,import_jsx_runtime.jsx)(`br`,{}),(0,import_jsx_runtime.jsx)(`p`,{children:`Check your database credentials and try again. For more information, visit:`}),(0,import_jsx_runtime.jsx)(`a`,{href:`https://docs.cube.dev/cube-core/getting-started/create-a-project`,target:`_blank`,rel:`noreferrer`,children:`https://docs.cube.dev/cube-core/getting-started/create-a-project`})]})})]}):null}function DatabaseCard({db:g}){return(0,import_jsx_runtime.jsx)(Card$1,{"data-testid":`wizard-db-card`,children:(0,import_jsx_runtime.jsxs)(row_default,{align:`middle`,justify:`space-between`,children:[(0,import_jsx_runtime.jsx)(col_default,{flex:`40px`,children:(0,import_jsx_runtime.jsx)(Image$1,{src:g.logo,preview:!1})}),(0,import_jsx_runtime.jsx)(col_default,{children:(0,import_jsx_runtime.jsx)(Typography.Text,{strong:!0,children:g.title})})]})})}var Wrapper$2=gt.div`
1771
+ `}],settings:[{env:`CUBEJS_DB_USER`,title:`Client ID`},{env:`CUBEJS_DB_PASS`,title:`Client Secret`},DB_NAME,{env:`CUBEJS_FIREBOLT_ACCOUNT`,title:`Account`},{env:`CUBEJS_FIREBOLT_ENGINE_NAME`,title:`Engine name`}]},{databases:[{title:`MongoDB`,driver:`mongobi`,logo:mongodb_default}],settings:[...BASE_SERVER,...BASE_CRED,DB_NAME]},{databases:[{title:`Materialize`,driver:`materialize`,logo:materialize_default}],settings:[...BASE_SERVER,...BASE_CRED,DB_NAME,{env:`CUBEJS_DB_MATERIALIZE_CLUSTER`,title:`Cluster`}]},{databases:[{title:`Snowflake`,driver:`snowflake`,logo:snowflake_default}],settings:[...BASE_CRED,DB_NAME,{env:`CUBEJS_DB_SNOWFLAKE_ACCOUNT`,title:`Account`},{env:`CUBEJS_DB_SNOWFLAKE_REGION`,title:`Region`},{env:`CUBEJS_DB_SNOWFLAKE_WAREHOUSE`,title:`Warehouse`},{env:`CUBEJS_DB_SNOWFLAKE_ROLE`,title:`Role`}]},{databases:[{title:`Presto`,driver:`prestodb`,logo:presto_default}],settings:[...BASE_SERVER,...BASE_CRED,{env:`CUBEJS_DB_PRESTO_CATALOG`,title:`Catalog`},{env:`CUBEJS_DB_NAME`,title:`Schema`}]},{databases:[{title:`Druid`,driver:`druid`,logo:druid_default}],settings:[{env:`CUBEJS_DB_URL`,title:`URL`},...BASE_CRED]}];function ConnectionTest({loading:g,result:_}){return g?(0,import_jsx_runtime.jsxs)(Space$1,{align:`center`,size:`middle`,children:[(0,import_jsx_runtime.jsx)(Spin,{"data-testid":`wizard-test-connection-spinner`}),(0,import_jsx_runtime.jsx)(Typography.Text,{children:`Testing database connection`})]}):_?.success?(0,import_jsx_runtime.jsxs)(Typography.Text,{type:`success`,children:[(0,import_jsx_runtime.jsx)(RefIcon$32,{}),`\xA0\xA0Connection successful`]}):_?.error?(0,import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment,{children:[(0,import_jsx_runtime.jsx)(Typography.Text,{type:`danger`,children:`We couldn’t connect. Please double check the provided data and try again`}),(0,import_jsx_runtime.jsx)(Alert$2,{"data-testid":`wizard-connection-error`,style:{marginTop:20},message:`Runtime Error`,type:`error`,description:(0,import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment,{children:[(0,import_jsx_runtime.jsx)(`p`,{style:{paddingLeft:20},children:`Cube was unable to connect to the specified database.`}),(0,import_jsx_runtime.jsx)(`p`,{style:{paddingLeft:20},children:`The database returned the following error:`}),(0,import_jsx_runtime.jsx)(`br`,{}),(0,import_jsx_runtime.jsx)(`p`,{style:{paddingLeft:40},children:`>Database Error`}),(0,import_jsx_runtime.jsx)(`p`,{style:{paddingLeft:40},children:_.error.toString()}),(0,import_jsx_runtime.jsx)(`br`,{}),(0,import_jsx_runtime.jsx)(`p`,{children:`Check your database credentials and try again. For more information, visit:`}),(0,import_jsx_runtime.jsx)(`a`,{href:`https://docs.cube.dev/cube-core/getting-started/create-a-project`,target:`_blank`,rel:`noreferrer`,children:`https://docs.cube.dev/cube-core/getting-started/create-a-project`})]})})]}):null}function DatabaseCard({db:g}){return(0,import_jsx_runtime.jsx)(Card$1,{"data-testid":`wizard-db-card`,children:(0,import_jsx_runtime.jsxs)(row_default,{align:`middle`,justify:`space-between`,children:[(0,import_jsx_runtime.jsx)(col_default,{flex:`40px`,children:(0,import_jsx_runtime.jsx)(Image$1,{src:g.logo,preview:!1})}),(0,import_jsx_runtime.jsx)(col_default,{children:(0,import_jsx_runtime.jsx)(Typography.Text,{strong:!0,children:g.title})})]})})}var Wrapper$2=gt.div`
1772
1772
  background-color: #f8f8f9;
1773
1773
  padding: 15px 20px;
1774
1774
  border-radius: 4px;
package/build/index.html CHANGED
@@ -15,7 +15,7 @@
15
15
  <link rel="manifest" href="./manifest.json" />
16
16
  <style>#playground-root{height:100%}#playground-root .ant-menu-item:not(.ant-menu-item-selected) a{color:#a9a9b6}</style>
17
17
  <title>Cube Playground</title>
18
- <script type="module" crossorigin src="./assets/index-Cg6KuD7K.js"></script>
18
+ <script type="module" crossorigin src="./assets/index-D8gBGGDe.js"></script>
19
19
  </head>
20
20
  <body>
21
21
  <noscript>You need to enable JavaScript to run this app.</noscript>