Commit graph

88 commits

Author SHA1 Message Date
Gabe Kangas
de90e6a74c
Fix some broken social icons in frontend and admin 2022-10-18 23:38:26 -07:00
Gabe Kangas
61e1a49fd4
Replace markdown editor with CodeMirror 2022-10-10 20:16:14 -07:00
Gabe Kangas
e1416e90e5
Use a real code editor for CSS editing. Closes #1843 2022-10-10 19:49:06 -07:00
Evgeniy Kosov
d2024d30d2
Add ability to move social handles up/down (#2168) 2022-10-04 11:22:01 -07:00
James Young
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
Gabe Kangas
a521ba21d8
Add admin field for setting offline message. Closes #1901 2022-08-16 21:48:06 -07:00
Gabe Kangas
1f4493aaf9
Fix linter warnings 2022-08-15 17:49:15 -07:00
Gabe Kangas
b08393295f
Add option to hide viewer count. Closes #1939 2022-06-26 00:46:55 -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
ad2f40810c Close confirm popup on cancel. Closes https://github.com/owncast/owncast/issues/1809 2022-04-04 14:18:58 -07:00
Gabe Kangas
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
a367b1dd07 Remove support for SVG logos. Closes https://github.com/owncast/owncast/issues/1773 2022-03-17 14:54:05 -07:00
Lerk
ae88a38acc Add description and name for VideoToolbox codec (#460)
* add description and name for VideoToolbox codec

* fix typo
2022-03-15 00:05:46 -07:00
Gabe Kangas
6f1ece7894 Add support for setting a socket override. https://github.com/owncast/owncast/issues/1378 (#431) 2022-03-06 17:12:37 -08:00
Gabe Kangas
084a01fb02 Admin social features (#408)
* 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
2022-01-12 13:52:37 -08:00
Jannik
030b936f05 feat: add option to save custom username suggestions (#415)
* 💄 add option to save custom username suggestions that shall be used instead of the docker style usernames.

* 🚸 add minimum of 10 usernames / update wording

* Prettified Code!

* 🚸 add message for the default name generator / indicate that no further action is required

Co-authored-by: jeyemwey <jeyemwey@users.noreply.github.com>
2022-01-12 10:17:14 -08:00
Gabe Kangas
62daceaa9b Cleanup to support next update 2021-12-06 18:01:30 -08:00
Gabe Kangas
59f0fce728 Storage -> S3 Storage. Closes https://github.com/owncast/owncast/issues/1459 2021-11-15 12:22:45 -08:00
Gabe Kangas
7a712a7ae3 Add friendly name and description for h264_omx. Fixes https://github.com/owncast/owncast/issues/1521 2021-11-11 14:53:15 -08:00
Jannik
e2b0faa0dd Add a recommendation in the admin to add a second, lower quality if only one is set (#356)
*  add recommendation box if only one, high-quality video variant is set (#1491)

Related to: https://github.com/owncast/owncast/issues/1491

* Prettified Code!

* Tweak the alert text slightly

Co-authored-by: jeyemwey <jeyemwey@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2021-11-03 14:09:47 -07:00
gabek
c0c5784954 Prettified Code! 2021-10-29 00:34:07 +00:00
Artur Angiel
9b7835e71e #1495 Path-style S3 compatibile URLs implemented (#346)
* #1495 Path-style S3 compatibile URLs implemented

https://github.com/owncast/owncast/issues/1495

It gives ability to use S3 compatibile providers that doesn't
support virtual-host-style URLs (i.e. Oracle Cloud Object Storage)

* https://github.com/owncast/owncast/issues/1495 Renaming rest of 'pathBased' to 'forcePathStyle'
2021-10-28 17:33:32 -07:00
Meisam
9589c8e11a rename the "Disable chat" switch to a simple "Chat" (#286)
* change chat config lable

* reverse the chat enable UI

* add reversed to toggle switch props
2021-09-10 15:08:15 -07:00
Gabe Kangas
6ce927a854 Update the "Forbidden usernames" UI (#259)
* Add new component for adding/removing forbidden name strings. Closes https://github.com/owncast/owncast/issues/1230

* make editing string styling shareable and consistent with tag editor

* Prettified Code!

Co-authored-by: gingervitis <omqmail@gmail.com>
Co-authored-by: gingervitis <gingervitis@users.noreply.github.com>
2021-07-25 22:12:50 -07:00
Meisam
9e2746fb52 rm chat disable btn from server settings page (#260) 2021-07-22 09:42:07 -07:00
Gabe Kangas
b10ba1dcc2 Admin support for managing users (#245)
* First pass at displaying user data in admin

* Hide chat blurb on home page if chat is disabled

* Hide sidebar chat section if chat is disabled

* Block/unblock user interface for https://github.com/owncast/owncast/issues/1096

* Simplify past display name handling

* Updates to reflect the api access token change

* Update paths

* Clean up the new access token page

* Fix linter

* Update linter workflow action

* Cleanup

* Fix exception rendering table row

* Commit next-env file that seems to be required with next 11

* chat refactor - admin adjustments (#250)

* add useragent parser; clean up some html;

* some ui changes
- use modal instead of popover to confirm block/unblock user
- update styles, table styles for consistency
- rename some user/chat labels in nav and content

* format user info modal a bit

* add some sort of mild treatment and delay while processing ban of users

* rename button to 'ban'

* add some notes

* Prettified Code!

* fix disableChat toggle for nav bar

* Support sorting the disabled user list

* Fix linter error around table sorting

* No longer restoring messages on unban so change message prompt

* Standardize on forbiddenUsername terminology

* The linter broke the webhooks page. Fixed it. Linter is probably pissed.

* Move chat welcome message to chat config

* Other submenus don't have icons so remove these ones

Co-authored-by: gingervitis <omqmail@gmail.com>
Co-authored-by: gabek <gabek@users.noreply.github.com>
2021-07-19 22:02:02 -07:00
Jannik
be5243f5f8 Update Next to 11.0.1 (including lint & import fixes) (#248)
* Bump next from 10.2.3 to 11.0.1

Bumps [next](https://github.com/vercel/next.js) from 10.2.3 to 11.0.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v10.2.3...v11.0.1)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* 🚨 apply automatic linting

* 🎨 remove unused imports

* 🔇 allow console.* to give more debugging options

* 🎨 move stuff around to reduce linter messages

* 🚨 use destructuring so lint won't complain

* 📌 link Chartkick and Chart.js

Commit uses the linking code which was previously imported with
`import "chartkick/chart.js" [1]. Next did not like the import path,
but this does works now. ¯\_(ツ)_/¯

[1]: https://github.com/ankane/chartkick.js/blob/master/chart.js/chart.esm.js

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-09 11:42:01 -07:00
gabek
7a3f4f6dbb Prettified Code! 2021-07-03 20:53:12 +00:00
Meisam
7a1f9dcd9a Don't allow people to set their instance name to an empty string (or only whitespace) (#240)
* make server name required

* prevent space-only instance name

* add useTrimLead to TextFieldProps
2021-07-03 13:52:37 -07:00
gabek
bcd46cee61 Prettified Code! 2021-07-02 23:07:40 +00:00
Meisam
a84aa72ee4 fix save button enable for acl/serving_endpoint (#239) 2021-07-02 16:07:11 -07:00
gabek
5371559c74 Prettified Code! 2021-05-23 06:28:21 +00:00
gingervitis
d0eb1446f3 fixes for various admin issues (#181)
* up max char count for variant name to fix https://github.com/owncast/owncast/issues/1037

* max widthing the line chart canvas size so it scales with the page.
fixes
- https://github.com/owncast/owncast/issues/842
- https://github.com/owncast/owncast/issues/1024

* A fix to make Storage Endpoint URL validation have better feedback.

- give the field a type of "url"
- give the field a pattern to check
- have native browser handle the validation
- if the field is invalid, use :invalid selector to turn the text red on blur.

fixes: https://github.com/owncast/owncast/issues/1000

* a fix for https://github.com/owncast/owncast/issues/874

* - fixes for https://github.com/owncast/owncast/issues/972
Add optional prop to text field to trim() whitespaces from field. Apply logic to mostly url fields.

- move textfield blur if invalid turn red to globaal

* - a fix for bug:  https://github.com/owncast/owncast/issues/998
don't return null if platform name not found because its custom.

- clean up react key problem on socialhandles table

* fix react key issue on Actions table

* fix for https://github.com/owncast/owncast/issues/1008 to display 'other' field when editing an item not in predefined social list

* clean up other potential react key warnings

* Prettified Code!

Co-authored-by: gingervitis <gingervitis@users.noreply.github.com>
2021-05-22 23:27:51 -07:00
Gabe Kangas
9150fba317 Tweak latency message 2021-05-05 18:22:17 -07:00
gabek
158da79821 Prettified Code! 2021-05-06 00:19:53 +00:00
Gabe Kangas
7254a8ee09 Update latency levels 2021-05-05 17:19:12 -07:00
Gabe Kangas
d2145b5b62 Point to web page doc in css component 2021-04-16 12:03:49 -07:00
Gabe Kangas
01f3ab9a27 Add confirmation popup for codec selection. Closes https://github.com/owncast/owncast/issues/891 2021-04-13 13:54:58 -07:00
Gabe Kangas
2a5d8d37d0 Layout and text around codec selection 2021-04-13 13:54:58 -07:00
Gabe Kangas
cad99d9cb3 Tweak latency setting text 2021-04-13 13:54:58 -07:00
Gabe Kangas
dba1654807 Fix links 2021-04-13 13:54:58 -07:00
Gabe Kangas
f04f385f2b Start codec selection in admin 2021-04-13 13:54:57 -07:00
gingervitis
0efc09bb72 add textarea field for custom css (#113)
* add textarea field for custom css

* Prettified Code!

Co-authored-by: gingervitis <gingervitis@users.noreply.github.com>
2021-04-12 00:07:08 -07:00
Gabe Kangas
e87358aa5b Force logo to re-load after uploading new image. Closes https://github.com/owncast/owncast/issues/894 2021-04-07 22:51:27 -07:00
Gabe Kangas
9602538098 Truncate url and limit width of social content (#89)
* Truncate and limit width of social list. closes https://github.com/owncast/owncast/issues/845

* Remove new class and allow text to wrap in existing css class
2021-03-27 16:38:27 -07:00
Gabe Kangas
e244111bbb Fix broken urls. Closes https://github.com/owncast/owncast/issues/798 2021-03-25 20:43:50 -07:00
Gabe Kangas
ea1ed11e72 Changing server url was resetting other updated fields (#86)
* changing url was resetting other fields. Closes https://github.com/owncast/owncast/issues/854

* specify config path for various instanceDetails fields instead

* fix react warning

Co-authored-by: gingervitis <omqmail@gmail.com>
2021-03-24 14:12:22 -07:00
nebunez
3031f8144e Upload logo (#54)
* add upload component for logo

* - move upload logo functionlity to its own component
- style upload logo component
- display current logo from server
- implement submit button on logo updater, to submit new logo to api after update
- add some submit status indicator

* update edit-logo component

Logo now posts correctly to owncast api endpoint. This update includes file type
validation and removes the submit button, since the ant.d Upload component
already handles the post logic.

* remove submit-button style for logo upload

Co-authored-by: gingervitis <omqmail@gmail.com>
2021-03-21 19:07:12 -04:00
nebunez
b1256bcd08 implement custom welcome message (#65) 2021-03-14 21:55:01 -07:00
Gabe Kangas
8bac350f61 Add server setting to disable chat (#61)
* Add server setting to disable chat

* Prettified Code!

Co-authored-by: gabek <gabek@users.noreply.github.com>
2021-03-14 11:39:07 -07:00