Improve 404 and add broken link static page on viewer.

This commit is contained in:
Andrey Antukh 2021-09-08 12:39:16 +02:00 committed by Andrés Moya
parent 15991d0226
commit 85a1c61880
7 changed files with 89 additions and 73 deletions

View file

@ -26,7 +26,7 @@
[app.main.ui.render :as render]
[app.main.ui.settings :as settings]
[app.main.ui.static :as static]
[app.main.ui.viewer :refer [viewer-page]]
[app.main.ui.viewer :as viewer]
[app.main.ui.workspace :as workspace]
[app.util.timers :as ts]
[cljs.pprint :refer [pprint]]
@ -151,11 +151,13 @@
{:keys [index share-id section page-id] :or {section :interactions}} query-params
{:keys [file-id]} path-params]
[:& fs/fullscreen-wrapper {}
[:& viewer-page {:page-id page-id
:file-id file-id
:section section
:index index
:share-id share-id}]])
(if (:token query-params)
[:& viewer/breaking-change-notice]
[:& viewer/viewer-page {:page-id page-id
:file-id file-id
:section section
:index index
:share-id share-id}])])
:render-object
(do