mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 17:46:39 +02:00
📎 Update default scripts
This commit is contained in:
parent
c5b1b67c50
commit
602b736163
5 changed files with 17 additions and 10 deletions
|
@ -41,8 +41,7 @@
|
|||
data))
|
||||
|
||||
(def defaults
|
||||
{:host "devenv"
|
||||
:tenant "dev"
|
||||
{
|
||||
:database-uri "postgresql://postgres/penpot"
|
||||
:database-username "penpot"
|
||||
:database-password "penpot"
|
||||
|
@ -54,8 +53,10 @@
|
|||
:file-change-snapshot-timeout "3h"
|
||||
|
||||
:public-uri "http://localhost:3449"
|
||||
:redis-uri "redis://redis/0"
|
||||
:host "localhost"
|
||||
:tenant "main"
|
||||
|
||||
:redis-uri "redis://redis/0"
|
||||
:srepl-host "127.0.0.1"
|
||||
:srepl-port 6062
|
||||
|
||||
|
|
|
@ -99,7 +99,10 @@
|
|||
(let [body (yrs/body response)]
|
||||
(if (coll? body)
|
||||
(let [qs (yrq/query request)
|
||||
opts {:type (if (str/includes? qs "verbose") :json-verbose :json)}]
|
||||
opts (if (or (contains? cf/flags :transit-readable-response)
|
||||
(str/includes? qs "transit_verbose"))
|
||||
{:type :json-verbose}
|
||||
{:type :json})]
|
||||
(-> response
|
||||
(update :headers assoc "content-type" "application/transit+json")
|
||||
(assoc :body (transit-streamable-body body opts))))
|
||||
|
|
|
@ -166,11 +166,9 @@
|
|||
(a/go
|
||||
;; Only allow receive pointer updates when active subscription
|
||||
(when-let [{:keys [topic]} (get-in @wsp [::subscriptions subs-id])]
|
||||
(l/trace :fn "handle-message" :event :pointer-update :message message)
|
||||
(let [msgbus-fn (:msgbus @wsp)
|
||||
profile-id (::profile-id @wsp)
|
||||
session-id (::session-id @wsp)
|
||||
|
||||
message (-> message
|
||||
(dissoc :subs-id)
|
||||
(assoc :profile-id profile-id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue