Commit Graph

29 Commits

Author SHA1 Message Date
1cd16a4ecc
fix(client-side): change story content field name in yup schema 2024-03-16 13:56:59 -04:00
eab4d5eb8b
feat(client-side): add function to update view count to clientside 2024-01-04 20:55:37 -05:00
8f24c9ff3d
refactor(components): create story actions component and related functions 2023-12-31 01:50:35 -05:00
08ce2175cd
refactor(client-side): make autoEdit and autoSave functions fully async 2023-12-30 17:20:32 -05:00
51dfaef149
fix(client-side): fix element being removed for EVERY type of list actoin
only splice/remove element if a `hide` action has been executed
2023-12-30 16:03:39 -05:00
8f45dbe563
style(*): edit indents 2023-12-29 20:53:29 -05:00
c8e84c909e
style(*): cleanup unused imports 2023-12-29 20:11:07 -05:00
dba62b4677
refactor(client-side): add debounced versions of functions
split autoEdit and autoSave into debounced and non-debounced versions
2023-12-29 19:47:21 -05:00
1447960b1a
refactor(db/models): update populatedDoc types
- remove `& Document` qualifier
- cast `T | number` to T with the `as` keyword
2023-12-29 19:06:55 -05:00
cc17d98fe4
style(client-side): update indentation in storyFormSchema 2023-12-28 20:05:16 -05:00
3e5af47107
refactor(*): refactor tsconfig paths
looks/feels nicer
2023-12-20 17:23:31 -05:00
989fefd6e7
fix(pages & middleware): throw error if non-author/collaborator tries to edit a story 2023-12-09 17:32:23 -05:00
a5346e8622
fix(client-side): add error check to story redirect middleware 2023-12-09 17:31:39 -05:00
fe7c452231
feat(client-side): create story middleware
redirect users to the login page if a story is restricted and they're not logged in
2023-12-06 22:19:05 -05:00
9d4af2b256
refactor(typing): make all fav/sub/hidden request interface fields optional 2023-12-01 18:03:07 -05:00
23a7c4d222
refactor(typing): add SingleChapterResult type for singular chapters fetched from the api 2023-12-01 17:59:16 -05:00
c925534eb4
fix(client-side): fix autosave store not updating 2023-10-12 22:56:09 -04:00
e13f9de5d3
feat(client-side): complete other debounced autosave function
(this is for editing stories)
2023-10-11 16:38:20 -04:00
8d162c8029
fix(typing): add coAuthor to form story interface 2023-10-11 16:36:29 -04:00
5a5719dc52
style(client-side): run prettier on tinymce configs 2023-10-10 22:26:51 -04:00
662a97ffc5
chore: null
it's commented out code lmao
2023-10-10 22:26:17 -04:00
ba05134015
refactor(client-side): create utilities
mainly intended to avoid repitition in long lists of data like stories, authors, and/or bands
2023-10-10 22:19:18 -04:00
10fad65823
feat(client-side): add debounced autosave function for story form 2023-10-09 17:21:27 -04:00
a2300d959c
refactor(client-side): combine yup schema for story chapters with story schema file 2023-10-03 00:32:53 -04:00
f3a3240134
feat(client-side): create yup schema for story form and chapter sub-forms 2023-10-03 00:31:27 -04:00
972e8fa646
refactor(typing): create interfaces to ensure strongly typed form data 2023-10-03 00:23:52 -04:00
04e769ea90
refactor(client-side): modify form story+chapter types
chapters now have an optional id (for use when editing), and `fileName` has been simplified to `file`
2023-10-02 15:52:23 -04:00
c0c11ba1ea
refactor(client-side): create reusable types
mostly contains interfaces for client-side forms
2023-09-25 19:44:47 -04:00
1b14d2b702
feat(components): create tinymce wrapper component
configs have also been created
2023-09-25 19:40:30 -04:00