Commit graph

246 commits

Author SHA1 Message Date
Max Leiter
0e57e28b6c
server: add basic jwt middleware tests 2022-04-06 09:28:01 -07:00
Max Leiter
6c39d1c7c0
server: secret-key middleware tests 2022-04-06 09:15:21 -07:00
Max Leiter
c6f89a28ad
server/client: replace JWTDenyList model with AuthToken, update middleware and routes 2022-04-06 09:08:51 -07:00
NDI Lionel
b6439858df
server: add JWTDenyList table and signout route (#52)
* add models and signout route
* add migration file for JWTDenylist

Closes #25 

Co-authored-by: Max Leiter <maxwell.leiter@gmail.com>
2022-04-06 08:39:06 -07:00
Max Leiter
9cbcfd3397
server/client: remove unnecessary console.logs 2022-04-06 08:36:20 -07:00
Max Leiter
32cc1f861e
server/client: mute vercel github comments 2022-04-05 16:25:05 -07:00
Max Leiter
808314658d
server: fix private posts being accessible for authed accounts 2022-04-05 16:22:42 -07:00
Max Leiter
e5b9b65b55
server: add basic is-admin tests and bug fixes 2022-04-05 16:17:08 -07:00
Joaquin "Florius" Azcarate
06d847dfa3
Only run the backend CI when a change happens in the server (#73) 2022-04-05 10:24:26 -07:00
Max Leiter
3a879edc23
client/server: move markdown rendering from client/ entirely to server/ 2022-04-04 18:13:18 -07:00
Joaquin "Florius" Azcarate
d495d7b222
server: replace process.env with our env thoughout (#70)
Bonus: tests!
2022-04-03 14:38:48 -07:00
Max Leiter
f8ba5b32c9
client: mobile post page adjustments with longer button bar 2022-04-03 13:09:04 -07:00
Max Leiter
f6cd545ca7
server: modify jest config to ignore node_modules, dist directories
without this, invoking `jest` would cause this warning:
jest-haste-map: Haste module naming collision: sequelize-typescript-starter
  The following files share their name; please adjust your hasteImpl:
    * <rootDir>/package.json
    * <rootDir>/dist/package.json
2022-04-03 13:02:15 -07:00
Joaquin "Florius" Azcarate
76a2b50c6b
server: throw if secretKey not set in production, set default in development (#59) 2022-04-03 12:50:04 -07:00
Joaquin "Florius" Azcarate
ef005ef0b2
server: Add first e2e test, github action, health endpoint (#68)
And a bonus health endpoint to make the simplest test possible
2022-04-03 12:47:37 -07:00
Max Leiter
5e9288e9fb
client: stop middleware from signing out on /signout pre-fetch 2022-04-02 00:53:06 -07:00
Max Leiter
52dc5e41a5
client: remove signout() function from useSignedIn
We now use the middleware-implemented /signout route
2022-04-02 00:46:39 -07:00
Max Leiter
a1fef656bb
client: refactor header component for improved SSR 2022-04-02 00:45:26 -07:00
Max Leiter
e7cec9b827
client: remove console.log 2022-04-01 23:06:07 -07:00
Max Leiter
763cb1dadc
Merge pull request #65 from MaxLeiter/dupePosts
client/server: add the ability to copy a post, view a posts parent
2022-04-01 22:58:49 -07:00
Max Leiter
b8cdc2cf72
client/server: add the ability to copy a post, view a posts parent 2022-04-01 22:55:49 -07:00
Max Leiter
ce01eba9c0
client: don't run middleware if the request isn't a page 2022-04-01 21:17:33 -07:00
Max Leiter
f927fae9ed
client: improve clicking jump to file button 2022-04-01 17:26:01 -07:00
Max Leiter
06fad98ee1
client: add new-post error if no files are present 2022-04-01 16:59:06 -07:00
Max Leiter
f20fa72b6d
client: password modal fixes for protected posts 2022-04-01 16:51:23 -07:00
Max Leiter
ead3b0af9d
server: fix accessing password protected posts 2022-04-01 16:51:07 -07:00
Max Leiter
702dad14cb
server: address deprecated sequelize logger option 2022-04-01 16:44:29 -07:00
Max Leiter
60b21a1d9d
Merge pull request #63 from MaxLeiter/configAndMigrationWork
client/server: use `config` object on server, client type fixes
2022-04-01 16:31:43 -07:00
Max Leiter
24157ff10e
server: improve error message if NODE_ENV is unknown value 2022-04-01 16:30:09 -07:00
Max Leiter
64e9c58d5d
client: remove sequelize-cli-ts 2022-04-01 16:28:42 -07:00
Max Leiter
dafc0c37f8
client/server: use config dictionary on server, improve types on client 2022-04-01 16:27:23 -07:00
Joaquin "Florius" Azcarate
8da6d62cea
Destoy files when destroying post (#62) 2022-04-01 15:52:08 -07:00
Joaquin "Florius" Azcarate
6a6a2a3496
server: drift_home already has a default (#61)
`||` on an exsiting string does nothing
2022-04-01 15:03:21 -07:00
Joaquin "Florius" Azcarate
1c2fef0ee4
server/client: use cross-env for Windows support (#58)
In order for windows to run a script with an environment variable, we need some extra steps (namely `cross-env`).
2022-04-01 14:37:24 -07:00
Joaquin "Florius" Azcarate
dee06fab90
client: Use system theme (#60)
Use resolvedTheme theme from next-theme
2022-04-01 13:36:03 -07:00
Max Leiter
e3e9d993f2
client: post page responsiveness improvements 2022-03-31 18:32:56 -07:00
Max Leiter
eae627807b
client: expiration styling improvements 2022-03-30 23:30:01 -07:00
Max Leiter
8291010f26
client: don't flash page after it's expired 2022-03-30 23:27:09 -07:00
Max Leiter
222b020e9a
client: new-post style improvements and date picker bug fixes 2022-03-30 23:03:21 -07:00
Max Leiter
5da96a8f0a
client: fix expiration input on small screens 2022-03-30 21:22:55 -07:00
Max Leiter
88d14a40b1
client: redirect on page expiration if not author 2022-03-30 20:52:30 -07:00
Max Leiter
76e7bb8013
server: allow expiresAt to be null for new posts 2022-03-30 20:12:41 -07:00
Max Leiter
47cd9cc094
Merge pull request #56 from MaxLeiter/expiringPosts
client/server: add support for expiring posts
2022-03-30 20:07:59 -07:00
Max Leiter
93e8b7e1d9
remove @types/react-datetime-picker 2022-03-30 20:03:57 -07:00
Max Leiter
9f810378f1
remove expiration modal 2022-03-30 20:02:16 -07:00
Max Leiter
752b2c0980
client/server: add support for expiring posts 2022-03-30 20:01:24 -07:00
Max Leiter
f1381e30b9
repo: .funding - funding 2022-03-30 18:33:20 -07:00
Max Leiter
9cc3db414f
repo: add FUNDING.yml 2022-03-30 18:31:44 -07:00
Max Leiter
d24e94da04
server: remove mention of sequelize config 2022-03-30 00:27:42 -07:00
Max Leiter
0504bd57e2
server: fix post 500 errors 2022-03-29 17:12:44 -07:00