Commit graph

409 commits

Author SHA1 Message Date
Max Leiter ade6269de9
Add more socketio types 2022-05-31 14:47:55 -07:00
Max Leiter 4f41d80b88
Replace as string with String constructor 2022-05-31 14:47:54 -07:00
Max Leiter afba008363
Fix package commands by adding .argument() call 2022-05-31 13:44:54 -07:00
Max Leiter cff9209a25
fix joining channels from net form(?), major progress in tests 2022-05-31 12:46:55 -07:00
Max Leiter a1659e1c02
add @babel/plugin-transform-runtime, fix scrolling on chan switch/history loading 2022-05-30 21:10:11 -07:00
Max Leiter a7344b8a4b
Fix uploading on the client, add init socket type 2022-05-30 18:06:14 -07:00
Max Leiter 9a57e218b4
Fix image viewer, reset parse typings for now, fix loading messages on chan switch 2022-05-30 12:33:32 -07:00
Max Leiter 52c13f49c1
progress 2022-05-23 02:27:10 -07:00
Max Leiter f37d82dd19
vue 3 progress 2022-05-23 00:44:01 -07:00
Max Leiter a06bc904ae
Add src/dist to prettier/eslint ignores, apply lint, webpack adjustments 2022-05-21 11:56:01 -07:00
Max Leiter 1d2dc40985
fix yarn build and start 2022-05-21 11:55:22 -07:00
Max Leiter a607924a2b
yarn dev running, need to address type errors 2022-05-21 11:53:37 -07:00
Max Leiter 6de13b6ff8
progress moving types out of types/ 2022-05-21 11:50:55 -07:00
Max Leiter 2693a766f1
ts-node building; for some reason it doesn't read the base config 2022-05-21 11:49:36 -07:00
Max Leiter ed02acfad4
more tests, eslint work 2022-05-21 11:49:34 -07:00
Max Leiter 60f2532e81
tsconfig changes 2022-05-21 11:49:27 -07:00
Max Leiter f52aa10004
Fix some type errors, cleanup tsconfigs 2022-05-21 11:49:27 -07:00
Max Leiter 26cfa8d159
progress? 2022-05-21 11:47:54 -07:00
Max Leiter 42160354b8
progress? 2022-05-21 11:47:54 -07:00
Max Leiter d164784d8b
[ts-migrate][src] Init tsconfig.json file
Co-authored-by: ts-migrate <>
2022-05-21 11:47:11 -07:00
Max Leiter e2362c836a
[ts-migrate][src] Rename files from JS/JSX to TS/TSX
Co-authored-by: ts-migrate <>
2022-05-21 11:47:10 -07:00
Max Leiter 01d640db47
ts progress 2022-05-21 11:47:08 -07:00
Reto d4cc2dd361
Refactor config out of Helper (#4558)
* Remove config from Helper

Helper is the usual util grab bag of useful stuff.
Somehow the config ended up there historically but
structurally that doesn't make any sense.

* Add cert folder to prettier ignore file
2022-05-01 12:12:39 -07:00
Emily Strickland 3a84290314
Apply fixes suggested by Prettier to fix CI 2022-04-09 19:40:38 +00:00
Emily Strickland ff886846a8
Warn about unset prefetchTimeout, default to 5000 ms 2022-04-09 00:19:08 +00:00
Emily Strickland 3796485217
Configure link fetch to use prefetchTimeout
This change modifies the `fetch` function in `link.js` to use the new `prefetchTimeout` config setting introduced in the previous commit. This allows configuring the length of the timeout.

I've added a comment here to indicate milliseconds are the unit in use, since otherwise that would no longer be obvious from the code without looking at the default value (which could change).
2022-04-08 22:49:20 +00:00
xnaas 9dfb2a3fdb
Upload m4a as audio/mp4; embed audio/mp4, x-flac, and x-m4a (#4470)
* 'audio/x-m4a' should be 'audio/mp4'
* add handling for x-flac and x-m4a
2022-02-11 17:42:59 -08:00
Max Leiter 4be9a282fa
Add the option to mute channels, queries, and networks (#4282)
Co-authored-by: Reto <reto@labrat.space>
2022-02-10 17:56:17 -08:00
Val Lorentz 1e3a7b1250 Emit a message for SASL loggedin/loggedout events
Closes GH-3921
2022-02-10 22:30:04 +01:00
Reto d228a8c4f4
Bump most deps (#4453) 2022-02-09 15:27:34 -08:00
Reto Brunner 0d209fce09 Clear obsolete mentions upon channel part
Currently, the mentions only track the chanID and MsgID.
However, when we part a channel the chanID becomes orphaned.

Considering that mentions from a parted channel probably aren't
that relevant, let's automatically clear them when we part.
Should the user really want to look at them again, they can re-join
the channel and get the scroll back that way.
2021-12-29 16:46:16 +01:00
Reto Brunner 1953e03253 Add RPL_UMODEIS msg handler 2021-12-06 07:24:21 +01:00
sfan5 5f7ec9e8da
Don't download image contents during prefetch if not needed (#4363) 2021-11-22 16:59:33 -08:00
Reto 8fcd079204
Properly track user modes for context menu (#4267)
* properly track user modes for context menu

The RPL_ISUPPORT response contains a PREFIX element, which not only tracks the
prefix chars ("@", "+" etc) but also their corresponding mode chars (+O, +v)
This commit changes the context menu to not rely on a hardcoded list but rather
user the one given in the prefix response by the server.

Co-authored-by: Max Leiter <maxwell.leiter@gmail.com>
2021-07-21 00:30:07 -07:00
JeDaYoshi 16177eb9f4
Move server nick code to handleMessage 2021-07-03 21:06:16 +00:00
JeDaYoshi 6439afd5c6
Fix nick-less PRIVMSGs from servers 2021-07-03 15:27:08 +00:00
Bradley Shaw a2d23810bf
Differentiate WALLOPS from NOTICE 2021-06-22 11:50:22 +01:00
Bradley Shaw 38c0c343c3
Send server->channel notices to the relevant channel 2021-06-19 19:49:04 +01:00
Max Leiter 58217cffb1
Merge pull request #4219 from TheDecryptor/jpegxl_support
Add support for JPEG XL image previews
2021-05-25 21:36:37 -07:00
Alex Jones dbf6ff064b Add support for JPEG XL mimetype 2021-05-08 18:10:45 +10:00
Nachtalb 0bfcd955e3
Improve inline audio file support
Tested on latest Chromium / Firefox. In case of .m4a files they want audio/x-m4a and not audio/m4a, in case of .flac files they want audio/flac and not audio/x-flac. The module we useed to detect the types however detects them only as audio/x-m4a and audio/x-flac as they are not offical IANA supported mime types (not in IANA spec == "x-" prefix): https://www.iana.org/assignments/media-types/media-types.xhtml Though flac is not in the IANA spec many programs such as the file command (https://man7.org/linux/man-pages/man1/file.1.html) and Chromium (flac) / Firefox (x-flac and flac) support audio/flac only or both.
2021-05-06 02:02:23 +02:00
Reto Brunner 7c17662fea Add prefetchMaxSearchSize to override limit for link previews
YouTube puts the opengraph tags needed for the preview after ~300KB in the body
instead of the beginning of the <head> tag.
Instead of hardcoding the value, allow the server admin to set the policy as
they prefer.
2021-02-27 00:10:53 +01:00
Yorick Bosman 651a7ac2e9 Add extended join information to join message. 2020-11-19 00:25:28 +01:00
Pavel Djundik 3fde2aa7b9 Always use multi-prefix modes
Fixes #323
2020-09-01 11:45:08 +03:00
Pavel Djundik ac842108f3
Merge pull request #4047 from thelounge/xpaw/avif
Detect `image/avif` as an image
2020-08-24 11:54:14 +03:00
Pavel Djundik c89dcca449 Detect image/avif as an image 2020-08-23 12:51:52 +03:00
Pavel Djundik 1e38262d69 Add missing return 2020-08-21 10:18:41 +03:00
Pavel Djundik 9e13694b21 Skip video/audio embeds if og:type exists but does not specify it 2020-08-21 10:16:54 +03:00
Jay2k1 b97b145df1 add highlight exceptions 2020-08-19 00:00:56 +02:00
Pavel Djundik 5861ffadf2 Increase unread counter for HELP and INFO messages 2020-08-14 14:26:03 +03:00