Max Leiter
7ce6acf5fe
client: fix admin imports
2022-04-13 12:37:15 -07:00
Max Leiter
16103f2fcb
client: temp. remove ability to view files in posts as admin
2022-04-12 21:24:04 -07:00
Max Leiter
7d08570915
client/server: admin page improvements; add deleting users and changing roles
2022-04-12 21:14:10 -07:00
Max Leiter
7d5afbc682
client: fix building with react 18
2022-04-12 19:19:06 -07:00
Max Leiter
9df1a22aa7
client: update to react 18
2022-04-12 19:09:41 -07:00
Max Leiter
16d5780110
client: redirect /private/ and /protected/ links to /post to handle backwards compat
2022-04-12 16:54:02 -07:00
Max Leiter
67e1b9889b
client: remove need for multiple post page URLs
2022-04-12 16:48:12 -07:00
renovate[bot]
873db86fb1
fix(deps): update all non-major dependencies ( #91 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 13:52:42 -07:00
Max Leiter
917e85196e
client: remove unused dependencies
2022-04-12 13:44:08 -07:00
renovate[bot]
d17e240e1c
fix(deps): pin dependencies ( #89 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-12 13:25:48 -07:00
Max Leiter
fe589d63d8
client: mine page fixes, remove lodash.debounce
2022-04-11 23:07:52 -07:00
Max Leiter
1369bdf996
client: remove unnecessary prop in edit-document-list
2022-04-11 22:47:45 -07:00
Max Leiter
f510813e4b
client: add textarea-markdown-editor package and replace current editor textarea
2022-04-11 22:39:35 -07:00
Max Leiter
481d4ae36c
client: add / auto-increment number at end of copied posts instead of 'copy of' text
2022-04-11 19:57:41 -07:00
Max Leiter
83def0ec86
client: remove preact to fix file dropdown process crash
2022-04-10 20:05:42 -07:00
Max Leiter
401a0df63b
client: add type to please next lint
2022-04-09 17:54:08 -07:00
Max Leiter
36e255ad2b
client: lint tsx files with prettier
2022-04-09 17:48:19 -07:00
dependabot[bot]
8ada3a6300
build(deps): bump minimist from 1.2.5 to 1.2.6 in /client ( #80 )
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-09 13:19:35 -07:00
Max Leiter
d1415d1ee2
client: don't re-direct the owner of a file if it's expired
2022-04-08 23:30:07 -07:00
Max Leiter
9fe9b818c4
client: remove console.log from /mine
2022-04-08 22:44:46 -07:00
Max Leiter
bc6362e412
client: improve error page design, fix isPageRequest regex in middleware
2022-04-06 16:31:41 -07:00
Max Leiter
18dff00a93
client: cleanup middleware redirect code
2022-04-06 14:42:18 -07:00
Max Leiter
5dabbbe64b
client/server: re-add removed config test line, remove unnecessary import
2022-04-06 10:48:41 -07:00
Max Leiter
2ecf1b21ca
client: remove server as build requirement
...
This means public/unlisted posts and the home-page are no longer
generated at build-time, so TTFB may be increased for the first user to
load/access a page. Cache-Control headers are set so if the RP / server
supports it the results should be cached for future users.
2022-04-06 10:41:42 -07:00
Max Leiter
c6f89a28ad
server/client: replace JWTDenyList model with AuthToken, update middleware and routes
2022-04-06 09:08:51 -07:00
Max Leiter
9cbcfd3397
server/client: remove unnecessary console.logs
2022-04-06 08:36:20 -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
Max Leiter
f8ba5b32c9
client: mobile post page adjustments with longer button bar
2022-04-03 13:09:04 -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
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
dafc0c37f8
client/server: use config
dictionary on server, improve types on client
2022-04-01 16:27:23 -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
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
871b57ea3c
client: client-side validation of new post page
2022-03-29 17:06:11 -07:00
Max Leiter
a84459b859
client: redirect to /new when authenticated
2022-03-29 13:22:47 -07:00
Max Leiter
62a77b619e
client: potentially fix /new redirect
2022-03-29 13:21:58 -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
e0b0102603
server: rework migrations/sequelize, add basic admin page/role, bug fixes
2022-03-28 12:13:22 -07:00
Max Leiter
1c411f3bdc
client: bump max file size to 50 MB
2022-03-28 12:04:29 -07:00
Max Leiter
ac1cf27d56
client: add more file extensions
2022-03-28 11:47:46 -07:00
Max Leiter
de54754833
client: markdown style improvements
2022-03-26 22:35:34 -07:00
Max Leiter
e12e20418a
client: vertical buttongroup on post view page on mobile
2022-03-26 00:37:01 -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
9d9f2d98a7
client: respect reduce motion when auto-scrolling
2022-03-25 14:43:39 -07:00
Max Leiter
945d3fbe63
client: show header link icon on mobile
2022-03-25 14:40:13 -07:00
Max Leiter
0815d43ee8
client: lint and minor scroll button/file explorer adjustments
2022-03-25 14:31:10 -07:00
Max Leiter
887ecfabbc
client: handle files with no names in file dropdown
2022-03-25 13:37:54 -07:00
Max Leiter
ff8d5aab5c
client: add scroll to top button on post view
2022-03-25 13:29:49 -07:00
Max Leiter
1ace04985c
client: add file dropdown to post view
2022-03-25 13:01:46 -07:00
Max Leiter
dfea957046
client: add file tree to post view
2022-03-24 20:24:40 -07:00
Max Leiter
448c443e2e
client: misc style improvements
2022-03-24 19:32:24 -07:00
Max Leiter
12f25c49a7
client: misc style improvements
2022-03-24 19:25:02 -07:00
Max Leiter
a61f2c00e2
client: proxy html render requests so they can be cached easier
2022-03-24 18:24:09 -07:00
Max Leiter
5aca059953
client: improve post-list spacing
2022-03-24 18:15:12 -07:00
Max Leiter
7c6eb87870
client: remove filters for post search
2022-03-24 18:10:27 -07:00
Max Leiter
21332a7d1e
client: remove extra message on 'mine' page
2022-03-24 18:09:37 -07:00
Max Leiter
951088bacf
client/server: add post searching
2022-03-24 18:03:57 -07:00
Max Leiter
9949faeebd
client: improve default home message
2022-03-24 15:44:12 -07:00
Max Leiter
b77265e6b6
client: add client-side search of posts list
2022-03-24 15:35:59 -07:00
Max Leiter
e5f467b26a
client: improve theming variable consistency
2022-03-24 15:12:54 -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
41238cb79f
client: lighter border color
2022-03-23 19:54:54 -07:00
Max Leiter
8b2a22e3d3
client: tweak markdown link color
2022-03-23 19:09:59 -07:00
Max Leiter
de68796101
client: disable theme transitions on change
2022-03-23 18:54:42 -07:00
Max Leiter
6a4ff9c307
client: theme fixes and adjust visibility badge spacing on post view
2022-03-23 18:47:21 -07:00
Max Leiter
6045200ac4
client: add next-themes support for CSS variables
2022-03-23 18:22:51 -07:00
Max Leiter
186d536175
client: experiment with heading title color in markdown
2022-03-23 17:14:08 -07:00
Max Leiter
7c857cf318
client: increase markdown top margin
2022-03-23 17:01:41 -07:00
Max Leiter
2a1f95238b
client: improve heading margins in markdown
2022-03-23 16:52:14 -07:00
Max Leiter
bbee452250
client: improve markdown font styles
2022-03-23 16:49:58 -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
c55ca681b4
client: improve markdown rendering
2022-03-23 16:28:39 -07:00
Max Leiter
60f2ab99b3
client: lint with useTabs
2022-03-23 15:42:22 -07:00
Max Leiter
48a8e9f6a9
client: fix hydration error with placeholder for post title
2022-03-23 15:40:47 -07:00
Max Leiter
d4120e6f41
client: add prettier, switch to preact
2022-03-23 15:34:23 -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
534cd87dc9
client: improve link accessibility in markdown
2022-03-22 23:34:33 -07:00
Max Leiter
a139acc747
client/server: render nested elements in headings
2022-03-22 23:20:40 -07:00