diff --git a/assets/scripts.js b/assets/scripts.js index aba1333..97c32b6 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -2,7 +2,11 @@ $(function() { $('.js-tab .item').tab() $('.js-json').each(function(node) { - var json = $(this).text() - $(this).JSONView(json) + try { + var json = $(this).text() + $(this).JSONView(json).JSONView('collapse', 1) + } catch(e) { + console.error(e) + } }) }) diff --git a/assets/styles.css b/assets/styles.css index c51eaed..e0abfc1 100644 --- a/assets/styles.css +++ b/assets/styles.css @@ -2,6 +2,10 @@ body>.ui.grid>.row { padding-bottom: 0; } +h1.ui.dividing.header { + margin-top: 20px; +} + .menu-column { background: #1B1C1D; } diff --git a/components/menu/menu.tag b/components/menu/menu.tag index e842058..5f465c0 100644 --- a/components/menu/menu.tag +++ b/components/menu/menu.tag @@ -18,9 +18,7 @@
{ resource.displayName() }
diff --git a/components/menu/resource.tag b/components/menu/resource.tag new file mode 100644 index 0000000..5e7d629 --- /dev/null +++ b/components/menu/resource.tag @@ -0,0 +1,13 @@ + + + { _.toUpper(method.method()) } { resource.completeRelativeUri() } + + + + + + diff --git a/components/method/response.tag b/components/method/response.tag index 76e8cd7..0bdb016 100644 --- a/components/method/response.tag +++ b/components/method/response.tag @@ -1,27 +1,27 @@ -
+
{ JSON.stringify(jsonSchema) }
-
+
{ resource.methods()[0].responses()[0].body()[0].example().value() }
-
+
diff --git a/components/resource/method.tag b/components/resource/method.tag index bd4556c..8531221 100644 --- a/components/resource/method.tag +++ b/components/resource/method.tag @@ -1,13 +1,22 @@ -

- { _.toUpper(method.method()) } { resource.relativeUri().value() } -

+
+
+

+ { _.toUpper(method.method()) } { resource.completeRelativeUri() } +

- + +
+ +
+ +
+
diff --git a/components/resource/resource-child.tag b/components/resource/resource-child.tag new file mode 100644 index 0000000..d326258 --- /dev/null +++ b/components/resource/resource-child.tag @@ -0,0 +1,16 @@ + +
+
+ +
+ +
+ +
+
+ + +
diff --git a/components/resource/resource.tag b/components/resource/resource.tag index e4fea1d..6d05f3e 100644 --- a/components/resource/resource.tag +++ b/components/resource/resource.tag @@ -1,5 +1,4 @@ -

{ resource.displayName() }

@@ -8,22 +7,16 @@
-
-
- -
- -
- -
+ +
+
-