Ivo Julca
9cec432a99
Fix toId on numbers
2015-07-07 12:06:23 -05:00
Ivo Julca
e92bb1b07f
Rename globals toName|toString to Tools.[getName|getString]
2015-07-06 00:34:44 -05:00
Ivo Julca
a2d2a52301
Chain Room#update to Room#[add|addRaw] everywhere
2015-07-03 20:45:57 -05:00
Ivo Julca
f18eef39ca
Fix Travis build
2015-06-12 03:41:22 -05:00
Guangcong Luo
e8d274c429
Decrease ResourceMonitor notifications
...
ResourceMonitor now adaptively scales back notifications for
less Staff-room spam!
2015-06-10 20:49:20 -04:00
Guangcong Luo
fca1beed53
Increase ResourceMonitor threshold
2015-05-27 14:37:17 -04:00
Ivo Julca
db4eec3e2a
Fix support for Node 0.12
...
Update the detection of legacy engines, as Node 0.12 has native Map support enabled by default
2015-05-21 18:10:56 -05:00
SolarisFox
29b961ff69
Style fix: indexOf() comparisons
2015-05-18 15:55:57 -07:00
Ivo Julca
4222ffb5df
Dependant support: make sure that relative paths are resolved properly
2015-05-11 15:38:18 -05:00
Ivo Julca
fe4eb481fa
Simplify b6aea81
2015-03-24 14:37:23 -05:00
Ivo Julca
317389e2d2
Test: make sure that test server uses a clean port
2015-03-24 14:37:06 -05:00
codelegend
4c3806ec53
cache config groups: optimize user permission checks
2015-03-20 23:53:37 +05:30
Guangcong Luo
8f81cfa4de
Run tests on port 18003
...
Port 18003 was chosen at random, but the point is not to use the same
port as PS itself is running on.
This might not be the best approach, but it probably at least beats
running it on the port in config.js and conflicting with an active
PS process.
2015-03-03 01:52:50 -05:00
Ivo Julca
253c2b951e
Update dependencies
2015-02-23 04:14:30 -05:00
Konrad Borowski
40e5712263
Use --production flag for npm installation
...
This doesn't pull dev dependencies, not forcing people to install git
in order to install `gulp-jshint`.
2015-02-22 10:28:32 +01:00
Ivo Julca
fa62692c00
Make app.js dependant-friendly
2015-02-15 13:26:37 -05:00
小太
6138ab9e0b
Add REPL sockets
2014-12-14 23:11:13 +11:00
Guangcong Luo
018155c9c3
Fix Config.bindaddress
...
It wasn't getting propagated to socket processes correctly. Also change
the default bind address from 'localhost' to undefined (accept all
connections).
2014-10-29 20:51:00 -04:00
ryanj
3c943fb096
Autoconfiguration for cloud hosting environments, OpenShift support
2014-10-24 23:02:07 -07:00
Guangcong Luo
80f8ff8dcd
Merge pull request #1217 from kotarou3/style
...
Add some extra style checks to jshint and fix them in the files
2014-09-30 13:29:08 -07:00
Guangcong Luo
6da178ca6f
Make ResourceMonitor slightly less sensitive
2014-09-29 20:21:11 -04:00
小太
5027be79fb
Add jscs as a style checker, and add some extra jshint options
2014-09-29 18:38:01 +10:00
Guangcong Luo
db6752e1b5
ResourceMonitor: Improve log function
...
ResourceMonitor updates now show up in staff room instantly, and
there's a new logHTML function
2014-09-28 04:08:56 -04:00
Guangcong Luo
12b673bb49
Fix style errors; update gulpfile
...
I used a hack to make the multiple declaration errors go away,
so all that remained in jsHint were actual errors, which I've
now mostly fixed.
All this linting ended up uncovering one actual bug: Uproar's
message not showing. It's a very minor bug in a move no one uses,
so I'm going to fold it into this commit.
2014-08-10 18:06:44 -04:00
Ivo Julca
4d50e275b1
Remove ´watchFile´ global
...
Also, calls to ´fs.watchFile´ are no longer embedded in try-catch blocks, as its call would only crash in some platforms (Windows) in versions of Node.js no longer supported (before Node v0.8.0).
2014-07-31 21:24:28 -05:00
小太
32ad9318c1
Rename tournaments/middleend.js -> tournaments/index.js
2014-07-19 19:51:55 +10:00
Guangcong Luo
03c94929fd
Move custom.css watching inside loginserver.js
2014-07-16 23:08:44 -04:00
小太
4bf80f4d43
Rename frontend.js to middleend.js
2014-07-09 01:58:50 +10:00
Quinella
0c4f929339
Block connection for every connection when flooding
2014-06-06 23:12:17 +02:00
Quinella
7f2c282582
Less spammy connection flooding bans
2014-06-06 23:06:28 +02:00
Slayer95
7602236814
Escape HTML in crash reports
...
This has been overlooked for a while.
Directly calling sugar.js strings' escapeHTML method to avoid further crashes if Tools.escapeHTML is missing for any reason.
2014-05-12 23:04:45 -05:00
Slayer95
b025743d34
Global 'sanitize' is now 'escapeHTML' method of Tools
2014-05-12 20:52:29 -05:00
Guangcong Luo
42963ba72a
Ban IPs for connection flooding
2014-05-04 14:20:10 -04:00
Guangcong Luo
5c7949c0b1
Revert "Merge pull request #824 from kotarou3/shadowban"
...
Its CPU usage is unacceptable for main.
This reverts commit cfc30d71b1 , reversing
changes made to 68b42fe6a7 .
2014-04-30 22:16:55 -04:00
小太
3befc06197
Merge remote-tracking branch 'upstream/master' into shadowban
...
Conflicts:
rooms.js
2014-04-28 20:54:46 +10:00
小太
5c8fc7b982
Space after function for anonymous functions
2014-04-22 01:58:16 +10:00
小太
6fb3bc332a
Spaces around operators and === instead of ==
2014-04-22 01:56:11 +10:00
Slayer95
2efe53ab05
Add missing semicolons and remove whitespace
2014-04-19 00:05:31 -05:00
Slayer95
05e7060474
Deprecate 'toUserid' global
...
Replaced by 'toId'.
2014-04-18 16:49:16 -05:00
Slayer95
3fc36ef80f
'clampIntRange is now a method of 'Tools' and no longer global
2014-04-18 15:14:54 -05:00
Slayer95
4c18aa60f1
Remove global 'fs'
2014-04-17 14:37:32 -05:00
Slayer95
4d50796d25
Fix watchConfig
2014-04-17 00:47:35 -05:00
Slayer95
75559362b4
Rename global config to Config
2014-04-17 01:12:28 -04:00
小太
c6913b5ba1
Implement shadowban
2014-04-15 18:02:48 +10:00
小太
4f6a3e9c36
Merge remote-tracking branch 'upstream/master' into tournaments-frontend
...
Conflicts:
package.json
2014-03-10 12:15:35 +11:00
Guangcong Luo
e2b57563a6
Optimized team sending
...
Teams are now sent using our new packTeam/unpackTeam code, rather
than JSON. This compresses teams from an average of 2000 bytes to
an average of 500 bytes.
2014-03-05 23:30:16 -05:00
Tyler Stark
bff353cc58
Second Pass at cleaning up the code. These are pretty safe edits that include adding 0 to decimal values, fixing variables that are declared multiple times, and removing duplicate keys
2014-02-09 23:38:57 -06:00
Tyler Stark
afb3dc0c09
First pass at code quality: adding semicolons.
2014-02-09 20:35:42 -06:00
小太
f9101abbe7
Merge remote-tracking branch 'upstream/master' into tournaments-frontend
...
Conflicts:
package.json
2014-02-03 00:24:23 +11:00
Guangcong Luo
2cf7f32970
Revert "Make team checking asynchronous"
...
This reverts commit a8d63fd791 .
Conflicts:
config/commands.js
2014-01-12 13:49:03 -08:00