mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 16:41:38 +02:00
✨ Consolidate templates new order and naming
This commit is contained in:
parent
a457f8baf5
commit
81bd30a11b
3 changed files with 19 additions and 27 deletions
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
## 2.1.1
|
## 2.1.1
|
||||||
|
|
||||||
|
### :sparkles: New features
|
||||||
|
|
||||||
|
- Consolidate templates new order and naming [Taiga #8392](https://tree.taiga.io/project/penpot/task/8392)
|
||||||
|
|
||||||
### :bug: Bugs fixed
|
### :bug: Bugs fixed
|
||||||
|
|
||||||
- Fix pencil loader [Taiga #8348](https://tree.taiga.io/project/penpot/issue/8348)
|
- Fix pencil loader [Taiga #8348](https://tree.taiga.io/project/penpot/issue/8348)
|
||||||
|
|
|
@ -1,4 +1,16 @@
|
||||||
[{:id "tutorial-for-beginners"
|
[{:id "wireframing-kit"
|
||||||
|
:name "Wireframe library"
|
||||||
|
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/wireframing-kit.penpot"}
|
||||||
|
{:id "prototype-examples"
|
||||||
|
:name "Prototipe template"
|
||||||
|
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/prototype-examples.penpot"}
|
||||||
|
{:id "plants-app"
|
||||||
|
:name "UI mockup example"
|
||||||
|
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Plants-app.penpot"}
|
||||||
|
{:id "penpot-design-system"
|
||||||
|
:name "Design system example"
|
||||||
|
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Penpot-Design-system.penpot"}
|
||||||
|
{:id "tutorial-for-beginners"
|
||||||
:name "Tutorial for beginners"
|
:name "Tutorial for beginners"
|
||||||
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/tutorial-for-beginners.penpot"}
|
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/tutorial-for-beginners.penpot"}
|
||||||
{:id "lucide-icons"
|
{:id "lucide-icons"
|
||||||
|
@ -7,12 +19,6 @@
|
||||||
{:id "font-awesome"
|
{:id "font-awesome"
|
||||||
:name "Font Awesome"
|
:name "Font Awesome"
|
||||||
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Font-Awesome.penpot"}
|
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Font-Awesome.penpot"}
|
||||||
{:id "plants-app"
|
|
||||||
:name "Plants app"
|
|
||||||
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Plants-app.penpot"}
|
|
||||||
{:id "wireframing-kit"
|
|
||||||
:name "Wireframing Kit"
|
|
||||||
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/wireframing-kit.penpot"}
|
|
||||||
{:id "black-white-mobile-templates"
|
{:id "black-white-mobile-templates"
|
||||||
:name "Black & White Mobile Templates"
|
:name "Black & White Mobile Templates"
|
||||||
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Black-White-Mobile-Templates.penpot"}
|
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Black-White-Mobile-Templates.penpot"}
|
||||||
|
@ -30,10 +36,4 @@
|
||||||
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Open-Color-Scheme.penpot"}
|
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Open-Color-Scheme.penpot"}
|
||||||
{:id "flex-layout-playground"
|
{:id "flex-layout-playground"
|
||||||
:name "Flex Layout Playground"
|
:name "Flex Layout Playground"
|
||||||
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Flex-Layout-Playground.penpot"}
|
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Flex-Layout-Playground.penpot"}]
|
||||||
{:id "prototype-examples"
|
|
||||||
:name "Prototipe template"
|
|
||||||
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/prototype-examples.penpot"}
|
|
||||||
{:id "penpot-design-system"
|
|
||||||
:name "Design system example"
|
|
||||||
:file-uri "https://github.com/penpot/penpot-files/raw/binary-files/Penpot-Design-system.penpot"}]
|
|
||||||
|
|
|
@ -299,19 +299,7 @@
|
||||||
(ptk/reify ::libraries-fetched
|
(ptk/reify ::libraries-fetched
|
||||||
ptk/UpdateEvent
|
ptk/UpdateEvent
|
||||||
(update [_ state]
|
(update [_ state]
|
||||||
(let [templates-a-b-test? (cf/external-feature-flag "dashboard-01" "test")
|
(assoc state :builtin-templates libraries))))
|
||||||
remove-ids (if templates-a-b-test?
|
|
||||||
#{"wireframing-kit" "prototype-examples" "plants-app" "penpot-design-system"}
|
|
||||||
#{"prototype-examples" "penpot-design-system"})
|
|
||||||
libraries (cond->> libraries
|
|
||||||
:always
|
|
||||||
(remove #(contains? remove-ids (:id %)))
|
|
||||||
templates-a-b-test?
|
|
||||||
(concat [{:id "wireframing-kit", :name "Wireframe library"}
|
|
||||||
{:id "prototype-examples", :name "Prototype template"}
|
|
||||||
{:id "plants-app", :name "UI mockup example"}
|
|
||||||
{:id "penpot-design-system", :name "Design system example"}]))]
|
|
||||||
(assoc state :builtin-templates libraries)))))
|
|
||||||
|
|
||||||
(defn fetch-builtin-templates
|
(defn fetch-builtin-templates
|
||||||
[]
|
[]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue