Commit Graph

50 Commits

Author SHA1 Message Date
Mia
8cd51c909e Chatlog: Support linking to specific times in chat
Previously, the colons in times assured it couldn't be linked (colons can't be in links). I swapped it to use just the numbers in the time - since it's a 24-hour timestamp, it should work fine. Tested and ensured it was linkable/etc.
2022-12-16 08:03:17 -06:00
Mia
a96ad73bb8 Chatlog: Support linking to specific times
With this, chatlog is now up to parity with /roomlog.
2022-12-15 21:18:56 -06:00
Mia
0159606e33 Modlog-viewer: Fix link in /mls 2022-02-12 15:11:47 -06:00
Mia
ef33618e03
Modlog-viewer: Add a table for punishments sorted by IP
Requested by staff.
2022-02-09 11:01:50 -06:00
Mia
3638223967 Modlog: Error out if invalid roomids are provided without a prefix
This fixes the issue where roomstaff would use /modlog user and get access denied (since it assumes they were trying to search a room they can't access). Now, if they aren't gstaff, it searches to see if the room exists and allows it if so, sends them the help otherwise. It doesn't do this for gstaff since gstaff can read modlogs of deleted rooms.
2021-12-10 15:27:03 -06:00
Mia
46bc0f312c Modlog-viewer: Remove references to 'any' 2021-11-12 23:20:47 -06:00
Mia
86743690e4 Modlog-viewer: Remove note about deprecated unspecified param handling 2021-11-07 12:06:20 -06:00
Mia
3df46681c1 Fix using /ml with no arguments 2021-11-07 12:01:46 -06:00
Mia
76d0238a38 Modlog: Deprecate ModlogSearch#anyField 2021-11-06 22:52:23 -05:00
Mia
9aff753999 Modlog: Allow drivers to use /mls
Aeo said this was cool.
2021-09-01 13:02:11 -05:00
Annika
633e061067 Modlog: Remove text logging code 2021-08-09 14:06:14 -07:00
Leonard Craft III
e8f874c18a
Modlog: Fix double spaces when no moderation found (#8424) 2021-08-08 17:21:17 -07:00
Annika
521f7c3df6 Modlog viewer: Fix /modnotes bug
`/modnotes` should be more like `/punishlog` than `/mlid`
2021-08-02 13:25:48 -07:00
Annika
3ac44020ac Modlog viewer: Improve help 2021-07-30 20:16:33 -07:00
Annika
237884ec16 Modlog viewer: Add /modnotes command
Requested by Ayia
2021-07-30 20:16:33 -07:00
Annika
cfb33eb53f Modlog: Allow non-globalstaff to use modlogs 2021-07-25 15:42:46 -07:00
Annika
11caaf392f Modlog: Improve support for multiple searches 2021-07-25 15:33:42 -07:00
Annika
bcbe100c41
Modlog: Use SQLite for searches (#8004) 2021-07-23 13:47:49 -07:00
Mia
bf648598ec
Add modlog stats page (#8339) 2021-05-28 12:12:50 -07:00
Guangcong Luo
810aff74cd Namespace more server global types 2021-04-25 14:16:27 -07:00
Mia
76c10841ea
Lib: Add an index file for all exports (#7972) 2021-01-31 18:00:19 -08:00
Guangcong Luo
f4abf52f61 Fix QueryProcessManager type signatures 2021-01-30 11:35:35 -08:00
Mia
d5e7f3f778
Modlog: Add more shorthand commands (#7896) 2021-01-09 01:00:05 -08:00
Mia
6f13e3285d
Modlog viewer: Search global modlog when used in adminlog (#7681) 2020-11-11 17:23:47 -08:00
Annika
7f2dec0797
Modlog: Avoid optional properties in ModlogEntry (#7613)
* Modlog: Avoid optional properties in ModlogEntry

* Use a type

* Make IP nullable

* Add NOT NULL constrains

* Fix typo
2020-11-01 14:07:01 -08:00
Mia
fb3b6e3886
Move Battlesearch to its own file (#7481) 2020-10-24 10:52:52 -07:00
Guangcong Luo
9d87616176
Add more style linting rules (#7537)
* Lint arrow-body-style

* Lint prefer-object-spread

Object spread is faster _and_ more readable.

This also fixes a few unnecessary object clones.

* Enable no-parameter-properties

This isn't currently used, but this makes clear that it shouldn't be.

* Refactor more Promises to async/await

* Remove unnecessary code from getDataMoveHTML etc

* Lint prefer-string-starts-ends-with

* Stop using no-undef

According to the typescript-eslint FAQ, this is redundant with
TypeScript, and they're not wrong. This will save us from needing to
specify globals in two different places which will be nice.
2020-10-19 02:42:28 -07:00
Annika
7e188dee1c
Battlesearch: Fix typo 2020-10-16 14:29:53 -07:00
Annika
9aa837b9df
ProcessManager: Support timing out queries (#7502) 2020-10-16 02:56:02 -07:00
Annika
7c23f786f8
Modlog viewer: Improve IP handling (#7498)
- prevents non-global roomstaff from seeing IPs in modnotes or legacy modlogs
- makes modnoted IP addresses link to whatismyipaddress.com
2020-10-09 16:04:48 -07:00
Mia
13aa1d44cd
Battlesearch: Make turn limit optional (#7468) 2020-10-06 10:40:20 -07:00
Annika
aeaa05bd5a Modlog: Minor fixes
yes another modlog commit from me!
this time, it's making sure that note searches based on user IDs actually get toID() called on them, and fixing some HTML escaping issues
2020-10-02 20:59:42 -07:00
Annika
0dd6e1c0d4
Modlog viewer: Fix formatting of search explanation 2020-10-02 10:00:50 -07:00
Annika
0cf43e7461
Modlog: Default to searching all fields (#7449) 2020-10-01 09:36:36 -07:00
Annika
fa571d3b4b
Modlog viewer: Update regex for /ml roomid, search (#7444) 2020-09-30 12:32:15 -07:00
Annika
212b35b2fa
Modlog: Support exact user searches (#7443) 2020-09-30 11:22:49 -07:00
Guangcong Luo
3d68248efa Update to latest eslint
We're skipping two major typescript-eslint versions, so there are a
bunch of changes here, including:

- it's catching a lot of things it didn't catch in the past, for
  reasons unclear to me

- no-unused-vars has to be explicitly disabled in global-types now

- a lot of `ts-ignore`s were never necessary and have been fixed

- Crashlogger can now handle being thrown things that aren't errors.
  This has never been a problem in the past, but to satisfy TypeScript
	we might as well not die in a fire on the off chance someone tries to
	`throw null` or something.
2020-09-29 15:28:08 -07:00
Mia
a9645d29f1 Modlog: fix defaulting to roomid in /modlog 2020-09-28 18:04:57 -05:00
Mia
1eb2c77208
Modlog viewer: Improve UI (#7436) 2020-09-28 16:01:05 -07:00
Annika
f2ef093493
Modlog: Parse entries in the child process (#7435) 2020-09-28 12:04:06 -07:00
Annika
f1b4e3d43a
Modlog: Refactor to use ModlogEntry objects (#7403) 2020-09-28 11:06:30 -07:00
Mia
2db1922e87
Battlesearch: Improve phrasing and UI (#7396) 2020-09-19 16:22:15 -07:00
Mia
6f28e459f3
Battlesearch: Support searching for multiple users and searching months (#7382) 2020-09-18 07:44:33 -07:00
Mia
44fc0123ad
Chat: Refactor CommandContext and PageContext to use ErrorMessage more (#7234) 2020-09-06 00:15:16 -07:00
Annika
f4081991d3
Modlog viewer: Fix more button for shared modlogs (#7320) 2020-09-05 20:44:40 -07:00
Mia
8f8e197d9c
Helptickets: Stop modlogging to Help room (#7070) 2020-09-05 18:25:20 -07:00
Guangcong Luo
e14485656f Implement a basic /hiderank
This doesn't really have any nice-to-have automatic restoration
features but it should be all the important parts.

`user.group` no longer exists, and has been replaced with
`user.tempGroup`, which now applies both to temporary promotions of
unregistered users, as well as temporary hidden ranks of auth.
2020-08-22 07:20:26 -07:00
Annika
4cbf905ec8
Modlog: Fix exact searches and improve hotpatching (#7211) 2020-08-15 14:10:46 -07:00
Mia
deeed6c789
Remove sim/ and data/'s globals (#7091) 2020-08-07 06:44:15 -07:00
Annika
f34ffa9e74
Refactor Modlog into one file (#7127) 2020-08-06 00:39:37 -07:00