Commit Graph
100 Commits
Author SHA1 Message Date
Gabe Kangas 35546c0c6d Added user registration call 2022-04-26 14:04:35 -07:00
Gabe Kangas 15ca73a438 WIP VideoPoster 2022-04-26 13:50:14 -07:00
Gabe Kangas e2e21d915b Initial api requests + stores + basic layout 2022-04-25 23:10:07 -07:00
Gabe Kangas 21af5ce020 Update readme instructions 2022-04-25 19:10:29 -07:00
Gabe Kangas 23a009d011 Merge remote-tracking branch 'admin/ui-components' into webv2 2022-04-25 18:48:07 -07:00
Gabe Kangas eadd27b6c0 Some Storybook configuration 2022-04-25 15:55:05 -07:00
Gabe Kangas 88bbc80748 Update readme 2022-04-25 15:54:38 -07:00
Gabe Kangas 79bfa0145f Moved admin to /admin and created blank placeholder for v2 frontend 2022-04-25 15:54:37 -07:00
Gabe Kangas be441ae530 Add inter font to project 2022-04-25 15:52:39 -07:00
Gabe Kangas e49948a215 Add colors to storybook 2022-04-25 15:52:39 -07:00
Gabe Kangas 19d6652c7a Add blank colors page to fill in 2022-04-25 15:52:39 -07:00
Gabe Kangas 3ce6fd4cb3 Add support for less variables and using a custom theme 2022-04-25 15:52:38 -07:00
Gabe Kangas 1c77219a75 First pass at component library 2022-04-25 15:52:38 -07:00
Gabe Kangas 7a503fc282 Add auth icon to chat menu. Closes #1879 2022-04-25 15:34:19 -07:00
Gabe Kangas 6ee88f8a7d Throw away latency values that seem invalid 2022-04-25 14:52:33 -07:00
Gabe Kangas b2b791b365 Migrate forbidden and suggested usernames list to string slice. Closes #1873 2022-04-25 14:31:29 -07:00
Gabe Kangas a29d6450cb Add stream health tip of latency buffer level 2022-04-25 14:31:28 -07:00
Gabe Kangas f34cc13225 Add link. Closes #1878 2022-04-25 14:31:28 -07:00
Gabe Kangas 465aeb5c38 Disable chat settings dropdown if chat is disabled. Closes #1875 2022-04-24 19:07:33 -07:00
Gabe Kangas 55ce0c0869 Add some basic validation logic for form. Closes https://github.com/owncast/owncast/issues/1847 2022-04-24 18:44:32 -07:00
Gabe Kangas 29ae557c0f Tweak some stream health text 2022-04-24 16:48:46 -07:00
Gabe Kangas 1e1faec982 Reduce the bandwidth ratio requirement to fire compensator 2022-04-23 18:50:18 -07:00
Gabe Kangas 529cba84fd Refactor migration to loop over each user instead of bulk inserts 2022-04-23 18:12:59 -07:00
Gabe Kangas 514fd17ed9 Access token migration 2022-04-23 18:12:58 -07:00
Gabe Kangas d78e28fd47 Add link to notification documentation 2022-04-22 17:32:25 -07:00
Gabe KangasandGitHub a082cf3a77 Fediverse-based authentication (#1846)
* Able to authenticate user against IndieAuth. For #1273

* WIP server indieauth endpoint. For https://github.com/owncast/owncast/issues/1272

* Add migration to remove access tokens from user

* Add authenticated bool to user for display purposes

* Add indieauth modal and auth flair to display names. For #1273

* Validate URLs and display errors

* Renames, cleanups

* Handle relative auth endpoint paths. Add error handling for missing redirects.

* Disallow using display names in use by registered users. Closes #1810

* Verify code verifier via code challenge on callback

* Use relative path to authorization_endpoint

* Post-rebase fixes

* Use a timestamp instead of a bool for authenticated

* Propertly handle and display error in modal

* Use auth'ed timestamp to derive authenticated flag to display in chat

* Fediverse chat auth via OTP

* Increase validity time just in case

* Add fediverse auth into auth modal

* Text, validation, cleanup updates for fedi auth

* Fix typo

* Remove unused images

* Remove unused file

* Add chat display name to auth modal text
2022-04-22 17:23:14 -07:00
Gabe Kangas 7935bcf5f3 Guard against possible invalid tech usage 2022-04-22 10:49:13 -07:00
Gabe Kangas f173b8deca do not make migration failure fatal temporarily 2022-04-21 21:05:49 -07:00
b835de2dc4 IndieAuth support (#1811)
* Able to authenticate user against IndieAuth. For #1273

* WIP server indieauth endpoint. For https://github.com/owncast/owncast/issues/1272

* Add migration to remove access tokens from user

* Add authenticated bool to user for display purposes

* Add indieauth modal and auth flair to display names. For #1273

* Validate URLs and display errors

* Renames, cleanups

* Handle relative auth endpoint paths. Add error handling for missing redirects.

* Disallow using display names in use by registered users. Closes #1810

* Verify code verifier via code challenge on callback

* Use relative path to authorization_endpoint

* Post-rebase fixes

* Use a timestamp instead of a bool for authenticated

* Propertly handle and display error in modal

* Use auth'ed timestamp to derive authenticated flag to display in chat

* don't redirect unless a URL is present

avoids redirecting to `undefined` if there was an error

* improve error message if owncast server URL isn't set

* fix IndieAuth PKCE implementation

use SHA256 instead of SHA1, generates a longer code verifier (must be 43-128 chars long), fixes URL-safe SHA256 encoding

* return real profile data for IndieAuth response

* check the code verifier in the IndieAuth server

* Linting

* Add new chat settings modal anad split up indieauth ui

* Remove logging error

* Update the IndieAuth modal UI. For #1273

* Add IndieAuth repsonse error checking

* Disable IndieAuth client if server URL is not set.

* Add explicit error messages for specific error types

* Fix bad logic

* Return OAuth-keyed error responses for indieauth server

* Display IndieAuth error in plain text with link to return to main page

* Remove redundant check

* Add additional detail to error

* Hide IndieAuth details behind disclosure details

* Break out migration into two steps because some people have been runing dev in production

* Add auth option to user dropdown

Co-authored-by: Aaron Parecki <aaron@parecki.com>
2022-04-21 14:55:26 -07:00
Gabe Kangas b86537fa91 Restore isModerator bool 2022-04-21 13:48:46 -07:00
Gabe Kangas 0dcfbca318 Fix join msgs switch not firing api call 2022-04-19 12:52:40 -07:00
Gabe Kangas dc4c905dd1 Allow specifying scroll behavior on initial chat history load 2022-04-18 23:48:05 -07:00
Gabe Kangas 61b07ab544 Lint 2022-04-18 23:48:05 -07:00
Gabe Kangas e6b5aecc8f Fix single column chat not scrolling. Closes #1830 2022-04-18 23:48:05 -07:00
Gabe Kangas e306c74520 Increase z-index 2022-04-17 12:47:07 -07:00
Gabe Kangas 7f1f8c39c3 Some notify popup tweaks
- Added back the border on the notification button.
- Removed border on the notification popup close button.
- Made entire popup clickable instead of just the text.
- Changed cursor style to as a hint that it's clickable.
- Renamed selectors to be called notify.
2022-04-17 12:27:52 -07:00
Gabe Kangas 770b5d05f0 If tab is in the background then instant jump to bottom w/o animation 2022-04-16 21:54:13 -07:00
Gabe Kangas 926560cd02 Add extended content type for ActivityPub objects. Closes #1827 2022-04-15 22:44:40 -07:00
Gabe KangasandGitHub ab189ad75d Update link 2022-04-15 14:36:22 -07:00
Gabe KangasandGitHub 01de43e6dc Explicitly set go version in linter config. 2022-04-12 12:14:42 -07:00
Gabe KangasandGitHub 1199532e18 Use useNetworkInformationApi in playback. 2022-04-11 21:20:38 -07:00
Gabe Kangas e11698e23b Remove schedule from renovate 2022-04-10 00:20:38 -07:00
Gabe Kangas 2621665f54 Layout updates to stream health stats and messages 2022-04-09 23:05:10 -07:00
Gabe Kangas 810e2e0aaa Update gitignore 2022-04-09 23:05:10 -07:00
Gabe Kangas ace57114c0 Simplify how the stream health messages are generated 2022-04-09 23:02:50 -07:00
Gabe Kangas 38ae7a3da3 Update browserslist 2022-04-08 23:57:03 -07:00
Gabe Kangas d2be4a4ed8 Add the word enable for clarity 2022-04-08 23:14:10 -07:00
Gabe Kangas 568ecc7ddf Remove antipating an initial time jump 2022-04-08 20:09:38 -07:00
Gabe Kangas 4ed02d4e0f Fix the min/max latency thresholds 2022-04-08 15:09:47 -07:00
Gabe Kangas e46f8e2a66 Troubleshoot misskey follows
Store the original follow request object and use it for approvals.
Closes #1690
2022-04-08 13:33:30 -07:00
Gabe Kangas f8181fd036 Do not make metrics api call if there is no data to send 2022-04-08 13:22:48 -07:00
Gabe Kangas d4cbf07055 Allow latency compenstation if bandwidth is fast enough or there are enough segments buffered 2022-04-08 13:22:48 -07:00
Gabe Kangas 6b909b2c47 Do not report playback metrics if the network is not in use 2022-04-08 13:22:48 -07:00
Gabe Kangas 9b2ef76773 Move CreateSignedRequest to the activitypub/crypto package 2022-04-07 13:44:36 -07:00
Gabe Kangas e4589a4462 Experiment with supporting h2c 2022-04-07 11:43:26 -07:00
Gabe Kangas 2a6bebfb2a Add a bit of sanity to the stream health messages 2022-04-07 00:14:23 -07:00
Gabe Kangas 422ae35e67 Typo in gitignore 2022-04-06 22:43:47 -07:00
Gabe Kangas 329eb7e318 Adjust how latency jumps are determined 2022-04-06 22:26:37 -07:00
Gabe Kangas a6b1d0ec94 Do not collect playback metrics when paused 2022-04-06 22:20:51 -07:00
Gabe Kangas 748ada13d3 Do not set bool on timer 2022-04-06 19:10:55 -07:00
Gabe Kangas 0254afea71 Reduce latency jump amount 2022-04-06 18:47:30 -07:00
Gabe Kangas c5cbb210c2 Update when and how to show video settings menu 2022-04-06 18:32:50 -07:00
Gabe Kangas 179e7ab7ca Allow time jumps to compenstate for large latency 2022-04-06 18:31:10 -07:00
Gabe Kangas 9fd32a9301 Update gitignore 2022-04-05 17:25:45 -07:00
Gabe Kangas 3054d3d097 Add latency compensation toggle in video settings menu 2022-04-05 16:58:42 -07:00
Gabe Kangas d0bd511101 Tweak compensator ramp up + add slight ramp down 2022-04-04 21:00:07 -07:00
Gabe Kangas ad2f40810c Close confirm popup on cancel. Closes https://github.com/owncast/owncast/issues/1809 2022-04-04 14:18:58 -07:00
Gabe Kangas 4ba6822b33 Round hardware usage values. Closes https://github.com/owncast/owncast/issues/1815 2022-04-04 14:16:00 -07:00
Gabe Kangas 9f235bcaa5 Remove viewers label from Y axis. Closes https://github.com/owncast/owncast/issues/1816 2022-04-04 14:07:07 -07:00
Gabe Kangas 823f952b9c Limit the amount the latency compensates at once with a ramp up 2022-04-04 13:46:52 -07:00
Gabe Kangas 037583be23 Add custom suggestion error to disable video passthrough 2022-03-30 14:02:49 -07:00
Gabe Kangas c50536ff81 Pull player metrics out of the player. Support safari errors/buffering events 2022-03-29 17:33:36 -07:00
Gabe Kangas 299b7ff6de Display the representation % of players in metrics 2022-03-27 16:28:14 -07:00
Gabe Kangas 1e19e2a50e Surface the % of players represented in metrics 2022-03-27 16:27:38 -07:00
Gabe Kangas 9f6151359f Track buffering events as errors differently in playback metrics 2022-03-27 14:45:21 -07:00
Gabe Kangas 78b0f7addc Allow latency compensator to be a little more aggressive 2022-03-27 14:44:50 -07:00
Gabe Kangas 44afc9c1ea Guard against browsers not running VHS 2022-03-26 18:34:57 -07:00
Gabe Kangas cd4f19108a Cleanup and simplify stream health overview 2022-03-26 16:13:06 -07:00
Gabe Kangas 35801ff33a Add CPU monitoring to stream health overview 2022-03-26 13:01:23 -07:00
Gabe Kangas 83cec52104 Log out more values to help test + tweak latency compensator 2022-03-26 12:36:41 -07:00
Gabe Kangas 9300ebb015 Increase browser push notification TTL 2022-03-25 19:48:37 -07:00
Gabe Kangas 7b4110467b mod tidy 2022-03-25 19:08:38 -07:00
Gabe Kangas 5a2584d8ea Continued tweaking of latency compensation 2022-03-25 14:24:56 -07:00
Gabe Kangas 22578f0ac2 Change how often metrics are collected 2022-03-25 14:20:51 -07:00
Gabe Kangas 65efdb91b9 Add stream health overview component 2022-03-24 23:21:57 -07:00
Gabe Kangas 410b413b84 Add stream health overview collection + apis 2022-03-24 23:07:05 -07:00
Gabe Kangas 58acc7a449 Fix only one bitrate drawing on health graph. Tweak text. 2022-03-24 16:44:34 -07:00
Gabe KangasandGitHub 8ad2240247 Mange outbound notification settings (#458)
* ActivityPub admin pages for configuration

* Fix dev build

* Add support for requiring follow approval. Closes https://github.com/owncast/owncast/issues/1208

* Point at admin version of followers endpoint

* Add setting for toggling displaying fediverse engagement in admin. https://github.com/owncast/owncast/issues/1404

* Add instance URL textfield to federation config and disable federation if it is empty

* If instance URL is not https disable federation

* Tweak federation toggle text. Make go live message optional

* Add federation info modal. Closes https://github.com/owncast/owncast/issues/1544

* Add support for blocked federated domains. For https://github.com/owncast/owncast/issues/1209

* Simplify fediverse post input

* Add placeholder Fediverse icon

* Tweak federation logo in admin menu. Closes https://github.com/owncast/owncast/issues/1603

* Add global button for composing a fediverse post.

Closes https://github.com/owncast/owncast/issues/1610

* Federation -> Social

* Add page for listing federated actions. Closes https://github.com/owncast/owncast/issues/1573

* Auto-close social post modal after success

* Make user modal action buttons look nicer

* Center and reduce width and center count column. Closes https://github.com/owncast/owncast/issues/1580

* Update the followers table to be clearer

* Fix exception thrown when passing undefined

* Disable federation settings if feature is disabled

* Update enable social modal. For https://github.com/owncast/owncast/issues/1594

* Fix type props

* Quiet, linter

* Move compose button to the left

* Add tooltip for compose button

* Add NSFW toggle to federation config. Closes https://github.com/owncast/owncast/issues/1628

* Add support for blocking/removing followers. For https://github.com/owncast/owncast/issues/1630

* Allow editing the server url field even when federation is disabled

* Continue to update the copy around the social features

* Use relative path to action images. Fixes https://github.com/owncast/owncast/issues/1646

* Link IRIs and make action verbse present tense

* Update caniuse

* Notifications configuration UI

* Remove twilio add email notifications

* WIP email support

* Add support for managing twitter notifications

* Mark fields as passwords

* Continued WIP

* Post merge cleanup

* Cleanup

* Remove email config. Handle disabled notifications state

* Remove email related components

* Remove email related settings properties
2022-03-23 08:57:09 -07:00
Gabe Kangas 134e784282 Tweak position of moderator icon. Closes #1792 2022-03-21 15:01:30 -07:00
Gabe Kangas 68fd329cc9 Downgrade antd to resolve broken slider. Hopefully resolves https://github.com/owncast/owncast/issues/1791 2022-03-21 14:40:04 -07:00
Gabe Kangas 3004432666 Hardcode email notifications in UI to false 2022-03-21 13:50:11 -07:00
Gabe Kangas d96ddcc6c6 Continued tweaking of latency compensation 2022-03-19 13:17:37 -07:00
Gabe Kangas d3aa3f87af doc -> docs as Github needs a specific name 2022-03-19 12:02:34 -07:00
Gabe Kangas 5d360bcdd5 Add SECURITY.md document. Closes #1790 2022-03-19 11:51:48 -07:00
4a17f30da8 Outbound live stream notifications (#1663)
* First pass at browser, discord, twilio notifications

* Commit updated Javascript packages

* Remove twilio notification support

* Email notifications/smtp support

* Fix Firefox notification support, remove chrome checks

* WIP more email work

* Add support for twitter notifications

* Add stream title to discord and twitter notifications

* Update notification registration modal

* Fix hide/show email section

* Commit updated API documentation

* Commit updated Javascript packages

* Fix post-rebase missing var

* Remove unused var

* Handle unsubscribe errors for browser push

* Standardize email config prop names

* Allow overriding go live email template

* Some notifications cleanup

* Commit updated Javascript packages

* Remove email/smtp/mailjet support

* Remove more references to email notifications

Co-authored-by: Owncast <owncast@owncast.online>
2022-03-18 13:33:23 -07:00
Gabe Kangas 4e415f7257 CC->TO because Mastodon cares for visibility 2022-03-18 13:01:11 -07:00
Gabe Kangas c885d150d4 Tweak latency compensation 2022-03-17 21:10:07 -07:00
Gabe Kangas 992e819f38 Lock metrics on mutation 2022-03-17 18:07:55 -07:00
Gabe Kangas a367b1dd07 Remove support for SVG logos. Closes https://github.com/owncast/owncast/issues/1773 2022-03-17 14:54:05 -07:00
Gabe Kangas d1e39c4c1e Force uniqueness with previews and logos on the fediverse. Closes #1777 and closes #1776 2022-03-17 13:22:44 -07:00