terrazzo 0.4.1 → 0.4.3
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 +4 -4
- data/app/views/terrazzo/application/_index_base.json.props +1 -0
- data/app/views/terrazzo/application/_show_base.json.props +1 -0
- data/lib/generators/terrazzo/views/templates/pages/edit.jsx +2 -1
- data/lib/generators/terrazzo/views/templates/pages/index.jsx +3 -1
- data/lib/generators/terrazzo/views/templates/pages/new.jsx +2 -1
- data/lib/generators/terrazzo/views/templates/pages/show.jsx +2 -1
- data/lib/terrazzo/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: e9c01981599c3325576014fd2ca44698c9436eb31cfb8ce5c35645149da5325a
|
|
4
|
+
data.tar.gz: a68ea25983d63d93287d4f04d12b8dcae8b4b24499c32b66d5216df0d96429ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87a52cb6ee07fdde5f04d375a20b82845dadf5976af86c9ad03246f6a85fc2330b28514be072780d6f6a0893028cc36ef44ddc2c39ccf989c42671b6a5989057
|
|
7
|
+
data.tar.gz: f55b4ceceb0cc05519f15d724f52fbe3ee4dedbd022e07b22a3509cba973ef82fff601d4aaaf54461dfc8c1d3f89c86c6146ea1662b5e119b74651fb5b3108df
|
|
@@ -41,6 +41,7 @@ json.table do
|
|
|
41
41
|
json.attribute attr.to_s
|
|
42
42
|
json.fieldType field.field_type
|
|
43
43
|
json.value field.serialize_value(:index)
|
|
44
|
+
json.options field.serializable_options
|
|
44
45
|
|
|
45
46
|
if field.class.associative? && field.data.present?
|
|
46
47
|
json.showPath polymorphic_path([namespace, field.data]) rescue nil
|
|
@@ -5,6 +5,7 @@ show_field_json = ->(json, field) do
|
|
|
5
5
|
json.label field.attribute.to_s.humanize
|
|
6
6
|
json.fieldType field.field_type
|
|
7
7
|
json.value field.serialize_value(:show)
|
|
8
|
+
json.options field.serializable_options
|
|
8
9
|
|
|
9
10
|
if field.class.associative? && field.data.present?
|
|
10
11
|
if field.is_a?(Terrazzo::Field::HasMany)
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { useContent } from "@thoughtbot/superglue";
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { getLayout } from "terrazzo";
|
|
5
5
|
import { AdminForm } from "./_form";
|
|
6
6
|
import { Button, Card, CardContent } from "terrazzo/ui";
|
|
7
7
|
|
|
8
8
|
export default function AdminEdit() {
|
|
9
|
+
const Layout = getLayout();
|
|
9
10
|
const {
|
|
10
11
|
pageTitle,
|
|
11
12
|
form,
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { useContent } from "@thoughtbot/superglue";
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { getLayout } from "terrazzo";
|
|
5
|
+
import { SearchBar, Pagination } from "../components";
|
|
5
6
|
import { AdminCollection } from "./_collection";
|
|
6
7
|
import { Button } from "../components/ui";
|
|
7
8
|
|
|
8
9
|
export default function AdminIndex() {
|
|
10
|
+
const Layout = getLayout();
|
|
9
11
|
const {
|
|
10
12
|
table,
|
|
11
13
|
searchBar,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { useContent } from "@thoughtbot/superglue";
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { getLayout } from "terrazzo";
|
|
5
5
|
import { AdminForm } from "./_form";
|
|
6
6
|
import { Button, Card, CardContent } from "terrazzo/ui";
|
|
7
7
|
|
|
8
8
|
export default function AdminNew() {
|
|
9
|
+
const Layout = getLayout();
|
|
9
10
|
const {
|
|
10
11
|
pageTitle,
|
|
11
12
|
form,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { useContent } from "@thoughtbot/superglue";
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { getLayout } from "terrazzo";
|
|
5
5
|
import { FieldRenderer } from "terrazzo/fields";
|
|
6
6
|
import { Button, Card, CardContent, CardHeader, CardTitle } from "terrazzo/ui";
|
|
7
7
|
|
|
8
8
|
export default function AdminShow() {
|
|
9
|
+
const Layout = getLayout();
|
|
9
10
|
const {
|
|
10
11
|
pageTitle,
|
|
11
12
|
attributeGroups,
|
data/lib/terrazzo/version.rb
CHANGED