View console.js
// In this console you can interact with the model | |
// without causing a recompilation of the template | |
// | |
// The model is accessible with the name `vscope` | |
// You can display it calling `log()` | |
// You can interact with it using the `json` helper | |
// To refresh a template, call `refresh()` | |
// | |
// Try for instance the following code | |
// Hint: Press Ctrl+Space to execute it |
View Controller.scala
val queryString = {request.queryString.filter(_._2.exists(_.nonEmpty)).map { p => | |
"%s=%s".format(p._1, p._2.head.urlEncoded) | |
} ++ List(s"api-key=$key")}.mkString("&") |
View application-logger.xml
<logger name="com.amazonaws" level="TRACE" /> | |
<logger name="org.apache.http.wire" level="TRACE" /> |
View gist:dd38e85e3f3d42ed1acb
val f = FaciaPressQueue.enqueue(PressJob(FrontPath(path), Draft, forceConfigUpdate = Option(true))) | |
f.onComplete{ | |
case Success(_) => Logger.info("successful queued " + path) | |
case Failure(t) => Logger.info(s"failed with $path $t") | |
} |
View adapter.js
var filterTests = document.location.search.match(/[\?\&]test=[a-z-\.]+/gi).map(function (test) { | |
return (test.split('=')[1] + '.spec.js').toLowerCase(); | |
}) || []; | |
var filterLoadedTests = filterTests.length ? function (spec) { | |
var found = false; | |
filterTests.forEach(function (test) { | |
found = found || spec.toLowerCase().indexOf(test) !== -1; | |
}); | |
return found; | |
} : function () { |
NewerOlder