-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding mongo mocking file for base case of study
- Loading branch information
1 parent
68580d3
commit 4d9571f
Showing
22 changed files
with
2,060 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pre | ||
code.nohighlight | ||
!{text} |
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,6 @@ | ||
ul | ||
for choice in choices | ||
li | ||
.controls | ||
label.checkbox!= choice.label | ||
input(type='checkbox',name='#{choice.name}',value='#{choice.value}') |
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,18 @@ | ||
table.questionTable.table-bordered.table-condensed | ||
thead | ||
tr | ||
for header in headers | ||
th #{header} | ||
tbody | ||
each row, r in rows | ||
tr | ||
each col, c in row | ||
- if ( c === 0 ) | ||
td #{col} | ||
- else if (col.indexOf('!') === 0 ) | ||
td #{col.replace('!','')} | ||
- else | ||
td | ||
.surveycell | ||
label.checkbox | ||
input(type="checkbox", value="#{c}", name="#{table}_#{r}") |
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,6 @@ | ||
ol | ||
for choice in choices | ||
li | ||
.controls | ||
label.radio!= choice.label | ||
input(type='radio',name='#{choice.name}', value='#{choice.value}') |
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,18 @@ | ||
table.questionTable.table-bordered.table-condensed | ||
thead | ||
tr | ||
for header in headers | ||
th #{header} | ||
tbody | ||
each row, r in rows | ||
tr | ||
each col, c in row | ||
- if ( c === 0 ) | ||
td #{col} | ||
- else if (col.indexOf('!') === 0 ) | ||
td #{col.replace('!','')} | ||
- else | ||
td | ||
.surveycell | ||
label.radio | ||
input(type="radio", value="#{c}", name="#{table}_#{r}") |
Empty file.
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,47 @@ | ||
<html> | ||
<head><title>DocSight Extension Options</title> | ||
|
||
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"> | ||
<link rel="stylesheet" type="text/css" href="options.css" /> | ||
|
||
<script src="api/jquery-1.7.2.min.js"></script> | ||
<script src="js/options.js"></script> | ||
|
||
</head> | ||
<body> | ||
|
||
<div id="content"> | ||
<form id="optionsForm" class="form-horizontal well"> | ||
<legend>docsight preferences</legend> | ||
<div class="control-group"> | ||
<label class="control-label" for="optionsCheckbox">History Order</label> | ||
<div class="controls"> | ||
<label class="radio"> | ||
<input id="chron" type="radio" name="ordertype" value="Chronological"/>Chronological | ||
</label> | ||
<label class="radio"> | ||
<input id="newest" type="radio" name="ordertype" value="Newest-First" />Newest First | ||
</label> | ||
</div> | ||
</div> | ||
<div class="control-group"> | ||
<label class="control-label" for="textarea">Custom Filters</label> | ||
<div class="controls"> | ||
<textarea id="filters" class="input-xlarge" id="textarea" rows="8"></textarea> | ||
</div> | ||
<p class="help-block"> | ||
Example, to include github issues: <code>@include https://github.com/*/issues*</code> <br/> | ||
Example to exclude Stack Overflow User Pages: <code>@exclude *://stackoverflow.com/users/*</code><br/> | ||
See filtering <a href="https://github.com/chrisparnin/docsight#readme" target="#">section</a> for details. | ||
</p> | ||
</div> | ||
<div class="form-actions"> | ||
<button id="submitBtn" type="submit" class="btn btn-primary">Save changes</button> | ||
<button id="cancelBtn" type="reset" class="btn">Cancel</button> | ||
</div> | ||
</form> | ||
</div> | ||
</body> | ||
|
||
|
||
</html> |
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,69 @@ | ||
<html> | ||
<head><title>DocSight Extension Options</title> | ||
|
||
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"> | ||
<link rel="stylesheet" type="text/css" href="options.css" /> | ||
|
||
<script src="api/jquery-1.7.2.min.js"></script> | ||
<script src="js/options.js"></script> | ||
|
||
</head> | ||
<body> | ||
|
||
<div id="content"> | ||
<form id="optionsForm" class="well"> | ||
<legend>docsight preferences</legend> | ||
|
||
<h3>Another question</h3> | ||
<ul> | ||
<li> | ||
<div class="controls"> | ||
<label class="checkbox">this is a label?: | ||
<input type="checkbox" name="name"/> | ||
</label> | ||
</div> | ||
</li> | ||
<li> | ||
<div class="controls"> | ||
<label class="checkbox">don't check this: | ||
<input type="checkbox" name="name2"/> | ||
</label> | ||
</div> | ||
</li> | ||
</ul> | ||
|
||
<h3>I have a question</h3> | ||
<div class="controls"> | ||
<label class="checkbox">This is a label?: | ||
<input type="checkbox" name="userA name"/> | ||
</label> | ||
</div> | ||
<div class="controls"> | ||
<label class="radio"> | ||
<input id="chron" type="radio" name="ordertype" value="Chronological"/>Chronological | ||
</label> | ||
<label class="radio"> | ||
<input id="newest" type="radio" name="ordertype" value="Newest-First" />Newest First | ||
</label> | ||
</div> | ||
<div class="control-group"> | ||
<label class="control-label" for="textarea">Custom Filters</label> | ||
<div class="controls"> | ||
<textarea id="filters" class="input-xlarge" id="textarea" rows="8"></textarea> | ||
</div> | ||
<p class="help-block"> | ||
Example, to include github issues: <code>@include https://github.com/*/issues*</code> <br/> | ||
Example to exclude Stack Overflow User Pages: <code>@exclude *://stackoverflow.com/users/*</code><br/> | ||
See filtering <a href="https://github.com/chrisparnin/docsight#readme" target="#">section</a> for details. | ||
</p> | ||
</div> | ||
<div class="form-actions"> | ||
<button id="submitBtn" type="submit" class="btn btn-primary">Save changes</button> | ||
<button id="cancelBtn" type="reset" class="btn">Cancel</button> | ||
</div> | ||
</form> | ||
</div> | ||
</body> | ||
|
||
|
||
</html> |
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 @@ | ||
input(type="text",name="#{name}",placeholder="#{placeholder}") |
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 @@ | ||
textarea.span9(name="#{questionNumber}",rows="#{rows}") |
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 @@ | ||
input(type="file",name="#{name}",placeholder="#{placeholder}") |
Oops, something went wrong.