Commit Graph

912 Commits

Author SHA1 Message Date
HF
7c0d6d075e experiment 2022-08-14 11:44:45 +02:00
HF
9ac475c25e Merge branch 'master' into devel 2022-08-14 11:17:07 +02:00
HF
ec0249012d debug ping append 2022-08-14 11:04:57 +02:00
HF
4e41679c88 change mod / admin flag 2022-08-14 01:53:12 +02:00
HF
9788704a06 add title to name and change max-width 2022-08-14 01:39:50 +02:00
HF
2f2a446c15 aand more 2022-08-14 01:27:38 +02:00
HF
79643a6605 trying some stuff 2022-08-14 00:44:02 +02:00
HF
fec22a7156 change padding of ping / mention 2022-08-13 23:39:17 +02:00
HF
fc86dcd967 fix random text color 2022-08-13 20:40:36 +02:00
HF
d11afa83fd redesign chat 2022-08-13 19:45:35 +02:00
HF
196e701150 treat Modal equal to Window, move them to WindowManager 2022-08-13 18:51:43 +02:00
HF
43c2f1d012 check for click outside with mousedown instead of click 2022-08-12 21:26:35 +02:00
HF
ae1e259bab use react portals to move Embeds out of ChatMessages into parent
add barebone for window route
2022-08-12 21:13:47 +02:00
HF
cccb49df43 adjust void speed 2022-08-12 18:46:36 +02:00
HF
a9fcd04eef parse canvasId more stricly to number on websocket 2022-08-12 16:40:47 +02:00
HF
0a5bb9aca7 fix broken stuff 2022-08-12 15:13:59 +02:00
HF
9978d12a70 don't have chat related stuff in general window reducer, handle
chat over window args directly
2022-08-12 13:19:44 +02:00
HF
1b20d3f9e7 send amount of ranked pixel in PixelReturn package 2022-08-11 18:19:07 +02:00
HF
386218d722 make mods and admins bypass country bans 2022-08-11 16:26:10 +02:00
HF
5510bf3b5c change flag priorities (trans more important than israel) 2022-08-08 18:40:55 +02:00
HF
d76d6f652d refactor sounds and use different sound for captcha 2022-08-08 16:52:54 +02:00
HF
3afd3eeaae refactor Rankings tables 2022-08-08 15:23:48 +02:00
HF
f3677db4f9 make mods have trans flag in chat 2022-08-08 14:53:48 +02:00
HF
a0b8ea6a4a change styling of Alert and BanInfo buttons 2022-08-08 14:28:34 +02:00
HF
7d2161883d change BanInfo 2022-08-08 14:11:22 +02:00
HF
8f91b3c241 update proxycheck cache even on withoutCache request 2022-08-07 20:31:46 +02:00
HF
a2147eef8c parse whois data dfferent 2022-08-07 11:07:05 +02:00
HF
b857ddba48 fix links ending with ) in some circumstances
fix ban validation message
2022-08-07 02:24:53 +02:00
HF
61ddfb0181 use proxycheck keys instead of proxiesFetch 2022-08-07 00:54:00 +02:00
HF
0e78dea560 fix minor issues 2022-08-06 18:01:38 +02:00
HF
be8f94b368 add adminfunctions 2022-08-06 05:55:27 +02:00
HF
a5d25a8217 more fixes 2022-08-05 23:38:49 +02:00
HF
2b82971ceb fix some eslint errors 2022-08-05 23:04:24 +02:00
HF
86d773c3f0 add sql functions for whitelists and bans 2022-08-05 22:38:57 +02:00
HF
a41c286372 add ui for iid banning
removed ip banning
add eslint option for react-key
2022-08-05 16:56:31 +02:00
HF
53b8168f24 add Ban sql table and remove blacklist 2022-08-05 01:32:08 +02:00
HF
fc5581e00d remove dead code 2022-08-05 01:29:09 +02:00
HF
c70e31f944 follow whois referral 2022-08-04 16:07:43 +02:00
HF
0a89bd83b3 fix incrememtal tile backup for unchanged chunks 2022-08-04 12:48:40 +02:00
HF
f90c542046 add iid action to force captcha
add parsing of pixelLog by iid without canvas and coords
2022-08-04 02:28:39 +02:00
HF
fb79e521fc add UI for IID Tools 2022-08-03 20:32:51 +02:00
HF
19001d2d4d increase limit of sql user and ip querries 2022-08-03 12:18:12 +02:00
HF
c71fdf34cb add sorting 2022-08-03 02:27:00 +02:00
HF
20eaafa369 do whois also for blacklisted and whitelisted ips 2022-08-03 01:05:12 +02:00
HF
f43b786f31 fix parsing of pixellog 2022-08-02 22:38:14 +02:00
HF
ae878d4518 parse pixel table
add iidtoip admin function
2022-08-02 22:12:57 +02:00
HF
86adb162dc Add parser for current-day pixellog 2022-08-02 17:36:00 +02:00
HF
3c1fb0ead9 add Watchtools basics 2022-08-02 15:07:59 +02:00
HF
35ee5cc61e fix modtools 2022-08-02 13:31:17 +02:00
HF
7ef311cdc7 add functions to map uuids to ip and names to id 2022-08-02 12:50:34 +02:00
HF
e9a7ea7262 split moderation canvas tools from admin tools 2022-08-02 12:49:34 +02:00
HF
c4c1e7ea60 imporve cidr parsing 2022-08-01 23:29:34 +02:00
HF
6765de5936 import error handling of whois 2022-08-01 23:18:16 +02:00
HF
50e4845d94 improve whois parsing 2022-08-01 23:00:26 +02:00
HF
bc895b23e8 parse whois improvements 2022-08-01 22:28:02 +02:00
HF
afe573c97a log format change for proxycheck, asn validation 2022-08-01 22:06:21 +02:00
HF
e8b6351da0 fix some ipinfo table formats 2022-08-01 21:37:11 +02:00
HF
261540422c use IPv$ subnet for whois 2022-08-01 20:36:28 +02:00
HF
e795874893 add ipInfo table 2022-08-01 19:51:24 +02:00
HF
d4ef69c2ac remove flow types - it was inconsistently used and therefore pointless 2022-08-01 17:44:18 +02:00
HF
4dee1e24e4 add whois util 2022-08-01 17:25:37 +02:00
HF
b355aa60d4 fix cd issue of not-logged-in-users 2022-07-31 10:31:39 +02:00
HF
cc8ccf95e6 name files after utc time 2022-07-31 10:00:38 +02:00
HF
0bd61e9edc add timestamp to pixelLogger 2022-07-31 09:57:22 +02:00
HF
30c27c013c change logger of pixels 2022-07-31 09:45:35 +02:00
HF
f8552b0ea6 check for login on auth routes 2022-07-28 00:19:30 +02:00
HF
3ebb954c59 add return statements to history api 2022-07-28 00:08:49 +02:00
HF
812c70e0da remove captcha logging to chat again 2022-07-21 09:54:50 +02:00
HF
c5cbe94d50 add messages of failed captchas to chat 2022-07-21 03:58:14 +02:00
HF
d6602d1b34 remove Lugansk redirection 2022-07-15 23:16:12 +02:00
HF
7ccf671000 Merge branch 'devel' 2022-07-15 16:40:19 +02:00
HF
5ab33fbca8 fix password-reset-code vulnerability 2022-07-15 16:32:14 +02:00
HF
b9fa79f140 unset pixels can't influence void 2022-07-13 02:20:34 +02:00
HF
9ee5bdbd06 change window titlebar key 2022-07-12 20:13:29 +02:00
HF
fc1b2763d3 add gazprom link 2022-07-12 15:05:40 +02:00
HF
fc8be3d07a log cron execution time 2022-07-12 13:15:20 +02:00
HF
393369a9b8 change doubleclick to also register double-touch
closes #21
2022-07-11 22:46:31 +02:00
HF
4182f1a6e3 fix some react errors 2022-07-11 18:01:01 +02:00
HF
4dca37e67a update react 2022-07-11 17:54:22 +02:00
HF
76a3f7d42a move from unmaintained react-toggle-button to react-toggle 2022-07-11 16:19:51 +02:00
HF
e105b8fa07 refactor store 2022-07-11 15:33:29 +02:00
HF
2789cd2a54 reorganize store 2022-07-11 14:42:09 +02:00
HF
4612384a7d fix some key prop errors 2022-07-11 11:38:23 +02:00
HF
2c4b856f74 run cron at full hours
closes #20
2022-07-11 10:42:50 +02:00
HF
d7debd2614 fix duplicate keys on palette entries 2022-07-11 03:10:34 +02:00
HF
b5f9e59549 make moderators be able to place unset pixels without cooldown 2022-07-11 01:46:07 +02:00
HF
3540f19978 remove escape characters after parsing enclosure 2022-07-10 13:37:54 +02:00
HF
aca114644a escape Markdown in x[y](z) enclosures 2022-07-10 13:07:56 +02:00
HF
415322b3ba fix left-shift for admin unset-pixels painting 2022-07-09 17:22:59 +02:00
HF
bda8e20b15 allow Admin to paint unset pixels 2022-07-09 16:10:14 +02:00
HF
35c16b1334 fetch ranking only when needed 2022-07-09 15:01:37 +02:00
HF
dc4e57ebaa handle APISocketEvents async 2022-07-04 10:10:02 +02:00
HF
e036042a3d add logging if someone subscribes to many chunks 2022-07-04 02:11:52 +02:00
HF
e5f604c327 increase threshold for kicking out ws again 2022-07-04 01:07:35 +02:00
HF
09ba826b33 promisify terminating dead websockets 2022-07-04 00:52:17 +02:00
HF
14aaa3211d test deregistering chunks 2022-07-04 00:21:49 +02:00
HF
09157955fa adjust timings of socket health check 2022-07-03 22:31:38 +02:00
HF
bb89d6e55b another websocket message change 2022-07-02 13:47:20 +02:00
HF
eee3d6a7ec add error notice on online counter broadcast 2022-07-02 13:24:09 +02:00
HF
214daa6382 change order of websocket packets onOpen 2022-07-02 03:10:38 +02:00
HF
6ad79250e5 fix race conditions 2022-07-02 01:26:11 +02:00
HF
b9cb6afc0b add route for checking next void time 2022-06-30 15:06:36 +02:00
HF
523b2c32de fix zoomed tile creation queue 2022-06-30 14:39:03 +02:00
HF
74cf680e83 fix basezoom tile creation 2022-06-30 14:29:15 +02:00
HF
32cc0cfadd fix verify message vanishing in user menu
fix de translation
2022-06-30 13:24:23 +02:00
HF
96caa54075 fix top10 canvas start date 2022-06-30 13:10:01 +02:00
HF
491cbb1abe Add option to turn off sending mails
Remove GMAIL support (they shut down 3rd party apps anyway) and add note
to ssmtp, which can be used to still send over other providers.
2022-06-30 13:00:21 +02:00
HF
2575e54ba0 stop using React for server-side-rendering 2022-06-30 00:08:36 +02:00
HF
abeeccda88 Set browser theme-color according to selected cavnas.
Add meta tag to stop google-read-aloud bot
2022-06-29 19:52:58 +02:00
HF
16da4fc4d3 fix backgruond color in tile creation 2022-06-28 17:21:18 +02:00
HF
d88db0ead4 update redisMoveCanvas.js util script 2022-06-28 02:14:47 +02:00
HF
1efd40ca4e add top10 canvas to historyDownload.py
change size of top10 canvas *2
change README to mention that we do power of 2 now
2022-06-28 00:18:34 +02:00
HF
0ad3762878 adjust cache times of tiles 2022-06-27 23:47:22 +02:00
HF
61ec34d7b4 save in webp
adjust Tile creation
2022-06-27 19:07:05 +02:00
HF
c8409c6e5f TILE_ZOOM_LEVEL = 2 2022-06-27 12:47:06 +02:00
HF
ae927972ae promisify some Tile creation 2022-06-27 12:31:41 +02:00
HF
4a88523eab spraed out tileserver timeouts 2022-06-27 11:31:01 +02:00
HF
8ccbcddb59 prepare to make TILE_ZOOM_LEVEL actually change 2022-06-27 11:20:50 +02:00
HF
d3e6010e07 add check for ws.user again 2022-06-26 22:25:34 +02:00
HF
a9c2289d4f increase timeouts for pings 2022-06-26 21:19:19 +02:00
HF
e820032a3a fix websocket reload 2022-06-25 22:44:19 +02:00
HF
71bb9375d2 make threshold higher because of people who don't refresh 2022-06-25 22:03:28 +02:00
HF
a069bb9d75 Merge branch 'devel' 2022-06-25 21:36:22 +02:00
HF
e31d27bb35 change error handling for websocket client
fix eslint errors in Tiles.js
2022-06-25 20:06:04 +02:00
HF
28be86718d go back to old tile creation 2022-06-25 16:43:49 +02:00
HF
3153a8d950 format modlogs pt4 2022-06-25 16:11:54 +02:00
HF
84155a3670 correct moderation log messages pt3 2022-06-25 15:40:22 +02:00
HF
e09f2bc55f Correct pings in moderation chat message
change void listener
2022-06-25 15:13:29 +02:00
HF
0e07d74afa print moderation actions also in en chat 2022-06-25 14:49:04 +02:00
HF
d18882e3ae change scaling algorithm also for first tile layer caluclated out of
chunks
2022-06-24 04:27:43 +02:00
HF
727676f0f8 test different scaling algorithm 2022-06-23 18:58:22 +02:00
HF
aa8fc86bc9 small fixes, remove tile filename logging again 2022-06-23 15:50:30 +02:00
HF
6af7be7794 print tile filenames 2022-06-22 23:32:05 +02:00
HF
05f93ec360 minor documentation fixes 2022-06-22 22:18:21 +02:00
HF
6c5993e12c update to passport-google-oauth2
catch oauth2 errors
2022-06-22 14:24:05 +02:00
HF
7f345aa640 change git link description in Help modal 2022-06-21 19:58:59 +02:00
HF
fc0d73ceaf try to fetch unloaded chunk on every renderChunk triggering ui update
closes #9
2022-06-21 15:01:39 +02:00
HF
4293ff2a01 refactor and clean up Palette and buffer2RGB functions 2022-06-21 12:14:57 +02:00
HF
8745603309 empty captchaQueue on TIMEOUT 2022-06-21 11:22:28 +02:00
HF
49bc6ff703 refactor passport nr2 2022-06-21 11:20:05 +02:00
HF
cf4265eebf fix daily backup 2022-06-21 10:44:40 +02:00
HF
1d9fa2a310 refactor 3ptid passport strategies 2022-06-21 10:19:33 +02:00
HF
0078626d7c make quue for tileserver thread 2022-06-21 04:53:13 +02:00
HF
230cf8811a improve theoretically captcha DDoS handling 2022-06-21 03:27:22 +02:00
HF
038cb8b6e1 refactor passport 2022-06-21 02:25:57 +02:00
HF
42ba4c82b6 debug login errors 2022-06-21 00:37:10 +02:00
HF
28e812737d update logout route on delete-account 2022-06-20 23:27:27 +02:00
HF
725e23dbab move captchas into their own thread
closes #3
2022-06-20 23:12:51 +02:00
HF
6eaea5b00c make tileserver better 2022-06-20 17:20:06 +02:00
HF
0fba279f64 benchmark Uint32Array to node Buffer.writeUInt32BE 2022-06-20 15:53:52 +02:00
HF
6974435a46 update logout route 2022-06-20 15:10:11 +02:00
HF
a06802fb6c fix writeUInt32 offset error 2022-06-20 14:43:32 +02:00
HF
b436937f86 optimize backup tile creation 2022-06-20 14:24:24 +02:00
HF
5db3083044 use UTC times explicity (no factual change cause server uses UTC anyway) 2022-06-20 11:46:28 +02:00
HF
a15a765683 minor updates 2022-06-20 04:41:57 +02:00
HF
f98de1291a test mutes 2022-06-20 03:23:09 +02:00
HF
b63fe24307 Mute by Ids
Don't bypass mutes on APISocket chat messages
closes #2
2022-06-20 02:51:42 +02:00
HF
6dc283765c optimize padding 2022-06-20 00:55:40 +02:00
HF
43fafb7a0e fix rendering padded chunks 2022-06-20 00:21:59 +02:00
HF
14cbd75406 update ranking on server restart 2022-06-19 23:32:30 +02:00
HF
4e45058d46 refactor /data directory 2022-06-19 23:24:54 +02:00
HF
40be1ad522 preventDefault in form submits 2022-06-19 22:20:18 +02:00
HF
ff78373cb1 refactor User class 2022-06-19 19:47:37 +02:00
HF
6af530907a fix some redis v4 type issues 2022-06-19 18:04:39 +02:00
HF
ec9ea0211d implement own connect-redis
closes #1
2022-06-19 17:28:14 +02:00
HF
74b5292ede change contact mail to admin@pixelplanet.fun 2022-06-17 22:40:48 +02:00
HF
d46faf4cb9 set name for outgoing mails 2022-06-17 12:33:40 +02:00
HF
32253ab9af remove github references, we are on git.pixelplanet.fun now 2022-06-11 17:11:52 +02:00
HF
7c2e62efc2 adjust Clown Void event from 10min to 8min duration and make it 10%
slower
2022-04-26 13:18:59 +02:00
HF
88e33a4ff6 refactor redis to deal with chunks of non-full size 2022-04-10 22:47:10 +02:00
HF
56ff4a0b2c change corrupted chunk logging (again) 2022-04-09 01:52:56 +02:00
HF
33cac8e6f6 check if ws.user is a thing before accessing ws.user.ip 2022-04-08 22:35:31 +02:00
HF
5ed448a9a4 forgot stream header for chunks 2022-04-08 22:29:51 +02:00
HF
4b03f7a5a4 change logging of corrupted tiles 2022-04-08 15:24:23 +02:00
HF
511560136d fix daily backup 2022-04-08 14:59:59 +02:00
HF
24e83d8f2f refactor redis multi 2022-04-08 12:27:55 +02:00
HF
c9c377cdbb increase ratelimit temp-ban length to 15min 2022-04-07 19:12:36 +02:00
HF
f63e2ca110 more strict rate limiting 2022-04-07 17:23:54 +02:00
HF
4109ebe142 improve ws user lookup 2022-04-07 16:35:58 +02:00
HF
87a73cb5c9 add rate limit for socket errors 2022-04-07 16:31:01 +02:00
HF
c078672684 better error handling for vkontakte logint
fix event restore
2022-04-07 14:14:13 +02:00
HF
e1ba4ea26b fix event 2022-04-07 09:23:24 +02:00
HF
e95b6ae8d3 Set pixels in redis in batches
finish node-redis update by making sure that everything that needs redis
runs after redis connected
2022-04-07 07:54:36 +02:00
HF
56bc4352b2 Merge branch 'production' 2022-04-06 19:48:57 +02:00
HF
0e1c1a42b5 update languages, add turkish 2022-04-06 19:48:39 +02:00
HF
4fd94ebd65 update node-redis 2022-04-06 01:24:00 +02:00
HF
d75e65efec send cache-control also on 503 for reasons 2022-04-05 19:05:41 +02:00
HF
855a5b426b also send cache-control 2022-04-05 15:17:01 +02:00
HF
f6902ca73c send etag on 304 2022-04-05 14:18:48 +02:00
HF
90ffc5fd1a lower chunk cache age
ad log for ranking update
2022-04-05 02:47:04 +02:00
HF
cdf7a4a1d8 log GC duration and set to 10min interval 2022-04-04 22:52:45 +02:00
HF
f6901823e6 remove logging when trying forceGC but no global.gc available
remove debug logging of etag cache
2022-04-04 22:36:32 +02:00
HF
c38637e788 cache etags of chunks to avoid useless redis calls 2022-04-04 22:12:12 +02:00
HF
6d4f878798 increase chunk cache time 2022-04-04 20:55:31 +02:00
HF
68ae99b4e0 change how palette gets sent to worker thread 2022-04-04 15:50:51 +02:00
HF
7e38ecd6f7 catch worker thread errors 2022-04-04 14:46:41 +02:00
HF
d85c436d60 print ping of user and mod on mute 2022-04-04 13:56:53 +02:00
HF
9c57dd8032 long long pixel response times 2022-04-04 13:56:41 +02:00
HF
f0bbbb4523 increase tolerable pixel return time 2022-04-04 12:17:47 +02:00
HF
04c1099392 fix woker threads 2022-04-04 05:34:25 +02:00