1
0
Fork 0
mirror of https://github.com/Chatterino/chatterino2.git synced 2024-11-21 22:24:07 +01:00
Commit graph

399 commits

Author SHA1 Message Date
nerix
56fa973d7c
fix: prefer reporting error over status for 200 OK () 2024-05-05 19:37:22 +02:00
pajlada
eafcb941f5
Release v2.5.1 () 2024-04-28 11:36:58 +02:00
nerix
dfa929e207
fix: use the full url when resolving () 2024-04-21 19:24:11 +00:00
pajlada
3aead09339
Release v2.5.0 () 2024-04-21 11:17:25 +02:00
Maverick
7c97e6bcc7
Change order of query parameters of Twitch Player URLs. ()
This ensures that it doesn't "fake redirect".

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2024-04-18 15:49:50 +00:00
pajlada
25a69fd10e
Release v2.5.0-beta.1 () 2024-04-07 12:03:14 +02:00
nerix
2ea24c1a9d
fix: use deleteLater for network objects and order them () 2024-04-03 21:08:52 +02:00
Maverick
b6d75fd867
feat: add more items in macOS menu bar ()
Co-authored-by: pajlada <rasmus.karlsson+github@pajlada.com>
2024-03-29 19:50:43 +00:00
nerix
ed20e71db4
refactor: adapt magic_enum to Qt () 2024-03-23 11:22:42 +00:00
nerix
044d457d20
fix: create NetworkManager statics in init() () 2024-03-23 10:56:42 +00:00
askepticaldreamer
46c5609736
feat: Warn for commands with duplicate triggers ()
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2024-03-17 11:46:58 +00:00
pajlada
2361d30e4b
fix: compare settings before updating them () 2024-03-09 15:03:26 +00:00
Mm2PL
5c51ec8382
Live streams that are marked as reruns now mark a tab as yellow instead of red () 2024-02-18 16:22:53 +00:00
Mm2PL
8e9aa87a08
Add a new Channel API for experimental plugins feature () 2024-02-03 19:12:00 +01:00
nerix
954e19817c
fix: more MSVC warnings () 2024-01-30 17:28:36 +01:00
nerix
5cd4c51f07
chore: specialize Atomic<std::shared_ptr<T>> () 2024-01-26 21:55:30 +01:00
nerix
7951af6104
feat: add command line argument to select/add tab with a channel () 2024-01-20 12:20:40 +00:00
pajlada
718696db53
refactor: Un-singletonize Paths & Updates () 2024-01-16 20:56:43 +00:00
pajlada
7f935665f9
refactor: Remove the NullablePtr class () 2024-01-15 21:30:34 +00:00
pajlada
93e2bc18fa
refactor: move Network files from src/common/ to src/common/network/ () 2024-01-15 21:28:44 +01:00
pajlada
5b6675abb4
refactor: fix clang-tidy auto*, const&, and curly braces () 2024-01-14 17:54:52 +01:00
nerix
fa5648fd9a
refactor: NetworkPrivate ()
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2024-01-09 00:37:15 +01:00
pajlada
65b1ed312c
refactor: Logging (chat logger) ()
It's no longer a singleton

It's now a unique_ptr that dies together with the Application

* Add getChatLogger to EmptyApplication

* unrelated change: Access Application::instance statically

* fix logging init order

* Add changelog entry
2023-12-31 12:51:40 +00:00
iProdigy
036a5f3f21
feat: show restricted chats and suspicious treatment updates ()
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2023-12-31 10:44:55 +00:00
pajlada
d085ab578f
refactor: Make Args less of a singleton ()
This means it's no longer a singleton, and its lifetime is bound to our application.
This felt like a good small experiment to see how its changes would look
if we did this.
As a shortcut, `getApp` that is already a mega singleton keeps a
reference to Args, this means places that are a bit more difficult to
inject into call `getApp()->getArgs()` just like other things are
accessed.
2023-12-29 15:40:31 +01:00
nerix
25add89b14
feat: Add crash recovery on Windows () 2023-12-24 15:38:58 +01:00
nerix
66f4480371
fix: Fixed some compiler warnings ()
* fix(C4101): unreferenced local variable

* fix(C4189): variable initialized but not referenced

* fix(C4305): narrowing from double to float

* fix(C4457): declaration hiding function parameter

* fix(C4456): shadowing declaration

* fix(C4996): remove deprecations

* chore: add changelog entry

* fix: Remove more unused variables

* fix: removed unused lambda captures

* Update changelog entry

---------

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2023-12-16 11:24:28 +00:00
iProdigy
13dc306506
perf: query fewer historical messages on reconnects ()
Co-authored-by: Ruben Anders <ruben.anders@robotty.de>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2023-12-09 19:46:30 +01:00
Mm2PL
c3d3903b6f
feat: add --safe-mode command line option ()
This ensures the settings button isn't hidden, and disables plugins from being loaded to make sure the user can always recover from messing things up
2023-12-05 17:37:42 +00:00
iProdigy
44abe6b487
feat: add channel for messages caught by AutoMod ()
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2023-12-03 22:07:30 +00:00
pajlada
e327ed4166
Update magic_enum from v0.9.3 to v0.9.5 ()
* Fix include path for magic enum
* Update .clang-format to ensure magic enum is caught as a third party library
2023-12-01 15:03:04 +01:00
pajlada
a240797b68
Add support for sound backends & some miniaudio changes ()
Miniaudio now runs everything in a separate audio thread - this uses boost::asio's io_context.
Our miniaudio implementation is now also much simplified - it does not use its own resource manager or device. This might end up being stupid if sounds don't work after changing output device or locking or w/e
I've made the sound controller into an interface, meaning we can support multiple sound backends in Chatterino. I've added a Null sound backend that disables all sound. A QMediaPlayer or QSoundEffect or Qt backend could be added.
Miniaudio might idle & disable the device now too, not sure

