From 5f20e2c4fea3938b93fdbf10a79aeae6038f40d5 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Mon, 20 Mar 2023 01:21:56 -0400 Subject: [PATCH] Move api.ts to api/status.ts --- src/{api.ts => api/status.ts} | 18 +++++++++--------- src/status.ts | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) rename src/{api.ts => api/status.ts} (93%) diff --git a/src/api.ts b/src/api/status.ts similarity index 93% rename from src/api.ts rename to src/api/status.ts index f05d2a9..71a3f93 100644 --- a/src/api.ts +++ b/src/api/status.ts @@ -1,12 +1,12 @@ -import { renderCard } from './helpers/card'; -import { Constants } from './constants'; -import { fetchConversation } from './fetch'; -import { linkFixer } from './helpers/linkFixer'; -import { handleMosaic } from './helpers/mosaic'; -import { colorFromPalette } from './helpers/palette'; -import { translateTweet } from './helpers/translate'; -import { unescapeText } from './helpers/utils'; -import { processMedia } from './helpers/media'; +import { renderCard } from '../helpers/card'; +import { Constants } from '../constants'; +import { fetchConversation } from '../fetch'; +import { linkFixer } from '../helpers/linkFixer'; +import { handleMosaic } from '../helpers/mosaic'; +import { colorFromPalette } from '../helpers/palette'; +import { translateTweet } from '../helpers/translate'; +import { unescapeText } from '../helpers/utils'; +import { processMedia } from '../helpers/media'; /* This function does the heavy lifting of processing data from Twitter API and using it to create FixTweet's streamlined API responses */ diff --git a/src/status.ts b/src/status.ts index 9e5a99d..e8b3d9f 100644 --- a/src/status.ts +++ b/src/status.ts @@ -3,7 +3,7 @@ import { handleQuote } from './helpers/quote'; import { formatNumber, sanitizeText } from './helpers/utils'; import { Strings } from './strings'; import { getAuthorText } from './helpers/author'; -import { statusAPI } from './api'; +import { statusAPI } from './api/status'; export const returnError = (error: string): StatusResponse => { return {