refactor: resolve import specifier via the active import map

This commit is contained in:
P. Reis 2024-04-03 19:39:06 -03:00
parent 417ff4ec59
commit 2113c73f09
1 changed files with 28 additions and 28 deletions

View File

@ -17,7 +17,7 @@ import {
import '@/firehose.ts'; import '@/firehose.ts';
import { Time } from '@/utils.ts'; import { Time } from '@/utils.ts';
import { actorController } from './controllers/activitypub/actor.ts'; import { actorController } from '@/controllers/activitypub/actor.ts';
import { import {
accountController, accountController,
accountLookupController, accountLookupController,
@ -34,25 +34,25 @@ import {
unfollowController, unfollowController,
updateCredentialsController, updateCredentialsController,
verifyCredentialsController, verifyCredentialsController,
} from './controllers/api/accounts.ts'; } from '@/controllers/api/accounts.ts';
import { adminAccountsController } from './controllers/api/admin.ts'; import { adminAccountsController } from '@/controllers/api/admin.ts';
import { appCredentialsController, createAppController } from './controllers/api/apps.ts'; import { appCredentialsController, createAppController } from '@/controllers/api/apps.ts';
import { blocksController } from './controllers/api/blocks.ts'; import { blocksController } from '@/controllers/api/blocks.ts';
import { bookmarksController } from './controllers/api/bookmarks.ts'; import { bookmarksController } from '@/controllers/api/bookmarks.ts';
import { emptyArrayController, emptyObjectController, notImplementedController } from './controllers/api/fallback.ts'; import { emptyArrayController, emptyObjectController, notImplementedController } from '@/controllers/api/fallback.ts';
import { instanceController } from './controllers/api/instance.ts'; import { instanceController } from '@/controllers/api/instance.ts';
import { mediaController } from './controllers/api/media.ts'; import { mediaController } from '@/controllers/api/media.ts';
import { notificationsController } from './controllers/api/notifications.ts'; import { notificationsController } from '@/controllers/api/notifications.ts';
import { createTokenController, oauthAuthorizeController, oauthController } from './controllers/api/oauth.ts'; import { createTokenController, oauthAuthorizeController, oauthController } from '@/controllers/api/oauth.ts';
import { import {
configController, configController,
frontendConfigController, frontendConfigController,
pleromaAdminDeleteStatusController, pleromaAdminDeleteStatusController,
updateConfigController, updateConfigController,
} from './controllers/api/pleroma.ts'; } from '@/controllers/api/pleroma.ts';
import { preferencesController } from './controllers/api/preferences.ts'; import { preferencesController } from '@/controllers/api/preferences.ts';
import { relayController } from './controllers/nostr/relay.ts'; import { relayController } from '@/controllers/nostr/relay.ts';
import { searchController } from './controllers/api/search.ts'; import { searchController } from '@/controllers/api/search.ts';
import { import {
bookmarkController, bookmarkController,
contextController, contextController,
@ -66,23 +66,23 @@ import {
unbookmarkController, unbookmarkController,
unpinController, unpinController,
zapController, zapController,
} from './controllers/api/statuses.ts'; } from '@/controllers/api/statuses.ts';
import { streamingController } from './controllers/api/streaming.ts'; import { streamingController } from '@/controllers/api/streaming.ts';
import { import {
hashtagTimelineController, hashtagTimelineController,
homeTimelineController, homeTimelineController,
publicTimelineController, publicTimelineController,
} from './controllers/api/timelines.ts'; } from '@/controllers/api/timelines.ts';
import { trendingTagsController } from './controllers/api/trends.ts'; import { trendingTagsController } from '@/controllers/api/trends.ts';
import { indexController } from './controllers/site.ts'; import { indexController } from '@/controllers/site.ts';
import { hostMetaController } from './controllers/well-known/host-meta.ts'; import { hostMetaController } from '@/controllers/well-known/host-meta.ts';
import { nodeInfoController, nodeInfoSchemaController } from './controllers/well-known/nodeinfo.ts'; import { nodeInfoController, nodeInfoSchemaController } from '@/controllers/well-known/nodeinfo.ts';
import { nostrController } from './controllers/well-known/nostr.ts'; import { nostrController } from '@/controllers/well-known/nostr.ts';
import { webfingerController } from './controllers/well-known/webfinger.ts'; import { webfingerController } from '@/controllers/well-known/webfinger.ts';
import { auth19, requirePubkey } from './middleware/auth19.ts'; import { auth19, requirePubkey } from '@/middleware/auth19.ts';
import { auth98, requireProof, requireRole } from './middleware/auth98.ts'; import { auth98, requireProof, requireRole } from '@/middleware/auth98.ts';
import { cache } from './middleware/cache.ts'; import { cache } from '@/middleware/cache.ts';
import { csp } from './middleware/csp.ts'; import { csp } from '@/middleware/csp.ts';
interface AppEnv extends HonoEnv { interface AppEnv extends HonoEnv {
Variables: { Variables: {