mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
✨ Add more adaptations to make app run in a prefixed path.
This commit is contained in:
parent
2828ccda7f
commit
55ea84a056
14 changed files with 115 additions and 98 deletions
|
@ -8,7 +8,7 @@
|
|||
(:require
|
||||
[clojure.java.io :as io]
|
||||
[cuerdas.core :as str]
|
||||
[lambdaisland.uri.normalize :as uri]))
|
||||
[app.common.uri :as u]))
|
||||
|
||||
(def cursor-folder "images/cursors")
|
||||
|
||||
|
@ -53,7 +53,7 @@
|
|||
[id rotation x y height]
|
||||
(let [svg-path (str cursor-folder "/" (name id) ".svg")
|
||||
data (-> svg-path io/resource slurp parse-svg)
|
||||
data (uri/percent-encode data)
|
||||
data (u/percent-encode data)
|
||||
|
||||
data (if rotation
|
||||
(str/fmt "%3Cg transform='rotate(%s 8,8)'%3E%s%3C/g%3E" rotation data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue