Handsoff mode basic structure.

This commit is contained in:
alonso.torres 2020-10-21 09:31:48 +02:00 committed by Hirunatan
parent aaaf099a3f
commit 04f620ec00
24 changed files with 720 additions and 25 deletions

View file

@ -27,6 +27,7 @@
[app.main.ui.settings :as settings]
[app.main.ui.static :refer [not-found-page not-authorized-page]]
[app.main.ui.viewer :refer [viewer-page]]
[app.main.ui.viewer.handoff :refer [handoff]]
[app.main.ui.workspace :as workspace]
[app.util.i18n :as i18n :refer [tr t]]
[app.util.timers :as ts]
@ -53,6 +54,7 @@
["/options" :settings-options]]
["/view/:file-id/:page-id" :viewer]
["/handoff/:file-id/:page-id" :handoff]
["/not-found" :not-found]
["/not-authorized" :not-authorized]
@ -127,6 +129,14 @@
:index index
:token token}])
:handoff
(let [index (d/parse-integer (get-in route [:params :query :index]))
file-id (uuid (get-in route [:params :path :file-id]))
page-id (uuid (get-in route [:params :path :page-id]))]
[:& handoff {:page-id page-id
:file-id file-id
:index index}])
:render-object
(do
(let [file-id (uuid (get-in route [:params :path :file-id]))