Commit graph

621 commits

Author SHA1 Message Date
Gabe Kangas
d262510469
Replace default social link icon.
The old one, a globe, looked like people were linking to a map or
something.
2022-01-13 13:07:08 -08:00
Gabe Kangas
3ab5298f7f
Fix the modals being too high. Closes #1664 2022-01-12 20:26:25 -08:00
Gabe Kangas
995080b478
Guard against invalid chat messages with no user object 2022-01-12 20:23:01 -08:00
Gabe Kangas
36f8a54c91
Remove old doc 2022-01-12 14:08:28 -08:00
Gabe Kangas
5723c8a0a0 Optimize images 2022-01-12 14:01:26 -08:00
gabek
04f4464e5e Prettified Code! 2022-01-12 21:53:44 +00:00
Gabe Kangas
045a0a2afd
Social features / ActivityPub federation (#1629)
* Support webfinger requests for the live account. Closes https://github.com/owncast/owncast/issues/1193

* Support for actor requests. Returns response for live actor. Closes https://github.com/owncast/owncast/issues/1203

* Handle follow and unfollow requests. Closes
https://github.com/owncast/owncast/issues/1191 and https://github.com/owncast/owncast/issues/1205 and https://github.com/owncast/owncast/issues/1206 and https://github.com/owncast/owncast/issues/1194

* Add basic support for sending out text activities. For https://github.com/owncast/owncast/issues/1192

* Some error handling and passing of dynamic local account names.

* Add hardcoded example image attachment to test post

* Centralize the map of accounts and inboxes

* No longer disable the preview generator based on YP toggle

* Send a federated message to followers when stream starts. For https://github.com/owncast/owncast/issues/1192

* Placeholder for attaching tags

* Add image description

* Save and get to outbox persistence. Return using outbox endpoint for actor

* Pass payloads to be handled through the gochan

* Handle undo follow requests explitly, not all undo requests

* Add API for manually sending simple federated messages. Closes #1215

* Verify inbox requests. Closes #1321

* Add route to fetch a single AP object by ID. For #1329

* Add responses to fediverse nodeinfo requests

* Set and get federation config values for admin

* Handle host-meta requests

* Do not send out message if disabled. Use saved go live message.

* Require AP-compatible content types for AP-related requests

* Rename ap models to apmodels for clarity

* Change how content type matching takes place.

* io -> ioutil

* Add stub delete activity callback

* Handle likes and announces to surface engagement in chat. Part of #1229

* Append url to go live posts

* Do not require specific content types for nodeinfo requests

* Add follow engagement chat message via AP

* add owncast user-agent to requests

* Set note visibility to public (for now)

* Fix saving/fetching a single object

* Add support for x-nodeinfo2 responses

* Point to the dev admin branch for ap

* Bundle in dev admin for testing

* Add error logging

* Add AP middleware back

* Point to the new external compatible logo endpoint

* Clean up more AP logging to help testing

* Tweak go live text and link hashtags

* Fix bug in fetching init time

* Send update actor activities when server details/profile is updated

* Add federation config overview to web client config

* Add additional actor properties

* Make the AP middleware checking more flexible when looking at types

* First pass at remote fediverse follow flow. For #1371

* Added a basic AP actor followers endpoint

* WIP client followers API

* Add profile-page reference to webfinger response

* Add aliases to webfinger response

* Fix content-type returned to be expected activitypub+json

* First pass at followers api

* Point at local dev copy of go-fed/activity

* Add custom toot Hashtag objects to posts

* Store additional user details to followers table

* Fix AP followers endpoint. Closes #1204

* Add owncast hashtag as an invisible tag to go live posts

* Reject AP requests when it is disabled

* Add actor util for generating full account user from person object

* Verify inbox requests before performing any other work

* Accept actor update requests

* Fix linter errors in federation branch

* Migrate AP SQL to sqlc for type safe queries

* Use the @unclearParadigm REST parameter helper

* Fix verifying post ID on AP engagement

* WIP privacy/request approval

* Style the remote follow modal

* First pass at a followers list component w/ mock data. #1370

* Revert "Use the @unclearParadigm REST parameter helper"

This reverts commit c8af8a413f.

* Fix get followers API

* Add support for requiring approval. Closes https://github.com/owncast/owncast/issues/1208

* Handle Applications as Actors partly for PeerTube support

* add temp todo list

* check route on load, this might change later

* style followers

* account for just 1 tab case

* Remove mock data. Allow showing follow button even when there are no external actions defined

* Point to actual followers API

* Support fallback img for follower views

* Remove duplicate verification. Add some additional verbose logging

* Bundle dev admin

* Add type to host-meta webfinger template response

* Tweak remote follow modal content

* WIP federation followers refactor

* Do not send pointer to middleware

* Update admin

* Add setting for toggling displaying fediverse engagement. Closes #1404

* Add in-development admin

* Do not enable cors on admin followers api

* Add db migration for updating messages table

* Enable empty string go live messages to disable

* Remove debug messages

* Rework some ActivityPub handling.

Create new Actor->Person handling.
Create new Actor->Service handling.
Add engagement handlers to send chat events and store event objects.
Store inbound activities to new ap_inbound_activities table.

* Support federated engagement events.

Store them in the messages table and surface them via chat events.

* Support federated event engatement in the chat

* Tweak web UI followers handling

* Point go.mod at remote fork instead of local

* Update admin

* Merged in develop. Couple fixes

* Update dev admin

* Update fedi engagement posts.

- Fix incorrect action text.
- Add action icons.

* Set public as to instead of cc for ap msg

* Updated styling for federated actions in chat

* Add support for blocking federated domains. Closes #1209

* Force checking of https in verify step

* Update dev admin

* Return user scopes in chat history api. Closes #1586

* Update dev admin

* Add AP outbound request worker pool. Closes #1571

* Disable (temporarily?) owncast tag on AP posts

* Consolidate creating activity+notes in outbound AP messages

* Add inbox worker pool. Closes #1570

* Update dev admin bundle

* Clean up some logs

* Re-enable inbound verfication

* Save full IRI to outbox instead of path

* Reject if full IRI is not found in outbox

* Use full ActivityPub user account in chat event

* Fix and expand follower APIs

- Add missing IDs to AP follower endpoints
- Split AP follower endpoints into initial request and pages.
- Support pagination in AP requests.

* Include IRI in error message

* Hide chat toggle when chat is hidden. Closes #1606

* Updates to followers pagination

* Set default go live message

* Remove log

* indirect -> direct import

* Updates for inbound federated event handling.

- Keep track of existing events and reject duplicates.
- Change what is sent to chat for surfing federated engagement.
- Keep track if outbound events are automated "go live" events or not.

* Update chat federated engagement.

* Update dev admin.

* Move from being a person to a bot (service). Closes #1619

* Only set server init date if not already set

* Only save notes to outbox able

* Rework private-mode followers/approvals

* API for returning a list of federated actions for #1573

* Fix too-small follower cells and jumpy tabs. Closes #1616 and closes #1516

* Fix shortcuts getting fired on inputs. Fixes #1489 and #1201

* Add spinner, autoclose + other fixes to follow modal. Fixes #1593

* Fix fetching a single object by IRI

* SendFederationMessage -> SendFederatedMessage

* Autolink and create tag objects from manual posts. Closes #1620

* Update dev admin bundle

* Handle engagement from non-automated/live posts

* Reject federated engagement actions if they do not match a local post

* Update dev admin bundle

* A bunch of cleanup

* Fix unused assignments and logic

* Remove unused function

* Add content warning and sentive content flag if stream is NSFW. Closes #1624

* Disable fetching objects by IRI when in private mode. Closes #1623

* Update the error message of the remote follow dialog. closes #1622

* Update dev admin

* Fix NREs throwing in test content

* Fix query that wasn't properly filtering out hidden messages

* Test against user being disabled instead of message visibility

* Fix automated test NRE

* Update comment

* Adjust federated engagement chat views. Closes #1617

* Add additional index to users table

* Add support for removing followers/requests. Closes #1630

* Reject federated actions from blocked actors. #1631

* Use fallback avatar if it fails to load. Closes #1635

* Fix styling of follower list. Closes #1636

* Add basic blurb stating they should follow the server. Closes #1641

* Update dev admin

* Set default go live message in migration. Closes #1642

* Reset the messages table on 0.0.11 schema migration

* Fix js error with moderation actions. Closes #1621

* Add a bit more clarification on follow modal. Closes #1599

* Remove todos

* Split out actor and domain blocking checks

* Check for errors on default values being set

* Clean up actor rejection due to being blocked

* Update dev admin

* Add colon to error to make it easier to read

* Remove markdown rendering of go live message. Reorganize text. Remove content warning. Closes #1645

* Break out the sort+render messages logic so it can be fired on visibility change. Closes #1643

* Do not send profile updates if federation is disabled

* Save follow references to inbound activities table

* Update dev admin

* Add blocked actor test

* Remove the overloaded term of Follow from social links

* Fix test running in memory only

* Remove "just" in engagement messags

* Replace star with heart for like action.

* Update dev admin

* Explicitly set cc as public

* Remove overly using the stream name in fediverse engagement messages

* Some federated/follow UI tweaks

* Remove explicit cc and bcc as they are not required

* Explicitly set the audience

* Remove extra margin

* Add Join Fediverse button to follow modal. Closes #1651

* Do not allow multiple follows to send multiple events. Closes #1650

* Give events a min height

* Do not allow old posts to be liked/shared. Closes #1652

* Remove value from log message

* Alert followers on private mode toggle

* Ignore clicks to follow button if disabled

* Remove underline from action buttons

* Add moderator icon to join message

* Update admin

* Post-merge remove unused var

* Remove pointing at feature branch

Co-authored-by: Ginger Wong <omqmail@gmail.com>
2022-01-12 13:53:10 -08:00
Gabe Kangas
814c65eeb7
Add user icon next to username. Closes #1655 2022-01-12 10:10:49 -08:00
Gabe Kangas
5ff5c87674
Move author flair down by 1px 2022-01-06 21:54:13 -08:00
Gabe Kangas
6be0cecc09
Make username in the header more obvious by lightening color 2022-01-06 11:29:25 -08:00
Gabe Kangas
f19840dea9
Change message link colors. For #1551 2022-01-05 21:10:22 -08:00
Gabe Kangas
da89b7d733
Use smooth scrolling with chat 2021-12-29 13:22:24 -08:00
Gabe Kangas
f2e47c99a2
Refactor chat component to fix #1529 2021-12-27 23:00:10 -08:00
Gabe Kangas
4832938fec
Add actions to the renderable message list 2021-12-27 11:29:43 -08:00
Gabe Kangas
a964f02089
Force message not rerendering on moderator privilages. Closes #1538 2021-12-18 23:32:51 -08:00
Gabe Kangas
734a5a45ef
Non-user chat messages should always render as visible 2021-12-15 17:28:56 -08:00
Gabe Kangas
70027d058f
Fix chat react state getting overwritten. Closes #1529 2021-12-12 00:11:38 -08:00
Gabe Kangas
f3a8266c99
Fix some chat event types breaking.
- User moderator message was no longer showing
- Name change event was breaking chat
2021-12-11 16:44:39 -08:00
Gabe Kangas
c3f9f24624
Fix moderator shield showing incorrectly.
It was being shown for all messages if you're a moderator, instead of
just being shown on messages from moderators.
2021-12-11 16:03:24 -08:00
Gabe Kangas
559c85856f
Display moderator status in chat messages 2021-12-09 14:06:48 -08:00
Gabe Kangas
7488dfec37 Optimize images 2021-11-30 17:52:12 -08:00
Gabe Kangas
99f19395e6
Use moderator icon with no background 2021-11-30 15:54:29 -08:00
Owncast
c66e9c22be Commit updated Javascript packages 2021-11-29 18:04:26 +00:00
Owncast
b0ebecfb4c Commit updated Javascript packages 2021-11-27 05:08:49 +00:00
Owncast
3da099d35e Commit updated Javascript packages 2021-11-25 16:48:04 +00:00
Owncast
558f271856 Commit updated Javascript packages 2021-11-25 05:28:00 +00:00
Owncast
d203fa1c3a Commit updated Javascript packages 2021-11-24 19:21:03 +00:00
Owncast
3d44c5d8e4 Commit updated Javascript packages 2021-11-23 15:45:26 +00:00
Gabe Kangas
00019bf86b Allow for rendering a wider color range for messages 2021-11-17 17:56:52 -08:00
Gabe Kangas
040c838881 Keep list of renderable message types and check against them 2021-11-17 17:19:58 -08:00
Gabe Kangas
d213c4a5b7 Only show moderator flag if you are a moderator. Fixes #1536 2021-11-16 17:59:59 -08:00
Gabe Kangas
7b1d24873e Only act on messages of type CHAT. Closes #1537 2021-11-16 17:46:28 -08:00
Owncast
4d998ac589 Commit updated Javascript packages 2021-11-16 17:52:51 +00:00
Gabe Kangas
32e72883a6 Tweak system message style 2021-11-13 17:44:23 -08:00
Gabe Kangas
5a6a4240ae Add new icons and tweak styles of moderator actions 2021-11-13 17:03:17 -08:00
Gabe Kangas
1e1e7f5cf4 Swap out follow platform icon 2021-11-13 16:48:40 -08:00
Gabe Kangas
97f806440e Make emoji small within the moderator info box. closes #1519 2021-11-12 21:42:50 -08:00
Gabe Kangas
cae02f0902 No longer save chat ban state locally. Closes #1518 2021-11-11 15:39:56 -08:00
gabek
f6015dfe50 Prettified Code! 2021-11-03 02:28:19 +00:00
gingervitis
9a91324456
Inline chat moderation UI (#1331)
* - mock detect when user turns into moderator
- add moderator indicator to display on messages and username changer

* also mock moderator flag in message payload about user to display indicator

* add some menu looking icons and a menu of actions

* WIP chat moderators

* Add support for admin promoting a user to moderator

* WIP-
open a more info panel of user+message info; add some a11y to buttons

* style the details panel

* adjust positioning of menus

* Merge fixes. ChatClient->Client ChatServer->Server

* Remove moderator bool placeholders to use real state

* Support inline hiding of messages by moderators

* Support inline banning of chat users

* Cleanup linter warnings

* Puppeteer tests fail after typing take place

* Manually resolve conflicts in chat between moderator feature and develop

Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2021-11-02 19:27:41 -07:00
Gabe Kangas
b43c5e674e
Rework how hiding messages works. (#1509)
* Rework how hiding messages work. Fixes #1350

* Remove unused function

* Revert to old event name to support previously saved webhooks
2021-11-02 18:00:15 -07:00
Jannik
4509be19db
add steam social handle (#1503)
Logo Source: https://de.wikipedia.org/wiki/Datei:Steam_icon_logo.svg
2021-10-30 14:47:00 -07:00
Owncast
2152001ab8 Commit updated Javascript packages 2021-10-21 18:27:19 +00:00
Gabe Kangas
112f6b6aaa Use bundled VHS with VideoJS and reinstall js libraries 2021-10-21 11:23:41 -07:00
Gabe Kangas
fa46bd95aa Roll back to Snowpack 2.x.
This reverts commit 5cc041577c.
2021-10-21 11:14:28 -07:00
Gabe Kangas
5cc041577c Update to Snowpack 3 2021-10-21 10:23:24 -07:00
Owncast
1e36b665d6 Commit updated Javascript packages 2021-10-21 16:36:13 +00:00
Gabe Kangas
269475b423 npm run build to update js modules 2021-10-20 10:27:35 -07:00
Owncast
d18a997dc1 Commit updated Javascript packages 2021-10-20 05:59:10 +00:00
Owncast
822d107ee0 Commit updated Javascript packages 2021-10-11 21:38:53 +00:00
Gabe Kangas
3d1706496e Update + clean up old js module files 2021-10-11 14:37:41 -07:00
gabek
10b0247291 Prettified Code! 2021-10-10 04:00:33 +00:00
Gabe Kangas
a6ba61079f Cap the number of renderable messages to increase performance 2021-10-09 20:59:45 -07:00
leo
958c78641e
Replaces redirect of /embed URLs to return content directly. (#1453)
- Removes relative imports from embedded player, chat.
- Replaces `Redirect` calls with `ServeFile` in `embed.go`.
2021-10-05 13:29:18 -07:00
Owncast
77f96cd7b0 Commit updated Javascript packages 2021-09-28 00:21:51 +00:00
Gabe Kangas
cc6b257470
Automated browser testing (#1415)
* Move automated api tests to api directory

* First pass at automated browser testing
2021-09-17 14:04:09 -07:00
Owncast
44293ef7be Commit updated Javascript packages 2021-09-16 20:02:34 +00:00
Owncast
4c158ea588 Commit updated Javascript packages 2021-09-06 19:36:35 +00:00
Meisam
965ad2854b
Improve no-JS landing page (#1367)
* improve landing page for no js

* update no js page

* update no js explanations

* Some text tweaks

Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2021-08-31 14:53:21 -07:00
gabek
66259ed229 Prettified Code! 2021-08-29 23:59:14 +00:00
Gabe Kangas
4a34ccde05 Increase do not autoscroll buffer to fix chat not scrolling to bottom. Fixes #1324 2021-08-29 16:58:37 -07:00
Owncast
cdbb6d9a44 Commit updated Javascript packages 2021-08-25 18:32:24 +00:00
Ginger Wong
81ecb9a379 convert new lines to empty <p> tags 2021-08-18 17:59:42 -07:00
Ginger Wong
9d6e32640e simplfy message text styles 2021-08-18 17:42:09 -07:00
gabek
747e42f7cc Prettified Code! 2021-08-18 23:11:41 +00:00
Gabe Kangas
8907566ed1 Fixing chat message formatting in #1315 2021-08-18 16:11:00 -07:00
Aaron Parecki
0f00a700e7
set max 10 retries for videojs playlist (#1336) 2021-08-18 15:19:44 -07:00
Owncast
a8c0a6bf98 Commit updated Javascript packages 2021-08-18 19:09:13 +00:00
Owncast
b560d31aee Commit updated Javascript packages 2021-08-18 19:00:23 +00:00
Meisam
4cd7b254da
keep the chat enabled on timer (#1313)
* keep the chat enabled on timer

* fix chat deactivation of stream stop

* simplify the chat status logic

* Use strict inequality

Co-authored-by: gingervitis <omqmail@gmail.com>

* Use strict inequality

Co-authored-by: gingervitis <omqmail@gmail.com>

Co-authored-by: gingervitis <omqmail@gmail.com>
2021-08-15 18:22:13 -07:00
Gabe Kangas
a8c5267e18 Update micromodal 2021-08-13 00:05:22 -07:00
Gabe Kangas
17468f276a Update markjs 2021-08-13 00:05:22 -07:00
Gabe Kangas
e2f9ea5195 Update htm 2021-08-13 00:05:22 -07:00
Gabe Kangas
c791722d71 Update vhs 2021-08-13 00:05:22 -07:00
Gabe Kangas
5adf2cdecd
Pass along disconnect time to determine chat disable timer duration (#1310) 2021-08-12 23:24:43 -07:00
Owncast
bf164d80ce Commit updated Javascript packages 2021-08-12 06:06:46 +00:00
Gabe Kangas
784d10c1e9 Remove "Sent" being inserted incorrectly. Fixes #1252 2021-08-05 21:40:40 -07:00
gabek
a791d9c910 Prettified Code! 2021-07-31 23:22:00 +00:00
Meisam
7e6f53c846
Add standalone chat with ability to send messages (#1270)
* properly pass the messagesOnly to chat

* use actual username if embed is not messageonly

* mv embed chat to chat-overlay

* add new embed chat page

* fix router

* secure random number for non-secure application!

* add chat enable/disable functionality

* add username form

add customStyles

* mv overlay css

* add style for embed chat

style cleanup

* rm username form from chat overlay

* refactoring

* css cleanup

css adjust

* minor cleanup

* mark the embed chats as readonly and readwrite

* replace 301 redirects with 307

* add redirect for the cached address

* set insatnce name in chat
2021-07-31 16:21:30 -07:00
Gabe Kangas
12cbe529de Fix incorrect handling of messages array. Closes #1287 2021-07-31 12:48:42 -07:00
Gabe Kangas
e72b0c640c Update error message 2021-07-28 13:00:20 -07:00
Meisam
2ff9186ee2
fix updateAuthorList (#1276) 2021-07-27 16:55:19 -07:00
gabek
92284f6ca1 Prettified Code! 2021-07-27 22:26:04 +00:00
Gabe Kangas
10f50a03e7 Hide external actions row if there are zero actions. Closes https://github.com/owncast/owncast/issues/1119 2021-07-27 15:25:19 -07:00
Owncast
fe7e9b24ff Commit updated Javascript packages 2021-07-27 17:47:35 +00:00
Gabe Kangas
fac06257ad Add in the optimization where multiple websocket events can exist within a single message 2021-07-26 19:23:15 -07:00
Ginger Wong
0b333dd6b6 update message link color to address #1251 2021-07-25 23:15:31 -07:00
Ginger Wong
f8c06b3da6 Merge branch 'develop' of https://github.com/gabek/owncast into develop 2021-07-25 23:04:12 -07:00
Ginger Wong
d02d25a140 tweak svg bounding box to address #1259 2021-07-25 23:03:23 -07:00
gabek
8c5f7be05c Prettified Code! 2021-07-26 05:41:48 +00:00
Gabe Kangas
f23a1202cc Do not set title text for users without data. Closes #1249 2021-07-25 22:41:15 -07:00
gabek
9b7926963f Prettified Code! 2021-07-26 05:27:02 +00:00
Meisam
10456b0a01
Remove user's own name from the autocomplete suggestions (#1258)
* remove the username from list

* fix updateAuthorList returns
2021-07-25 22:26:27 -07:00
gabek
5f7cc6a327 Prettified Code! 2021-07-24 17:26:17 +00:00
Meisam
7526b5305c
add emoji to the caret position (#1253) 2021-07-24 10:25:40 -07:00
gabek
93f682d526 Prettified Code! 2021-07-23 21:16:13 +00:00
Meisam
bb09c0d187
Autocomplete emoji names (#1250)
* generalize autoComplete function

* autocomplete emoji names

* isolate the state of each token

* minor fix

* save emojiNames in state
2021-07-23 14:15:25 -07:00
gabek
377bf529ad Prettified Code! 2021-07-23 18:21:30 +00:00
Meisam
7867260b9c
getCaretPosition considering all html elements (#1246) 2021-07-23 11:20:59 -07:00
Gabe Kangas
c1dd1b9bf3 fix exception 2021-07-21 23:19:33 -07:00
Gabe Kangas
e7e1758fa4 Force history messages to always be at the front of the messages array 2021-07-21 22:23:24 -07:00
Gabe Kangas
96993435d8 Add missing space. Closes #1231 2021-07-20 23:25:23 -07:00
Owncast
11b59fbb31 Commit updated Javascript packages 2021-07-20 20:28:01 +00:00
gabek
7af5030f5b Prettified Code! 2021-07-20 02:23:06 +00:00
Gabe Kangas
b6f68628c0
Chat refactor + persistent backing chat users (#1163)
* First pass at chat user registration and validation

* Disable chat if the user is disabled/blocked or the server hits max connections

* Handle dropping sockets if chat is disabled

* Fix origin in automated chat test

* Work for updated chat moderation

* Chat message markdown rendering and fix tests

* Put /api/chat behind a chat user access token. Closes #1085

* Reject blocked username changes

* More WIP moderation

* Defer configuring chat until we know if it is enabled. Closes #1135

* chat user blocking. Closes #1096

* Add tests around user access for #1096

* Add external integration chat message API + update integration auth middleware to pass along integration name. Closes #1092

* Delete old chat messages from db as to not hold on to excessive data. Closes #1152

* Add schema migration for messages. Closes #1155

* Commit updated API documentation

* Add chat load test

* Shared db mutex and db optimizations

* Simplify past display name handling

* Use a new test db for each test run

* Wire up the external messages actions + add tests for them

* Move access tokens to be actual users

* Run message pruning at launch + fix comparison

* Do not return API users in disabled users response

* Fix incorrect highlighting. Closes #1160

* Consolidate user table statements

* Set the max process connection limit to 70% of maximum

* Fix wrong old display name being returned in name change event

* Delete the old chat server files

* Wire back up the webhooks

* Remove unused

* Invalidate user cache on changes

* Do not send rendered body as RawBody

* Some cleanup

* Standardize names for external API users to ExternalAPIUser

* Do not log token

* Checkout branch when building admin for testing

* Bundle in dev admin for testing

* Some cleanup

* Cleanup js logs

* Cleanup and standardize event names

* Clean up some logging

* Update API spec. Closes #1133

* Commit updated API documentation

* Change paths to be better named

* Commit updated API documentation

* Update admin bundle

* Fix duplicate event name

* Rename scope var

* Update admin bundle

* Move connected clients controller into admin package

* Fix collecting usernames for autocomplete purposes

* No longer generate username when it is empty

* Sort clients and users by timestamp

* Move file to admin controller package

* Swap, so the comments stay correct

Co-authored-by: Jannik <jannik@outlook.com>

* Use explicit type alias

Co-authored-by: Jannik <jannik@outlook.com>

* Remove commented code.

Co-authored-by: Jannik <jannik@outlook.com>

* Cleanup test

* Remove some extra logging

* Add some clarity

* Update dev instance of admin for testing

* Consolidate lines

Co-authored-by: Jannik <jannik@outlook.com>

* Remove commented unused vars

Co-authored-by: Jannik <jannik@outlook.com>

* Until needed do not return IP address with client list

* Fix typo of wrong var

* Typo led to a bad test. Fix typo and fix test.

* Guard against the socket reconnecting on error if previously set to shutdown

* Do not log access tokens

* Return success message on enable/disable user

* Clean up some inactionable error messages. Sent ban message. Sort banned users.

* fix styling for when chat is completely disabled

* Unused

* guard against nil clients

* Update dev admin bundle

* Do not unhide messages when unblocking user just to be safe. Send removal action from the controller

* Add convinience function for getting active connections for a single user

* Lock db on these mutations

* Cleanup force disconnect using GetClientsForUser and capture client reference explicitly

* No longer re-showing banned user messages for safety. Removing this test.

* Remove no longer needed comment

* Tweaks to forbidden username handling.

- Standardize naming to not use "block" but "forbidden" instead.
- Pass array over the wire instead of string.
- Add API test
- Fix default list incorrectly being appended to custom list.

* Logging cleanup

* Update dev admin bundle

* Add an artificial delay in order to visually see message being hidden when testing

* Remove the user cache as it is a premature optimization

* When connected to chat let the user know their current user details to sync the username in the UI

* On connected send current display name back to client.
- Move name change out of chat component.
- Add additional event type constants.

* Fix broken workflow due to typo

* Troubleshoot workflow

* Bump htm from 3.0.4 to 3.1.0 in /build/javascript (#1181)

* Bump htm from 3.0.4 to 3.1.0 in /build/javascript

Bumps [htm](https://github.com/developit/htm) from 3.0.4 to 3.1.0.
- [Release notes](https://github.com/developit/htm/releases)
- [Commits](https://github.com/developit/htm/compare/3.0.4...3.1.0)

---
updated-dependencies:
- dependency-name: htm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Run npm run build and update libraries

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>

* Commit updated Javascript packages

* Re-send current user info when a rejected name change takes place

* All socket writes should be through the send chan and not directly

* Seed the random generator

* Add keys and indexes to users table

* a util to generate consistent emoji markup

* console clean up

* mod tidy

* Commit updated API documentation

* Handle the max payload size of a socket message.
- Only close socket if x2 greater than the max size.
- Send the user a message if a message is too large.
- Surface the max size in bytes in the config.

* Update admin bundle

* Force all events to be sent in their own socket message and do not concatinate in a single message

* Update chat embed to register for access token

* Use a different access token for embed chat

* Update the chat message bubble background color to be bolder

* add base tag to open links in new window, closes #1220

* Support text input of :emoji: in chat (#1190)

* Initial implementation of emoji injection

* fix bookkeeping with multiple emoji

* make the emoji lookup case-insensitive

* try another solution for Caretposition

* add title to emojis

minor refactoring

* bind moji injection to InputKeyUp

* simplify the code

replace all found emojis

* inject emoji if the modifer is released earlier

* more efficient emoji tag search

* use json emoji.emoji as url

* use createEmojiMarkup()

* move emojify() to chat.js

* emojify on paste

* cleanup emoji titles in paste

* update inputText in InputKeyup

* mark emoji titles with 2*zwnj

this way paste cleanup will not interfere with text which include zwnj

* emoji should not change the inputText

* Do not show join messages when chat is offline. Closes #1224
- Show stream starting/ending messages in chat.
- When stream starts show everyone the welcome message.

* Force scrolling chat to bottom after history is populated regardless of scroll position. Closes https://github.com/owncast/owncast/issues/1222

* use maxSocketPayloadSize to calculate total bytes of message payload (#1221)

* utilize maxSocketPayloadSize from config; update chatInput to calculate based on that value instead of text value; remove usage of inputText for counting

* add a buffer to account for entire websocket payload for message char counting; trim nbsp;'s from ends of messages when calculating count

Co-authored-by: Gabe Kangas <gabek@real-ity.com>

Co-authored-by: Owncast <owncast@owncast.online>
Co-authored-by: Jannik <jannik@outlook.com>
Co-authored-by: Ginger Wong <omqmail@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Meisam <39205857+MFTabriz@users.noreply.github.com>
2021-07-19 19:22:29 -07:00
gabek
e3dc736cf4 Prettified Code! 2021-07-20 01:51:46 +00:00
Gabe Kangas
6328fc6f90 Fix date comparison for showing last stream date. Closes https://github.com/owncast/owncast/issues/1223 2021-07-19 18:51:10 -07:00
Owncast
6d8e0ddfe5 Commit updated Javascript packages 2021-07-15 23:47:47 +00:00
dependabot[bot]
d0b1b604a0
Bump htm from 3.0.4 to 3.1.0 in /build/javascript (#1181)
* Bump htm from 3.0.4 to 3.1.0 in /build/javascript

Bumps [htm](https://github.com/developit/htm) from 3.0.4 to 3.1.0.
- [Release notes](https://github.com/developit/htm/releases)
- [Commits](https://github.com/developit/htm/compare/3.0.4...3.1.0)

---
updated-dependencies:
- dependency-name: htm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Run npm run build and update libraries

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2021-07-12 20:44:21 -07:00
gabek
cea07697f3 Prettified Code! 2021-07-12 17:25:14 +00:00
gingervitis
ab254a3902
put emojiPicker instance in state so page can correctly reflect updates when it has instantiated (#1182) 2021-07-12 10:24:41 -07:00
Rohan Sharma
8fe28dc941
remove the unnecessary websocket connection from the embed player (#1165) 2021-07-06 17:46:52 -07:00
dependabot[bot]
0858e2ed52
Bump video.js from 7.12.3 to 7.13.3 in /build/javascript (#1145)
* Bump video.js from 7.12.3 to 7.13.3 in /build/javascript

Bumps [video.js](https://github.com/videojs/video.js) from 7.12.3 to 7.13.3.
- [Release notes](https://github.com/videojs/video.js/releases)
- [Changelog](https://github.com/videojs/video.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/videojs/video.js/compare/v7.12.3...v7.13.3)

---
updated-dependencies:
- dependency-name: video.js
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Copy library over

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2021-07-01 18:31:48 -07:00
Gabe Kangas
e61b83c5ed Fix missing space in viewer count 2021-06-20 20:15:08 -07:00
Gabe Kangas
f2b2e5c61c Revert "Remove ping requests now that it has been consolidated with status requests"
This reverts commit d9a6be2ac6.
2021-06-20 20:11:21 -07:00
gabek
2aa8b70ead Prettified Code! 2021-06-21 00:24:12 +00:00
Gabe Kangas
57674206b2
Fix + update external modal (#1106)
* Update external action modal. Uses Micromodal. Closes #1020

* refactor modal handling to isolate loading in modal component

* modal style cleanup

* Remove log

Co-authored-by: Ginger Wong <omqmail@gmail.com>
2021-06-20 17:23:39 -07:00
gabek
c848c029d5 Prettified Code! 2021-06-21 00:16:30 +00:00
gingervitis
3b08b50ce0
add a send button on chat for touch screen devices (#1127)
* add a send button on chat for touch screen devices

* cleanup
2021-06-20 17:15:52 -07:00
gabek
b19fa76cd0 Prettified Code! 2021-06-20 17:49:54 +00:00
gingervitis
c45e43c378
display last online time (#1125)
* - if offline calculate and display last online time to address https://github.com/owncast/owncast/issues/1111
- clean up status bar styles

* clean up console
2021-06-20 10:49:16 -07:00
gabek
d19ecab90c Prettified Code! 2021-06-20 01:13:03 +00:00
Timur Zhigmytov
1b5f8b9f1d
Remove div container when action buttons is empty (#1124)
Co-authored-by: Timur Zhigmytov <timur.zhigmytov@mediamonks.com>
2021-06-19 18:12:28 -07:00
Gabe Kangas
d9a6be2ac6 Remove ping requests now that it has been consolidated with status requests 2021-06-13 14:30:18 -07:00
Meisam
2659dc3646
Hide viewer count when offline (#1091)
* Hide viewer count when offline

* cleanup
2021-06-10 10:59:51 -07:00
gabek
bb4fc6dae3 Prettified Code! 2021-06-08 00:37:20 +00:00
Gabe Kangas
e994412f4b Fix webapp not loading after youtube embed was removed in #1079 2021-06-07 17:36:43 -07:00
gabek
136fb2d943 Prettified Code! 2021-06-07 20:53:56 +00:00
Meisam
c77782cd35
inject custom style (#1083) 2021-06-07 13:53:25 -07:00
Pankaj Patil
4bee6408b4
Remove YouTube embedding in the chat (#1080)
* Remove YouTube embedding in the chat

* Remove youtube-lite dependency

* Implelment Feedback
2021-06-07 10:57:13 -07:00
Gabe Kangas
fc13f98102 Rebuild frontend js libs 2021-06-04 19:47:59 -07:00
Ginger Wong
e89e65e1f5 Resolve issue https://github.com/owncast/owncast/issues/1044
- use built-in videojs font icon instead
- remove button clickhandler override to make button work on mobile
2021-05-29 14:20:37 -07:00
Ginger Wong
c08744c3c4 - A fix for https://github.com/owncast/owncast/issues/1007. Hide app container when configdata is loading
- Also, disable global CSS transition animations for now. If we want to add transitions onto anything, we can target specific elements and add styles individually intead.
2021-05-29 13:08:10 -07:00
Thilo Billerbeck
6c7acf9a95
added emoji focus check to prevent triggering shortcuts (#1056) 2021-05-27 21:39:20 -07:00
gabek
6cb73b7aec Prettified Code! 2021-05-21 03:29:32 +00:00
Gabe Kangas
91f6dcd0f6
Active viewer PING controller. Closes #790 (#990) 2021-05-20 20:29:01 -07:00
Gabe Kangas
0bf3fb4fa7 Bump vjs vhs and enable experimentalBufferBasedABR 2021-05-19 17:39:42 -07:00
Meisam
5c48ead518
Update video.css (#1012)
fix for issue #951
2021-05-13 12:02:57 -07:00
Gabe Kangas
a9459c4370 Simplify about footer version link 2021-04-21 09:46:48 -07:00
Gabe Kangas
ba711ff4c9 Pass along url params to external url action 2021-04-19 16:03:25 -07:00
gabek
dabc93ef03 Prettified Code! 2021-04-16 05:01:28 +00:00
Gabe Kangas
fb637e20ed Slap the custom css into a style tag. Closes #718 2021-04-15 22:00:46 -07:00
Aral Balkan
2409cab5b6
Closes #910: make transparency of message bubbles overridable via CSS (#911)
* Closes #910: make transparency of message bubbles overridable via CSS

* Fix CSS variable declaration
2021-04-11 14:08:06 -07:00
Gabe Kangas
a4309fd899 Remove the glare from the svg logo 2021-04-10 19:28:37 -07:00
dependabot[bot]
c60fd3c76a
Bump video.js from 7.11.4 to 7.11.8 in /build/javascript (#904)
* Bump video.js from 7.11.4 to 7.11.8 in /build/javascript

Bumps [video.js](https://github.com/videojs/video.js) from 7.11.4 to 7.11.8.
- [Release notes](https://github.com/videojs/video.js/releases)
- [Changelog](https://github.com/videojs/video.js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/videojs/video.js/compare/v7.11.4...v7.11.8)

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

* Commit updated Javascript packages

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Owncast <owncast@owncast.online>
2021-04-08 00:24:31 -07:00
Gabe Kangas
06e5154042 Change size of splash bg image. Closes #893 2021-04-07 22:14:49 -07:00
Owncast
315db9ea8e Commit updated Javascript packages 2021-04-07 07:06:17 +00:00
Thilo Billerbeck
d4d738a8ae
Added some basic keyboard controls to the owncast frontend (#804)
* added f and m keys

* added more keys and volume control

* added p for play and c for chatview toggle

* remove vscode auto format

* changed e.target check to not trigger kb-controls if input is in focus

* fixed the default mute problem

* Commit updated API documentation

* merged keydown and keypressed methods

Co-authored-by: Owncast <owncast@owncast.online>
2021-04-01 14:09:02 -07:00
gabek
23ba9bb8be Prettified Code! 2021-04-01 05:29:39 +00:00
Gabe Kangas
12f56f5571 Hide external action modal spinner 2021-03-31 22:28:55 -07:00