I've added some unrelated changes in the form of a new setting type, and a new setting page helper function for it, which will hopefully make adding new enum settings easier in the future.
This setting stores its value as a string instead of an int, and uses magic_enum to convert between that string value and its enum value.
2023-11-26 22:06:12 +01:00
pajlada
1f09035bfb
refactor: common/Credentials ()
Use full path in includes
Sort includes
Move anon namespace out of chatterino namespace
Use auto * where possible
Disable convert-member-function-to-static check for all member functions
Don't use else after return
Removed empty constructor
Replace use of `boost::variant` with `std::variant`

Co-authored-by: nerix <nerixdev@outlook.de>
2023-11-26 18:38:31 +00:00
Mm2PL
fbc8aacabe
Refactored the Image Uploader feature. ()
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2023-11-19 11:05:30 +00:00
nerix
6faf63c5c4
refactor: Remove Outcome from network requests () 2023-11-12 14:51:51 +01:00
pajlada
5c0219c245
refactor: Use override instead of virtual where possible () 2023-10-25 18:13:48 +02:00
nerix
b975900043
refactor: Toast ()
* Fixes a bug where avatars weren't loaded on fresh installations of Chatterino.
* Avatars now update every two weeks.
* Removes misleading `DownlaodManager` (now part of `Toasts.cpp`).
* Refactors usage of WinToast to be easier to read.
* Added version to AUMI.
* Removes manual `QString` → `std::wstring` conversions.
* Removes uses of implicit ASCII casts in `Toasts.cpp`, meaning it can be compiled with `QT_NO_CAST_FROM_ASCII`.
2023-10-17 01:50:18 +00:00
pajlada
fec45889a8
Replace boost::optional with std::optional () 2023-10-08 16:50:48 +00:00
pajlada
38a7ce6954
Fix qtkeychain include for Qt6 users () 2023-10-03 15:59:34 +00:00
pajlada
467e36767c
Update Nightly to 2.4.6 and get qt6-related-changes from 2.4.6 ()
* Update Nightly to 2.4.6 and get qt6-related-changes from 2.4.6

* always enable precompiled headers on windows
2023-10-01 11:19:26 +02:00
Daniel Sage
37009e8e6b
Consolidate input completion code in preparation for advanced completion strategies ()
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2023-09-24 12:17:17 +00:00
pajlada
8fe3af3522
Fix signal connection nodiscard warnings () 2023-09-16 11:52:51 +00:00
pajlada
d4558b5fe5
Fix all warnings from the cppcoreguidelines-pro-type-member-init clang-tidy check () 2023-09-09 11:11:19 +00:00
pajlada
877a4e05fa
Remove boost::noncopyable use & boost::random dependency ()
The use has been removed from the following files:
* Atomic.hpp
* SignalVector.hpp
* Benchmark.hpp
* IvrApi
* LoggingChannel.hpp
* Singleton.hpp
* Image.hpp
* PrecompiledHeader.hpp
* Message.hpp
* MessageElement.hpp
* MessageLayout.hpp
* MessageLayoutElement.hpp
* Fonts.hpp (just include)
2023-09-09 10:23:20 +00:00
pajlada
7cb04bf58b
Remove BaseSettings & merge ConcurrentSettings () 2023-08-28 17:51:28 +02:00
pajlada
05a72d335a
Release v2.4.5 ()
* Update documentation for Ubuntu PPA & appdata.xml updates
2023-08-26 12:33:01 +02:00
nerix
e7281b033e
Show historic timeouts and bans in usercard ()
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2023-08-13 10:00:52 +00:00
Sam Heybey
69c983e0d9
Add support for opening links in incognito mode on Linux & BSD ()
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2023-08-06 15:57:01 +02:00
nerix
71594ad0d8
Remove getApp and getSettings calls from Message-Rendering ()
* refactor: remove singletons from message rendering

* chore: add changelog entry

* Disable the `cppcoreguidelines-avoid-const-or-ref-data-members` clang-tidy check

* auto *app

* Selection is a struct, not a class

* Use ChannelView's `signalHolder_` instead of `channelConnections_`

* Remove `applySettings` step, instead just connect & set each setting individually

* rename & constify some context values

* Handle empty "last message color" setting value better (as it was
        originally in this pr before I removed that change :-)

* unrelated mini refactor cleanup

* let painSelection handle size_t instead of int

* Add some more comments to the MessageLayoutContext structs

---------

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2023-07-30 12:52:39 +00:00
nerix
c8f390d558
Remove dead macro code () 2023-07-18 20:59:17 +00:00