superglue 0.51.1 → 0.52.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/rails/templates/web/edit.html.erb +1 -1
- data/lib/generators/rails/templates/web/edit.js +3 -3
- data/lib/generators/rails/templates/web/index.html.erb +1 -1
- data/lib/generators/rails/templates/web/index.js +4 -4
- data/lib/generators/rails/templates/web/new.html.erb +1 -1
- data/lib/generators/rails/templates/web/new.js +2 -2
- data/lib/generators/rails/templates/web/show.html.erb +1 -1
- data/lib/generators/rails/templates/web/show.js +2 -2
- data/lib/install/templates/web/application.js +0 -1
- data/lib/install/templates/web/application.json.props +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0c576a55927ca5c8ae5ddedb6bab792a46db052e2deb7729435914870d9cd98
|
4
|
+
data.tar.gz: 7d696e03d878d41f706d929f2a4715fa0d40b16158f86655ad3eb19b2ed3df24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4430448bafc53b4e89330328c299f8fd78fc2a9a178c86b50622d447b3d632d109ad99fba2fdb8ce749ac872dc198a72f6ccd1782359bc332d83deb9766276da
|
7
|
+
data.tar.gz: ecae32df85c86fdcda677eb71a5ea3c500c003aed1002514fa0c905abc6aaeb0486af42fc373f06392855624420adad9142c471b6eac6c8d3a7758fa03feed44
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%% initial_state = controller.render_to_string(
|
1
|
+
<%% initial_state = controller.render_to_string(formats: [:json], locals: local_assigns, layout: true) %>
|
2
2
|
|
3
3
|
<script type="text/javascript">
|
4
4
|
window.SUPERGLUE_INITIAL_PAGE_STATE=<%%= initial_state.html_safe %>;
|
@@ -19,7 +19,7 @@ export default function <%= plural_table_name.camelize %>Edit ({
|
|
19
19
|
return (
|
20
20
|
<div>
|
21
21
|
{messagesEl}
|
22
|
-
<form {...form.props} data-sg-visit
|
22
|
+
<form {...form.props} data-sg-visit>
|
23
23
|
{Object.values(form.extras).map((hiddenProps) => (<input {...hiddenProps} key={hiddenProps.id} type="hidden"/>))}
|
24
24
|
<%- attributes.each do |attr| -%>
|
25
25
|
<input {...form.inputs.<%= attr.column_name %>} type="text"/>
|
@@ -28,8 +28,8 @@ export default function <%= plural_table_name.camelize %>Edit ({
|
|
28
28
|
<button {...form.inputs.submit} type="submit"> {...form.inputs.submit.text} </button>
|
29
29
|
</form>
|
30
30
|
|
31
|
-
<a href={<%= singular_table_name.camelize(:lower) %>Path} data-sg-visit
|
32
|
-
<a href={<%= plural_table_name.camelize(:lower) %>Path} data-sg-visit
|
31
|
+
<a href={<%= singular_table_name.camelize(:lower) %>Path} data-sg-visit>Show</a>
|
32
|
+
<a href={<%= plural_table_name.camelize(:lower) %>Path} data-sg-visit>Back</a>
|
33
33
|
</div>
|
34
34
|
)
|
35
35
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%% initial_state = controller.render_to_string(
|
1
|
+
<%% initial_state = controller.render_to_string(formats: [:json], locals: local_assigns, layout: true) %>
|
2
2
|
|
3
3
|
<script type="text/javascript">
|
4
4
|
window.SUPERGLUE_INITIAL_PAGE_STATE=<%%= initial_state.html_safe %>;
|
@@ -17,10 +17,10 @@ export default function <%= plural_table_name.camelize %>Index({
|
|
17
17
|
<%- attributes_list.select{|attr| attr != :id }.each do |attr| -%>
|
18
18
|
<td>{<%=singular_table_name.camelize(:lower)%>.<%=attr.camelize(:lower)%>}</td>
|
19
19
|
<%- end -%>
|
20
|
-
<td><a href={ <%=singular_table_name%>.<%=singular_table_name.camelize(:lower)%>Path } data-sg-visit
|
21
|
-
<td><a href={ <%=singular_table_name%>.edit<%=singular_table_name.camelize%>Path } data-sg-visit
|
20
|
+
<td><a href={ <%=singular_table_name%>.<%=singular_table_name.camelize(:lower)%>Path } data-sg-visit>Show</a></td>
|
21
|
+
<td><a href={ <%=singular_table_name%>.edit<%=singular_table_name.camelize%>Path } data-sg-visit>Edit</a></td>
|
22
22
|
<td>
|
23
|
-
<form {...deleteForm.props} data-sg-visit
|
23
|
+
<form {...deleteForm.props} data-sg-visit>
|
24
24
|
{Object.values(deleteForm.extras).map((hiddenProps) => (<input {...hiddenProps} key={hiddenProps.id} type="hidden"/>))}
|
25
25
|
<button type="submit">Delete</button>
|
26
26
|
</form>
|
@@ -50,7 +50,7 @@ export default function <%= plural_table_name.camelize %>Index({
|
|
50
50
|
</tbody>
|
51
51
|
</table>
|
52
52
|
<br />
|
53
|
-
<a href={new<%= singular_table_name.camelize %>Path} data-sg-visit
|
53
|
+
<a href={new<%= singular_table_name.camelize %>Path} data-sg-visit>New <%= singular_table_name.capitalize %></a>
|
54
54
|
</div>
|
55
55
|
)
|
56
56
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%% initial_state = controller.render_to_string(
|
1
|
+
<%% initial_state = controller.render_to_string(formats: [:json], locals: local_assigns, layout: true) %>
|
2
2
|
|
3
3
|
<script type="text/javascript">
|
4
4
|
window.SUPERGLUE_INITIAL_PAGE_STATE=<%%= initial_state.html_safe %>;
|
@@ -18,7 +18,7 @@ export default function <%= plural_table_name.camelize %>New({
|
|
18
18
|
return (
|
19
19
|
<div>
|
20
20
|
{messagesEl}
|
21
|
-
<form {...form.props} data-sg-visit
|
21
|
+
<form {...form.props} data-sg-visit>
|
22
22
|
{Object.values(form.extras).map((hiddenProps) => (<input {...hiddenProps} key={hiddenProps.id} type="hidden"/>))}
|
23
23
|
<%- attributes.each do |attr| -%>
|
24
24
|
<input {...form.inputs.<%= attr.column_name %>} type="text"/>
|
@@ -27,7 +27,7 @@ export default function <%= plural_table_name.camelize %>New({
|
|
27
27
|
<button {...form.inputs.submit} type="submit"> {...form.inputs.submit.text} </button>
|
28
28
|
</form>
|
29
29
|
|
30
|
-
<a href={<%= plural_table_name.camelize(:lower) %>Path} data-sg-visit
|
30
|
+
<a href={<%= plural_table_name.camelize(:lower) %>Path} data-sg-visit>Back</a>
|
31
31
|
</div>
|
32
32
|
)
|
33
33
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%% initial_state = controller.render_to_string(
|
1
|
+
<%% initial_state = controller.render_to_string(formats: [:json], locals: local_assigns, layout: true) %>
|
2
2
|
|
3
3
|
<script type="text/javascript">
|
4
4
|
window.SUPERGLUE_INITIAL_PAGE_STATE=<%%= initial_state.html_safe %>;
|
@@ -21,8 +21,8 @@ export default function <%= plural_table_name.camelize %>Show({
|
|
21
21
|
{<%=attr.camelize(:lower)%>}
|
22
22
|
</p>
|
23
23
|
<%- end -%>
|
24
|
-
<a href={ edit<%= singular_table_name.camelize %>Path } data-sg-visit
|
25
|
-
<a href={ <%= plural_table_name.camelize(:lower) %>Path } data-sg-visit
|
24
|
+
<a href={ edit<%= singular_table_name.camelize %>Path } data-sg-visit>Edit</a>
|
25
|
+
<a href={ <%= plural_table_name.camelize(:lower) %>Path } data-sg-visit>Back</a>
|
26
26
|
</div>
|
27
27
|
)
|
28
28
|
}
|
@@ -4,7 +4,7 @@ json.data(search: path) do
|
|
4
4
|
yield json
|
5
5
|
end
|
6
6
|
|
7
|
-
json.componentIdentifier
|
7
|
+
json.componentIdentifier "#{controller_path}/#{action_name}"
|
8
8
|
json.defers json.deferred!
|
9
9
|
json.fragments json.fragments!
|
10
10
|
json.assets [ asset_path('application.js') ]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: superglue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.52.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johny Ho
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.31.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.31.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: form_props
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|