Commit Graph

106 Commits (master)

Author SHA1 Message Date
Dessa Simpson c3079a198d Specify source of log messages in twitch.ts 2020-11-09 16:24:34 -07:00
Dessa Simpson 6071cf0d8f Add Youtube API key to README.md instructions 2020-11-09 13:37:12 -07:00
Dessa Simpson 9484698825 Add initial URL transforms
Fixes #4
2020-11-08 13:04:34 -07:00
Dessa Simpson c808f02aa2 Stringify response object before logging on failed Twitch token refresh 2020-11-08 12:15:28 -07:00
Dessa Simpson 39098f2346 Wait for updateUser to complete before updating streamer
Fixes unhandled promise rejection when setting up new instance
2020-11-08 12:15:28 -07:00
Dessa Simpson ee5d14b5f5 Remove virtualdxs from testdata 2020-11-08 12:15:28 -07:00
Dessa Simpson bcf562dd60 Add LOG_LEVEL to README.md env example 2020-11-01 20:48:21 +00:00
Dessa Simpson 767cfbf488 Implement version checking 2020-11-01 13:47:47 -07:00
Dessa Simpson 8e47cd9ea9 Cleanup 2020-11-01 13:18:18 -07:00
Dessa Simpson 68faec1ae8 Add streamer UI
Closes #11
2020-11-01 13:07:16 -07:00
Dessa Simpson b479cd2948 Rewrite ban insert query to use one insert rather than one per ban
Fixes #21
2020-10-25 21:31:18 -07:00
Dessa Simpson 36d3871bdc Update updateRequestScore endpoint and clean up naming 2020-10-18 17:24:24 -07:00
Dessa Simpson 54a7145630 Fix ban process not using dbconn for delete query 2020-10-18 14:54:34 -07:00
Dessa Simpson 68f767b28d SQL refactoring 2020-09-21 11:12:00 -07:00
Dessa Simpson b334066f8f Improve error reporting
Fixes #16
2020-09-19 18:14:58 -07:00
Dessa Simpson 76aa7b3bc4 Make bans work properly 2020-09-19 12:18:45 -07:00
Dessa Simpson 53da0eb687 Streamer-related fixes 2020-09-19 11:24:39 -07:00
Dessa Simpson e9696fac25 Better logging system 2020-09-19 11:23:44 -07:00
Dessa Simpson e5f96b966a Fix failure when checking bans
Forgot to provide the userid to check to checkBan queries
2020-09-17 11:29:05 -07:00
Dessa Simpson 7de73c9565 Block banned users from adding requests or voting
Also, some minor refactoring.
2020-09-14 23:01:11 -07:00
Dessa Simpson ccfcc57540 Refactor queries and add auth on streamer endpoints
- Move prepared statement definitions to queries module
- Add authentication to streamer-only endpoints
2020-09-14 22:45:32 -07:00
Dessa Simpson 4555dd6b7f Add ban tracking
- Add bans table
- Periodically refresh bans list every 1-1.25 hours
2020-09-14 22:42:29 -07:00
Dessa Simpson 85b48f90f4 Add logging on failed API requests 2020-09-14 22:34:17 -07:00
Dessa Simpson b1d44d3af3 CSS refactoring and scaling 2020-09-13 11:12:52 -07:00
Dessa Simpson bd8bcc369b Show streamer profile picture to the left of title 2020-09-13 10:13:01 -07:00
Dessa Simpson 249a5911b4 Customize page with streamer username 2020-09-10 23:43:53 -07:00
Dessa Simpson b06c425352 Add streamer authentication
Closes #17
2020-09-10 22:43:05 -07:00
Dessa Simpson 3c94c25458 Validate api token on authenticated requests
Also implements logic to refresh the token if a request fails.

Fixes #3
2020-08-15 19:12:35 -07:00
Dessa Simpson 33c31a13d7 Remove duplicate testdata.sql from readme 2020-08-14 11:38:05 -07:00
Dessa Simpson 9b8fae4278 Check whether profile image exists before attempting to display it 2020-08-12 12:43:30 -07:00
Dessa Simpson b586262905 Update test data 2020-08-12 12:39:31 -07:00
Dessa Simpson 1256c4bb8b Display profile pictures in requests table
Fixes #14
2020-08-09 23:40:13 -07:00
Dessa Simpson 48b1252ef9 Make Youtube links open in new tab 2020-08-09 18:39:43 -07:00
Dessa Simpson 80e9bc1bde Redesign database and implement voting 2020-08-09 17:23:37 -07:00
Dessa Simpson a0b65c7d5b Forward Postgres port from host 2020-08-07 21:28:53 -07:00
Dessa Simpson fffe1596b8 Move 50-views.sql to 90-views.sql 2020-08-02 22:13:39 -07:00
Dessa Simpson 34a9c0d0d1 Consistency and cleanup 2020-08-02 22:06:28 -07:00
Dessa Simpson 567b2bba27 Make demo-ready
- Add README.md
- Add DB test data
- Add port forward to docker-compose to allow the app to be accessed on
  Macs
2020-07-06 22:02:28 -07:00
Dessa Simpson 18ff4c9d1f Get client id and url prefix from config in main.eta 2020-07-06 22:02:19 -07:00
Dessa Simpson bf89c6956d Implement addRequest in UI
- addRequest modal
  - Error box inside addRequest modal
- Generic message modal
- URL validation - same code as server
- Update /api/addRequest to get requester from session
- Fix return of requests.addRequest() for already requested
- Make requests.addRequest() return 201 when created
2020-07-06 21:24:04 -07:00
Dessa Simpson e54db3c4eb Close modal with bg click or escape key 2020-07-05 20:41:42 -07:00
Dessa Simpson 603769d5fd Make addRequest box resize nicely 2020-07-05 20:16:41 -07:00
Dessa Simpson 19f51d3a5a Fix handling of twitch auth flow rejection 2020-07-05 20:13:07 -07:00
Dessa Simpson 12d4ffad2b Add 'Add Request' Modal 2020-07-05 15:20:22 -07:00
Dessa Simpson e8d7d6362b Finish implementing login
- Templated main page to show user and profile image
- Added logout
- Handle user rejecting Twitch authorization flow
2020-07-05 14:15:30 -07:00
Dessa Simpson df68c990fc Implement Twitch API connector 2020-07-05 11:46:41 -07:00
Dessa Simpson 2ef965f749 Move environment variables to .env 2020-07-04 19:17:29 -07:00
Dessa Simpson 6322a6db14 UI redesign 2020-07-04 18:02:45 -07:00
Dessa Simpson 94c1dd5782 Add session driver 2020-07-04 11:29:07 -07:00
Dessa Simpson 057ee6e56d Add URL validation 2020-07-04 09:34:03 -07:00