playbook_ui 7.0.1.pre.alpha11 → 7.0.1.pre.alpha12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fe0f6e73d47c5dc6e885e636aaaa37acc5354f4cffac8ba5ca8cd21fa719cf3
|
4
|
+
data.tar.gz: 47814061793d8e5bb67bd90747d127033dfb8f99401cb6abc674daa98168742f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa54ac8af29c6fedfe23c06aeab73d1244d27c1935d4b3ef9db6a127b4d71e875ca10cf1f36c3d630a332170d165b8bb4f4cded58e96b553b4eb25e6389d2cb7
|
7
|
+
data.tar.gz: 94297d8c94a6c8c99590c492cafafc868b095ce18953150f53e965aa8a576155575f5119b51cacd8d58c3fc7ea9fe340ef26dc538d9617caa0f891ff3ce14a0b
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Playbook
|
4
4
|
class ApplicationController < ActionController::Base
|
5
5
|
protect_from_forgery with: :exception
|
6
|
-
|
6
|
+
|
7
7
|
helper Webpacker::Helper
|
8
8
|
helper Playbook::PbKitHelper
|
9
9
|
helper Playbook::PbDocHelper
|
@@ -11,6 +11,5 @@ module Playbook
|
|
11
11
|
append_view_path Playbook::Engine.root + "app/pb_kits"
|
12
12
|
end
|
13
13
|
|
14
|
-
|
15
|
-
|
14
|
+
|
16
15
|
end
|
@@ -8,6 +8,11 @@ module Playbook
|
|
8
8
|
before_action :set_kit, only: %i[kit_show_rails kit_show_react]
|
9
9
|
before_action :ensure_kit_type_exists, only: %i[kit_show_rails kit_show_react]
|
10
10
|
before_action :set_category, only: %i[kit_category_show_rails kit_category_show_react]
|
11
|
+
before_action :set_playbook
|
12
|
+
|
13
|
+
def set_playbook
|
14
|
+
@playbook = true
|
15
|
+
end
|
11
16
|
|
12
17
|
def enable_dark_mode
|
13
18
|
cookies[:dark_mode] = {
|
@@ -22,7 +22,7 @@ module Playbook
|
|
22
22
|
|
23
23
|
private
|
24
24
|
def rails_props(props)
|
25
|
-
if
|
25
|
+
if @playbook.nil?
|
26
26
|
props
|
27
27
|
else
|
28
28
|
dark_mode_props(props)
|
@@ -30,7 +30,7 @@ module Playbook
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def react_props
|
33
|
-
if
|
33
|
+
if @playbook.nil?
|
34
34
|
false
|
35
35
|
else
|
36
36
|
dark_mode
|
@@ -1,5 +1,8 @@
|
|
1
1
|
|
2
2
|
<div class="pb--page--topNav <%= cookies[:dark_mode] == "true" ? 'dark' : '' %>">
|
3
|
+
<% if @playbook.nil?%>
|
4
|
+
<p>playbok is nil</p>
|
5
|
+
<% end %>
|
3
6
|
<%= pb_rails("flex", props:{spacing:"between",vertical: "center"}) do%>
|
4
7
|
<%= pb_rails("flex", props:{spacing:"between",vertical: "center"}) do%>
|
5
8
|
<%= link_to root_url do %>
|
data/lib/playbook/version.rb
CHANGED