Commit graph

18 commits

Author SHA1 Message Date
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
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
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
gingervitis
97187f5541 lint for passing builds 2021-02-15 00:36:06 -08:00
gingervitis
d55e4dfe29 misc cleanup 2021-02-14 01:30:42 -08:00
Gabe Kangas
8484baac28 Make access token and webhooks buttons look correct 2021-02-10 00:17:16 -08:00
Gabe Kangas
98b122f8c5 Add select all button to modals 2021-01-20 22:05:16 -08:00
Gabe Kangas
cb5b1aec0e Link webhooks and access token pages to documentation 2021-01-18 19:13:04 -08:00
Gabe Kangas
d4d08a8307 Add HAS_ADMIN_ACCESS scope 2021-01-18 17:00:28 -08:00
Gabe Kangas
e0f6f73f05 Add some simple validation to access token and webhook forms 2021-01-17 11:11:58 -08:00
Gabe Kangas
a74dc31dd4 Centralize available scopes 2021-01-05 16:51:57 -08:00
Gabe Kangas
0012fbb4d1 push -> concat 2021-01-05 16:43:33 -08:00
Gabe Kangas
cd9fead87a Add single new token to list on save 2021-01-05 12:49:19 -08:00
Gabe Kangas
45337d0bea Cleanup 2021-01-05 11:35:02 -08:00
Gabe Kangas
a6cd3a1a5f Fix build error 2021-01-04 20:46:27 -08:00
Gabe Kangas
dd78f7c12b First pass at access token creation page 2021-01-04 17:49:45 -08:00