Skip to content

Commit

Permalink
Adding a label for the select input, converting indents to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Mar 30, 2015
1 parent 220a1ff commit 9c2b657
Show file tree
Hide file tree
Showing 8 changed files with 323 additions and 320 deletions.
2 changes: 1 addition & 1 deletion doc/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -1826,7 +1826,7 @@ <h5>Returns:</h5>

<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a>
on 2015-03-30T17:20:58-04:00 using the <a
on 2015-03-30T19:35:44-04:00 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ <h2>License</h2>

<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a>
on 2015-03-30T17:20:58-04:00 using the <a
on 2015-03-30T19:35:44-04:00 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions doc/module-tenso.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h2>
<dt class="tag-version">Version:</dt>
<dd class="tag-version">
<ul class="dummy">
<li>1.3.15</li>
<li>1.3.16</li>
</ul>
</dd>

Expand Down Expand Up @@ -344,7 +344,7 @@ <h5>Type:</h5>

<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a>
on 2015-03-30T17:20:58-04:00 using the <a
on 2015-03-30T19:35:44-04:00 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion doc/modules.list.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ <h2>

<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a>
on 2015-03-30T17:20:58-04:00 using the <a
on 2015-03-30T19:35:44-04:00 using the <a
href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span>
</footer>
Expand Down
6 changes: 3 additions & 3 deletions lib/tenso.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* @license BSD-3 <https://raw.github.com/avoidwork/tenso/master/LICENSE>
* @link http://avoidwork.github.io/tenso
* @module tenso
* @version 1.3.15
* @version 1.3.16
*/
const CONFIG = require( __dirname + "/../config.json" );
const VERSION = "1.3.15";
const VERSION = "1.3.16";
const SERVER = "tenso/" + VERSION;

let keigai = require( "keigai" ),
Expand Down Expand Up @@ -1116,7 +1116,7 @@ let renderers = {
} ).join( "\n" ) )
.replace( "{{body}}", JSON.stringify( arg, null, 2 ) )
.replace( "{{year}}", new Date().getFullYear() )
.replace( "{{version}}", "1.3.15" );
.replace( "{{version}}", "1.3.16" );
},
header: "text/html"
},
Expand Down
30 changes: 10 additions & 20 deletions lib/tenso.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };
var _createClass = (function () { function defineProperties(target, props) { for (var key in props) { var prop = props[key]; prop.configurable = true; if (prop.value) prop.writable = true; } Object.defineProperties(target, props); } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();

var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } };

Expand All @@ -12,10 +12,10 @@ var _classCallCheck = function (instance, Constructor) { if (!(instance instance
* @license BSD-3 <https://raw.github.com/avoidwork/tenso/master/LICENSE>
* @link http://avoidwork.github.io/tenso
* @module tenso
* @version 1.3.15
* @version 1.3.16
*/
var CONFIG = require(__dirname + "/../config.json");
var VERSION = "1.3.15";
var VERSION = "1.3.16";
var SERVER = "tenso/" + VERSION;

var keigai = require("keigai"),
Expand Down Expand Up @@ -89,7 +89,7 @@ var Tenso = (function () {
this.version = VERSION;
}

_prototypeProperties(Tenso, null, {
_createClass(Tenso, {
error: {

/**
Expand All @@ -107,9 +107,7 @@ var Tenso = (function () {
this.server.error(req, res, status, arg);

return this;
},
writable: true,
configurable: true
}
},
rate: {

Expand Down Expand Up @@ -162,9 +160,7 @@ var Tenso = (function () {
}

return [valid, limit, remaining, reset];
},
writable: true,
configurable: true
}
},
redirect: {

Expand All @@ -182,9 +178,7 @@ var Tenso = (function () {
this.server.respond(req, res, this.server.messages.NO_CONTENT, this.server.codes.FOUND, { location: uri });

return this;
},
writable: true,
configurable: true
}
},
render: {

Expand Down Expand Up @@ -223,9 +217,7 @@ var Tenso = (function () {
headers["content-type"] = renderers[format].header;

return renderers[format].fn(arg, req, headers, format === "html" ? this.server.config.template : undefined);
},
writable: true,
configurable: true
}
},
respond: {

Expand Down Expand Up @@ -273,9 +265,7 @@ var Tenso = (function () {
}

return this;
},
writable: true,
configurable: true
}
}
});

Expand Down Expand Up @@ -1175,7 +1165,7 @@ var renderers = {
return "<tr><td>" + i + "</td><td>" + sanitize(headers[i]) + "</td></tr>";
}).join("\n")).replace("{{formats}}", req.server.config.renderers.map(function (i) {
return "<option value='" + i + "'>" + i.toUpperCase() + "</option>";
}).join("\n")).replace("{{body}}", JSON.stringify(arg, null, 2)).replace("{{year}}", new Date().getFullYear()).replace("{{version}}", "1.3.15");
}).join("\n")).replace("{{body}}", JSON.stringify(arg, null, 2)).replace("{{year}}", new Date().getFullYear()).replace("{{version}}", "1.3.16");
},
header: "text/html"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tenso",
"description": "Tensō is a REST API facade for node.js, designed to simplify the implementation of APIs.",
"version": "1.3.15",
"version": "1.3.16",
"homepage": "http://avoidwork.github.io/tenso",
"author": {
"name": "Jason Mulligan",
Expand Down
Loading

0 comments on commit 9c2b657

Please sign in to comment.