Commit Graph

83 Commits

Author SHA1 Message Date
Gabe Kangas
b7552d9bc1 Dedupe name list 2021-08-17 17:38:10 -07:00
Gabe Kangas
e3eda87719 Auto-expand utilities menu when upgrade is available. Closes https://github.com/owncast/owncast/issues/1299 2021-08-12 23:46:24 -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
5676b38b98 Prettified Code! 2021-07-01 19:09:44 +00:00
Meisam
f64d06279d Collapse news content in the admin home page (#236)
* use Collapse for news feed

* set url as the Panel key
2021-07-01 12:09:06 -07:00
gabek
c804fdc538 Prettified Code! 2021-06-22 03:20:17 +00:00
Gabe Kangas
caa170e4ef Start new chat config sections 2021-06-21 20:19:20 -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
controlfreak
ad3552f683 added seconds format for log (#158)
tested with stream connect disconnect all good
2021-05-06 17:02:17 -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
Gabe Kangas
4794339b8a Update charting libraries 2021-04-12 19:56:37 -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
810a8a7e3f allow empty and/or missing news 2021-04-11 23:56:41 -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
70f33b624f Show loading spinner for news component 2021-04-04 18:43:55 -07:00
Gabe Kangas
a6fa16c1bf Add key to ArticleItem list 2021-04-04 18:30:38 -07:00
gingervitis
2c86fa34fd add news feed (#99)
* add news feed

* Prettified Code!

Co-authored-by: gingervitis <gingervitis@users.noreply.github.com>
2021-04-03 21:25:21 -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
Gabe Kangas
195ac23bb2 Admin support for creating 3rd party external link actions (#72)
* WIP external actions

* Add comment

* Add support for external actions icons and colors
2021-03-15 15:27:19 -07: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
Gabe Kangas
6669d9e425 Support setting a custom name for a stream output variant (#64)
* Display+set video stream output variant names

* Merge in admin updates

* Prettified Code!

* Fix build

* Prettified Code!

Co-authored-by: gabek <gabek@users.noreply.github.com>
2021-03-11 13:39:36 -08:00
Gabe Kangas
88e659e8fb Fix broken image 2021-03-07 19:51:49 -08:00
Gabe Kangas
6f6b4c0aa1 Fix thumbnail url 2021-03-05 00:52:45 -08:00
gabek
98b038e426 Prettified Code! 2021-03-04 08:54:26 +00:00
Gabe Kangas
f64699b379 Add source param to documentation links 2021-03-04 00:53:50 -08:00
gingervitis
7958fc6b32 fix react warning 2021-03-02 22:39:27 -08:00
gingervitis
a573898547 - address https://github.com/owncast/owncast/issues/780 to stop showing 'loading' on OK button when error is returned (applies for video variant modal and social icon modal)
- just use pre-exisiting const to render cpu table item
2021-03-02 22:23:50 -08:00
Gabe Kangas
55f5406e5f Default empty width/height as 0 when cleared. Closes https://github.com/owncast/owncast/issues/781 2021-03-02 19:10:23 -08:00
gingervitis
49269dd175 Gw/videovariantfixes (#53)
* A fix for issue https://github.com/owncast/owncast/issues/770
- merge CPU slider functionality into main video variant form
- move slider constants into contants file for consistency and to reduce clutter on variant form file

* disable other forms and add a notice about vieo passthrough enabling

* Prettified Code!

* Tweak message text

* Prettified Code!

Co-authored-by: gingervitis <gingervitis@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
Co-authored-by: gabek <gabek@users.noreply.github.com>
2021-02-26 23:44:13 -08:00
jeyemwey
9027814a0e Prettified Code! 2021-02-26 21:52:49 +00:00