Commit graph

72 commits

Author SHA1 Message Date
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
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
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
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
b8cdc2cf72
client/server: add the ability to copy a post, view a posts parent 2022-04-01 22:55:49 -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
24157ff10e
server: improve error message if NODE_ENV is unknown value 2022-04-01 16:30:09 -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
Max Leiter
76e7bb8013
server: allow expiresAt to be null for new posts 2022-03-30 20:12:41 -07:00
Max Leiter
752b2c0980
client/server: add support for expiring posts 2022-03-30 20:01:24 -07:00
Max Leiter
0504bd57e2
server: fix post 500 errors 2022-03-29 17:12:44 -07:00
Max Leiter
6de415ed99
server: fix auth 500 errors 2022-03-29 17:11:13 -07:00
Max Leiter
85ae8173bb
client/server: lint 2022-03-29 00:19:33 -07:00
Max Leiter
6afc4c915e
client/server: search cleanup, admin work 2022-03-29 00:11:02 -07:00
Max Leiter
fb8f14fd98
server: dockerfile updates and switch to bcryptjs 2022-03-28 19:26:16 -07:00
Max Leiter
fd7d0be6ba
server: add yarn start and building support with tsc 2022-03-28 16:19:53 -07:00
Max Leiter
333e3647e0
server: fix post creation 2022-03-28 12:29:08 -07:00
Max Leiter
e0b0102603
server: rework migrations/sequelize, add basic admin page/role, bug fixes 2022-03-28 12:13:22 -07:00
Max Leiter
73e2edfe2b
server: error on post with no files 2022-03-28 11:36:46 -07:00
Max Leiter
5ac73718cf
server/client: add post deletion 2022-03-26 00:24:18 -07:00
Max Leiter
62bc7af004
client: misc style improvements, error handling 2022-03-26 00:05:05 -07:00
Max Leiter
0815d43ee8
client: lint and minor scroll button/file explorer adjustments 2022-03-25 14:31:10 -07:00
Max Leiter
bb893fa6ba
server: sort search results 2022-03-24 18:28:41 -07:00
Max Leiter
951088bacf
client/server: add post searching 2022-03-24 18:03:57 -07:00
Max Leiter
e5f467b26a
client: improve theming variable consistency 2022-03-24 15:12:54 -07:00
Max Leiter
2823c217ea
server: add and run prettier 2022-03-24 14:57:40 -07:00
Max Leiter
da8e7415dc
Merge with main 2022-03-24 14:53:57 -07:00
Max Leiter
b93e42a347
markdown: re-enable code highlighting 2022-03-24 14:09:36 -07:00
Max Leiter
de68796101
client: disable theme transitions on change 2022-03-23 18:54:42 -07:00
Max Leiter
6045200ac4
client: add next-themes support for CSS variables 2022-03-23 18:22:51 -07:00
Max Leiter
7ca0cbac4c
client: set post title if text pasted w/o title set 2022-03-23 16:42:56 -07:00
Max Leiter
9bdff8f28f
client/server: load rendered html after page load, fix raw exporting 2022-03-23 12:36:29 -07:00
Max Leiter
a139acc747
client/server: render nested elements in headings 2022-03-22 23:20:40 -07:00
Max Leiter
f92d854336
client/server: linkify headers and transform html entities in markdown 2022-03-22 22:18:07 -07:00
Max Leiter
c0c18e5b61
client: improve makrdown handling of nested elements 2022-03-22 22:05:26 -07:00
Max Leiter
19988e49ed
server: store and render markdown on server 2022-03-22 21:18:26 -07:00
Max Leiter
ecd06a2258
client: finish protected posts 2022-03-21 18:51:19 -07:00
Max Leiter
a3130e6d2a
server: fix sqlite database location 2022-03-21 17:58:04 -07:00
Max Leiter
d30c34deec
Add usage of SECRET_KEY to secure API routes 2022-03-21 17:42:37 -07:00