From 3e5af4710741945d5ca4d9585ca65720cbd72508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 20 Dec 2023 17:23:31 -0500 Subject: [PATCH] refactor(*): refactor tsconfig paths looks/feels nicer --- components/layouts/navbar.vue | 46 ++++++++++-------- components/layouts/sidebar.vue | 7 ++- components/listings/stories.vue | 47 +++++++++++-------- components/profile/adminPanel.vue | 2 +- components/reviews/forChapter.vue | 4 +- components/reviews/singleReview.vue | 21 +++++---- components/story/atoms/bands.vue | 6 +-- components/story/atoms/characters.vue | 4 +- components/story/atoms/pairings.vue | 2 +- components/story/create/singleChapter.vue | 4 +- components/story/create/storyform.vue | 6 +-- components/story/create/uploadOrPaste.vue | 2 +- components/story/view/chapterPicker.vue | 2 +- components/story/view/storyInfo.vue | 2 +- layouts/default.vue | 2 +- lib/client/middleware.ts | 6 +-- lib/client/types/slightlyDifferentStory.ts | 4 +- lib/client/utils.ts | 2 +- lib/functions.ts | 2 +- lib/server/dbHelpers/chapterTransformer.ts | 8 ++-- lib/server/dbHelpers/listQuerier.ts | 18 +++---- lib/server/dbHelpers/storyQuerier.ts | 7 +-- .../middlewareButNotReally/storyCheck.ts | 4 +- .../middlewareButNotReally/storyPrivileges.ts | 13 +++-- lib/server/plugnplay.ts | 11 +++-- lib/server/storyHelpers/bodyHandler.ts | 2 +- .../storyHelpers/formChapterTransform.ts | 6 +-- models/band.ts | 2 +- models/challenges/biffno.ts | 4 +- models/challenges/ficmas.ts | 6 +-- models/challenges/gen.ts | 2 +- models/privMsg.ts | 2 +- models/stories/chapter.ts | 2 +- models/stories/draft.ts | 10 ++-- models/stories/index.ts | 8 ++-- models/stories/review.ts | 6 +-- models/user.ts | 2 +- nuxt.config.ts | 6 ++- pages/authors.vue | 4 +- pages/band/[id].vue | 2 +- pages/bands.vue | 6 +-- pages/new-story.vue | 2 +- pages/register.vue | 2 +- pages/story/[id]/[cidx]/index.vue | 4 +- pages/story/[id]/chapters.vue | 4 +- pages/story/[id]/edit.vue | 8 ++-- pages/user/[id].vue | 6 +-- plugins/01.db.server.ts | 8 ++-- server/api/all-users.get.ts | 2 +- server/api/auth/login.post.ts | 4 +- server/api/auth/register.post.ts | 6 +-- server/api/auth/session.get.ts | 2 +- server/api/authors.get.ts | 2 +- server/api/band/[id]/index.get.ts | 4 +- server/api/band/[id]/index.put.ts | 8 ++-- server/api/band/[id]/stories.get.ts | 6 +-- server/api/band/all.get.ts | 4 +- server/api/exists/email.get.ts | 4 +- server/api/exists/username.get.ts | 4 +- server/api/latest.get.ts | 5 +- server/api/review/[id]/index.delete.ts | 8 ++-- server/api/review/[id]/index.put.ts | 8 ++-- server/api/review/[id]/reply.post.ts | 8 ++-- server/api/sidebar/index.get.ts | 2 +- server/api/story/[id]/[chapter]/index.get.ts | 6 +-- server/api/story/[id]/[chapter]/index.put.ts | 16 +++---- .../story/[id]/[chapter]/reviews/index.get.ts | 4 +- .../[id]/[chapter]/reviews/index.post.ts | 8 ++-- server/api/story/[id]/full.get.ts | 8 ++-- server/api/story/[id]/index.delete.ts | 8 ++-- server/api/story/[id]/index.get.ts | 4 +- server/api/story/[id]/index.put.ts | 16 +++---- server/api/story/[id]/lovers.get.ts | 5 +- server/api/story/new.post.ts | 16 +++---- server/api/totals.get.ts | 4 +- server/api/upload/avatar.post.ts | 2 +- server/api/upload/content.post.ts | 6 +-- server/api/user/[id]/admin.post.ts | 6 +-- server/api/user/[id]/ban.post.ts | 6 +-- server/api/user/[id]/block.post.ts | 4 +- server/api/user/[id]/index.get.ts | 8 ++-- server/api/user/[id]/shared-ip.get.ts | 8 ++-- server/api/user/[id]/stories.get.ts | 2 +- server/api/user/[id]/unblock.post.ts | 4 +- server/api/user/me/favs.put.ts | 6 +-- server/api/user/me/hide.put.ts | 6 +-- server/api/user/me/index.put.ts | 10 ++-- server/api/user/me/profile.put.ts | 10 ++-- server/api/user/me/reviews.get.ts | 6 +-- server/api/user/me/subscriptions.put.ts | 6 +-- server/middleware/00.dbconn.ts | 4 +- server/middleware/05.currentUser.ts | 4 +- server/middleware/10.ficmasData.ts | 2 +- server/middleware/20.cidx.ts | 3 ++ server/middleware/90.log.ts | 2 +- server/tsconfig.json | 13 ++++- tsconfig.json | 12 ++++- typings/auth.d.ts | 2 +- typings/express.d.ts | 4 +- typings/fetchResult.ts | 2 +- typings/h3.d.ts | 4 +- typings/next.d.ts | 4 +- 102 files changed, 355 insertions(+), 299 deletions(-) diff --git a/components/layouts/navbar.vue b/components/layouts/navbar.vue index 7f0bf34..5b3b7fe 100644 --- a/components/layouts/navbar.vue +++ b/components/layouts/navbar.vue @@ -1,5 +1,5 @@ - + }-->