Commit Graph

430 Commits

Author SHA1 Message Date
Gabe Kangas
5ce78fbad4 New offline embed (#3599)
* WIP

* feat(web): add new offline embed view. First step of #2917

* feat(web): support remote fediverse follow flow from embed

* feat(chore): add back offline video embed browser test
2024-02-25 12:52:32 -08:00
Gabe Kangas
82d0b9c121 fix(web): make video embed player fit entire window. Closes #3587 2024-02-21 20:41:25 -08:00
Gabe Kangas
7b783ac00e fix(admin): fix admin followers pagination. Closes #3510 2024-02-18 19:14:20 -08:00
Varun Gujarathi
b694be1052 fix(admin): sanitize fediverse username (#3437)
* test: add config federation test

* fix: santize fediverse username

fixes #3424

* refactor: remove commented code

* refactor: change username const to usernameValue

* refactor: use shorthand property

* build: move stories page out of build directory

* fix: allow only alphanumeric chars in username

* fix: filter out special chars in username

Added a regex filter to strip non-alphanumeric chars in username field.

* chore: clean unused fields
2024-02-05 20:00:50 -08:00
Aziz Rmadi
6c644330e7 Fixed page size stale state on LogTable component (#3516) 2024-01-22 20:31:23 -08:00
renovate[bot]
b28b027ead chore(deps): update dependency typescript to v5 (#3387)
* chore(deps): update dependency typescript to v5

* fix: resolve type mismatch

* Commit updated API documentation

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
Co-authored-by: Owncast <owncast@owncast.online>
2023-10-25 21:52:36 -07:00
Patrick Bollinger
9a7925444f Fix embedded status bar being cut off (#3352)
* Fix embedded status bar being cut off

This should resolve https://github.com/owncast/owncast/issues/3210.

As recommended in the discussion, flexbox was the way to solve this issue.
The main thing that needed to be addressed though was not applying too many constraints on the OwncastPlayer component just because it was embedded.
By removing the embedded constraints, styling appears to be working as expected.
I'll attach screenshots to the pull request.

* Fix eslint error
2023-10-21 21:46:10 -07:00
Gabe Kangas
169c11596c feat(chat): add support for chat part messages. Closes #3201 (#3291) 2023-09-10 10:58:11 -07:00
Gabe Kangas
243156b307 chore: address linter warnings 2023-08-02 13:46:00 -07:00
Ikko Eltociear Ashimine
0fb821b33c Fix typo in actions.tsx (#3225)
alway -> always
2023-07-31 10:44:48 -07:00
renovate[bot]
7c13a3fd01 chore(deps): update dependency eslint-plugin-react to v7.33.0 (#3205)
* chore(deps): update dependency eslint-plugin-react to v7.33.0

* chore: have linter try to autofix and commit linter warnings

* Linter fixes

* chore: tweak how js formatting is run within actions

* fix: type mismatch

* Prettified Code!

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
Co-authored-by: Owncast <owncast@owncast.online>
Co-authored-by: gabek <gabek@users.noreply.github.com>
2023-07-29 15:57:45 -07:00
janWilejan
8148f74736 Unhide dropdown in Viewer Info page (#3173)
Co-authored-by: janWilejan <>
2023-07-14 09:28:56 -07:00
janWilejan
e15e2dc47c Fix deprecated antd dropdown warnings (#3171)
* Fix deprecated antd dropdown warnings
2023-07-13 20:28:12 +00:00
John Regan
46ca5223f9 Chat wire protocol (#3125)
* core: remove file extension from emoji name

* web: transform emotes to labels when sending

* chat: replace br with line break

* core: implement emoji cache

* chat: send shortcodes for custom emoji

* chat: correct esling errors

* core: move emoji injection into dedicated function

* emoji: integrate emoji into markdown renderer, fix formatting

* chat protocol: correct golangci-lint findings

* chat field: specify that the contentEditable is an HTMLElement

* admin: mention that emoji should have unique names

* Prettified Code!

* regenerate pack-lock

* chat: correct the emphasis tag, provide fallback for other elements

---------

Co-authored-by: jprjr <jprjr@users.noreply.github.com>
2023-07-05 17:25:47 -07:00
Gabe Kangas
ccb9b5d075 chore: run stylelint on our css files 2023-06-20 20:58:00 -07:00
Gabe Kangas
cc953f154e fix(admin): fix typo causing established chat mode display bug. Closes #3070 2023-06-05 16:47:08 -07:00
Abhishek Gupta
0ff30d44e4 fix: hide latency card for admin if latency is 0 (#3047)
* hide latency card for admin if latency is 0

* Prettified Code!

---------

Co-authored-by: abhipanorian <abhipanorian@users.noreply.github.com>
2023-05-30 11:33:30 -07:00
Gabe Kangas
e50b23d081 Cleanup unused Javascript (#3027)
* chore(js): be stricter about dead code warnings

* chore(js): remove dead code and unused exports

* rebase

* chore: remove unused files

* chore(deps): remove unused prop-types dep

* chore(js): remove unused function

* chore(deps): remove + check unused deps

* chore(js): remove unused exports. Closes #3036
2023-05-20 21:15:25 -07:00
Dev Gupta
fb36d32fa0 Fixes : Admin: Custom emoji page layout (#2993)
* Update emojis.tsx

* Prettified Code!

* Second Iteration

* Update emojis.tsx

* Putting Delete Button at top-right

Will this work ?

* Prettified Code!

* Update emojis.tsx

Changing Icon of Delete Button
Decreasing Delete-Button Size

* Prettified Code!

* Tweak style of delete emoji button

---------

Co-authored-by: dev265545 <dev265545@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2023-05-07 12:57:15 -07:00
Gabe Kangas
8dbc8a07cf feat(embeds): wrap chat embeds in error components 2023-05-06 14:11:23 -07:00
Gabe Kangas
d139cf08f5 fix(embeds): import custom theme into chat embeds 2023-05-05 12:21:20 -07:00
Gabe Kangas
7261b1d49f fix(embed): allow flexible player sizes for embeds. Closes #2984 2023-05-04 11:29:48 -07:00
Gabe Kangas
f2fbce113e fix(embed): set background color and height of chat embed. closes #2961 2023-04-27 10:26:12 -07:00
Gabe Kangas
1dc71004c9 fix(embed): set background color of video embed 2023-04-27 10:26:12 -07:00
Gabe Kangas
bb9cc28596 fix(embed): change text color of offline banner. Closes #2953 2023-04-26 09:40:17 -07:00
Gabe Kangas
b3ac4e1a15 fix(js): consolidate url and account validators 2023-04-16 14:32:18 -07:00
Gabe Kangas
7ec7e1704c Add bool option to player to fill container for embeds. Closes #2884 2023-04-05 20:05:22 -07:00
Pranav Joglekar
07c5cabfe8 Trigger the title updated webhook event whenever a title is changed (#2823)
* wip: trigger the title updated webhook event whenever a title is changed

* Commit updated API documentation

* fix: add STREAM_TITLE_CHANGED to list of valid events

* feat: Add support for STREAM_TITLE_CHANGED webhook event on admin dashboard

* fix: transmit webhook event after stream has changed to fix race conditions where older title was sent

---------

Co-authored-by: Owncast <owncast@owncast.online>
2023-03-28 11:34:00 -07:00
Gabe Kangas
bb14af399e Fix the listing of follower tables in admin 2023-03-22 14:54:43 -07:00
Gabe Kangas
a5e5adfa02 Fix incorrect follower count displayed. Closes #2854 2023-03-21 17:33:59 -07:00
Dhanu Saputra
2b41113211 Loose div in Utilities > Stream health screen (#2844) 2023-03-21 13:06:16 -07:00
Gabe Kangas
6973c3d8df Update styling of video settings admin page. Closes #2803 2023-03-14 21:34:37 -07:00
Gabe Kangas
3ada7182f5 Update viewers chart y axis to make more sense. Closes #2806 2023-03-13 15:58:16 -07:00
Gabe Kangas
0b619b84a6 Add waiting message to hardware screen. Closes #2805 2023-03-13 13:19:17 -07:00
Gabe Kangas
4a0476b237 Add support for disabled chat state in the chat input field. Closes #2761 2023-03-01 16:22:10 -08:00
Gabe Kangas
23a721857f Do not support stream key UI or any persisted stream keys when overridden via cli flag. Closes #2749 2023-02-27 17:08:52 -08:00
Gabe Kangas
5b8bacb83f Add chat embed automated browser tests. Closes #2743 2023-02-26 19:06:22 -08:00
Gabe Kangas
1f99b0bf22 Fix chat embeds not loading. Fixes #2744 2023-02-26 18:48:41 -08:00
Gabe Kangas
8b8f221eb4 Show streamTitle in header if set. Closes #2720 2023-02-22 18:52:25 -08:00
Dhanu Saputra
0a653aaba7 Remove usage of the PropTypes dependency (#2723)
* Remove usage of the PropTypes dependency

* Prettified Code!

---------

Co-authored-by: dhanusaputra <dhanusaputra@users.noreply.github.com>
2023-02-22 09:21:00 -08:00
Philipp
a290770ac9 Allow embedding HTML for external actions (#2693)
* Admin UI: implement HTML embeds

* Admin UI External Actions: set correct useHTML on edits

* Admin UI: edit by index, not URL

* External Actions: render HTML on stream frontend

* Don't open embeds externally

* Remove TODO comment

* Add HTML as unique action key

* Admin UI: Actions: use CodeMirror editor, dropdown
2023-02-14 09:08:54 -08:00
Gabe Kangas
903cc41d58 Remove htmlcomment as it gets stripped in build time 2023-02-10 17:52:28 -08:00
Gabe Kangas
d9e4731764 Update charting library and how it is used. Closes #2658 2023-02-02 14:58:39 -08:00
Philipp
4aaabaac07 Admin UI: Fix broken links (#2660) 2023-02-01 10:39:48 -08:00
Gabe Kangas
ae660ed216 Add video embed loading state 2023-01-31 23:29:02 -08:00
Gabe Kangas
24f6bb1ea5 Add aria-title attribute to video player. For #1826 2023-01-23 19:28:32 -08:00
Gabe Kangas
cdaae66e94 Add skip links for content, player and footer. For #1826 2023-01-21 23:22:28 -08:00
Gabe Kangas
19c228eaf6 Allow adding custom javascript to the page. Closes #2604 2023-01-18 22:38:24 -08:00
Michael David Kuckuk
59e5cfefd4 Remove twitter notification configuration (#2598) 2023-01-17 13:20:29 -08:00
Gabe Kangas
2853752937 Make each admin page specify is own layout. Closes #2584 2023-01-15 23:12:38 -08:00