glib-web 0.4.39 → 0.4.40
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31a8aaa6e7b4405f106578e2cddfab876155ea8d
|
4
|
+
data.tar.gz: efa7c8b87a131cfab49535911fd059d2ba217c24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 147dbb21d3fc7caf2a7a4895ccdc128d9bb1780e80ec86c86a782681581938cf30b1789f0e6979ccea6313072c1eb40a9abd75f34ce869c0ad05975c0bde9fce
|
7
|
+
data.tar.gz: 6136ac11c721549916293670d86d3d7261c0b75420ae9a0d8415529751a58398128550d0c1e079b74170d634c4ef62aacaca7139b2860895cc4042c617cbb5a7
|
@@ -96,16 +96,15 @@ module Glib::Auth
|
|
96
96
|
|
97
97
|
module ClassMethods
|
98
98
|
def glib_auth_init
|
99
|
+
@__glib_auth_init = true
|
100
|
+
|
99
101
|
before_action :glib_load_resource
|
100
102
|
before_action :glib_authorize_resource
|
101
|
-
# glib_authorize_resource
|
102
103
|
end
|
103
104
|
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
# end
|
108
|
-
# end
|
105
|
+
def glib_auth_inited?
|
106
|
+
@__glib_auth_init || false
|
107
|
+
end
|
109
108
|
|
110
109
|
# TODO: Consider deprecating
|
111
110
|
public
|
@@ -1,7 +1,9 @@
|
|
1
1
|
module Glib
|
2
2
|
class HomeController < ApplicationController
|
3
|
-
|
4
|
-
|
3
|
+
if glib_auth_inited?
|
4
|
+
skip_before_action :glib_load_resource
|
5
|
+
skip_before_action :glib_authorize_resource
|
6
|
+
end
|
5
7
|
|
6
8
|
def json_ui_garage
|
7
9
|
@path_prefix = 'json_ui/garage'
|
@@ -19,11 +19,22 @@ json_ui_page json do |page|
|
|
19
19
|
template.thumbnail title: "Submission Indicator", onClick: ->(action) do
|
20
20
|
action.windows_open url: json_ui_garage_url(path: 'forms/submission_indicator')
|
21
21
|
end
|
22
|
+
template.thumbnail title: 'GET Request', onClick: ->(action) do
|
23
|
+
action.windows_open url: json_ui_garage_url(path: 'forms/get_request')
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end, ->(section) do
|
28
|
+
section.header padding: glib_json_padding_list, childViews: ->(header) do
|
29
|
+
header.h2 text: 'Form Logics'
|
30
|
+
end
|
31
|
+
|
32
|
+
section.rows builder: ->(template) do
|
22
33
|
template.thumbnail title: 'Text Validation', onClick: ->(action) do
|
23
34
|
action.windows_open url: json_ui_garage_url(path: 'forms/text_validation')
|
24
35
|
end
|
25
|
-
template.thumbnail title: '
|
26
|
-
action.windows_open url: json_ui_garage_url(path: 'forms/
|
36
|
+
template.thumbnail title: 'Show/Hide', onClick: ->(action) do
|
37
|
+
action.windows_open url: json_ui_garage_url(path: 'forms/show_hide')
|
27
38
|
end
|
28
39
|
|
29
40
|
end
|