mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -05:00
🔧 ldap frontend config, locales, gulp config
This commit is contained in:
parent
005f70ed19
commit
6fd7a23690
3 changed files with 16 additions and 0 deletions
|
@ -113,6 +113,7 @@ function readConfig(data) {
|
|||
const demoWarn = process.env.UXBOX_DEMO_WARNING;
|
||||
const deployDate = process.env.UXBOX_DEPLOY_DATE;
|
||||
const deployCommit = process.env.UXBOX_DEPLOY_COMMIT;
|
||||
const loginWithLDAP = process.env.UXBOX_LOGIN_WITH_LDAP;
|
||||
|
||||
let cfg = {
|
||||
demoWarning: demoWarn === "true"
|
||||
|
@ -130,6 +131,10 @@ function readConfig(data) {
|
|||
cfg.deployCommit = deployCommit;
|
||||
}
|
||||
|
||||
if (loginWithLDAP !== undefined) {
|
||||
cfg.loginWithLDAP = loginWithLDAP;
|
||||
}
|
||||
|
||||
Object.assign(cfg, data);
|
||||
|
||||
return JSON.stringify(cfg);
|
||||
|
|
|
@ -107,6 +107,15 @@
|
|||
"es" : "Entrar"
|
||||
}
|
||||
},
|
||||
"auth.login-with-ldap-submit-label" : {
|
||||
"used-in" : [ "src/uxbox/main/ui/auth/login.cljs:108" ],
|
||||
"translations" : {
|
||||
"en" : "Sign in with LDAP",
|
||||
"fr" : "",
|
||||
"es" : "",
|
||||
"ru" : "Вход через LDAP"
|
||||
}
|
||||
},
|
||||
"auth.login-subtitle" : {
|
||||
"used-in" : [ "src/uxbox/main/ui/auth/login.cljs:89" ],
|
||||
"translations" : {
|
||||
|
|
|
@ -15,10 +15,12 @@
|
|||
puri (obj/get config "publicURI")
|
||||
wuri (obj/get config "workerURI")
|
||||
gcid (obj/get config "googleClientID" true)
|
||||
lwl (obj/get config "loginWithLDAP" false)
|
||||
warn (obj/get config "demoWarning" true)]
|
||||
(def default-language "en")
|
||||
(def demo-warning warn)
|
||||
(def google-client-id gcid)
|
||||
(def login-with-ldap lwl)
|
||||
(def worker-uri wuri)
|
||||
(def public-uri puri)
|
||||
(def default-theme "default")))
|
||||
|
|
Loading…
Reference in a new issue