playbook_ui 7.0.1.pre.alpha6 → 7.0.1.pre.alpha7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/playbook/application_helper.rb +0 -18
- data/app/helpers/playbook/pb_kit_helper.rb +18 -0
- data/lib/playbook/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6277b702a5d209a431328a05cc5d30d864b3bfa33de88f7cccf56de2e0290479
|
4
|
+
data.tar.gz: c53ee8489f05a1469e9c807fa098bf101e4ec952e492522e8fe52be888aa9caf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70cbb8322acfb6ae1bd87c53c71df14656a1d10df31ed45351514f7f52ae372c7d9cbbaf07aab91c4a49169da08b4bf4550caee02195ced747c085ebb644e87b
|
7
|
+
data.tar.gz: 85def105e9c7a799a65aad0abcb2f2c3160e35309b04366ebccfcf30354a8ece1159b3539c7a631633fbff33bced43583bddaab154e5e71adf6a63309c81c9b6
|
@@ -14,23 +14,5 @@ module Playbook
|
|
14
14
|
Playbook.webpacker
|
15
15
|
end
|
16
16
|
|
17
|
-
def dark_mode
|
18
|
-
if ENV["dark_mode"] == "true"
|
19
|
-
true
|
20
|
-
else
|
21
|
-
false
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
def dark_mode_props(props)
|
26
|
-
if ENV["dark_mode"] == "true"
|
27
|
-
props.merge(dark: dark_mode)
|
28
|
-
elsif ENV["dark_mode"] == "false"
|
29
|
-
props.merge(dark: dark_mode)
|
30
|
-
else
|
31
|
-
props
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
17
|
end
|
36
18
|
end
|
@@ -37,6 +37,24 @@ module Playbook
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
+
def dark_mode
|
41
|
+
if ENV["dark_mode"] == "true"
|
42
|
+
true
|
43
|
+
else
|
44
|
+
false
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def dark_mode_props(props)
|
49
|
+
if ENV["dark_mode"] == "true"
|
50
|
+
props.merge(dark: dark_mode)
|
51
|
+
elsif ENV["dark_mode"] == "false"
|
52
|
+
props.merge(dark: dark_mode)
|
53
|
+
else
|
54
|
+
props
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
40
58
|
def is_subkit?(kit)
|
41
59
|
kit.match(%r{[/\\]})
|
42
60
|
end
|
data/lib/playbook/version.rb
CHANGED