jomo
4468b55b4f
username request shouldn't set skin model
...
if it's set to slim (by a uuid request before), that would have been overwritten and set to not slim
2016-01-21 21:54:46 +01:00
jomo
4f667cc99f
remove transparency from avatar, fixes #129
2016-01-20 23:44:33 +01:00
jomo
875bb7c14a
add C++11 compiler to travis
2016-01-20 03:19:47 +01:00
jomo
4e884b5497
use nodejs v4.2.4 LTS, fixes #149
2016-01-20 02:29:17 +01:00
jomo
d8e9282ee7
updat dependencies
2016-01-20 02:17:55 +01:00
jomo
6a5967dfba
downstream caches shouldn't cache server errors, fixes #136
2016-01-20 02:00:10 +01:00
jomo
e7242ce773
respond 304 on server error, fixes #135
2016-01-20 01:50:30 +01:00
jomo
9ccb0151bc
don't search/replace username in path
...
fixes faulty URLs when part of the path is used as username (e.g. 'avatars')
2016-01-20 01:28:54 +01:00
jomo
e8877c427a
Merge branch 'renders-new'
2016-01-20 01:27:42 +01:00
jomo
74ba828701
add test for uuid -> username skin type update
2016-01-20 01:17:36 +01:00
jomo
8367c1e519
mhf_alex should default to mhf_alex if skin not accessible
...
We only use the 'hard stored' mhf_alex skin when it's part of the 'default' query parameter.
In the rare event that mhf_alex is requested but the skin is not accessible, we would fall back to 'mhf_steve' because it's the default for usernames.
This commit adds the special case to use the stored version of the 'mhf_alex' skin when it's not accessible otherwise
2016-01-20 00:56:20 +01:00
jomo
b9f6a21942
ignore case when checking for mhf_alex or mhf_steve
2016-01-20 00:12:53 +01:00
jomo
5b1ad851ef
mhf_alex is always slim
2016-01-19 23:08:56 +01:00
jomo
fcdb03173a
Use UUID's profileName response to update username model type, see #125
2016-01-13 02:15:47 +01:00
jomo
1f0f696151
Make sure 'slim' model is correctly checked
...
The 'textures.SKIN.metadata.model' field seems to be only present if set to 'slim', so currently this change has no effect
however, if the field is returned in other cases (in future), we need to make sure it acually reports 'slim'
2016-01-11 07:37:28 +01:00
jomo
1144b6755a
always use crc32 for etag, much more reliable than mojang skin hash
...
had to make quite a few changes to tests to prevent them from failing
also, etag is now only sent with a 200 response, as defined in RFC7232
2015-12-16 00:47:51 +01:00
jomo
caeb9a52fe
verbose logging on travis
2015-12-15 21:09:13 +01:00
jomo
5cb20b1105
add more crc values to tests
2015-12-14 01:59:32 +01:00
jomo
7d02138c1e
solve merge conflicts
2015-12-14 01:51:49 +01:00
jomo
3c21a59c94
add support for slim renders, fixes #125 , adjust tests
2015-12-13 14:08:59 +01:00
jomo
7eed1fa09b
clean up renders again
...
- improved readability a lot
- now applies overlays directly to underlying skin part *before* transforming
2015-11-23 21:58:47 +01:00
jomo
6e6eff5299
add back missing helpers.js
2015-11-23 03:45:17 +01:00
jomo
67f317aeac
add overlay 'logic', deciding which overlays to render; tweak position & size +/- to get around anti-aliasing 'cracks'; remove transparency from base model
...
fixes #32
fixes #112
fixes #117
fixes #153
2015-11-23 03:21:58 +01:00
jomo
6e500d8652
fix HTML
...
from https://validator.w3.org :
> Document checking completed. No errors or warnings to show.
2015-11-22 07:22:56 +01:00
jomo
4627aecd17
clean up
...
uses 'parts' object instead of tons of variables
2015-11-22 05:33:48 +01:00
jomo
25c4912db9
add back new (1.8) skin support
2015-11-22 05:05:47 +01:00
jomo
abdacdc713
fix rendering of slim arms
2015-11-22 04:18:32 +01:00
jomo
82727cb24d
add back head support
2015-11-22 03:28:09 +01:00
jomo
cb25872498
rewrite renders
...
- renders are now fully isometric
- used position -0.5 and size +1 at some places to fix #32
- does not support overlay yet
- does not support left/right arms/legs
- does not support slim renders yet
- currently only renders full body, not head
2015-11-22 03:15:41 +01:00
jomo
4302a95f6c
clarify size is only used for avatars. Related: crafatar/setup#5
2015-11-15 20:06:40 +01:00
jomo
fb0c70d648
return HTTPERROR on 429 or 5xx, fixes #151
...
otherwise 429 or 5xx would be overwriting cached value with null for $config minutes
2015-10-21 01:02:57 +02:00
jomo
d307aec221
rename helm to overlay, fixes #127
2015-10-18 15:11:17 +02:00
jomo
e8ab044d91
s/Famous/Popular
2015-10-18 04:24:35 +02:00
jomo
36cb9f6b67
fix famous users list bottom
2015-10-17 23:22:56 +02:00
jomo
1e979042e6
fix avatar spacing in header
2015-10-17 23:20:40 +02:00
jomo
815e9c5ae9
word-foo
2015-10-17 22:49:02 +02:00
jomo
08d8211468
add irc:// link
2015-10-17 22:14:41 +02:00
jomo
8a59757345
fix word-wrap
2015-10-17 22:11:48 +02:00
jomo
c915c6699f
add CloudFlare caching notice
2015-10-17 22:02:13 +02:00
jomo
44a6a4961d
add famous crafatar users + tools & plugins
2015-10-17 21:54:11 +02:00
jomo
3f06992cc1
fix slogan inconstency
2015-10-17 20:43:22 +02:00
jomo
ab64f56c26
s/parameters/modifiers
2015-10-17 20:41:06 +02:00
jomo
503e9eae4a
Notice about renders being beta / remade
2015-10-17 20:40:18 +02:00
jomo
863402fb97
add try-it input & logic
2015-10-17 20:31:09 +02:00
jomo
c6f4b038b2
mojang down *may* affect crafatar requests, not definitely does
2015-10-17 18:04:43 +02:00
jomo
8626ed212a
don't use same user for skins & capes
2015-10-17 03:10:42 +02:00
jomo
65e145925c
some meta tag stuff
2015-10-17 03:05:00 +02:00
jomo
ddf2cb24de
clean up some headings
2015-10-17 02:34:46 +02:00
jomo
8d651ca5dc
encourage attribution
2015-10-17 02:31:28 +02:00
jomo
f0055e7b0a
major html rewrite
...
- show single sample image with endpoint
- list accepted parameters
- link to details below
2015-10-17 02:24:46 +02:00
jomo
4a6902adac
don't place heading (block) inside links (inline)
2015-10-16 23:05:29 +02:00
jomo
70900a249b
shuffle avatars in website header
2015-10-15 01:46:14 +02:00
jomo
882b0753bc
detect & show mojang issues
2015-10-15 01:32:32 +02:00
jomo
f69eb85c58
fix anchors
2015-10-15 01:03:49 +02:00
jomo
18d054e664
remove all usernames from examples
2015-10-15 00:57:48 +02:00
jomo
e844c05dd2
add danger notice about username lookups
...
- linked to more info further down with detailed description
- removed all mentions of usernames where applicable
2015-10-15 00:52:50 +02:00
jomo
9d46c1c768
delete navbar, tiny style changes
2015-10-15 00:13:26 +02:00
jomo
f0df78e6a9
allow editing index html when debug_enabled = true
2015-10-14 23:42:27 +02:00
jomo
a3cbedb859
update to bootstrap 4 alpha
...
- there's no official CDN for bootstrap 4 yet
- fixed breaking change in bootstrap's navbar
2015-10-14 23:41:51 +02:00
jomo
bf1e26d2c5
get rid of jade/haml, use ejs instead
2015-10-14 01:12:30 +02:00
jomo
b0f50cbed0
print base64 encoded body if CRC does not match
2015-10-13 00:51:03 +02:00
jomo
8b2ccf3368
add new CRC checksums
...
updated OS X + cairo, so obviously the checksums change, right? right??
2015-10-13 00:50:25 +02:00
jomo
01ce06cd22
Move Installation to wiki
2015-10-07 01:10:41 +02:00
jomo
7714e0e0ef
add case sensitive default URL tests, so 06caf589ab won't happen again
2015-09-30 21:06:16 +02:00
jomo
06caf589ab
don't lowercase default URLs
2015-09-30 17:00:52 +02:00
jomo
83defa6885
make default parameter case insensitive, add missing docs to renders
...
See #142
2015-09-30 00:52:51 +02:00
jomo
ecfec6a407
use MHF_Steve and MHF_Alex instead of steve and alex in default parameter
...
See #142 (not fixed by this commit!)
Basically, this just adds mhf_steve and mhf_alex as special cases for the default parameter only
2015-09-30 00:38:32 +02:00
jomo
fd4fb0764c
return & use lwip-stripped image in skins.save_image
...
no need to pass along (possibly) bulky or broken images!
see #147
2015-09-29 23:32:16 +02:00
jomo
6fbfd6c355
update dependencies
2015-09-26 16:22:32 +02:00
jomo
c8d74d47be
avoid reserved property names (+ test), fixes #145
2015-09-25 19:24:56 +02:00
jomo
5e1e7f3701
update dependencies
2015-09-23 00:29:50 +02:00
jomo
5e7d116364
readme IRC badge improvement
...
the server is now in the badge label and the channel is shown on hover
2015-09-22 21:37:55 +02:00
jomo
1ecf3c0122
add 504 to expected return codes, don't cache unexpected responses
2015-09-21 22:21:14 +02:00
jomo
cc2840ae4b
log error if http code not available
2015-09-20 22:02:37 +02:00
jomo
d49f7279b3
log response ID first for access log
...
also made sure 'headers' is defined before it's used
2015-09-20 21:45:37 +02:00
jomo
a15cb20144
TooManyRequestsException shouldn't actually throw an error
...
all other errors thrown here are network issues, this is not.
2015-09-20 21:43:12 +02:00
jomo
06895cdd81
add TooManyRequestsException to silent_errors
2015-09-20 21:35:46 +02:00
jomo
9cdca6acda
don't throw strings
2015-09-20 21:28:43 +02:00
jomo
26f6b089ef
log errors only once, fixes #140
...
also made sure some (network) errors have level 'WARN'
these are printed without stacktrace
2015-09-20 21:17:13 +02:00
jomo
b97087c099
catch HTTP 500/503 and empty response, fixes #141
2015-09-20 20:58:34 +02:00
jomo
750d741308
log when cleaner has nothing to do
2015-09-17 01:51:11 +02:00
jomo
7e77142b29
add link to crafatar/setup
2015-09-15 04:38:24 +02:00
jomo
8ddc300a11
#138 bump http_timeout to 2 seconds
...
we run into the timeout quite frequently, even on a fast network.
2s should be long enough for mojang to reply
2015-09-06 03:40:17 +02:00
jomo
6a630f23b9
add new test CRCs for @6d12ed6
2015-09-06 00:47:17 +02:00
jomo
6d12ed685b
enhance renders by using binary transparency
...
this is a temporary fix for #32 .
it doesn't solve the problem, but it makes the renders much less worse.
in combination with #134 this will hopefully lead to fixing the problem entirely
2015-09-06 00:22:57 +02:00
jomo
fe12901f41
update app.json
...
Also fixed our description in package.json
2015-09-03 00:26:25 +02:00
jomo
47a978df6c
add image dir to git
2015-09-02 23:57:08 +02:00
jomo
90022d9e6c
revert 4d949362be
2015-09-02 23:50:20 +02:00
jomo
b4ae89832a
add missing 'cache' import in routes/skins
2015-09-02 23:22:52 +02:00
jomo
841eb39f05
remove obsolete imports
2015-08-31 05:41:18 +02:00
jomo
3a61e15abf
various networking.js improvements
...
- cleaned up some messy if/else code, replaced with nicely readable switch/case
- catch JSON.parse errors
2015-08-31 00:10:35 +02:00
jomo
ccc7314ea0
fix 'Permission denied' on travis
2015-08-30 23:19:45 +02:00
jomo
5f0e16897d
travis 💩 N°2
2015-08-30 22:24:35 +02:00
jomo
5aaf075f94
travis 💩
2015-08-30 22:21:01 +02:00
jomo
52098ca2f8
hotfix for #139
2015-08-30 22:12:43 +02:00
jomo
2e738f8b40
use crafatar/node-df
...
until adriano-di-giovanni/node-df#3 is merged
fixes #4
2015-08-30 05:42:28 +02:00
jomo
755cc74170
don't update file dates
...
this was originally implemented because we wanted to delete the oldest images on disk
where 'oldest' means not *used* for the longest time
that's not useful and was never actually implemented, so we don't need this
2015-08-30 04:48:50 +02:00
jomo
78f2f2027f
cleaner: be less verbose
2015-08-30 04:29:56 +02:00
jomo
5f703eda70
check disk/redis every 10 minutes
2015-08-30 03:58:57 +02:00
jomo
6746459c8d
delete cape images when cleaning
2015-08-30 03:57:29 +02:00