Commit graph

1325 commits

Author SHA1 Message Date
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 4740d1d574
fix sidebar buttons, channel loading, parting in ctxt menu 2022-05-23 23:35:28 -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 aace97056b
progress before vue 3 2022-05-21 17:27:51 -07:00
Max Leiter 4c98b81e35
some test fixes 2022-05-21 11:56:03 -07:00
Eric Nemchik b798cfdc64
Ts more configs again (#4567)
* tsconfig comments
also recreate tsconfig base from tsc --init
* Add eslint-define-config
Rewrite eslintrc
* More tsconfig adjustments
* Move bad tsRules to separate var
2022-05-21 11:56:03 -07:00
Max Leiter a06bc904ae
Add src/dist to prettier/eslint ignores, apply lint, webpack adjustments 2022-05-21 11:56:01 -07:00
Eric Nemchik 1da8291790
Cleanup configs (WIP) (#4565) 2022-05-21 11:55:24 -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 bdf0fcdbcb
client, some tests, eslint 2022-05-21 11:49:33 -07:00
Max Leiter 0ce89950e9
constants.js -> ts, more config cleanup 2022-05-21 11:49:28 -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 a7b9aa4535
rebase on improved configs 2022-05-21 11:49:25 -07:00
Max Leiter 85507cee7d
progress? 2022-05-21 11:47:55 -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 5bb94d6428
ts progress 2022-05-21 11:47:49 -07:00
Max Leiter 291ac3e903
[ts-migrate][src] Rename files from JS/JSX to TS/TSX
Co-authored-by: ts-migrate <>
2022-05-21 11:47:11 -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 70fae2ee3f
[ts-migrate][src] Init tsconfig.json file
Co-authored-by: ts-migrate <>
2022-05-21 11:47:10 -07:00
Max Leiter facde53b09
[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 53f0ad947b
[ts-migrate][src] Init tsconfig.json file
Co-authored-by: ts-migrate <>
2022-05-21 11:47:09 -07:00
Max Leiter 7640ef71d0
[ts-migrate][src] Init tsconfig.json file
Co-authored-by: ts-migrate <>
2022-05-21 11:47:09 -07:00
Max Leiter 8909d71f95
[ts-migrate][src] Init tsconfig.json file
Co-authored-by: ts-migrate <>
2022-05-21 11:47:09 -07:00
Max Leiter 01d640db47
ts progress 2022-05-21 11:47:08 -07:00
Eric Nemchik 2e3d9a6265
Fix yarn dev (#4574)
* Fix yarn dev and yarn test
2022-05-21 11:45:42 -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
Reto Brunner c8115e22ac enable znc/playback even without message storage
Fixes: https://github.com/thelounge/thelounge/issues/4464
2022-04-28 17:02:36 +02:00
Reto Brunner aa7db1e7f7 Merge pull/4524: Add prefetchTimeout 2022-04-27 18:22:49 +02:00
Reto Brunner c9c8cadb1a Merge pull/4477 Preserve client certificate 2022-04-27 17:58:09 +02:00
xnaas 57b1e51e9f
set 'video/quicktime' to 'video/mp4' (#4495)
`video/quicktime` only plays in Firefox and Safari.
`video/mp4` plays in Firefox, Safari, and Chromium-based browsers.
2022-04-11 17:50:00 -07:00
Val Lorentz 20ed3e6dc5
sqlite: Escape '%' and '_' in search queries. (#4487)
I picked '@' arbitrarily, it doesn't matter much.
I just don't like '\' because it needs to be escaped itself in the JS code,
which is annoying.
2022-04-11 17:49:13 -07:00
Reto e4840b4d75
Plugins: include pre-releases in compatibility lookup (#4506)
Semver doesn't treat pre-release versions as upgrades, meaning >4.3.0 isn't satisfied
by 4.3.1-rc.1.
For the purpose of TL plugins however, we are only interested in the semantic version and
expect that rc's adhere to the compatibility promise.
2022-04-11 17:47:51 -07:00
Reto d7bba325a7
Fix user file permissions on create (#4507)
User files contain secrets and should be protected.
Chances are that the user folder can be protected as well,
so let's do that if TL is creating the folder.
2022-04-11 17:47:22 -07:00
Reto 815319810c
cli: don't error if the user folder doesn't exist (#4508)
The user folder gets created on demand, thelounge list should not
fail if the folder doesn't exist.
This just means that no users are present, so report that instead.
2022-04-11 17:46:29 -07:00
Reto 37d7de7671
Kill TL when ident can't start up (#4512)
Fixes: https://github.com/thelounge/thelounge/issues/4509
2022-04-11 17:45:36 -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
Reto Brunner f440b67dbe Change sqlite3 module name to the actual name
It leads to confusion as the module is named "sqlite3", not
"node-sqlite3"
2022-03-12 16:39:03 +01:00
Val Lorentz ae7020f569 Do not remove client certificate, even when TLS is disabled
It does not really make sense to remove it, as it can lock someone out of
their account, just by temporarily disabling TLS.
2022-03-05 11:20:57 +01:00
Max Leiter 551f85ea51
Fix /collapse and /expand from interacting with the server in public mode (#4488)
Reported by xnaas on IRC
2022-02-18 12:21:17 -08:00
Val Lorentz 66455f2c40
Show a nicer error in Chan.loadMessages() when network is misconfigured (#4476)
Show a nicer error in Chan.loadMessages() when network is misconfigured

ie. an actual error message instead of crashing on a `null` value.
2022-02-16 16:27:41 -08:00