mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 06:42:48 +02:00
✨ Improve public-uri handling
This enables use penpot under subdirectory
This commit is contained in:
parent
ee1058950e
commit
a1fccd46ff
16 changed files with 73 additions and 58 deletions
|
@ -6,12 +6,14 @@
|
|||
|
||||
(ns app.worker.impl
|
||||
(:require
|
||||
[app.common.logging :as log]
|
||||
[app.common.pages.changes :as ch]
|
||||
[app.common.transit :as t]
|
||||
[app.util.globals :refer [global]]
|
||||
[app.util.object :as obj]
|
||||
[app.config :as cf]
|
||||
[okulary.core :as l]))
|
||||
|
||||
(log/set-level! :info)
|
||||
|
||||
(enable-console-print!)
|
||||
|
||||
(defonce state (l/atom {:pages-index {}}))
|
||||
|
@ -22,7 +24,7 @@
|
|||
|
||||
(defmethod handler :default
|
||||
[message]
|
||||
(println "Unexpected message:" message))
|
||||
(log/warn :hint "unexpected message" :message message))
|
||||
|
||||
(defmethod handler :echo
|
||||
[message]
|
||||
|
@ -55,6 +57,8 @@
|
|||
(assoc :cmd :snaps/update-index))))))
|
||||
|
||||
(defmethod handler :configure
|
||||
[{:keys [params]}]
|
||||
(doseq [[param-key param-value] params]
|
||||
(obj/set! global param-key param-value)))
|
||||
[{:keys [key val]}]
|
||||
(log/info :hint "configure worker" :key key :val val)
|
||||
(case key
|
||||
:public-uri
|
||||
(reset! cf/public-uri val)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue