From 7e344419330855dbbf10896c39e91b4e6861dd57 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 1 Apr 2021 17:30:37 +0200 Subject: displaying custom cursors on the frontend --- frontend/app/types.js | 1 + frontend/app/views/index/components/graph.form.js | 6 +++++ frontend/app/views/page/components/page.editor.js | 13 ++++++++- frontend/app/views/page/page.actions.js | 10 +++++++ frontend/app/views/page/page.container.js | 3 ++- frontend/app/views/page/page.css | 7 +++++ frontend/app/views/page/page.reducer.js | 31 ++++++++++++++++++++++ frontend/app/views/tile/components/tile.form.js | 17 +++++++++++- frontend/app/views/tile/forms/tile.constants.js | 1 + .../app/views/tile/forms/tile.form.hyperlink.js | 11 +++++++- frontend/app/views/tile/handles/tile.gradient.js | 15 ++++++----- frontend/app/views/tile/handles/tile.image.js | 15 ++++++----- frontend/app/views/tile/handles/tile.link.js | 15 ++++++----- frontend/app/views/tile/handles/tile.script.js | 2 +- frontend/app/views/tile/handles/tile.text.js | 22 ++++++++------- frontend/app/views/tile/handles/tile.video.js | 25 ++++++++++------- frontend/app/views/tile/tile.utils.js | 20 ++++++++++++++ frontend/site/site/site.reducer.js | 13 ++++++++- frontend/site/viewer/viewer.container.js | 4 ++- 19 files changed, 188 insertions(+), 43 deletions(-) (limited to 'frontend') diff --git a/frontend/app/types.js b/frontend/app/types.js index a830e71..a0dc717 100644 --- a/frontend/app/types.js +++ b/frontend/app/types.js @@ -17,6 +17,7 @@ export const page = crud_type('page', [ 'show_tile_list', 'hide_tile_list', 'toggle_tile_list', 'toggle_popups', 'load_popups', 'toggle_sidebar_side', + 'toggle_cursor_list', 'pick_cursor', ]) export const tile = crud_type('tile', [ diff --git a/frontend/app/views/index/components/graph.form.js b/frontend/app/views/index/components/graph.form.js index 5710beb..aa30d02 100644 --- a/frontend/app/views/index/components/graph.form.js +++ b/frontend/app/views/index/components/graph.form.js @@ -170,6 +170,12 @@ export default class GraphForm extends Component { data={data.settings} onChange={this.handleSettingsChange} /> +