0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

Improve demo warning on home and add conditional build options.

This commit is contained in:
Andrey Antukh 2017-03-02 17:12:45 +01:00
parent 96092fda7c
commit e453841d66
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
5 changed files with 21 additions and 5 deletions

View file

@ -1083,6 +1083,7 @@ input[type=range]:focus::-ms-fill-upper {
color: $color-info-darker;
margin-bottom: 1.2rem;
padding: .8rem;
text-align: center;
p {
margin: 0;
}

View file

@ -4,9 +4,13 @@
(def debug?
(boolean (:uxbox-debug env nil)))
(def demo?
(boolean (:uxbox-demo env nil)))
(def defines
{"uxbox.config.url" "/api"
"uxbox.config.viewurl" "/view/"})
"uxbox.config.viewurl" "/view/"
"uxbox.config.isdemo" demo?})
(def options
{:main 'uxbox.main

View file

@ -4,9 +4,13 @@
(def debug?
(boolean (:uxbox-debug env nil)))
(def demo?
(boolean (:uxbox-demo env nil)))
(def defines
{"uxbox.config.url" "/api"
"uxbox.config.viewurl" "/view/"})
"uxbox.config.viewurl" "/view/"
"uxbox.config.isdemo" demo?})
(def options
{:main 'uxbox.view

View file

@ -8,3 +8,4 @@
(goog-define url "http://127.0.0.1:6060/api")
(goog-define viewurl "http://127.0.0.1:3449/view/index.html")
(goog-define isdemo false)

View file

@ -9,9 +9,10 @@
(:require [lentes.core :as l]
[cuerdas.core :as str]
[potok.core :as ptk]
[uxbox.builtins.icons :as i]
[uxbox.config :as cfg]
[uxbox.main.store :as st]
[uxbox.main.data.auth :as da]
[uxbox.builtins.icons :as i]
[uxbox.main.ui.messages :refer [messages-widget]]
[uxbox.main.ui.navigation :as nav]
[uxbox.util.mixins :as mx :include-macros true]
@ -40,8 +41,13 @@
:password (:password data)})))]
[:form {:on-submit on-submit}
[:div.login-content
[:div.message-inline.hide
[:p "UXBOX is currently on alpha version. That means that you're going to use a non-stable environment. Sorry for the inconvenience."]]
(when cfg/isdemo
[:div.message-inline
[:p
[:strong "WARNING: "] "this is a " [:strong "demo"] " service."
[:br]
[:strong "DO NOT USE"] " for real work, " [:br]
" the projects will be periodicaly wiped."]])
[:input.input-text
{:name "email"
:tab-index "2"