Skip to content

Commit

Permalink
fix(dev-server): Add google maps and aggrid as default types.
Browse files Browse the repository at this point in the history
chore: cleanup.

fix(dev-server): add google maps and aggrid as default types.

chore: Update pnp.
  • Loading branch information
Gervwyk committed Jun 13, 2022
1 parent fbc3818 commit b3fa3a2
Show file tree
Hide file tree
Showing 12 changed files with 320 additions and 3 deletions.
183 changes: 183 additions & 0 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Expand Up @@ -15,7 +15,7 @@
*/

import React, { useEffect, useState, useRef } from 'react';
import { Wrapper, Status } from '@googlemaps/react-wrapper';
import { Wrapper } from '@googlemaps/react-wrapper';
import { blockDefaultProps } from '@lowdefy/block-utils';

// see which libraries to load at https://developers.google.com/maps/documentation/javascript/libraries
Expand All @@ -31,8 +31,8 @@ const MAP_DEFAULTS = {
},
};

// TODO: not sure how to implement status for now.
const render = (status) => {
// TODO: not sure how to implement status for now.
// switch (status) {
// case Status.LOADING:
// return <Spinner />;
Expand Down Expand Up @@ -129,7 +129,7 @@ const Map = ({ blockId, properties, methods }) => {
);
};

const GoogleMaps = ({ blockId, events, methods, properties, loading }) => {
const GoogleMaps = ({ blockId, methods, properties }) => {
const libraries = new Set(properties.libraries || []);
if (properties.heatmap) {
libraries.add('visualization');
Expand Down
2 changes: 2 additions & 0 deletions packages/server-dev/package.json
Expand Up @@ -41,10 +41,12 @@
"dependencies": {
"@lowdefy/actions-core": "4.0.0-alpha.12",
"@lowdefy/api": "4.0.0-alpha.12",
"@lowdefy/blocks-aggrid": "4.0.0-alpha.12",
"@lowdefy/blocks-antd": "4.0.0-alpha.12",
"@lowdefy/blocks-basic": "4.0.0-alpha.12",
"@lowdefy/blocks-color-selectors": "4.0.0-alpha.12",
"@lowdefy/blocks-echarts": "4.0.0-alpha.12",
"@lowdefy/blocks-google-maps": "4.0.0-alpha.12",
"@lowdefy/blocks-loaders": "4.0.0-alpha.12",
"@lowdefy/blocks-markdown": "4.0.0-alpha.12",
"@lowdefy/build": "4.0.0-alpha.12",
Expand Down

0 comments on commit b3fa3a2

Please sign in to comment.