Skip to content

Commit 50c5836

Browse files
authored
chore: charts update, remove core-js for esm build (#5239)
1 parent 4a3227b commit 50c5836

File tree

14 files changed

+25
-53
lines changed

14 files changed

+25
-53
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang="en"><head><base href="/"/><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/chart-renderers/react/static/js/main.0caf8a08.js"></script><link href="/chart-renderers/react/static/css/main.f4f17f15.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1+
<!doctype html><html lang="en"><head><base href="/"/><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><script defer="defer" src="/chart-renderers/react/static/js/main.8e208bd8.js"></script><link href="/chart-renderers/react/static/css/main.56105b29.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

packages/cubejs-playground/public/chart-renderers/react/static/css/main.56105b29.css

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cubejs-playground/public/chart-renderers/react/static/css/main.f4f17f15.css

-9
This file was deleted.

packages/cubejs-playground/public/chart-renderers/react/static/js/main.0caf8a08.js

-2
This file was deleted.

packages/cubejs-playground/public/chart-renderers/react/static/js/main.8e208bd8.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cubejs-playground/src/ChartContainer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const UnsupportedFrameworkPlaceholder: UnsupportedPlaceholder = ({
7979
>
8080
Vanilla JavaScript &nbsp;docs
8181
</a>
82-
&nbsp;to see on how to use it with Cube.js.
82+
&nbsp;to see on how to use it with Cube.
8383
</h2>
8484
);
8585

packages/cubejs-playground/src/components/ChartRenderer/ChartRenderer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export default function ChartRenderer({
221221
const slowQueryMsg = slowQuery
222222
? 'This query takes more than 5 seconds to execute. Please consider using pre-aggregations to improve its performance. '
223223
: slowQueryFromCache
224-
? "This query takes more than 5 seconds to execute. It was served from the cache because Cube.js wasn't able to renew it in less than 5 seconds. Please consider using pre-aggregations to improve its performance. "
224+
? "This query takes more than 5 seconds to execute. It was served from the cache because Cube wasn't able to renew it in less than 5 seconds. Please consider using pre-aggregations to improve its performance. "
225225
: '';
226226

227227
return (

packages/cubejs-playground/src/pages/ConnectionWizard/ConnectionWizardPage.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ export function ConnectionWizardPage({ history }) {
244244
) : (
245245
<Typography.Paragraph>
246246
Enter database credentials to connect to your database. <br />
247-
Cube.js will store your credentials into the <code>
247+
Cube will store your credentials into the <code>
248248
.env
249249
</code>{' '}
250250
file for future use.
@@ -256,7 +256,7 @@ export function ConnectionWizardPage({ history }) {
256256
message={
257257
<>
258258
For advanced configuration, use the <b>cube.js</b> or{' '}
259-
<b>.env</b> configuration files in your cube.js project.
259+
<b>.env</b> configuration files in your Cube project.
260260
Note these files are on the mount volume if you are running
261261
Docker.
262262
<br />

packages/cubejs-playground/src/pages/ConnectionWizard/components/ConnectionTest.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function ConnectionTest({
4949
description={(() => (
5050
<>
5151
<p style={{ paddingLeft: 20 }}>
52-
Cube.js was unable to connect to the specified database.
52+
Cube was unable to connect to the specified database.
5353
</p>
5454
<p style={{ paddingLeft: 20 }}>
5555
The database returned the following error:

packages/cubejs-playground/src/pages/ConnectionWizard/components/LocalhostTipBox.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function LocalhostTipBox({ onHostnameCopy }: TLocalhostTipBoxProps) {
6060

6161
<Space direction="vertical" size="middle">
6262
<Typography.Text>
63-
Please note, for Linux, you need to run Cube.js Docker container
63+
Please note, for Linux, you need to run Cube Docker container
6464
in the{' '}
6565
<Typography.Link
6666
href="https://docs.docker.com/network/host/"

packages/cubejs-playground/src/pages/Dashboard/DashboardPage.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ const Frame = ({ children }) => (
1313
const Hint = () => (
1414
<p style={{ width: 450, margin: '20px auto' }}>
1515
Dashboard App is a convenient way to setup and deploy frontend app to work
16-
with Cube.js backend. You can learn more about in the{' '}
16+
with Cube backend. You can learn more about in the{' '}
1717
<a href="https://cube.dev/docs/dashboard-app" target="_blankl">
18-
Cube.js docs
18+
Cube docs
1919
</a>
2020
.
2121
</p>
@@ -162,7 +162,7 @@ class DashboardPage extends Component<any, any> {
162162
</a>
163163
. Learn more how to customize and deploy it at&nbsp;
164164
<a href="https://cube.dev/docs/dashboard-app">
165-
Cube.js&nbsp;docs
165+
Cube&nbsp;docs
166166
</a>
167167
.&nbsp;
168168
<a

packages/cubejs-playground/src/pages/Schema/SchemaPage.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export default class SchemaPage extends Component<SchemaPageProps, any> {
257257
href="https://cube.dev/docs/schema/getting-started"
258258
target="_blank"
259259
>
260-
Learn more about working with Cube.js data schema in the
260+
Learn more about working with Cube data schema in the
261261
docs
262262
</Typography.Link>
263263
</span>
@@ -283,7 +283,7 @@ export default class SchemaPage extends Component<SchemaPageProps, any> {
283283
) : (
284284
<Empty
285285
style={{ marginTop: 50 }}
286-
description="Select tables to generate Cube.js schema"
286+
description="Select tables to generate Cube schema"
287287
/>
288288
)}
289289

packages/cubejs-playground/src/pages/TemplateGallery/CreateOwnModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const CreateOwnModal = ({
160160
{frameworkItem.title}
161161
&nbsp;docs
162162
</a>
163-
&nbsp;to see on how to use it with Cube.js.
163+
&nbsp;to see on how to use it with Cube.
164164
</span>
165165
}
166166
/>

rollup.config.js

+1-29
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,6 @@ const bundle = (name, globalName, { globals = {}, ...baseConfig }, umdConfig) =>
6666
],
6767
},
6868

69-
// minified browser-friendly UMD build
70-
/* {
71-
...BASE_UMD_CONFIG,
72-
output: [{ file: pkg.browserMin, format: "umd", name: "cubejs" }],
73-
plugins: [...BASE_UMD_CONFIG.plugins, uglify()]
74-
}, */
75-
76-
// // ES module (for bundlers) build.
7769
{
7870
...baseConfig,
7971
plugins: [
@@ -115,37 +107,17 @@ const bundle = (name, globalName, { globals = {}, ...baseConfig }, umdConfig) =>
115107
}
116108
],
117109
},
118-
// // ES module (for bundlers) build.
110+
// ES module (for bundlers) build.
119111
{
120112
...baseConfig,
121113
plugins: [
122114
peerDepsExternal(),
123115
babel({
124116
extensions: ['.js', '.jsx', '.ts', '.tsx'],
125117
exclude: 'node_modules/**',
126-
babelHelpers: 'runtime',
127118
presets: [
128119
'@babel/preset-react',
129120
'@babel/preset-typescript',
130-
[
131-
'@babel/preset-env',
132-
{
133-
shippedProposals: true,
134-
useBuiltIns: 'usage',
135-
corejs: 3,
136-
},
137-
],
138-
],
139-
plugins: [
140-
[
141-
'@babel/plugin-transform-runtime',
142-
{
143-
corejs: false,
144-
helpers: true,
145-
regenerator: true,
146-
useESModules: false,
147-
},
148-
],
149121
],
150122
}),
151123
],

0 commit comments

Comments
 (0)