From 88b5644a6c2594887d6f99f1cad72a1b58d60fe4 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 11 Jul 2020 17:23:12 +0200 Subject: more fixes --- cli/commands/site/export.py | 4 +-- frontend/views/page/components/tile.handle.js | 36 +++++++++++++++++++-------- frontend/views/page/cursors.css | 6 +++++ frontend/views/page/page.css | 3 --- static/site.css | 5 ++++ 5 files changed, 38 insertions(+), 16 deletions(-) diff --git a/cli/commands/site/export.py b/cli/commands/site/export.py index d9dbbf7..5f4636a 100644 --- a/cli/commands/site/export.py +++ b/cli/commands/site/export.py @@ -68,9 +68,9 @@ def cli(ctx, opt_graph_path, opt_output_dir): # build javascript print("Building javascript...") - print(f'NODE_ENV=production webpack --config ./webpack.config.site.js -o {graph_dir}/bundle.js') + print(f'NODE_ENV=production node ./node_modules/webpack-cli/bin/cli.js --config ./webpack.config.site.js -o {graph_dir}/bundle.js') os.chdir(app_cfg.DIR_PROJECT_ROOT) - os.system(f'NODE_ENV=production webpack --config ./webpack.config.site.js -o {graph_dir}/bundle.js') + os.system(f'NODE_ENV=production node ./node_modules/webpack-cli/bin/cli.js --config ./webpack.config.site.js -o {graph_dir}/bundle.js') print("Site export complete!") print(f"Graph exported to: {graph_dir}") diff --git a/frontend/views/page/components/tile.handle.js b/frontend/views/page/components/tile.handle.js index bd47ae9..33243a7 100644 --- a/frontend/views/page/components/tile.handle.js +++ b/frontend/views/page/components/tile.handle.js @@ -68,17 +68,31 @@ const TileHandle = ({ tile, bounds, box, viewing, onMouseDown, onDoubleClick }) break } if (viewing && tile.href) { - return ( - -
- {content} -
- - ) + if (tile.href.indexOf('http') === 0) { + return ( + +
+ {content} +
+
+ ) + } else { + return ( + +
+ {content} +
+ + ) + } } else { return (