Commit graph

385 commits

Author SHA1 Message Date
Gabe Kangas
06793078f6 Remove the chat client table from the viewers page since that all exists on the chat page now 2021-07-21 17:13:04 -07:00
Gabe Kangas
4a5badcd1f Set initialValue for welcome mesage. Closes https://github.com/owncast/owncast/issues/1236 2021-07-21 16:05:29 -07:00
Meisam
3b98bc01c2 rm username and message count from viewer-info (#258) 2021-07-21 10:03: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
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
Thilo Billerbeck
51b3fc1f76 rework stream info box in offline notice to conform more with the overall design (#196)
* rework stream info field to conform with the offline page layout

* moved offline notice css to separate file

* used ant design bold text option
2021-05-27 15:58:31 -07:00
Gabe Kangas
aa7f7f58dd Show RTMP port on home page. Closes https://github.com/owncast/owncast/issues/1049 2021-05-24 22:23:44 -07: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
gabek
8b8bf3127b Prettified Code! 2021-04-20 01:25:52 +00:00
Gabe Kangas
3989f7d49f Remove collapse and shrink text a bit since it can be too big on longer urls 2021-04-19 18:24:04 -07:00
Gabe Kangas
95e3a1d4c5 Fix layout of checkboxes in modals. Closes https://github.com/owncast/owncast/issues/945 2021-04-19 17:59:04 -07:00
Gabe Kangas
2a5d8d37d0 Layout and text around codec selection 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
6ebe52c5f4 Experiment with colapsing details 2021-04-08 20:57:50 -07:00
Thilo Billerbeck
2e2b730b85 added stream conneciton info box to offline notice (#107) 2021-04-08 19:22:46 -07:00
Gabe Kangas
190b15e592 Limit icon size. Closes https://github.com/owncast/owncast/issues/890 2021-04-04 20:06:26 -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
3fc7619367 Clear actions modal on save 2021-03-31 21:34:55 -07:00
Gabe Kangas
aefe884daf Stop leaking instances via links. Closes https://github.com/owncast/owncast/issues/822 2021-03-22 20:43:58 -07:00
Gabe Kangas
2f27f516dc Only allow SSLed urls for external actions. Closes https://github.com/owncast/owncast/issues/833 2021-03-17 21:26:27 -07: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
Gabe Kangas
174a4891fd Fix typo 2021-03-07 23:00:23 -08:00
Gabe Kangas
4232ff52b0 Fix text style breaking build 2021-03-07 15:52:58 -08:00
gabek
5ff5665652 Prettified Code! 2021-03-05 09:02:10 +00:00
Gabe Kangas
582b234528 Add a link to adding geo details about viewers 2021-03-05 01:01:31 -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
Bradley Hilton
5f1cacf093 Add targets to most of the doc links (#50)
* Add targets to most of the doc links. Should fix #49

* Prettified Code!

Co-authored-by: graywolf336 <graywolf336@users.noreply.github.com>
2021-02-26 12:38:55 -08:00
gabek
69d194f20d Prettified Code! 2021-02-17 19:41:04 +00:00
Gabe Kangas
e3472226d2 Add offline homepage info box about the directory if it's disabled 2021-02-17 11:40:22 -08:00
Gabe Kangas
8bd7c77a11 Fix linter suggestions 2021-02-16 11:41:24 -08:00
Gabe Kangas
07c110cedc Shorten help page section titles. Closes https://github.com/owncast/owncast/issues/730 2021-02-16 10:38:09 -08:00
gingervitis
dd1cfb64db - add <Col>s to areas with <Row>s for consitency
- give main content a fixed width so really wide forms dont look that funny
- fix to make markdown editor preview text black to address https://github.com/owncast/owncast/issues/726
2021-02-15 21:22:17 -08:00
gabek
259ac676ff Prettified Code! 2021-02-15 22:09:34 +00:00
Gabe Kangas
ee5e462c59 Update hint texts and add links to documentation 2021-02-15 14:08:53 -08:00
gingervitis
97187f5541 lint for passing builds 2021-02-15 00:36:06 -08:00
gingervitis
8d5411a0d6 hella cleanup - index page items; use more Row/Cols to reduce custom css layout 2021-02-14 22:20:25 -08:00
gingervitis
6d83992ff0 style adjustments 2021-02-14 19:04:38 -08:00
gingervitis
220c48432f clean up video config forms and styling 2021-02-14 18:46:34 -08:00
gingervitis
c5d4851296 add logo preview 2021-02-14 16:52:31 -08:00
gingervitis
682ddf96c3 more cleanup 2021-02-14 01:45:08 -08:00
gingervitis
d55e4dfe29 misc cleanup 2021-02-14 01:30:42 -08:00
gingervitis
44cef18a00 define more readable owncast color variables; apply var style names consistenly through other stylessheets; reaname file for clarity 2021-02-14 00:41:20 -08:00
gingervitis
a122ee6c42 Admin css overhaul pt2 (#19)
* tweaks to offline state in admin viewers page

If stream is offline, hide current viewers statistic and viewers table.
Also, change wording for describing max viewers.

* take out ant dark stylesheet, organize ant color overrides

* remove ant dark css; cleanup ant overrides; format public-detail page

* combine toggleswitch component style with textfield so layout can be shared

* fix toggleswitch status message placement

* - update styles for modals, collapses
- move reset dir into its own component
- assorted style cleanups ans consistencies

* hide entire advanced section for resetyp if no yp

* temp adjustments to video modal

* temp comment out toggle switch use for later'

* address PR comments

* lint

* update type

* allow warnings during lint

Co-authored-by: nebunez <uoj2y7wak869@opayq.net>
2021-02-12 23:55:59 -08:00
Gabe Kangas
250acbf6e9 Update webhook text 2021-02-10 00:27:02 -08:00
Gabe Kangas
8484baac28 Make access token and webhooks buttons look correct 2021-02-10 00:17:16 -08:00
nebunez
a123967645 move components folder and fix build errors (#18)
* move components folder and fix build errors

Fixes https://github.com/owncast/owncast/issues/689

* Prettified Code!

Co-authored-by: nebunez <nebunez@users.noreply.github.com>
2021-02-06 19:38:58 -08:00
nebunez
fa9f27edca tweaks to offline state in admin viewers page (#17)
If stream is offline, hide current viewers statistic and viewers table.
Also, change wording for describing max viewers.
2021-02-06 14:52:54 -08:00
Gabe Kangas
d46d954a29 Add some context and instructions around latency levels 2021-02-05 17:24:19 -08:00
Gabe Kangas
a2ed01b088 Remove last used column for webhooks as it does not really make sense to have it 2021-02-04 19:23:41 -08:00
gingervitis
d36ee58b0e Merge branch '0.0.6' of github.com:owncast/owncast-admin into 0.0.6 2021-02-04 14:51:23 -08:00
gingervitis
6d89fdf6c3 a fix for https://github.com/owncast/owncast/issues/691 (and some linting) 2021-02-04 14:50:03 -08:00
Gabe Kangas
5c99b124aa Continue to add doc links, update copy, and tweak alert messages 2021-02-04 12:41:35 -08:00
gingervitis
5dd4d49118 Merge branch 'admin-css-overhaul' into 0.0.6 2021-02-04 09:21:36 -08:00
gingervitis
c65c97df85 prettify some files 2021-02-04 09:19:16 -08:00
gingervitis
7786c7e113 separate out styles for markdowneditor; convert mainlayout style module styles to just sass; add style to stream title editor in header; 2021-02-04 09:17:20 -08:00
gingervitis
6e43870d41 cleanup some forms; break out major config styles into their own files 2021-02-04 08:04:00 -08:00
Gabe Kangas
50b7425a03 Some missing renames when standardizing on the single name property 2021-02-03 23:51:38 -08:00
Gabe Kangas
e8c24fd2d4 Add alert message for global notifications 2021-02-03 23:24:12 -08:00
Gabe Kangas
e142fa9e7c Typescript: limit tag to be a string not a number 2021-02-03 21:08:47 -08:00
Gabe Kangas
ed80ac13b5 Remove disable upgrade check bool 2021-02-03 19:14:25 -08:00
Gabe Kangas
3790aba34f Move latency buffer setting under the output variants 2021-02-03 16:23:06 -08:00
Gabe Kangas
e3ea0e8f43 Move tags into the general settings page 2021-02-03 16:16:05 -08:00
Gabe Kangas
2e2e1fd2e7 Continuing to tweak naming of sections and organizing of config items. WIP 2021-02-03 16:06:54 -08:00
Gabe Kangas
38a20d022d Add support for some specific placeholders for correct social urls 2021-02-03 15:16:33 -08:00
Gabe Kangas
53cf80282e Fix issue where you cannot re-enable storage after disabling it 2021-02-03 12:20:03 -08:00
Gabe Kangas
5e2c1a42b0 Set some actual values in admin video forms 2021-02-03 10:26:46 -08:00
Gabe Kangas
5038992513 Allow deleting any variant as long as there is more than one 2021-02-03 10:11:11 -08:00
Gabe Kangas
59871401d6 Custom page content -> Page Content 2021-02-03 00:00:20 -08:00
Gabe Kangas
7cc194bb2a Remove username as a property. Simplify field names 2021-02-02 23:59:33 -08:00
gingervitis
103a47bc45 add message viz toggle component to be able to toggle one chat message at a time; address https://github.com/owncast/owncast/issues/568 2021-02-02 11:02:36 -08:00
Gabe Kangas
590811663a Move streamTitle to status so it can be updated via status polls in the background 2021-02-01 22:20:59 -08:00
Gabe Kangas
25766003d7 At least for the time being hide the audio configuration, nobody uses it 2021-02-01 18:55:06 -08:00
Gabe Kangas
fc100cec35 Show warning after changing storage 2021-02-01 18:19:13 -08:00
Gabe Kangas
838f34d0d0 Allow saving when toggling enabled 2021-02-01 16:21:58 -08:00
Gabe Kangas
66f15ceaff Add some info and directions to storage screen 2021-02-01 15:20:26 -08:00
Gabe Kangas
d557788434 Put stream title input in the global header 2021-02-01 14:51:08 -08:00
gingervitis
3db97f1bec streamkey field style update 2021-02-01 14:12:26 -08:00
gingervitis
3488a259bd rename status file for clarity; temp style fix for streamkey actions 2021-02-01 00:36:27 -08:00
gingervitis
a69cfd7abf move storage form to config for consistency 2021-02-01 00:05:09 -08:00
gingervitis
cd8d877a59 fix styles; update storage validation checker 2021-02-01 00:01:38 -08:00
gingervitis
7501cfc548 revise Storage forms, and add basic validation to it; misc field cleanup 2021-01-31 23:40:39 -08:00
gingervitis
05167f77e5 adjust other status info areas 2021-01-31 22:07:00 -08:00
gingervitis
a8d515724c Merge branch 'gw/20201226-admin-formfields' into css-overhaul 2021-01-31 21:36:52 -08:00
gingervitis
b26b8abb9b finalize layout of textfields; add field status component 2021-01-31 21:36:14 -08:00
Gabe Kangas
5fc955d2a1 storage form 2021-01-31 19:45:26 -08:00
gingervitis
037e8f25a7 initial temp fixes on form fields 2021-01-31 10:13:35 -08:00
gingervitis
add2f1329b cleanup 2021-01-31 01:55:19 -08:00
gingervitis
67c160afdb some prettifying 2021-01-31 01:38:20 -08:00
gingervitis
d01c2f081f Merge branch 'formfield-v2' into gw/20201226-admin-formfields 2021-01-31 01:00:28 -08:00
gingervitis
ba65aa2406 add regular form field comp with no submit button 2021-01-31 00:58:27 -08:00
gingervitis
c255b81093 rename formfield files for clarity 2021-01-31 00:48:39 -08:00
Gabe Kangas
0c111c2c0b Replace presets with cpu usage levels 2021-01-30 22:53:28 -08:00
gingervitis
0cc72b0d4c Merge branch 'gw/20201226-admin-formfields' into formfield-v2 2021-01-30 19:33:38 -08:00
nebunez
438161b373 Add random streamkey generation and copy key
closes #616
2021-01-30 22:25:44 -05:00
gingervitis
579a0a8838 make basic form field wit no submit, so a submit text field can compose it 2021-01-30 12:27:07 -08:00
Gabe Kangas
29e598d248 Guard against null broadcaster. Hopefully addresses #635 2021-01-30 12:02:03 -08:00
gingervitis
b37b57feda fix streamtitle change field on index 2021-01-30 01:39:58 -08:00
gingervitis
70dabb87d4 Merge branch 'gw/20201226-admin-formfields' of github.com:owncast/owncast-admin into gw/20201226-admin-formfields 2021-01-29 10:27:02 -08:00
gingervitis
97b2e00eee ts cleanup on some config components 2021-01-29 10:26:55 -08:00
Gabe Kangas
81392ee2cf Try to get the stream title text field working. Failing. 2021-01-28 12:46:19 -08:00
gingervitis
84f001c344 update readme 2021-01-28 03:23:42 -08:00
gingervitis
5f70c77458 refactor forms to not use ant Form component; split server and instance details forms into their own components 2021-01-28 03:08:57 -08:00
gingervitis
04926d53e1 update todo list 2021-01-27 10:37:00 -08:00
gingervitis
0e04905086 Merge branch 'gw/20201226-admin-formfields' of github.com:owncast/owncast-admin into gw/20201226-admin-formfields 2021-01-27 10:32:03 -08:00
gingervitis
c92871278c update readme. EVERYTHING ELSE IS WIP 2021-01-27 10:31:53 -08:00
gingervitis
ff51c168ff reorganize styles and pages (wip); update readme 2021-01-27 01:46:08 -08:00
Gabe Kangas
e8ca1d9eea Add advanced options to s3 table so all the data is available for the new form 2021-01-26 21:13:07 -08:00
Gabe Kangas
8ddd780281 Disable social ok button if URL is not valid 2021-01-24 13:16:33 -08:00
Gabe Kangas
fbffa732d4 Post-merge fixes 2021-01-24 13:09:59 -08:00
gingervitis
9ea5518503 notes 2021-01-24 13:06:26 -08:00
gingervitis
9ad9791931 edit and update social links in modal 2021-01-24 13:06:26 -08:00
gingervitis
c3547f189d edit social handles in modal, wip 2021-01-24 13:06:26 -08:00
Gabe Kangas
d2adda123c Throw a stream title input on the dashboard 2021-01-24 13:06:26 -08:00
Gabe Kangas
82a16c7d05 Use new current broadcast info for admin dashboard data 2021-01-24 13:06:26 -08:00
Gabe Kangas
7822860f2c Remove stream key from admin dashboard. Closes https://github.com/owncast/owncast/issues/615 2021-01-24 13:06:26 -08:00
gingervitis
d1cc0dfd97 start on social links editing, wip 2021-01-24 13:06:25 -08:00
gingervitis
015f93ea56 rename form 2021-01-24 13:06:05 -08:00
gingervitis
573d21d7e7 update segments editor to use new latency api 2021-01-24 13:06:05 -08:00
gingervitis
5b4178b667 cleanup 2021-01-24 13:06:05 -08:00
gingervitis
93fa75df2e add delete variant button 2021-01-24 13:06:05 -08:00
gingervitis
73dd084672 add segement slider editor 2021-01-24 13:06:05 -08:00
gingervitis
2ddce9b75a get variant modal to submit to api and update values 2021-01-24 13:06:05 -08:00
gingervitis
4efc644955 update variant default source 2021-01-24 13:06:05 -08:00
gingervitis
0bdcd0fbf6 edit side nav 2021-01-24 13:06:05 -08:00
Gabe Kangas
fb48b5008a Add page content editor to sidebar 2021-01-24 13:06:05 -08:00
gingervitis
8458849d88 form fields for video config modal 2021-01-24 13:05:43 -08:00
gingervitis
61e172908a update layout colors to be consistently dark 2021-01-24 13:05:43 -08:00
gingervitis
5ed73d7f6f start video variant page; setup video variant table for modals wip; use dark theme as default 2021-01-24 13:05:43 -08:00
gingervitis
e7e89556e7 apply config form flow to edit content page 2021-01-24 13:05:43 -08:00
Gabe Kangas
2772a8e5ec First pass at page content editor 2021-01-24 13:05:43 -08:00
gingervitis
f19dba31da clean up and extra fields 2021-01-24 13:05:43 -08:00
gingervitis
f385233109 add number checking 2021-01-24 13:05:43 -08:00
gingervitis
c34aba2f5c initial video settings setup 2021-01-24 13:05:43 -08:00
gingervitis
5f0d7480bb clean up and style tweaks 2021-01-24 13:05:43 -08:00
gingervitis
19ae6205c5 have forms call predefine post function 2021-01-24 13:05:43 -08:00
gingervitis
c61e7e9c14 - start a README to document config admin later - update constants - add instanceUrl field to public details; if empty, then turn off yp.enabled. - edit YP/Directory settings; hide if instanceUrl is empty - update toggleswitch logic 2021-01-24 13:05:43 -08:00
gingervitis
c6e978f182 - start a README to document config admin later
- update constants
- add instanceUrl field to public details; if empty, then turn off yp.enabled.
- edit YP/Directory settings; hide if instanceUrl is empty
- update toggleswitch logic
2021-01-24 13:05:43 -08:00
gingervitis
c93aefa05d edit tags section 2021-01-24 13:05:43 -08:00
gingervitis
624ab72eb3 start organizing nav; start on Tags editing 2021-01-24 13:05:43 -08:00
gingervitis
f9b7a0d8e0 cleanup and styling , wip 2021-01-24 13:05:43 -08:00
gingervitis
78db81a8eb pass field resetter and initial values as props down to custom input element 2021-01-24 13:05:43 -08:00
gingervitis
f0e5bbae1f - create default values for starter fields
- add starter api urls
- try and add TS types for initial components and objects
- cleanup status indicator on layout header
- create custom textfield for config form editing
2021-01-24 13:05:41 -08:00
gingervitis
f63fe9ea7b wip 2021-01-24 13:04:59 -08:00
gingervitis
f446385a7e continue initial setup 2021-01-24 13:04:59 -08:00
gingervitis
48aea8024e notes 2021-01-24 13:04:57 -08:00
Gabe Kangas
98b122f8c5 Add select all button to modals 2021-01-20 22:05:16 -08:00