diff options
Diffstat (limited to 'src/utils/helpers')
| -rw-r--r-- | src/utils/helpers/author.ts | 4 | ||||
| -rw-r--r-- | src/utils/helpers/dates.ts | 2 | ||||
| -rw-r--r-- | src/utils/helpers/i18n.ts | 2 | ||||
| -rw-r--r-- | src/utils/helpers/images.ts | 4 | ||||
| -rw-r--r-- | src/utils/helpers/pages.ts | 12 | ||||
| -rw-r--r-- | src/utils/helpers/projects.ts | 8 | ||||
| -rw-r--r-- | src/utils/helpers/rss.ts | 8 | ||||
| -rw-r--r-- | src/utils/helpers/schema-org.ts | 4 |
8 files changed, 22 insertions, 22 deletions
diff --git a/src/utils/helpers/author.ts b/src/utils/helpers/author.ts index 40743ca..2892524 100644 --- a/src/utils/helpers/author.ts +++ b/src/utils/helpers/author.ts @@ -1,5 +1,5 @@ -import { type Author, type ContentKind } from '@ts/types/app'; -import { type RawAuthor } from '@ts/types/raw-data'; +import { type Author, type ContentKind } from '../../types/app'; +import { type RawAuthor } from '../../types/raw-data'; /** * Convert author raw data to regular data. diff --git a/src/utils/helpers/dates.ts b/src/utils/helpers/dates.ts index cb56ad2..82c14db 100644 --- a/src/utils/helpers/dates.ts +++ b/src/utils/helpers/dates.ts @@ -1,4 +1,4 @@ -import { settings } from '@utils/config'; +import { settings } from '../config'; /** * Format a date based on a locale. diff --git a/src/utils/helpers/i18n.ts b/src/utils/helpers/i18n.ts index 5d19c8c..35d495e 100644 --- a/src/utils/helpers/i18n.ts +++ b/src/utils/helpers/i18n.ts @@ -1,7 +1,7 @@ import { createIntl, createIntlCache, IntlShape } from '@formatjs/intl'; -import { settings } from '@utils/config'; import { readFile } from 'fs/promises'; import path from 'path'; +import { settings } from '../config'; export type Messages = { [key: string]: string }; diff --git a/src/utils/helpers/images.ts b/src/utils/helpers/images.ts index 30bb8be..bff50c3 100644 --- a/src/utils/helpers/images.ts +++ b/src/utils/helpers/images.ts @@ -1,5 +1,5 @@ -import { Image } from '@ts/types/app'; -import { RawCover } from '@ts/types/raw-data'; +import { Image } from '../../types/app'; +import { RawCover } from '../../types/raw-data'; /** * Retrieve an Image object from raw data. diff --git a/src/utils/helpers/pages.ts b/src/utils/helpers/pages.ts index eb4453b..d6d44d2 100644 --- a/src/utils/helpers/pages.ts +++ b/src/utils/helpers/pages.ts @@ -1,13 +1,13 @@ -import { type Post } from '@components/organisms/layout/posts-list'; -import { type LinksListItems } from '@components/organisms/widgets/links-list-widget'; -import { getArticleFromRawData } from '@services/graphql/articles'; -import { type Article, type PageLink } from '@ts/types/app'; -import { EdgesResponse } from '@ts/types/graphql/queries'; +import { type Post } from '../../components/organisms/layout/posts-list'; +import { type LinksListItems } from '../../components/organisms/widgets/links-list-widget'; +import { getArticleFromRawData } from '../../services/graphql/articles'; +import { type Article, type PageLink } from '../../types/app'; +import { EdgesResponse } from '../../types/graphql/queries'; import { type RawArticle, type RawThematicPreview, type RawTopicPreview, -} from '@ts/types/raw-data'; +} from '../../types/raw-data'; import { getImageFromRawData } from './images'; /** diff --git a/src/utils/helpers/projects.ts b/src/utils/helpers/projects.ts index 88f4516..0e4de7d 100644 --- a/src/utils/helpers/projects.ts +++ b/src/utils/helpers/projects.ts @@ -1,7 +1,7 @@ -import { ProjectCard, ProjectPreview } from '@ts/types/app'; -import { MDXProjectMeta } from '@ts/types/mdx'; -import { readdirSync } from 'fs'; -import path from 'path'; +import { readdirSync } from 'node:fs'; +import path from 'node:path'; +import { ProjectCard, ProjectPreview } from '../../types/app'; +import { MDXProjectMeta } from '../../types/mdx'; /** * Retrieve all the projects filename. diff --git a/src/utils/helpers/rss.ts b/src/utils/helpers/rss.ts index 8ee774c..41a036c 100644 --- a/src/utils/helpers/rss.ts +++ b/src/utils/helpers/rss.ts @@ -1,11 +1,11 @@ +import { Feed } from 'feed'; import { getArticleFromRawData, getArticles, getTotalArticles, -} from '@services/graphql/articles'; -import { Article } from '@ts/types/app'; -import { settings } from '@utils/config'; -import { Feed } from 'feed'; +} from '../../services/graphql/articles'; +import { Article } from '../../types/app'; +import { settings } from '../../utils/config'; /** * Retrieve the data for all the articles. diff --git a/src/utils/helpers/schema-org.ts b/src/utils/helpers/schema-org.ts index cdace00..5d400c8 100644 --- a/src/utils/helpers/schema-org.ts +++ b/src/utils/helpers/schema-org.ts @@ -1,5 +1,3 @@ -import { Dates } from '@ts/types/app'; -import { settings } from '@utils/config'; import { AboutPage, Article, @@ -9,6 +7,8 @@ import { Graph, WebPage, } from 'schema-dts'; +import { Dates } from '../../types/app'; +import { settings } from '../../utils/config'; export type GetBlogSchemaProps = { /** |
