mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 21:01:38 +02:00
Merge remote-tracking branch 'origin/staging' into develop
This commit is contained in:
commit
9344fb958a
6 changed files with 53 additions and 7 deletions
|
@ -14,6 +14,14 @@
|
||||||
|
|
||||||
- Fix components are not dragged from the group to the assets tab [Taiga #8273](https://tree.taiga.io/project/penpot/issue/8273)
|
- Fix components are not dragged from the group to the assets tab [Taiga #8273](https://tree.taiga.io/project/penpot/issue/8273)
|
||||||
|
|
||||||
|
## 2.1.2
|
||||||
|
|
||||||
|
### :bug: Bugs fixed
|
||||||
|
|
||||||
|
- User switch language to "zh_hant" will get 400 [Github #4884](https://github.com/penpot/penpot/issues/4884)
|
||||||
|
- Smtp config ignoring port if ssl is set [Github #4872](https://github.com/penpot/penpot/issues/4872)
|
||||||
|
- Ability to let users to authenticate with a private oidc provider only [Github #4963](https://github.com/penpot/penpot/issues/4963)
|
||||||
|
|
||||||
## 2.1.1
|
## 2.1.1
|
||||||
|
|
||||||
### :sparkles: New features
|
### :sparkles: New features
|
||||||
|
|
|
@ -592,7 +592,8 @@
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(let [info (assoc info :is-active (provider-has-email-verified? cfg info))]
|
(let [info (assoc info :is-active (provider-has-email-verified? cfg info))]
|
||||||
(if (contains? cf/flags :registration)
|
(if (or (contains? cf/flags :registration)
|
||||||
|
(contains? cf/flags :oidc-registration))
|
||||||
(redirect-to-register cfg info request)
|
(redirect-to-register cfg info request)
|
||||||
(redirect-with-error "registration-disabled")))))
|
(redirect-with-error "registration-disabled")))))
|
||||||
|
|
||||||
|
|
|
@ -304,6 +304,8 @@
|
||||||
(let [session (create-smtp-session cfg)]
|
(let [session (create-smtp-session cfg)]
|
||||||
(with-open [transport (.getTransport session (if (::ssl cfg) "smtps" "smtp"))]
|
(with-open [transport (.getTransport session (if (::ssl cfg) "smtps" "smtp"))]
|
||||||
(.connect ^Transport transport
|
(.connect ^Transport transport
|
||||||
|
^String (::host cfg)
|
||||||
|
^String (::port cfg)
|
||||||
^String (::username cfg)
|
^String (::username cfg)
|
||||||
^String (::password cfg))
|
^String (::password cfg))
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
(sm/define
|
(sm/define
|
||||||
[:map {:title "update-profile"}
|
[:map {:title "update-profile"}
|
||||||
[:fullname [::sm/word-string {:max 250}]]
|
[:fullname [::sm/word-string {:max 250}]]
|
||||||
[:lang {:optional true} [:string {:max 5}]]
|
[:lang {:optional true} [:string {:max 8}]]
|
||||||
[:theme {:optional true} [:string {:max 250}]]]))
|
[:theme {:optional true} [:string {:max 250}]]]))
|
||||||
|
|
||||||
(sv/defmethod ::update-profile
|
(sv/defmethod ::update-profile
|
||||||
|
|
|
@ -48,7 +48,8 @@
|
||||||
(not= section :auth-register-validate)
|
(not= section :auth-register-validate)
|
||||||
(not= section :auth-register-success))
|
(not= section :auth-register-success))
|
||||||
params (:query-params route)
|
params (:query-params route)
|
||||||
error (:error params)]
|
error (:error params)
|
||||||
|
hide-image-auth? (cf/external-feature-flag "signup-01" "test")]
|
||||||
|
|
||||||
(mf/with-effect []
|
(mf/with-effect []
|
||||||
(dom/set-html-title (tr "title.default")))
|
(dom/set-html-title (tr "title.default")))
|
||||||
|
@ -57,14 +58,17 @@
|
||||||
(when error
|
(when error
|
||||||
(st/emit! (du/show-redirect-error error))))
|
(st/emit! (du/show-redirect-error error))))
|
||||||
|
|
||||||
[:main {:class (stl/css :auth-section)}
|
[:main {:class (stl/css-case :auth-section (not hide-image-auth?)
|
||||||
|
:auth-section-hide-image hide-image-auth?)}
|
||||||
(when show-login-icon
|
(when show-login-icon
|
||||||
[:h1 {:class (stl/css :logo-container)}
|
[:h1 {:class (stl/css :logo-container)}
|
||||||
[:a {:href "#/" :title "Penpot" :class (stl/css :logo-btn)} i/logo]])
|
[:a {:href "#/" :title "Penpot" :class (stl/css :logo-btn)} i/logo]])
|
||||||
[:div {:class (stl/css :login-illustration)}
|
(when (not hide-image-auth?)
|
||||||
i/login-illustration]
|
[:div {:class (stl/css :login-illustration)}
|
||||||
|
i/login-illustration])
|
||||||
|
|
||||||
[:section {:class (stl/css :auth-content)}
|
[:section {:class (stl/css-case :auth-content (not hide-image-auth?)
|
||||||
|
:auth-content-hide-image hide-image-auth?)}
|
||||||
|
|
||||||
(case section
|
(case section
|
||||||
:auth-register
|
:auth-register
|
||||||
|
|
|
@ -24,6 +24,24 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A-B text signup-01
|
||||||
|
.auth-section-hide-image {
|
||||||
|
position: relative;
|
||||||
|
align-items: center;
|
||||||
|
background: var(--panel-background-color);
|
||||||
|
display: grid;
|
||||||
|
gap: $s-32;
|
||||||
|
height: 100%;
|
||||||
|
padding: $s-32;
|
||||||
|
width: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
@media (max-width: 992px) {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.logo-container {
|
.logo-container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: $s-20;
|
top: $s-20;
|
||||||
|
@ -65,6 +83,19 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A-B text signup-01
|
||||||
|
.auth-content-hide-image {
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: 1fr auto;
|
||||||
|
gap: $s-24;
|
||||||
|
height: fit-content;
|
||||||
|
margin: auto;
|
||||||
|
max-width: $s-412;
|
||||||
|
padding-block-end: $s-8;
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.logo-btn {
|
.logo-btn {
|
||||||
svg {
|
svg {
|
||||||
width: $s-120;
|
width: $s-120;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue