86 Commits

Author SHA1 Message Date
knotteye
988e3473a7 Big commit. Implement handlers for everything that's currently rendered server side in the client-side frontend.
Add compiled templates file to .gitignore, will work out a system for making sure templates are compiled later.
Fix a couple bugs in the API and templates.

TODO for client-side rendering:
Make sure templates get compiled before running the server.
Add a config option to switch between server-side and client-side rendering
Fancy SPA stuff like intercepting links to render changes without a page-reload
2020-10-14 07:44:19 -05:00
knotteye
57d0b0f856 initial work on client-side templating 2020-10-14 00:03:45 -05:00
knotteye
1a410a597a Fix a bug checking the validity of invite codes 2020-10-13 16:29:13 -05:00
knotteye
eba53c3732 Rework invitation UI a bit, document API changes 2020-10-13 16:16:37 -05:00
knotteye
67de11e66b Add API handling of invite codes, add web page for inviting users. 2020-10-13 16:12:07 -05:00
knotteye
9605ff8c92 Add a way to generate invites from the command line. Add database migration script. 2020-10-13 15:48:39 -05:00
knotteye
8caad60a43 Add functions for generating and using invite codes 2020-10-13 15:29:47 -05:00
knotteye
7b84253fc1 Add some logging for twitch mirror 2020-10-12 20:53:22 -05:00
knotteye
93738d27bc Add sections in profile.njk for adjusting settings.
Everything tested and working apart from the actual streaming functionality.
2020-10-12 13:34:24 -05:00
knotteye
98927bd7b8 Add API functionality for twitch mirror. 2020-10-12 12:11:04 -05:00
knotteye
44cc3213ca Tweak config changes, add functionality in server.ts
Still needs an API and a UI, then good to go.
2020-10-12 11:14:59 -05:00
knotteye
4ff4a6329d Add configuration options for twitch mirror 2020-10-12 10:54:55 -05:00
knotteye
5fe4728c11 Add migration script and update remove and adduser functions.
Needs a UI, API, and functionality.
2020-10-10 16:35:05 -05:00
knotteye
ee3527f292 Implement database versioning and migration. It could not possibly be any simpler or easier to break, but it works. And it can be used to automatically migrate to a better system for migration later.
For now, the way it works is by creating a new migration script with the name of the version (increment by one, whole numbers) in the src/db folder
On start up, it will compare version numbers and run new scripts. The user can also manually check for migrations and skip the automatic checking.
Added a bit of additional logging to see what's happening in the startup process as well.
2020-10-10 15:55:32 -05:00
Karen Konou
15824d25c0 Add live field to /api/users/all 2020-08-24 18:14:26 +02:00
knotteye
108d7ad0b7 Fix /api/instance/config 2020-08-23 14:41:48 +00:00
knotteye
01e872c552 Fix a bug with trying to update IRC channels when IRC is disabled. 2020-08-08 23:50:57 -05:00
knotteye
4959391034 Increment minor version
Remove debug code
2020-08-08 23:37:10 -05:00
knotteye
c9accda4eb Tune ffmpeg command to start playback and transcode faster
Add option for custom flags
2020-08-08 23:08:09 -05:00
knotteye
654b65640f Change API to set content-type headers.
Rework some responses to make all responses in JSON.
Increment version because of major API changes.
2020-08-03 05:01:20 -05:00
knotteye
c55ccb75aa Fix incorrect reporting of domain in the api 2020-08-01 01:46:56 +00:00
knotteye
09bf2a8ac1 Add paging and sorting to /api/users/live and /api/users/all calls 2020-07-30 02:49:02 -05:00
knotteye
f7c7f05786 Implement an API call for getting the current stream key. 2020-07-30 01:34:22 -05:00
knotteye
df51432a8f Fix /api/:user/config not returning all info for an authorized user. 2020-07-30 01:14:33 -05:00
knotteye
db8d9dfe72 Add API function for getting a user's configuration. 2020-07-30 00:45:08 -05:00
knotteye
c745572a7e Update list of restricted usernames to avoid collision in api 2020-07-30 00:03:05 -05:00
knotteye
bd40c30114 Add default value for a contact email
Add an api function to list a users vods
Document the existing REST API
2020-07-29 03:24:19 -05:00
knotteye
abd45c8346 Only join channels not already joined with twitchClient and ircClient
Leave channels we don't need anymore as well.
2020-07-04 09:53:12 -05:00
knotteye
ae603ddad6 Normalize discord messages into human-readable plaintext. 2020-07-04 03:09:32 -05:00
knotteye
65894b6f2e Fix for not transcoding streams which aren't already mp4 encoded. 2020-06-30 06:26:42 +00:00
knotteye
4bd10151f8 Switch from video.js to dash.js, it seems to be more consistent and hiccup less during streams.
This means transcoding to HLS is no longer an option.
Also add a bit of JS to reload the stream periodically if it hadn't started when the page was loaded.
That thing spits out errors fucking constantly, so hopefully it won't cause any problems.
2020-06-27 12:11:42 -05:00
knotteye
b57e1d48e6 Fix bug where the profile page wouldn't set record flag. 2020-06-27 10:21:00 -05:00
knotteye
4628deec1c Add VOD management page and the ability to delete the user's own vods 2020-06-27 08:34:09 -05:00
knotteye
19536d8b84 Add working twitch chat relay 2020-06-27 05:25:40 -05:00
knotteye
29d2090540 Add working IRC integration 2020-06-27 03:23:04 -05:00
knotteye
1ef736ca17 Working discord chat integration 2020-06-27 02:36:45 -05:00
knotteye
c1debc9173 Add basic framework for chat integration code 2020-06-26 12:13:00 -05:00
knotteye
2beffa46fb Add updateChat function in api 2020-06-26 06:07:33 -05:00
knotteye
190e61557e Add templates for chat integration UI 2020-06-26 05:32:05 -05:00
knotteye
717d63917c Fix typo in registration registration query 2020-06-26 04:52:48 -05:00
knotteye
a9f1875234 Add config template for chat integration and db schema
No other meaningfull changes (I think)
It's been 7 months since last commit god I hope I didn't break anything.
2020-06-26 04:07:37 -05:00
knotteye
df8c803e25 Fix a bug with socket ids not being recorded or looped through properly 2019-12-21 16:58:40 -06:00
knotteye
a0e89e9b60 Add proper kicking and banning for users with multiple accounts. 2019-12-21 16:16:50 -06:00
knotteye
f7733b9507 Big Refactor
Stop using config and toml as dependencies
Stop passing around config variables through function calls
Add config.ts and pull the values you need directly in the files
Remove irc.js for incoming new IRC solution
Rename controller to index because that was stupid
Minor git bullshit with the config folder
Change to yaml as a config format
2019-12-21 08:59:35 -06:00
knotteye
681802dbaf Bugfix for room bans 2019-12-08 17:18:31 -06:00
knotteye
61deb1afa7 Minor improvements to socket.io chat, including banning and unbanning per room, and spam detection and server bans 2019-12-07 21:23:50 -06:00
knotteye
4b1fc5c1fc Make adapative streaming full configurable 2019-12-05 18:27:29 -06:00
knotteye
3f26790878 Remove extra FS import. 2019-12-05 16:19:07 -06:00
knotteye
76c63d3a94 Set sameSite on Authorization cookie
Enable toggleable HSTS
2019-12-05 16:08:50 -06:00
knotteye
8c17149f39 Fix throwing unhandled promise rejection if user doesn't exist in validatePasswordRedirect user to /profile on successful login 2019-12-05 15:03:27 -06:00