glib-web 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/glib/format_helper.rb +0 -0
- data/app/views/json_ui/garage/forms/rich_text.json.jbuilder +14 -2
- data/app/views/json_ui/garage/forms/text_validation.json.jbuilder +6 -0
- data/app/views/json_ui/garage/pages/index.json.jbuilder +4 -0
- data/app/views/json_ui/garage/pages/redirect_onload.json.jbuilder +9 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a1aa1166513349077001fdad47d5d2e0df83da63bc55297e7eb40354f56c9d1
|
4
|
+
data.tar.gz: df6ba1dad3fd78b07e6e121c038609df563eabb56383f0e31ee6a1b5c379a4cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ceba57602f78f46ac76175ae5e449d3192ce91919ab600e242b9f6d7e314e29b65df369c69c289725df48481cdece02b6f6308c1f7267ef22450fa44776d40b
|
7
|
+
data.tar.gz: ca87f3e87349e24ba0a6674148a13767ab6670d1df3525084932873564987a088543b2d8870b84650e2cea8723432185e4c88df1308cc5fb3a726fa549ec8eaa
|
File without changes
|
@@ -5,7 +5,18 @@ page = json_ui_page json
|
|
5
5
|
render "#{@path_prefix}/nav_menu", json: json, page: page
|
6
6
|
|
7
7
|
initial_name = 'John Doe'
|
8
|
-
initial_message =
|
8
|
+
# initial_message = "This is a **message**.\n\n```\n Code line 1\n\n Code line 2\n```\nSignature"
|
9
|
+
initial_message =<<-TEXT
|
10
|
+
This is a **message**.
|
11
|
+
## Header 1
|
12
|
+
```
|
13
|
+
Code line 1
|
14
|
+
Code line 2
|
15
|
+
```
|
16
|
+
## Header 2
|
17
|
+
`Inline code`
|
18
|
+
Signature
|
19
|
+
TEXT
|
9
20
|
|
10
21
|
page.form url: json_ui_garage_url(path: 'forms/basic_post'), method: 'post', padding: { top: 20, bottom: 20 }, childViews: ->(form) do
|
11
22
|
form.panels_column lg: { cols: 6 }, padding: { left: 10, right: 10 }, childViews: ->(column) do
|
@@ -24,7 +35,8 @@ page.form url: json_ui_garage_url(path: 'forms/basic_post'), method: 'post', pad
|
|
24
35
|
label: 'Content',
|
25
36
|
name: 'user[message]',
|
26
37
|
# value: "<p>Test <img src='{{image1}}'</p>",
|
27
|
-
value: glib_format_markdown(initial_message),
|
38
|
+
# value: glib_format_markdown(initial_message),
|
39
|
+
value: initial_message,
|
28
40
|
# TODO: Include the image in the `value`
|
29
41
|
images: [
|
30
42
|
{
|
@@ -8,6 +8,12 @@ page.form \
|
|
8
8
|
method: 'post',
|
9
9
|
padding: glib_json_padding_body,
|
10
10
|
childViews: ->(form) do
|
11
|
+
form.fields_text \
|
12
|
+
name: 'user[name]',
|
13
|
+
width: 'matchParent',
|
14
|
+
label: 'Name',
|
15
|
+
validation: { required: { message: 'Required' }, format: { regex: 'Doe$', message: 'The name has to end with "Doe"' } }
|
16
|
+
|
11
17
|
form.fields_email \
|
12
18
|
name: 'user[email]',
|
13
19
|
width: 'matchParent',
|
@@ -29,6 +29,10 @@ json_ui_page json do |page|
|
|
29
29
|
template.thumbnail title: 'Lifecycle Hooks', onClick: ->(action) do
|
30
30
|
action.windows_open url: json_ui_garage_url(path: 'pages/lifecycle_hooks')
|
31
31
|
end
|
32
|
+
|
33
|
+
template.thumbnail title: 'Redirect onLoad', onClick: ->(action) do
|
34
|
+
action.windows_open url: json_ui_garage_url(path: 'pages/redirect_onload')
|
35
|
+
end
|
32
36
|
end
|
33
37
|
end,
|
34
38
|
->(section) do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glib-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -211,6 +211,7 @@ files:
|
|
211
211
|
- app/views/json_ui/garage/pages/loading_indicator.json.jbuilder
|
212
212
|
- app/views/json_ui/garage/pages/nav_buttons.json.jbuilder
|
213
213
|
- app/views/json_ui/garage/pages/nested_scroll.json.jbuilder
|
214
|
+
- app/views/json_ui/garage/pages/redirect_onload.json.jbuilder
|
214
215
|
- app/views/json_ui/garage/pages/tab_bar.json.jbuilder
|
215
216
|
- app/views/json_ui/garage/panels/_hover_views_content.json.jbuilder
|
216
217
|
- app/views/json_ui/garage/panels/_styled.json.jbuilder
|