diff --git a/README.md b/README.md index b460f70..8e74ed9 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Inspired by [Gravatar](https://gravatar.com) (hence the name) and [Minotar](http Image manipulation is done by [lwip](https://github.com/EyalAr/lwip). 3D renders are created with [node-canvas](https://github.com/Automattic/node-canvas), based on math by [confuser](https://github.com/confuser/serverless-mc-skin-viewer). -![jomo's avatar](https://crafatar.com/avatars/ae795aa86327408e92ab25c8a59f3ba1?size=128) ![Jake0oo0's avatar](https://crafatar.com/avatars/2d5aa9cdaeb049189930461fc9b91cc5?size=128) ![Notch's avatar](https://crafatar.com/avatars/069a79f444e94726a5befca90e38aaf5?size=128) ![sk89q's avatar](https://crafatar.com/avatars/0ea8eca3dbf647cc9d1ac64551ca975c?size=128) ![md_5's avatar](https://crafatar.com/avatars/af74a02d19cb445bb07f6866a861f783?size=128) +![jomo's avatar](https://crafatar.com/avatars/ae795aa86327408e92ab25c8a59f3ba1?size=128) ![Jake_0's avatar](https://crafatar.com/avatars/2d5aa9cdaeb049189930461fc9b91cc5?size=128) ![Notch's avatar](https://crafatar.com/avatars/069a79f444e94726a5befca90e38aaf5?size=128) ![sk89q's avatar](https://crafatar.com/avatars/0ea8eca3dbf647cc9d1ac64551ca975c?size=128) ![md_5's avatar](https://crafatar.com/avatars/af74a02d19cb445bb07f6866a861f783?size=128) ## Usage / Documentation Please [visit the website](https://crafatar.com) for details. @@ -44,4 +44,4 @@ Please [visit the website](https://crafatar.com) for details. * `npm install` * Start `redis-server` * `npm start` -* Access [http://localhost:3000](http://localhost:3000) +* Access [http://localhost:3000](http://localhost:3000) \ No newline at end of file diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index a8429ad..97d96fd 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -231,8 +231,8 @@ img.preload { .avatar.jomo {background-image: url("/avatars/ae795aa86327408e92ab25c8a59f3ba1?size=64")} .avatar.jomo:hover {background-image: url("/avatars/ae795aa86327408e92ab25c8a59f3ba1?size=64&helm")} -.avatar.jake0oo0 {background-image: url("/avatars/2d5aa9cdaeb049189930461fc9b91cc5?size=64")} -.avatar.jake0oo0:hover {background-image: url("/avatars/2d5aa9cdaeb049189930461fc9b91cc5?size=64&helm")} +.avatar.jake_0 {background-image: url("/avatars/2d5aa9cdaeb049189930461fc9b91cc5?size=64")} +.avatar.jake_0:hover {background-image: url("/avatars/2d5aa9cdaeb049189930461fc9b91cc5?size=64&helm")} .avatar.sk89q {background-image: url("/avatars/0ea8eca3dbf647cc9d1ac64551ca975c?size=64")} .avatar.sk89q:hover {background-image: url("/avatars/0ea8eca3dbf647cc9d1ac64551ca975c?size=64&helm")} diff --git a/test/test.js b/test/test.js index cafeede..1e2d99b 100644 --- a/test/test.js +++ b/test/test.js @@ -15,7 +15,7 @@ var request = require("request"); config.http_timeout *= 3; // no spam -logging.log = function() {}; +//logging.log = function() {}; var uuids = fs.readFileSync("test/uuids.txt").toString().split(/\r?\n/); var names = fs.readFileSync("test/usernames.txt").toString().split(/\r?\n/); @@ -211,7 +211,7 @@ describe("Crafatar", function() { it("should return a 422 (invalid size)", function(done) { var size = config.max_size + 1; - request.get("http://localhost:3000/avatars/Jake0oo0?size=" + size, function(error, res, body) { + request.get("http://localhost:3000/avatars/Jake_0?size=" + size, function(error, res, body) { assert.equal(422, res.statusCode); done(); }); @@ -219,7 +219,7 @@ describe("Crafatar", function() { it("should return a 422 (invalid scale)", function(done) { var scale = config.max_scale + 1; - request.get("http://localhost:3000/renders/head/Jake0oo0?scale=" + scale, function(error, res, body) { + request.get("http://localhost:3000/renders/head/Jake_0?scale=" + scale, function(error, res, body) { assert.equal(422, res.statusCode); done(); }); @@ -227,14 +227,14 @@ describe("Crafatar", function() { // no default images for capes, should 404 it("should return a 404 (no cape)", function(done) { - request.get("http://localhost:3000/capes/Jake0oo0", function(error, res, body) { + request.get("http://localhost:3000/capes/Jake_0", function(error, res, body) { assert.equal(404, res.statusCode); done(); }); }); it("should return a 422 (invalid render type)", function(done) { - request.get("http://localhost:3000/renders/side/Jake0oo0", function(error, res, body) { + request.get("http://localhost:3000/renders/side/Jake_0", function(error, res, body) { assert.equal(422, res.statusCode); done(); }); @@ -246,7 +246,7 @@ describe("Crafatar", function() { var location = locations[l]; (function(location) { it("should return a 200 (valid input " + location + ")", function(done) { - request.get("http://localhost:3000/" + location + "/Jake0oo0", function(error, res, body) { + request.get("http://localhost:3000/" + location + "/Jake_0", function(error, res, body) { assert.equal(200, res.statusCode); done(); }); @@ -310,7 +310,7 @@ describe("Crafatar", function() { }); }); it("should not fail (username, 64x64 skin)", function(done) { - helpers.get_render(rid, "Jake0oo0", 6, true, true, function(err, hash, img) { + helpers.get_render(rid, "Jake_0", 6, true, true, function(err, hash, img) { assert.strictEqual(err, null); done(); }); @@ -334,7 +334,7 @@ describe("Crafatar", function() { }); }); it("should not be found", function(done) { - helpers.get_cape(rid, "Jake0oo0", function(err, hash, img) { + helpers.get_cape(rid, "Jake_0", function(err, hash, img) { assert.strictEqual(img, null); done(); }); @@ -343,7 +343,7 @@ describe("Crafatar", function() { describe("Networking: Skin", function() { it("should not fail", function(done) { - helpers.get_cape(rid, "Jake0oo0", function(err, hash, img) { + helpers.get_cape(rid, "Jake_0", function(err, hash, img) { assert.strictEqual(err, null); done(); }); @@ -352,7 +352,7 @@ describe("Crafatar", function() { before(function() { cache.get_redis().flushall(); }); - helpers.get_cape(rid, "Jake0oo0", function(err, hash, img) { + helpers.get_cape(rid, "Jake_0", function(err, hash, img) { assert.strictEqual(err, null); done(); }); diff --git a/views/index.jade b/views/index.jade index 39a5dd7..235dee8 100644 --- a/views/index.jade +++ b/views/index.jade @@ -7,7 +7,7 @@ block content p A blazing fast API for Minecraft faces! .avatar-wrapper .avatar.jomo(title="jomo's avatar") - .avatar.jake0oo0(title="jake0oo0's avatar") + .avatar.jake_0(title="jake_0's avatar") .avatar.sk89q(title="sk89q's avatar") .avatar.md_5(title="md_5's avatar") .avatar.notch(title="notch's avatar")