383 Commits

Author SHA1 Message Date
19c228eaf6 Allow adding custom javascript to the page. Closes #2604 2023-01-18 22:38:24 -08:00
59e5cfefd4 Remove twitter notification configuration (#2598) 2023-01-17 13:20:29 -08:00
2853752937 Make each admin page specify is own layout. Closes #2584 2023-01-15 23:12:38 -08:00
6fbd6cbbcf Lazy load every instance of using ant icons. Closes #2583 2023-01-15 22:31:36 -08:00
b8016eaa90 fix scroll on mobile (#2585)
* fix scrolling issues on mobile

* resolve conflict
2023-01-15 18:37:21 -08:00
82848bf68a Fix link 2023-01-13 14:21:27 -08:00
aadf721808 Move the contributor comment to end of source 2023-01-11 23:50:26 -08:00
c7e12643e9 Point link to genera admin settings page 2023-01-11 22:44:55 -08:00
2ff4316ee6 Fix admin subpages not having a layout 2023-01-11 22:44:15 -08:00
9cc7b1cf2d Add a little comment for those viewing HTML source that we could use contributors 2023-01-11 18:26:54 -08:00
d8a5380b7f Fix some React lifecycle and rendering errors that exist in build 2023-01-10 16:39:20 -08:00
37cd19c567 Inline some CSS upfront for performance. #2167 2023-01-10 00:37:12 -08:00
cfaeda94b0 Lazy load more components. #2167 2023-01-10 00:37:12 -08:00
7392ae8a54 Reorganize admin components to help bundling 2023-01-10 00:37:11 -08:00
29882f1291 Lazy load tooltip 2023-01-10 00:37:11 -08:00
c542dc10da Fix some components being rendered as pages 2023-01-10 00:37:10 -08:00
c05a20a460 Use built-in Next layout support + lazy load
Instead of doing manual layout switching use the Nextjs nested layout
support. Also add some additional lazy loading of components. This is to
work on performance score re: #2167.
2023-01-09 01:08:24 -08:00
2f2300db8d Add initiallyMuted query parameter to embed player (#2539)
* Add query param to initially mute embed player

* Add stories for embed player

* Improve VideoJS typing
2022-12-31 16:08:54 -08:00
a88da10c74 Rework some of the css var state to fix flaky customization UI. Fixes #2505 2022-12-28 13:05:35 -08:00
5a41f4a1ea Reorganize admin pages and consolidate some sections. For #1904 2022-12-27 18:51:13 -08:00
c9768bd8f8 Add appearance setting for rounded corners. Closes #2471 2022-12-20 23:55:07 -08:00
8f29acb7dd properly detect lowestVariant for system health (#2455) 2022-12-19 23:19:21 -08:00
58e4a118a6 Add custom document in order to support lang attr on html. Closes #2445 2022-12-19 18:38:05 -08:00
f0953a957a Fix exception with appearance reset. Closes #2459 2022-12-16 21:13:29 -08:00
0ebb968074 Handle subdirectories of emoji in copying, fetching and deleting. For #1916 2022-12-16 20:23:58 -08:00
b75ef37952 Fix text color. Closes #2447 2022-12-15 22:00:15 -08:00
7d2e2537cf Fix default protocol validation list 2022-12-14 23:54:46 -08:00
11c4d80e28 Export new url validation functions 2022-12-14 11:52:11 -08:00
dc54dfe363 Feature: emoji editor (#2411)
* Custom emoji editor: implement backend

This reuses the logo upload code

* Implement emoji edit admin interface

Again reuse base64 logic from the logo upload

* Allow toggling between uploaded and default emojis

* Add route that always serves uploaded emojis

This is needed for the admin emoji interface,
as otherwise the emojis will 404 if custom emojis are disabled

* Fix linter warnings

* Remove custom/uploaded emoji logic

* Reset timer after emoji deletion

* Setup: copy built-in emojis to emoji directory
2022-12-12 08:40:43 -08:00
d503c8a2e0 Updates to the admin to reflect new stream keys and admin password split 2022-11-29 16:05:44 -08:00
1b4a88392e Edit external actions (#2391)
* Initial action editing

* Set previous values in form when editing

* Show previous values when editing an action

* Fix typo
2022-11-29 14:14:11 -08:00
aaabc57a15 Add scrollbar color var 2022-11-13 13:17:26 -08:00
813f8692f0 Support color customization from the admin (#2338)
* Add user-customizable theming. Closes #1915

* Prettified Code!

* Add user-customizable theming. Closes #1915

* Add explicit color for page content background

* Prettified Code!

Co-authored-by: gabek <gabek@users.noreply.github.com>
2022-11-12 20:26:55 -08:00
8320f282d8 More renames from 'visible' to 'open'. (#2290) 2022-11-01 14:50:23 -07:00
6564fc69bf Support web vitals attribution 2022-10-28 12:19:39 -07:00
a526decef4 Refactor use of antd tab component. Closes #2098 2022-10-10 17:54:03 -07:00
80a012a3c7 Add current user object that holds user session values instead of standalone getters. Closes #2050 2022-10-10 16:40:13 -07:00
4c13c3618d Remove admin stylesheets from loading with app. Closes #2183 2022-10-10 13:31:37 -07:00
6c2e25e597 Update the offline banner. Filed #2179 to discuss text 2022-10-08 15:05:52 -07:00
215a3096db Do not allow enabling federation features on if not port 443. Closes #2008 2022-10-03 22:24:12 -07:00
88919efde9 Add read-write chat embed. Closes #1906 2022-09-10 21:19:35 -07:00
8d02f4068d Polish up the initial loading experience 2022-09-10 18:08:56 -07:00
d1f3fffe2f reafctor: normalize component formatting (#2082)
* refactor: move/rename BanUserButton file

* refactor: move/rename Chart file

* refactor: update generic component filenames to PascalCase

* refactor: update config component filenames to PascalCase

* refactor: update AdminLayout component filename to PascalCase

* refactor: update/move VideoJS component

* chore(eslint): disable bad react/require-default-props rule

* refactor: normalize ActionButton component

* refactor: normalize ActionButtonRow component

* refactor: normalize FollowButton component

* refactor: normalize NotifyButton component

* refactor: normalize ChatActionMessage component

* refactor: normalize ChatContainer component

* refactor: normalize ChatJoinMessage component

* refactor: normalize ChatModerationActionMenu component

* refactor: normalize ChatModerationDetailsModal component

* refactor: normalize ChatModeratorNotification component

* refactor: normalize ChatSocialMessage component

* refactor: normalize ChatSystemMessage component

* refactor: normalize ChatTextField component

* refactor: normalize ChatUserBadge component

* refactor: normalize ChatUserMessage component

* refactor: normalize ContentHeader component

* refactor: normalize OwncastLogo component

* refactor: normalize UserDropdown component

* chore(eslint): modify react/function-component-definition rule

* refactor: normalize CodecSelector component

* refactor: update a bunch of functional components using eslint

* refactor: update a bunch of functional components using eslint, pt2

* refactor: update a bunch of functional components using eslint, pt3

* refactor: replace all component->component default imports with named imports

* refactor: replace all component-stories->component default imports with named imports

* refactor: remove default exports from most components

* chore(eslint): add eslint config files for the components and pages dirs

* fix: use-before-define error in ChatContainer

* Fix ChatContainer import

* Only process .tsx files in Next builds

Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2022-09-07 00:00:28 -07:00
c61bea29ee Add read-only chat embed page. Closes #1905 2022-09-04 21:53:04 -07:00
5ebbbb8bf2 refactor(stories): co-locate stories with components (#2078)
* refactor: move ActionButton component

* refactor: move BanUserButton component

* refactor: move ChatActionMessage component

* refactor: move ChatContainer component

* refactor: move AuthModal component

* refactor: move BrowserNotifyModal component

* refactor: move ChatUserMessage component

* refactor: move ChatJoinMessage component

* refactor: move ChatTextField component

* refactor: move ChatUserBadge component

* refactor: move FollowerCollection and SingleFollower components

* fix: bad import path

* refactor: move FollowModal component

* refactor: move Modal component

* refactor: move ContentHeader component

* refactor: move ChatSystemMessage component

* refactor: move Header component

* refactor: move Footer component

* refactor: move StatusBar component

* refactor: move OfflineBanner component

* refactor: move OwncastPlayer component

* refactor: move IndieAuthModal component

* refactor: move SocialLinks component

* refactor: move VideoPoster component

* refactor: move FollowModal component

* refactor: move FediAuthModal.tsx component

* refactor: move UserDropdown component

* refactor: move ChatSocialMessage component

* refactor: move Logo component

* refactor: move NotifyReminderPopup component

* refactor: move NameChangeModal component

* refactor: move FatalErrorStateModal component

* refactor: move ChatModeratorNotification component

* refactor: move ChatModerationActionMenu and ChatModerationDetailsModal components

* refactor: move CustomPageContent component

* refactor: move storybook Introduction file

* refactor: update storybook story import path

* refactor: move storybook preview styles

* refactor: move storybook doc pages

* refactor: move Color and ImageAsset components

* fix: bad import path

* fix: bad import path in story file
2022-09-03 11:38:52 -07:00
e6cc3a39d1 Added moderator menu to messages and some other styling.
created new ant overrides file.

Ignore the static directory
2022-07-01 22:53:56 +02:00
bf7319db9a Install service worker at launch 2022-05-29 21:51:00 -07:00
db184c74dd Comment out the old ant overrides and try to make colors match design 2022-05-26 22:25:44 -07:00
da0a2f5f5d Fix play button z-index + add basic player theme 2022-05-26 21:44:54 -07:00
f041727f07 Add first pass for offline banner component 2022-05-25 22:52:27 -07:00