From 8f45dbe563c595a7c2980c1265979d24f1407ea6 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: Fri, 29 Dec 2023 20:53:29 -0500 Subject: [PATCH] style(*): edit indents --- .editorconfig | 5 +- components/layouts/footer.vue | 22 ++--- components/profile/adminPanel.vue | 53 +++-------- components/reviews/forChapter.vue | 4 +- components/story/atoms/characters.vue | 12 +-- components/story/atoms/genre.vue | 17 +--- components/story/atoms/pairings.vue | 18 +--- components/story/atoms/test1.vue | 4 +- components/story/view/storyInfo.vue | 94 ++++--------------- components/tos.vue | 84 +++++------------ lib/client/editorConfig.ts | 9 +- lib/client/listActions.ts | 14 +-- lib/client/middleware.ts | 52 +++++----- lib/client/types/form/draftInfo.ts | 3 + lib/client/types/form/story.ts | 22 ++++- lib/client/utils.ts | 6 +- lib/server/constants.ts | 18 +--- lib/server/dbHelpers/draftHydrator.ts | 20 ++++ lib/server/dbHelpers/storyQuerier.ts | 3 +- lib/server/ficmas.ts | 10 +- .../middlewareButNotReally/storyPrivileges.ts | 20 +--- lib/server/storyHelpers/bodyHandler.ts | 12 +-- lib/server/storyHelpers/replaceGridFS.ts | 5 +- pages/bands.vue | 14 +-- pages/forum.vue | 5 +- pages/new-story.vue | 7 +- pages/story/[id]/[cidx]/index.vue | 49 ++-------- pages/story/[id]/chapters.vue | 4 +- server/api/auth/register.post.ts | 7 +- server/api/authors.get.ts | 11 +-- server/api/review/[id]/index.delete.ts | 5 +- server/api/review/[id]/index.get.ts | 4 +- server/api/review/[id]/index.put.ts | 4 +- server/api/review/[id]/reply.post.ts | 12 +-- server/api/story/[id]/full.get.ts | 6 +- server/api/totals.get.ts | 5 +- server/api/user/me/reviews.get.ts | 6 +- server/middleware/06.ip.ts | 5 +- server/middleware/10.ficmasData.ts | 5 +- server/middleware/90.log.ts | 4 +- typings/auth.d.ts | 29 +----- 41 files changed, 198 insertions(+), 491 deletions(-) create mode 100644 lib/client/types/form/draftInfo.ts create mode 100644 lib/server/dbHelpers/draftHydrator.ts diff --git a/.editorconfig b/.editorconfig index 9bc03af..9528f12 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,6 +1,7 @@ -[*.*] +root = true +[*] tab_width = 2 -indent_size = 1 +indent_size = 2 indent_style = tab charset = utf-8 max_line_length = 160 \ No newline at end of file diff --git a/components/layouts/footer.vue b/components/layouts/footer.vue index 88d4590..83be34e 100644 --- a/components/layouts/footer.vue +++ b/components/layouts/footer.vue @@ -2,25 +2,17 @@ diff --git a/components/profile/adminPanel.vue b/components/profile/adminPanel.vue index d6aca42..fe9345b 100644 --- a/components/profile/adminPanel.vue +++ b/components/profile/adminPanel.vue @@ -30,11 +30,7 @@ promote: !short, }, }); - messageApi.success( - `User ${props.user?.username} is now ${ - short ? "an admin" : "a regular user" - }.`, - ); + messageApi.success(`User ${props.user?.username} is now ${short ? "an admin" : "a regular user"}.`); setTimeout(() => { showDemote.value = false; }, 1000); @@ -44,26 +40,15 @@