summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-03-17 20:43:54 +0100
committerJules Laplace <julescarbon@gmail.com>2021-03-17 20:43:54 +0100
commit66563242eebaa92cf3b0c7dfdc70d0d1051be9ab (patch)
treee6913b86e4b6f509ee2fe365b9c75272fa46bf62 /frontend
parent96aa72052df5a7be56063496c8386e49681e047f (diff)
pointr vnts non
Diffstat (limited to 'frontend')
-rw-r--r--frontend/app/views/page/components/tile.form.js1
-rw-r--r--frontend/app/views/page/components/tile.handle.js5
-rw-r--r--frontend/app/views/page/cursors.css4
-rw-r--r--frontend/site/audio/audio.player.js2
-rw-r--r--frontend/site/site/site.reducer.js2
5 files changed, 8 insertions, 6 deletions
diff --git a/frontend/app/views/page/components/tile.form.js b/frontend/app/views/page/components/tile.form.js
index 4fb00a3..aefecf1 100644
--- a/frontend/app/views/page/components/tile.form.js
+++ b/frontend/app/views/page/components/tile.form.js
@@ -60,6 +60,7 @@ const CURSORS = [
{ name: 'hand_down', label: 'Down', },
{ name: 'hand_left', label: 'Left', },
{ name: 'hand_right', label: 'Right', },
+ { name: 'unclickable', label: 'Unclickable', },
]
const NO_LINK = 0
diff --git a/frontend/app/views/page/components/tile.handle.js b/frontend/app/views/page/components/tile.handle.js
index 917be74..d8184d3 100644
--- a/frontend/app/views/page/components/tile.handle.js
+++ b/frontend/app/views/page/components/tile.handle.js
@@ -1,12 +1,9 @@
import React, { Component } from 'react'
-import { Link } from 'react-router-dom'
export default class TileHandle extends Component {
constructor(props) {
super(props)
- if (props.tile.type === 'video') {
- this.videoRef = React.createRef()
- }
+ this.videoRef = React.createRef()
this.handleEnded = this.handleEnded.bind(this)
}
componentDidMount() {
diff --git a/frontend/app/views/page/cursors.css b/frontend/app/views/page/cursors.css
index 778b614..6cc37a9 100644
--- a/frontend/app/views/page/cursors.css
+++ b/frontend/app/views/page/cursors.css
@@ -13,6 +13,10 @@
.tile.hand_left {
cursor: url(/static/img/hand_left.png) 10 60, pointer;
}
+.tile.unclickable {
+ cursor: default;
+ pointer-events: none;
+}
.tile.none {
cursor: default;
}
diff --git a/frontend/site/audio/audio.player.js b/frontend/site/audio/audio.player.js
index eea0acf..d6bc807 100644
--- a/frontend/site/audio/audio.player.js
+++ b/frontend/site/audio/audio.player.js
@@ -32,7 +32,7 @@ export default class AudioPlayer {
playPage(page) {
const { background_audio_id, restart_audio } = page.settings
- console.log('playPage', background_audio_id)
+ console.log('playPage', page)
if (
this.current_background_id
&& this.current_background_id !== background_audio_id
diff --git a/frontend/site/site/site.reducer.js b/frontend/site/site/site.reducer.js
index e0b53fb..9763e48 100644
--- a/frontend/site/site/site.reducer.js
+++ b/frontend/site/site/site.reducer.js
@@ -9,7 +9,7 @@ const initialState = {
}
export default function siteReducer(state = initialState, action) {
- console.log(action.type, action)
+ // console.log(action.type, action)
switch (action.type) {
case types.site.set_site_title:
return {