Commit Graph
100 Commits
Author SHA1 Message Date
Gabe Kangas 734a5a45ef Non-user chat messages should always render as visible 2021-12-15 17:28:56 -08:00
Gabe KangasandGitHub e6ed6a6849 Don't run CodeQL for dependencies 2021-12-13 10:14:56 -08:00
Gabe Kangas 70027d058f Fix chat react state getting overwritten. Closes #1529 2021-12-12 00:11:38 -08:00
Gabe Kangas f3a8266c99 Fix some chat event types breaking.
- User moderator message was no longer showing
- Name change event was breaking chat
2021-12-11 16:44:39 -08:00
Gabe Kangas c3f9f24624 Fix moderator shield showing incorrectly.
It was being shown for all messages if you're a moderator, instead of
just being shown on messages from moderators.
2021-12-11 16:03:24 -08:00
Gabe Kangas 559c85856f Display moderator status in chat messages 2021-12-09 14:06:48 -08:00
Gabe Kangas 7488dfec37 Optimize images 2021-11-30 17:52:12 -08:00
Gabe Kangas 99f19395e6 Use moderator icon with no background 2021-11-30 15:54:29 -08:00
Gabe Kangas ba906e2609 Give transcoder a larger codec buffer size.
To give the codec a bit more breathing room with compression to maybe
improve possible blockiness in high movement scenes.
2021-11-30 13:40:09 -08:00
Gabe KangasandGitHub 83eb9229ad Auto updater APIs (#1523)
* APIs for querying and executing an update in place.

For #924

* Use the process pid to query systemd for status

* Use parent pid and invocation ID to guess if running from systemd

* Stream cmd output to client + report errors

* Update comment to refer to INVOCATION_ID
2021-11-30 13:15:18 -08:00
Gabe Kangas b052fa410b Update tests 2021-11-26 21:05:18 -08:00
Gabe Kangas 90b1c8639f Reduce max complexity in linter 2021-11-26 20:55:58 -08:00
Gabe Kangas 73e58a7801 Refactor the offline clip handling.
More stable, reduced function complexity.
2021-11-26 20:55:31 -08:00
Gabe Kangas 3585340f1b Update test 2021-11-23 22:02:39 -08:00
Gabe Kangas 2fba39b7c7 Increase the number of segments in HLS playlist.
In testing this is not increasing latency and should improve stability
and reliability for some people, since there will be a larger back
buffer to work from.
2021-11-23 21:54:51 -08:00
Gabe Kangas 00019bf86b Allow for rendering a wider color range for messages 2021-11-17 17:56:52 -08:00
Gabe Kangas 7bf421e506 Add package files to support running fakeChat.js 2021-11-17 17:56:52 -08:00
Gabe Kangas 040c838881 Keep list of renderable message types and check against them 2021-11-17 17:19:58 -08:00
Gabe Kangas 1873151390 Disable caching of some GET apis. Closes #1530 2021-11-16 20:58:50 -08:00
Gabe Kangas d213c4a5b7 Only show moderator flag if you are a moderator. Fixes #1536 2021-11-16 17:59:59 -08:00
Gabe Kangas 7b1d24873e Only act on messages of type CHAT. Closes #1537 2021-11-16 17:46:28 -08:00
Gabe Kangas a14f174183 Fix browser name change test not actually changing name 2021-11-16 17:41:31 -08:00
Gabe KangasandGitHub 06f3644b11 Remove running codeql on a schedule
PRs and pushes only.
2021-11-13 18:49:57 -08:00
Gabe Kangas 32e72883a6 Tweak system message style 2021-11-13 17:44:23 -08:00
Gabe Kangas 5a6a4240ae Add new icons and tweak styles of moderator actions 2021-11-13 17:03:17 -08:00
Gabe Kangas 1e1e7f5cf4 Swap out follow platform icon 2021-11-13 16:48:40 -08:00
Gabe Kangas 97f806440e Make emoji small within the moderator info box. closes #1519 2021-11-12 21:42:50 -08:00
Gabe Kangas ae49e38eb9 Update admin dispatch event workflow 2021-11-12 16:44:38 -08:00
Gabe Kangas c9f8133507 Fix incorrect webhook payload being sent in the new SetMessageVisibilityEvent 2021-11-12 16:28:53 -08:00
Gabe Kangas 464ae9598b Add workflow for accepting bundle admin event 2021-11-12 10:02:04 -08:00
Gabe Kangas cae02f0902 No longer save chat ban state locally. Closes #1518 2021-11-11 15:39:56 -08:00
Gabe Kangas a33646e59f Add test to verify websocket events come through for changing message visibility 2021-11-11 14:27:45 -08:00
Gabe Kangas b9107eab12 Remove warning if geoip test is skipped 2021-11-11 12:43:21 -08:00
Gabe KangasandGitHub f78f1795fe Update stale issue message 2021-11-08 17:51:18 -08:00
Gabe Kangas b7865c92b5 Increase cache duration for resources 2021-11-07 19:53:01 -08:00
Gabe Kangas bb5ef1c5a1 Add words to workspace that spell checkers complain about 2021-11-03 16:28:05 -07:00
Gabe Kangas 676aa96f40 Add support for overriding embedded offline.ts. Closes #1507 2021-11-03 16:27:37 -07:00
Gabe Kangas 6ffa020c5f Updated linter threw new warnings. Fixed. 2021-11-03 09:43:47 -07:00
Gabe Kangas 4a52ba9f35 Update admin 2021-11-02 18:02:03 -07:00
Gabe KangasandGitHub b43c5e674e Rework how hiding messages works. (#1509)
* Rework how hiding messages work. Fixes #1350

* Remove unused function

* Revert to old event name to support previously saved webhooks
2021-11-02 18:00:15 -07:00
Gabe Kangas 3fdae7afb9 Don't codeql the static directory 2021-11-01 18:30:46 -07:00
Gabe Kangas c7d988c7dd Update admin 2021-11-01 18:16:01 -07:00
Gabe Kangas 47b84faefb Silence the browser test error 2021-11-01 00:40:39 -07:00
Gabe Kangas 4c37308e71 Update the HLS flags to adhere to more Apple recommendations 2021-11-01 00:20:08 -07:00
Gabe Kangas 5b38426e31 Tweak video bandwidth values to be < 10% over max 2021-10-31 23:00:11 -07:00
Gabe Kangas aeaf886855 Force the content type on hls playlists 2021-10-31 19:20:56 -07:00
Gabe Kangas fdc381c738 Test against Go 1.17 and drop 1.15 from the tests 2021-10-31 14:08:17 -07:00
Gabe Kangas cc2a9b8d8e Update admin 2021-10-28 17:36:06 -07:00
Gabe Kangas f10e240c18 Add forcePathStyle to s3 config test 2021-10-28 17:27:54 -07:00
Gabe Kangas 2600afa022 Update admin (update to Nextjs 12) 2021-10-26 22:54:31 -07:00
Gabe Kangas 6eefca53c8 Split out flags so all functions in main have access 2021-10-25 00:38:09 -07:00
Gabe Kangas bdce2e13bf Some linter cleanup 2021-10-25 00:31:45 -07:00
Gabe Kangas 3f4176d8d6 Replace panics with our logging framework 2021-10-25 00:15:58 -07:00
Gabe Kangas cd15661f08 Split out cli arg handling from main 2021-10-24 23:09:30 -07:00
Gabe Kangas a40312d733 Update admin 2021-10-24 19:31:06 -07:00
Gabe KangasandGitHub c4d2ffd834 Fix crash when an invalid inbound stream is disconnected. Closes #1439 (#1483) 2021-10-21 17:21:17 -07:00
Gabe Kangas b50540dfe9 Remove overly complex and specific docker-compose examples. Closes #1475 2021-10-21 11:48:21 -07:00
Gabe Kangas 04dc5b4451 Remove not useful, unhelpful and scary error 2021-10-21 11:31:19 -07:00
Gabe Kangas 112f6b6aaa Use bundled VHS with VideoJS and reinstall js libraries 2021-10-21 11:23:41 -07:00
Gabe Kangas fa46bd95aa Roll back to Snowpack 2.x.
This reverts commit 5cc041577c.
2021-10-21 11:14:28 -07:00
Gabe Kangas 5cc041577c Update to Snowpack 3 2021-10-21 10:23:24 -07:00
Gabe Kangas b691fe51fd Fix paths to fix linguist 2021-10-20 13:14:24 -07:00
Gabe Kangas 269475b423 npm run build to update js modules 2021-10-20 10:27:35 -07:00
Gabe Kangas 95211f51b3 Update admin 2021-10-13 19:53:10 -07:00
Gabe Kangas e58b378aea Update vendored files for linguist 2021-10-12 18:20:11 -07:00
Gabe Kangas 01b3489287 Fix some pathing and caching issues with admin controller 2021-10-12 12:48:10 -07:00
Gabe Kangas a58a1f67d6 Use webroot config value 2021-10-12 12:48:10 -07:00
Gabe Kangas 155eee81f0 Fix path to geoip db after test paths were changed 2021-10-12 12:48:10 -07:00
Gabe Kangas 8098304967 Mark static as vendored 2021-10-11 15:31:40 -07:00
Gabe KangasandGitHub ca9d5de192 Embed static resources (#1466)
* Replace pkger with go:embed for bundling the admin. Closes #844

* Remove references to pkged.go

* Point tests to use an updated version of Go

* Add comment to new exported function

* Cleanup

* Add a dummy pkged.go to alert people to stop using it.

* Add simple browser test to make sure the admin is available and renders

* Don't panic

* Embed bot/scraper metadata template.

Add browser test to validate the rendering of this template.

* Use embedded offline.ts segment

* Remove placeholder thumbnail as its unnecessary

* Remove copying the static directory into the release

* Cleanup
2021-10-11 15:04:16 -07:00
Gabe KangasandGitHub f0bd7d2528 Replace pkger with go:embed for bundling the admin. Closes #844 (#1464)
* Replace pkger with go:embed for bundling the admin. Closes #844

* Remove references to pkged.go

* Point tests to use an updated version of Go

* Add comment to new exported function

* Cleanup

* Add a dummy pkged.go to alert people to stop using it.

* Add simple browser test to make sure the admin is available and renders

* Don't panic
2021-10-11 14:56:00 -07:00
Gabe Kangas 3d1706496e Update + clean up old js module files 2021-10-11 14:37:41 -07:00
Gabe Kangas a6ba61079f Cap the number of renderable messages to increase performance 2021-10-09 20:59:45 -07:00
Gabe Kangas a57409db13 Get rid of IP address sanity check.
Allow the router to return any binding errors directly. Closes #1398
2021-10-09 13:23:48 -07:00
Gabe Kangas ac1cd9b901 Version constant bump 2021-10-08 21:00:29 -07:00
Gabe KangasandGitHub 7b097ccdd9 HLS tests for local and S3 storage. Closes #1457 (#1460) 2021-10-06 21:03:48 -07:00
Gabe KangasandGitHub fb1c919e59 Fix the destination path. Closes #1455 (#1456) 2021-10-05 16:45:39 -07:00
Gabe Kangas 09bb48b696 Bump dev version number 2021-09-29 16:36:30 -07:00
Gabe KangasandGitHub 22fbfec7d3 Create a simple PR template
Preparing for Hacktoberfest.
2021-09-29 13:50:28 -07:00
Gabe Kangas 02a5e9f9fa Bump API doc version 2021-09-22 17:35:18 -07:00
Gabe KangasandGitHub db22931fb5 Do not send user joined messages for already active users (#1416)
* Do not send user joined messages for active users

* Reduce from active within 10min to 5
2021-09-21 14:06:23 -07:00
Gabe Kangas 9ecb51f680 Update admin bundle 2021-09-21 13:57:27 -07:00
Gabe Kangas 5faecda24e Fix spelling 2021-09-21 11:40:28 -07:00
Gabe Kangas 296f5d13f5 Fix error message about missing ffmpeg 2021-09-20 18:13:38 -07:00
Gabe Kangas e81d41d092 Explicitly add unsafe-eval only when running automated browser tests 2021-09-18 10:06:47 -07:00
Gabe KangasandGitHub cc6b257470 Automated browser testing (#1415)
* Move automated api tests to api directory

* First pass at automated browser testing
2021-09-17 14:04:09 -07:00
Gabe Kangas 5f3cecced5 Expand CSP 2021-09-17 02:22:43 -07:00
Gabe Kangas 0b9ad4efdc Update admin bundle 2021-09-13 18:51:05 -07:00
Gabe Kangas 608888317b Have nightly build create a production build of tailwind 2021-09-13 00:06:10 -07:00
Gabe KangasandGitHub 1b053ffd1b Simplify HLS storage paths (#1393)
* Remove private vs public HLS paths and add a HLS controller. Closes #875

* Use http.ServeFile instead
2021-09-12 11:32:42 -07:00
Gabe Kangas b92ad00926 Reduce the production build of TailwindCSS from 2M to 12k 2021-09-12 01:20:13 -07:00
Gabe KangasandGitHub c6c6f0233d Expanded linting + fix warnings (#1396)
* Expand the linters and types of warnings to improve consistency and safety

* Fail lint workflow if there are errors

* golint has been replaced by revive

* Hand-pick some of the default exclude list

* Ignore error when trying to delete preview gif

* Ignore linter warning opening playlist path

* Rename user field Id -> ID

* A bunch of renames to address linter warnings

* Rename ChatClient -> Client per linter suggestion best practice

* Rename ChatServer -> Server per linter suggestion best practice

* More linter warning fixes

* Add missing comments to all exported functions and properties
2021-09-12 00:18:15 -07:00
Gabe Kangas 70e9f4945f Simplify repo Readme and focus on building/running/contributing and less about features 2021-09-10 16:21:38 -07:00
Gabe Kangas 2cd358d367 Mark micromodal as vendored 2021-09-07 11:04:09 -07:00
Gabe Kangas 37e787560e Add svg to image list 2021-09-03 21:38:25 -07:00
Gabe Kangas c7f8899b82 Add preview gif to the short short cache time 2021-09-03 21:37:29 -07:00
Gabe Kangas 31dbdb8746 Increase cache duration for static files 2021-09-03 21:08:44 -07:00
Gabe Kangas f85dada0cc Add quicktime player (applecoremedia) to player useragent list 2021-08-31 15:04:29 -07:00
Gabe KangasandGitHub 7278ce8f26 Merge pull request from GHSA-2hfj-cxw7-g45p 2021-08-30 19:43:28 -07:00
Gabe Kangas 663a7b5fe1 Update admin bundle 2021-08-30 18:24:28 -07:00