Commit Graph

396 Commits

Author SHA1 Message Date
08ce2175cd
refactor(client-side): make autoEdit and autoSave functions fully async 2023-12-30 17:20:32 -05:00
aa5dc23dfa
fix(ci): install python before bun install 2023-12-30 17:11:37 -05:00
28093326c8
fix(pages): import storyForm from new path
it's case sensitive -_-
2023-12-30 17:04:18 -05:00
242ad9ce09
refactor(server/utils): split stringifyStream function into two reusable functions
- bufferizeStream
  this concatenates stream data into a buffer
- stringifyStream
  this invokes `bufferizeStream` and converts the return value to a string
2023-12-30 17:01:43 -05:00
088842ac38
refactor(config): change tsconfig
set `verbatimModuleSyntax` to false
2023-12-30 16:58:44 -05:00
4ae045819f
refactor(ci): tweaks
- remove `--del` option from rsync commands
- switch to bun (again)
- fix `hasMigrated  = true` not being transpiled
2023-12-30 16:57:56 -05:00
6faa88d83f
refactor(components): change common ip section in profile admin panel
remove v-if null-check
2023-12-30 16:37:10 -05:00
cb2f171d86
refactor(api): switch avatar path to assets 2023-12-30 16:35:35 -05:00
6a65781950
refactor(nuxt): make nitro preset conditional
set nitro preset to `bun` in production, otherwise keep `node-server`
2023-12-30 16:08:57 -05:00
ab49836a08
chore(deps): add @vue/language-server dev dependency
webstorm is a bitch
2023-12-30 16:08:11 -05:00
a82f5bc505
feat(pages): add coauthor to page title (if not null) 2023-12-30 16:06:51 -05:00
f4500d18d9
refactor(pages): some typing tweaks 2023-12-30 16:06:10 -05:00
9378d56242
fix(pages): ensure band list is refreshed on subscribe/unsubscribe 2023-12-30 16:04:49 -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
3a8fd82dae
fix(api): fix new subscriptions not being saved to database
for some reason i forgot to set the field referenced by $addToSet to `body.push` lmao #justcopyandpastethings
2023-12-30 16:02:27 -05:00
4c9293ec19
chore(nuxt): move avatar dir to assets/ 2023-12-30 16:00:41 -05:00
ae10a295d4
refactor(server/middleware): log model names twice (before and after connection) 2023-12-30 15:59:27 -05:00
c467afc0c8
fix(config): only connect in dbconfig if hasMigrated is false 2023-12-30 15:58:14 -05:00
d2b4476b43
feat(components): show coAuthor in story info (if any) 2023-12-30 15:52:28 -05:00
83c1379ba6
fix(components): add null check to singleStory.vue
if author is null for some reason, show a static "..." instead of breaking everything
2023-12-30 15:51:33 -05:00
f8913e976d
refactor(components): remove i18n stub from singleReview.vue
we don't need it!
2023-12-30 15:50:20 -05:00
8cdfb6abfe
revert(db/models): re-add & Document to PopulatedDoc type parameters 2023-12-30 00:46:11 -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
5baa00bbb4
style(ci): remove commented-out script lines 2023-12-29 20:10:37 -05:00
08a4bc9f2c
chore(deps): add turndown types package 2023-12-29 20:09:24 -05:00
6cb724bb6e
refactor(workspace): update editorconfig
set max line width to 160
2023-12-29 20:08:41 -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
02ed969132
feat(pages): add edit page for individual chapter 2023-12-29 19:02:53 -05:00
1c69ad6c2c
refactor(pages): move auth pages to auth subdirectory
i.e., /login, /register, /logout
2023-12-29 18:19:36 -05:00
3415f41044
refactor(typing): override "#auth" module from nuxt-auth
make it so that we're absolutely sure that the type of `useAuth().data` is interpreted by typescript to be OUR version of `SessionData`
2023-12-29 18:11:51 -05:00
dabebc6747
chore(typing): remove next.d.ts
next != nUxt
2023-12-29 18:09:49 -05:00
b65c725a36
refactor(components): display co-author in story listing 2023-12-29 18:06:14 -05:00
1412d39240
revert(db/models): revert guard removal
we need it after all lmao
2023-12-29 18:05:18 -05:00
f611c56c39
fix(server/utils): update recaptcha guard
- use actual form field (it's not "g-recaptcha-response")
- switch from useFetch to axios
- use "application/x-www-form-urlencoded" as content type
2023-12-29 18:04:33 -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
e62924f6ec
refactor(server/utils): update storyQuerier.ts
make paths and imports more concise and correct
2023-12-29 16:39:41 -05:00
1a99cf6fb5
refactor(api/utils): populate coAuthor in helpers 2023-12-29 16:38:30 -05:00
576684e364
refactor(server/utils): make paths and imports more concise and correct 2023-12-29 16:37:20 -05:00
a8e113e969
refactor(db/models): remove model existence guards
this way, plugins are registered if `hasMigrated` is true. we've already enabled automatically overwriting models, therefore, the guard's condition will always be false
2023-12-29 16:36:26 -05:00
922807ba6a
refactor(server/utils): make paths and imports more concise and correct 2023-12-29 16:34:00 -05:00
9f0a76e2b0
refactor(server/utils): remove env logging 2023-12-29 12:45:15 -05:00
4388a09481
fix(config): move extends directive to be first in tsconfig
fixes webstorm bitching about typescript
2023-12-29 12:44:19 -05:00
cc17d98fe4
style(client-side): update indentation in storyFormSchema 2023-12-28 20:05:16 -05:00
c598ff61b3
refactor(ci): add explicit needs to deploy stages 2023-12-28 20:03:41 -05:00
8cea9303e1
refactor(db/models): change chapter schema creation call
`new mongoose.Schema` -> `new Schema`
2023-12-28 20:01:49 -05:00
40524941c6
fix(nuxt): update app.vue
add `.value` to the end of computed value accesses
2023-12-28 19:59:00 -05:00
ed4536fa91
chore(api): remove path aliases from tsconfig
in favour of the nuxt aliases
2023-12-28 19:58:59 -05:00