diff --git a/src/scripts/classes/query/handiwork-search-query.ts b/src/scripts/classes/query/handiwork-search-query.ts index 9b98cbd..89b9b6c 100644 --- a/src/scripts/classes/query/handiwork-search-query.ts +++ b/src/scripts/classes/query/handiwork-search-query.ts @@ -4,9 +4,9 @@ import validator from 'class-validator'; // Module from files -import { IQuery, TCategory, TQueryInterface } from "../../interfaces"; -import LatestSearchQuery, { TLatestOrder } from './latest-search-query'; -import ThreadSearchQuery, { TThreadOrder } from './thread-search-query'; +import { IQuery, TCategory, TQueryInterface } from "../../interfaces.js"; +import LatestSearchQuery, { TLatestOrder } from './latest-search-query.js'; +import ThreadSearchQuery, { TThreadOrder } from './thread-search-query.js'; // Type definitions /** diff --git a/src/scripts/classes/query/latest-search-query.ts b/src/scripts/classes/query/latest-search-query.ts index 7ef5f13..615137a 100644 --- a/src/scripts/classes/query/latest-search-query.ts +++ b/src/scripts/classes/query/latest-search-query.ts @@ -1,10 +1,12 @@ +"use strict"; + // Public modules from npm import validator from 'class-validator'; // Modules from file import { urls } from "../../constants/url.js"; import PrefixParser from '../prefix-parser.js'; -import { IQuery, TCategory, TQueryInterface } from "../../interfaces"; +import { IQuery, TCategory, TQueryInterface } from "../../interfaces.js"; // Type definitions export type TLatestOrder = "date" | "likes" | "views" | "title" | "rating"; diff --git a/src/scripts/classes/query/thread-search-query.ts b/src/scripts/classes/query/thread-search-query.ts index 4f2f7d4..9dccb52 100644 --- a/src/scripts/classes/query/thread-search-query.ts +++ b/src/scripts/classes/query/thread-search-query.ts @@ -4,9 +4,9 @@ import validator from 'class-validator'; // Module from files -import { IQuery, TCategory, TQueryInterface } from "../../interfaces"; -import { urls } from "../../constants/url"; -import PrefixParser from "./../prefix-parser"; +import { IQuery, TCategory, TQueryInterface } from "../../interfaces.js"; +import { urls } from "../../constants/url.js"; +import PrefixParser from "./../prefix-parser.js"; // Type definitions export type TThreadOrder = "relevance" | "date" | "last_update" | "replies"; diff --git a/src/scripts/classes/thread.ts b/src/scripts/classes/thread.ts index 9b827f4..1563cd3 100644 --- a/src/scripts/classes/thread.ts +++ b/src/scripts/classes/thread.ts @@ -5,16 +5,16 @@ import cheerio from "cheerio"; import luxon from "luxon"; // Modules from files -import Post from "./post"; -import PlatformUser from "./platform-user"; -import { TCategory, TRating } from "../interfaces"; -import { urls } from "../constants/url"; -import { THREAD } from "../constants/css-selector"; -import { fetchHTML, fetchPOSTResponse } from "../network-helper"; -import Shared from "../shared"; -import { GenericAxiosError, UnexpectedResponseContentType } from "./errors"; -import { Result } from "./result"; -import { getJSONLD, TJsonLD } from "../scrape-data/json-ld"; +import Post from "./post.js"; +import PlatformUser from "./platform-user.js"; +import { TCategory, TRating } from "../interfaces.js"; +import { urls } from "../constants/url.js"; +import { THREAD } from "../constants/css-selector.js"; +import { fetchHTML, fetchPOSTResponse } from "../network-helper.js"; +import Shared from "../shared.js"; +import { GenericAxiosError, UnexpectedResponseContentType } from "./errors.js"; +import { Result } from "./result.js"; +import { getJSONLD, TJsonLD } from "../scrape-data/json-ld.js"; /** * Represents a generic F95Zone platform thread. diff --git a/src/scripts/scrape-data/handiwork-parse.ts b/src/scripts/scrape-data/handiwork-parse.ts index 097435d..0a1e81e 100644 --- a/src/scripts/scrape-data/handiwork-parse.ts +++ b/src/scripts/scrape-data/handiwork-parse.ts @@ -4,11 +4,11 @@ import luxon from "luxon"; // Modules from files -import HandiWork from "../classes/handiwork/handiwork"; -import Thread from "../classes/thread"; -import { IBasic, TAuthor, TEngine, TExternalPlatform, TStatus } from "../interfaces"; -import shared, { TPrefixDict } from "../shared"; -import { ILink, IPostElement } from "./post-parse"; +import HandiWork from "../classes/handiwork/handiwork.js"; +import Thread from "../classes/thread.js"; +import { IBasic, TAuthor, TEngine, TExternalPlatform, TStatus } from "../interfaces.js"; +import shared, { TPrefixDict } from "../shared.js"; +import { ILink, IPostElement } from "./post-parse.js"; /** * Gets information of a particular handiwork from its thread.