Some checks failed
Lint / pre-commit Linting (push) Has been cancelled
Deploy js code to an instance of screeps. Some debugging tools are implemented. Reviewed-on: #6 Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de> Co-committed-by: Philipp Horstenkamp <philipp@horstenkamp.de>
19 lines
490 B
JavaScript
19 lines
490 B
JavaScript
angular.
|
|
module("sprintf", []).
|
|
filter("sprintf", function() {
|
|
return function() {
|
|
return sprintf.apply(null, arguments)
|
|
}
|
|
}).
|
|
filter("fmt", ["$filter", function($filter) {
|
|
return $filter("sprintf")
|
|
}]).
|
|
filter("vsprintf", function() {
|
|
return function(format, argv) {
|
|
return vsprintf(format, argv)
|
|
}
|
|
}).
|
|
filter("vfmt", ["$filter", function($filter) {
|
|
return $filter("vsprintf")
|
|
}])
|