mirror of
https://github.com/penpot/penpot.git
synced 2025-07-24 00:17:18 +02:00
✨ Improve 404 and add broken link static page on viewer.
This commit is contained in:
parent
15991d0226
commit
85a1c61880
7 changed files with 89 additions and 73 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue