This repository has been archived by the owner on Nov 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Wojciech Możejko
committed
Aug 30, 2016
1 parent
d0552e6
commit d4e544d
Showing
8 changed files
with
72 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<menu-resource> | ||
<a class="item" each={ method in opts.resource.methods() } | ||
href={ '#' + _.toUpper(method.method()) + '_' + resource.completeRelativeUri() }> | ||
{ _.toUpper(method.method()) } { resource.completeRelativeUri() } | ||
</a> | ||
|
||
<menu-resource each={ resource in opts.resource.resources() } | ||
resource={ resource }></menu-resource> | ||
|
||
<script> | ||
this._ = require('lodash') | ||
</script> | ||
</menu-resource> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
<resource-method> | ||
<h2 class="ui header"> | ||
{ _.toUpper(method.method()) } { resource.relativeUri().value() } | ||
</h2> | ||
<div class="ui row grid"> | ||
<div class="seven wide column"> | ||
<h2 class="ui header"> | ||
{ _.toUpper(method.method()) } { resource.completeRelativeUri() } | ||
</h2> | ||
|
||
<method-request method={ opts.method }></method-request> | ||
<method-request method={ opts.method }></method-request> | ||
</div> | ||
|
||
<div class="nine wide column third-column"> | ||
<method-response resource={ resource }></method-response> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
this._ = require('lodash') | ||
this.method = this.parent.method | ||
this.resource = this.parent.resource | ||
this.app = this.parent.app | ||
</script> | ||
</resource-method> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<resource-child> | ||
<div class="ui row grid"> | ||
<div class="seven wide column"> | ||
<resource-method method={ method } resource={ opts.resource } | ||
each={ method in opts.resource.methods() }></resource-method> | ||
</div> | ||
|
||
<div class="nine wide column third-column"> | ||
<method-response resource={ opts.resource }></method-response> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
this.app = this.parent.app | ||
</script> | ||
</resource-child> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters