From 347ce78be497cb6180abca12a0b6c4d0386b71f8 Mon Sep 17 00:00:00 2001 From: Renoir Boulanger Date: Tue, 29 Oct 2024 22:56:07 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20Normalize=20all=20impor?= =?UTF-8?q?t=20lines=20to=20be=20multi-line?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/AppArticleTags.vue | 9 +++-- components/AppBreadCrumb.vue | 7 ++-- components/AppCodeHighlighter.vue | 5 ++- components/AppMonthsInYear.vue | 11 ++++++- components/blog/BlogListModelByYear.vue | 1 + components/global/AppAlertBox.vue | 10 +++++- components/global/AppContentDate.vue | 7 +++- components/global/AppFooter.vue | 5 ++- components/global/AppHeader.vue | 9 ++++- components/global/AppImage.vue | 1 + components/global/AppPrevNext.vue | 5 ++- components/global/AppSideBar.vue | 5 ++- components/global/AppVeryOldArticle.vue | 3 +- lib/consts.ts | 5 ++- lib/model/content/break-into-years.ts | 10 ++++-- .../content/front-matter-inner-document.ts | 11 +++++-- lib/model/content/imports.ts | 6 +++- lib/model/content/model.ts | 12 +++++-- lib/model/content/parser.ts | 11 +++++-- lib/model/date.ts | 16 +++++++-- lib/model/page-title.ts | 15 +++++++-- lib/model/tag.ts | 10 ++++-- lib/model/taxonomy.ts | 10 ++++-- lib/runtime/hypothesis.ts | 5 ++- lib/runtime/nuxt-content-links.ts | 14 ++++++-- lib/runtime/nuxt-content.ts | 15 +++++++-- lib/runtime/nuxt-feed.ts | 33 +++++++++++++++---- lib/runtime/vue-meta.ts | 6 +++- middleware/init.ts | 5 ++- middleware/redirects.ts | 5 ++- pages/blog/_year/_month/_slug.vue | 5 +-- pages/blog/category/_category.vue | 1 + pages/blog/category/index.vue | 6 +++- pages/glossary/_slug.vue | 5 ++- pages/projects/_slug.vue | 3 ++ plugins/prism.ts | 2 +- 36 files changed, 233 insertions(+), 56 deletions(-) diff --git a/components/AppArticleTags.vue b/components/AppArticleTags.vue index 30dcd08d5b..1004c70587 100644 --- a/components/AppArticleTags.vue +++ b/components/AppArticleTags.vue @@ -44,12 +44,17 @@ diff --git a/lib/runtime/nuxt-content-links.ts b/lib/runtime/nuxt-content-links.ts index 0abd0972ba..85c9ed1153 100644 --- a/lib/runtime/nuxt-content-links.ts +++ b/lib/runtime/nuxt-content-links.ts @@ -1,5 +1,15 @@ -import type { INuxtContentResult, INuxtContentBodyType, VueNodeTag } from '..' -import { getVueNodeChildren, getVueNodeType, getVueNodeTag } from '../model' +import type { + INuxtContentResult, + INuxtContentBodyType, + VueNodeTag, + /* */ +} from '..' +import { + getVueNodeChildren, + getVueNodeType, + getVueNodeTag, + /* */ +} from '../model' export const extractVueTreeLinks = (document: INuxtContentResult): string[] => { // Cannot use Set() because that's only for one page here. And we'll have to merge them all. diff --git a/lib/runtime/nuxt-content.ts b/lib/runtime/nuxt-content.ts index 3270bf859d..b372ef354d 100644 --- a/lib/runtime/nuxt-content.ts +++ b/lib/runtime/nuxt-content.ts @@ -1,6 +1,15 @@ -import { extractFrontMatterTagsAndNormalize } from '..' -import type { INuxtOptionsHooks } from '..' -import { extractVueTreeLinks } from './nuxt-content-links' +import { + extractFrontMatterTagsAndNormalize, + /* */ +} from '..' +import type { + INuxtOptionsHooks, + /* */ +} from '..' +import { + extractVueTreeLinks, + /* */ +} from './nuxt-content-links' const allPages = new Map>() const allLinks: string[] = [] diff --git a/lib/runtime/nuxt-feed.ts b/lib/runtime/nuxt-feed.ts index 169dd51d53..479ff82c7c 100644 --- a/lib/runtime/nuxt-feed.ts +++ b/lib/runtime/nuxt-feed.ts @@ -1,9 +1,30 @@ -import type { FeedOptions, Author, Feed, Item } from 'feed' -import type { contentFunc } from '@nuxt/content' -import { Temporal } from '@js-temporal/polyfill' -import type { IAppIdentity } from '../types' -import type { INuxtContentResult } from '../model' -import { findExcludingRedirectPredicate } from '../index' +import { + Temporal, + /* */ +} from '@js-temporal/polyfill' +import type { + FeedOptions, + Author, + Feed, + Item, + /* */ +} from 'feed' +import type { + contentFunc, + /* */ +} from '@nuxt/content' +import { + findExcludingRedirectPredicate, + /* */ +} from '../index' +import type { + IAppIdentity, + /* */ +} from '../types' +import type { + INuxtContentResult, + /* */ +} from '../model' // eslint-disable-next-line const EXAMPLE_NUXT_CONTENT_RESULT: Partial[] = [ diff --git a/lib/runtime/vue-meta.ts b/lib/runtime/vue-meta.ts index dcb4d8f217..086c6d77d5 100644 --- a/lib/runtime/vue-meta.ts +++ b/lib/runtime/vue-meta.ts @@ -5,8 +5,12 @@ import type { Flatten, IAppIdentity, RefreshMetaInfo, + /* */ } from '../types' -import { sanitizeHtmlTagAttributeExpectingOneWord } from '.' +import { + sanitizeHtmlTagAttributeExpectingOneWord, + /* */ +} from '.' export const identityFallbackValues: IAppIdentity = { email: 'hello@renoirboulanger.com', diff --git a/middleware/init.ts b/middleware/init.ts index ce6adbd20f..9c3eeef676 100644 --- a/middleware/init.ts +++ b/middleware/init.ts @@ -1,5 +1,8 @@ import { Context } from '@nuxt/types' -import { getColorModeClassName } from '../lib' +import { + getColorModeClassName, + /* */ +} from '../lib' /** * Initial state. diff --git a/middleware/redirects.ts b/middleware/redirects.ts index 2d7348fb12..5b34ecb190 100644 --- a/middleware/redirects.ts +++ b/middleware/redirects.ts @@ -1,5 +1,8 @@ import { Context } from '@nuxt/types' -import { createMaybeRedirectTo } from '../lib' +import { + createMaybeRedirectTo, + /* */ +} from '../lib' const redirects: [RegExp, string, true?][] = [ /* diff --git a/pages/blog/_year/_month/_slug.vue b/pages/blog/_year/_month/_slug.vue index f4d8525cda..3239534d99 100644 --- a/pages/blog/_year/_month/_slug.vue +++ b/pages/blog/_year/_month/_slug.vue @@ -81,10 +81,6 @@