Commit graph

4472 commits

Author SHA1 Message Date
pajlada
584a7c86fc
Move clang-tidy to its own CI job (#4996)
* Only run the `post-clang-tidy-review` if the `clang-tidy` build succeeded
2023-12-02 13:04:43 +00:00
pajlada
0fd4e8ffd6
fix: typo in debug log for hotkeys (#4997) 2023-12-02 12:35:55 +00:00
nerix
c4c94473ae
Do bounds-checking on more windows (#4797)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2023-12-02 12:56:03 +01:00
Mm2PL
40f83af8bf
Merge branch 'master' into feature/image_uploader_ui 2023-12-02 02:44:19 +01:00
Mm2PL
ccd88b8bf1
Dont need this 2023-12-02 02:43:35 +01:00
Mm2PL
05aa4e017b
try to fix migration 2023-12-02 02:39:47 +01:00
Mm2PL
a56d6b084c
Make it repaint after downloading the image 2023-12-02 02:32:50 +01:00
Mm2PL
6223e3461e
Remove margins on table button 2023-12-02 01:40:41 +01:00
Mm2PL
097eb7ba79
Move Image Uploader settings to the new tab 2023-12-02 01:35:37 +01:00
Mm2PL
a0551ce41a
changelog 2023-12-02 01:27:35 +01:00
Mm2PL
74f1789fbb
Get rid of unused deleted property 2023-12-02 01:25:07 +01:00
Mm2PL
ed3e2ecb90
Add settings page and model for uploaded images 2023-12-02 01:21:56 +01:00
Mm2PL
f097caa585
remaining refactor changes 2023-12-02 01:21:33 +01:00
Mm2PL
806ea6c1f6
Add ImagePtrItemDelegate class to display images in a table 2023-12-02 01:20:12 +01:00
Mm2PL
c989759153
Add an icon for the settings page 2023-12-02 01:18:16 +01:00
Mm2PL
6e8af5e3b3
Move ImageUploader into a directory, refactor out UploadedImage
and all its template implementations
2023-12-02 00:44:25 +01:00
Mm2PL
d7a888d651
Use pajlada::Settings for uploaded images (includes migration) 2023-12-01 16:54:23 +01:00
pajlada
e327ed4166
Update magic_enum from v0.9.3 to v0.9.5 (#4992)
* 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
Mm2PL
6d02bb7304
Make emote completion a lot smarter (#4987) 2023-11-28 10:06:35 +00:00
pajlada
a240797b68
Add support for sound backends & some miniaudio changes (#4978)
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 (#4979)
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
pajlada
5b741a8eb6
refactor: Remove Emoji's EmojiMap with a vector (#4980) 2023-11-26 18:17:58 +00:00
pajlada
9f9739836f
ci: Build benchmarks on Ubuntu 22.04 runner (#4982) 2023-11-26 16:54:33 +00:00
nerix
e8673fc52a
fix: deadlock and use-after-free in tests (#4981)
* fix: use-after-free in settings

* refactor: put seventv api into a singleton

* chore: add changelog entry

* Add warning for when the 7TV load fails
2023-11-26 15:54:19 +00:00
nerix
854032fce9
fix: Only display spaces between words in reply context (#4977) 2023-11-26 11:15:35 +01:00
Mm2PL
1a685d7bd0
Finish renaming Viewer list to Chatter list (#4974) 2023-11-20 17:59:04 +00:00
Mm2PL
fbc8aacabe
Refactored the Image Uploader feature. (#4971)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2023-11-19 11:05:30 +00:00
Wissididom
7898b97fc2
feat: Run tests on Windows & macOS in CI (#4970) 2023-11-18 15:13:27 +01:00
kornes
0bdcaae5d1
Fix: dont select mod buttons at triple click (#4961) 2023-11-18 11:39:10 +00:00
nerix
3d9db1d528
refactor: Ignores and Replacements (#4965)
Fixes a freeze from a bad regex in _Ignores_
Fixes some emotes not appearing when using _Ignores_
Fixes lookahead/-behind not working in _Ignores_
2023-11-17 17:39:45 +01:00
Mm2PL
d9cdc88061
Remove unused parseMessage function (#4968) 2023-11-17 14:46:35 +01:00
dependabot[bot]
5693927f42
chore(deps): bump lib/miniaudio from 3b50a85 to 4a5b74b (#4967)
Bumps [lib/miniaudio](https://github.com/mackron/miniaudio) from `3b50a85` to `4a5b74b`.
- [Commits](3b50a854ec...4a5b74bef0)

---
updated-dependencies:
- dependency-name: lib/miniaudio
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-16 08:53:44 +01:00
dependabot[bot]
49ae5a8ecb
chore(deps): bump actions/github-script from 6 to 7 (#4964)
Bumps [actions/github-script](https://github.com/actions/github-script) from 6 to 7.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 12:53:10 +01:00
nerix
6faf63c5c4
refactor: Remove Outcome from network requests (#4959) 2023-11-12 14:51:51 +01:00
pajlada
95620e6e10
fix: Split input sometimes not accepting focus (#4958) 2023-11-11 10:58:20 +00:00
pajlada
244efaa0a9
fix: /banid and /ban id: performing duplicate bans (#4957) 2023-11-10 18:46:28 +00:00
pajlada
423829be43
feat: /unban and /untimeout by id (#4956) 2023-11-10 19:18:20 +01:00
dependabot[bot]
8ca11ed6a5
chore(deps): bump lib/miniaudio from b19cc09 to 3b50a85 (#4955)
Bumps [lib/miniaudio](https://github.com/mackron/miniaudio) from `b19cc09` to `3b50a85`.
- [Commits](b19cc09fd0...3b50a854ec)

---
updated-dependencies:
- dependency-name: lib/miniaudio
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 08:25:16 +01:00
kornes
c8e03b4ad7
Dont invalidate paint buffer when selecting (#4911) 2023-11-08 21:19:18 +00:00
pajlada
fcc5f4b3df
feat: Allow id: prefix in /ban and /timeout (#4945)
ban example: `/ban id:70948394`, equivalent to `/banid 70948394`
timeout example: `/timeout id:70948394 10 xd`
2023-11-08 21:42:06 +01:00
dependabot[bot]
68817fa1a1
chore(deps): bump lib/miniaudio from 3898fff to b19cc09 (#4948)
Bumps [lib/miniaudio](https://github.com/mackron/miniaudio) from `3898fff` to `b19cc09`.
- [Commits](3898fff8ed...b19cc09fd0)

---
updated-dependencies:
- dependency-name: lib/miniaudio
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-08 18:25:23 +00:00
pajlada
f89642ec66
refactor: Move all commands to their own files (#4946) 2023-11-08 18:57:09 +01:00
iProdigy
d40b0a6c1d
fix: avoid reward redemption crash via buffer refactor (#4949)
Co-authored-by: nerix <nero.9@hotmail.de>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2023-11-08 18:14:48 +01:00
Mm2PL
f943f70634
Add support for opening usercards by ID (#4934)
Co-authored-by: nerix <nerixdev@outlook.de>
2023-11-06 20:42:24 +01:00
iProdigy
5209e47df1
Improve reply popup after thread update (#4923)
Co-authored-by: nerix <nero.9@hotmail.de>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2023-11-05 16:25:26 +00:00
iProdigy
9dd83b040b
feat: /reply command now replies to the latest message of the user (#4919)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2023-11-05 16:30:15 +01:00
pajlada
1d6c9ed279
feat: forward logging from miniaudio (#4836)
These logs are posted to the `chatterino.sound` category
miniaudio debug -> debug
miniaudio info -> debug
miniaudio warning -> warning
miniaudio error -> warning
2023-11-05 10:51:57 +00:00
nerix
7d145e3577
Disable clickable sections in tables (#4913) 2023-11-04 18:42:13 +00:00
nerix
5325c7b826
Fix tooltips appearing too large and/or away from the cursor (#4920) 2023-11-04 18:13:34 +00:00
Alex Baines
879a63e6f3
Support using follower emotes outside of channel if subbed (#4922)
If we also have a subscriber emote set for a channel, then don't treat
a follower emote set as local to that channel.

Co-authored-by: iProdigy <8106344+iProdigy@users.noreply.github.com>
2023-11-04 17:45:18 +00:00