mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 17:56:11 +02:00
:neckbeard: retrieve data from backend
This commit is contained in:
parent
e700f937db
commit
b2474fc3fb
15 changed files with 1022 additions and 687 deletions
|
@ -23,6 +23,8 @@
|
|||
{:http-server-port 6060
|
||||
:http-server-cors "http://localhost:3449"
|
||||
:database-uri "postgresql://127.0.0.1/uxbox"
|
||||
:database-username "uxbox"
|
||||
:database-password "uxbox"
|
||||
:media-directory "resources/public/media"
|
||||
:assets-directory "resources/public/static"
|
||||
:media-uri "http://localhost:6060/media/"
|
||||
|
|
|
@ -66,9 +66,20 @@
|
|||
values ($1, $2, $3, $4, $5, $6)
|
||||
returning id;")
|
||||
|
||||
(def sql:create-icon-library
|
||||
"insert into icon_library (team_id, name)
|
||||
values ($1, $2)
|
||||
returning id;")
|
||||
|
||||
(def sql:create-icon
|
||||
"insert into icon_library (library_id, name, content, metadata)
|
||||
values ($1, $2, $3, $4)
|
||||
returning id;")
|
||||
|
||||
|
||||
(def preset-small
|
||||
{:num-teams 50
|
||||
:num-profiles 50
|
||||
{:num-teams 5
|
||||
:num-profiles 5
|
||||
:num-profiles-per-team 5
|
||||
:num-projects-per-team 5
|
||||
:num-files-per-project 5
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
(s/def ::name ::us/string)
|
||||
(s/def ::profile-id ::us/uuid)
|
||||
(s/def ::library-id ::us/uuid)
|
||||
(s/def ::team-id ::us/uuid)
|
||||
|
||||
(defn decode-row
|
||||
[{:keys [metadata] :as row}]
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
(s/def ::id ::us/uuid)
|
||||
(s/def ::name ::us/string)
|
||||
(s/def ::profile-id ::us/uuid)
|
||||
(s/def ::team-id ::us/uuid)
|
||||
(s/def ::library-id ::us/uuid)
|
||||
|
||||
;; --- Query: Image Librarys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue