mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 14:08:22 +02:00
🎉 Drag and drop files in the dashboard
This commit is contained in:
parent
81a604dca2
commit
c2332331ce
11 changed files with 332 additions and 81 deletions
|
@ -30,7 +30,6 @@
|
|||
[e]
|
||||
(.-target e))
|
||||
|
||||
|
||||
(defn classnames
|
||||
[& params]
|
||||
(assert (even? (count params)))
|
||||
|
@ -233,6 +232,12 @@
|
|||
{:pre [(blob? b)]}
|
||||
(js/URL.createObjectURL b))
|
||||
|
||||
(defn set-property! [node property value]
|
||||
(.setAttribute node property value))
|
||||
|
||||
(defn set-text! [node text]
|
||||
(set! (.-textContent node) text))
|
||||
|
||||
(defn set-css-property [node property value]
|
||||
(.setProperty (.-style ^js node) property value))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue