-
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.
merging in pull request 8 from osmbsrn
- Loading branch information
Showing
11 changed files
with
9,605 additions
and
66 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
public_html/mountebank-UI/sections/help/help_wait.tpl.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,30 @@ | ||
<div class="helpContainer"> | ||
<h3>Help for Wait</h3> | ||
|
||
|
||
<div class="row"> | ||
<p>If a number is passed in, mountebank will wait that number of milliseconds before returning. If a string is | ||
passed in, it is expected to be a parameterless JavaScript function that returns the number of milliseconds | ||
to wait.</p> | ||
</div> | ||
<div class="row"> | ||
<div><em>Wait function sample</em></div> | ||
<pre><code> | ||
function() { | ||
return Math.floor(Math.random() * 901) + 100; | ||
} | ||
</code></pre> | ||
</div> | ||
|
||
<div class="row"> | ||
|
||
<button ng-click="cancel()" style="margin:auto" class="btn btn-primary">Close</button> | ||
</div> | ||
<br> | ||
<div class="row"> | ||
|
||
<em>Note that the Mountebank server must run with the --allowInjection flag</em>. | ||
<a href="http://www.mbtest.org/docs/api/behaviors">Mountebank decoration documentation</a> | ||
</div> | ||
|
||
</div> |
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,28 +1,25 @@ | ||
angular.module('app.constants',[]) | ||
.constant('TPL_PATH', getTemplatePath()) //used to prepend a set of folders for templates in app.routes | ||
.constant('HEADER_LOCATION',getHeaderPath()); | ||
|
||
//localhost:8383/mountebank-UI/mountebank-UI/partials/plainHeader.tpl.html | ||
function getTemplatePath() | ||
{ | ||
var path = window.location.pathname; | ||
var pathCol = path.split("/"); | ||
// console.log(pathCol); | ||
var pathItem = 'http://' + window.location.host; | ||
|
||
for (var i=0;i<pathCol.length-1;i++) | ||
{ | ||
pathItem = pathItem + pathCol[i]+"/"; | ||
} | ||
|
||
//pathItem is full url and app context | ||
pathItem += 'mountebank-UI/'; | ||
//now in the folder that contains all the js | ||
return pathItem; | ||
angular.module('app.constants', []) | ||
.constant('TPL_PATH', getTemplatePath()) //used to prepend a set of folders for templates in app.routes | ||
.constant('HEADER_LOCATION', getHeaderPath()); | ||
|
||
//localhost:8383/mountebank-UI/mountebank-UI/partials/plainHeader.tpl.html | ||
function getTemplatePath() { | ||
var path = window.location.pathname; | ||
var pathCol = path.split("/"); | ||
// console.log(pathCol); | ||
var pathItem = window.location.protocol + '//' + window.location.host; | ||
|
||
for (var i = 0; i < pathCol.length - 1; i++) { | ||
pathItem = pathItem + pathCol[i] + "/"; | ||
} | ||
|
||
//pathItem is full url and app context | ||
pathItem += 'mountebank-UI/'; | ||
//now in the folder that contains all the js | ||
return pathItem; | ||
} | ||
|
||
function getHeaderPath() | ||
{ | ||
return getTemplatePath()+"partials/plainHeader.tpl.html"; | ||
function getHeaderPath() { | ||
return getTemplatePath() + "partials/plainHeader.tpl.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
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,30 @@ | ||
<div class="helpContainer"> | ||
<h3>Help for Wait</h3> | ||
|
||
|
||
<div class="row"> | ||
<p>If a number is passed in, mountebank will wait that number of milliseconds before returning. If a string is | ||
passed in, it is expected to be a parameterless JavaScript function that returns the number of milliseconds | ||
to wait.</p> | ||
</div> | ||
<div class="row"> | ||
<div><em>Wait function sample</em></div> | ||
<pre><code> | ||
function() { | ||
return Math.floor(Math.random() * 901) + 100; | ||
} | ||
</code></pre> | ||
</div> | ||
|
||
<div class="row"> | ||
|
||
<button ng-click="cancel()" style="margin:auto" class="btn btn-primary">Close</button> | ||
</div> | ||
<br> | ||
<div class="row"> | ||
|
||
<em>Note that the Mountebank server must run with the --allowInjection flag</em>. | ||
<a href="http://www.mbtest.org/docs/api/behaviors">Mountebank decoration documentation</a> | ||
</div> | ||
|
||
</div> |
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