6016813f4c
refactor(components): update story form
...
add `draftData` prop to distinguish whether we're editing a draft or a published story
actually renumber chapter indexes after reordering
use draftData prop in form change callback
2024-07-09 20:53:50 -04:00
6fd6d7cbb1
refactor(components): add data-testid
attribute to some components
2024-03-16 21:18:07 -04:00
dcda8143f9
refactor(components): add loading spinner to client-only
fallback slot
2024-03-16 20:26:05 -04:00
b10928fcf7
fix(components): wrap draggable in client-only
2024-03-16 15:29:21 -04:00
739cfb5eff
fix(components): make it so that reordering chapters in the story form no longer causes catastrophic state loss, rendering the tinymce components useless
...
all hail PORTALS!!!!!
2024-03-15 19:05:23 -04:00
a2b627cd11
fix(components): update storyForm
...
set `coAuthor` field's initial value to whatever is provided in the `data` prop instead of always null
2024-01-04 17:02:04 -05:00
205b241e3b
refactor(components): update storyForm
...
use vue's new `defineModel` functionality to mutate data more cleanly
2024-01-04 15:19:08 -05:00
c8e84c909e
style(*): cleanup unused imports
2023-12-29 20:11:07 -05:00
d4ae55a25b
refactor(components): finish rename of storyForm.vue
...
also add mechanisms to save drafts beyond the original debounced functions
2023-12-29 17:21:02 -05:00
8a7c10b63a
chore(components): remove storyform.vue
...
this is to rename it
2023-12-29 17:11:19 -05:00
813feaa31c
refactor(components): add custom submit text prop to story form
2023-12-28 19:58:37 -05:00
3e5af47107
refactor(*): refactor tsconfig paths
...
looks/feels nicer
2023-12-20 17:23:31 -05:00
410cb580d8
refactor(components): add autoEdit
call to story form component
...
... if `canDraft` == false
2023-12-09 17:04:57 -05:00
ee7ea24e4e
refactor(*): rename route
...
change "bands" to "band"
BREAKING CHANGE: breaks anything that tries to access `/api/bands/*`
2023-12-06 22:22:48 -05:00
b0a69d5d56
fix(components): change error prop from undefined to empty string
2023-12-06 22:20:09 -05:00
afcd71a50d
fix(components): catch possible exceptions in uploadOrPaste
component instead of letting them fail the whole opreation
2023-10-12 22:57:39 -04:00
188b55724c
refactor(components): add co-author field to the story form
2023-10-11 16:27:32 -04:00
e9df5cbe1a
refactor(components): migrate story form to use vee-validate's useForm
instead of the equivalent component
...
this is because v-slot values are not accessible from the `setup` script
2023-10-10 22:10:42 -04:00
b2e950e798
feat(components): make story creation/editing components
2023-10-04 19:38:50 -04:00