Skip to content

Commit

Permalink
updated helpers
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Macri <[email protected]>
  • Loading branch information
Giuseppe Macri committed Aug 30, 2023
1 parent 1585930 commit 43abe9b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion website/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ export const CLOUDFRONT = 'https://d1a3f4spazzrp4.cloudfront.net';
export const KEPLER_GL_BUCKET = 'kepler.gl';
export const WEBSITE_ASSET_FOLDER = 'website';
export const DEMO_LINK = '/demo';
export const KEPLER_UNFOLDED_BUCKET =
export const KEPLER_FSQ_BUCKET =
'https://studio-public-data.foursquare.com/statics/keplergl/images';
10 changes: 5 additions & 5 deletions website/src/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import {cdnUrl, unfoldedCdnUrl} from './utils';
import {cdnUrl, fsqCdnUrl} from './utils';

export const SECTIONS = [
{
Expand All @@ -44,7 +44,7 @@ export const SECTIONS = [
id: 'ecosystems',
title: 'Ecosystem',
description: 'A collection of kepler.gl plugins built for common data analytics tools',
icon: unfoldedCdnUrl('ecosystem.png'),
icon: fsqCdnUrl('ecosystem.png'),
isDark: true
},
{
Expand Down Expand Up @@ -185,20 +185,20 @@ export const ECOSYSTEM = [
title: 'Jupyter',
description:
'Built with Deck.gl, Kepler.gl utilizes WebGL to render large datasets quickly and efficiently.',
image: unfoldedCdnUrl('ecosystem-jupyter.png'),
image: fsqCdnUrl('ecosystem-jupyter.png'),
githubUrl: 'https://github.com/keplergl/kepler.gl/tree/master/bindings/kepler.gl-jupyter'
},
{
title: 'Tableau',
description:
'You can easily drag and drop a dataset, add filters, apply scales, and do aggregation on the fly.',
image: unfoldedCdnUrl('ecosystem-tableau.png'),
image: fsqCdnUrl('ecosystem-tableau.png'),
githubUrl: 'https://github.com/keplergl/kepler.gl-tableau'
},
{
title: 'Visual Studio Code',
description: 'Geo Data Analytics tool for VS Code with Kepler.gl',
image: unfoldedCdnUrl('ecosystem-vscode.png'),
image: fsqCdnUrl('ecosystem-vscode.png'),
githubUrl: 'https://github.com/RandomFractals/geo-data-viewer'
}
];
Expand Down
11 changes: 3 additions & 8 deletions website/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,11 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import {
CLOUDFRONT,
KEPLER_GL_BUCKET,
WEBSITE_ASSET_FOLDER,
KEPLER_UNFOLDED_BUCKET
} from './constants';
import {CLOUDFRONT, KEPLER_GL_BUCKET, WEBSITE_ASSET_FOLDER, KEPLER_FSQ_BUCKET} from './constants';

export function cdnUrl(path) {
return `${CLOUDFRONT}/${KEPLER_GL_BUCKET}/${WEBSITE_ASSET_FOLDER}/${path}`;
}
export function unfoldedCdnUrl(path) {
return `${KEPLER_UNFOLDED_BUCKET}/${path}`;
export function fsqCdnUrl(path) {
return `${KEPLER_FSQ_BUCKET}/${path}`;
}

0 comments on commit 43abe9b

Please sign in to comment.