Optimize imports

This commit is contained in:
Travis Ralston 2021-12-03 14:51:08 -07:00
parent 6cef362815
commit 136faac349
7 changed files with 6 additions and 20 deletions

View File

@ -3,7 +3,6 @@ import { Cache, CACHE_HOOKSHOT_WEBHOOK_BRIDGE, CACHE_INTEGRATIONS } from "../../
import { LogService } from "matrix-bot-sdk"; import { LogService } from "matrix-bot-sdk";
import { ApiError } from "../ApiError"; import { ApiError } from "../ApiError";
import { ROLE_ADMIN, ROLE_USER } from "../security/MatrixSecurity"; import { ROLE_ADMIN, ROLE_USER } from "../security/MatrixSecurity";
import HookshotGithubBridgeRecord from "../../db/models/HookshotGithubBridgeRecord";
import HookshotWebhookBridgeRecord from "../../db/models/HookshotWebhookBridgeRecord"; import HookshotWebhookBridgeRecord from "../../db/models/HookshotWebhookBridgeRecord";
interface CreateWithUpstream { interface CreateWithUpstream {

View File

@ -1,14 +1,8 @@
import { Context, DELETE, GET, Path, PathParam, POST, Security, ServiceContext } from "typescript-rest"; import { Context, DELETE, Path, PathParam, POST, Security, ServiceContext } from "typescript-rest";
import { ApiError } from "../ApiError"; import { ApiError } from "../ApiError";
import { LogService } from "matrix-bot-sdk"; import { LogService } from "matrix-bot-sdk";
import { ROLE_USER } from "../security/MatrixSecurity"; import { ROLE_USER } from "../security/MatrixSecurity";
import { import { HookshotWebhookRoomConfig } from "../../bridges/models/hookshot";
HookshotGithubOrg,
HookshotGithubRepo,
HookshotGithubRoomConfig,
HookshotWebhookRoomConfig
} from "../../bridges/models/hookshot";
import { HookshotGithubBridge } from "../../bridges/HookshotGithubBridge";
import { HookshotWebhookBridge } from "../../bridges/HookshotWebhookBridge"; import { HookshotWebhookBridge } from "../../bridges/HookshotWebhookBridge";
interface BridgeRoomRequest { interface BridgeRoomRequest {

View File

@ -1,7 +1,4 @@
import { import { HookshotTypes, HookshotWebhookRoomConfig } from "./models/hookshot";
HookshotTypes,
HookshotWebhookRoomConfig
} from "./models/hookshot";
import { HookshotBridge } from "./HookshotBridge"; import { HookshotBridge } from "./HookshotBridge";
import HookshotWebhookBridgeRecord from "../db/models/HookshotWebhookBridgeRecord"; import HookshotWebhookBridgeRecord from "../db/models/HookshotWebhookBridgeRecord";

View File

@ -1,7 +1,8 @@
import { import {
Bridge, Bridge,
HookshotGithubBridgeConfiguration, HookshotGithubBridgeConfiguration,
HookshotJiraBridgeConfiguration, HookshotWebhookBridgeConfiguration, HookshotJiraBridgeConfiguration,
HookshotWebhookBridgeConfiguration,
SlackBridgeConfiguration, SlackBridgeConfiguration,
TelegramBridgeConfiguration, TelegramBridgeConfiguration,
WebhookBridgeConfiguration WebhookBridgeConfiguration
@ -15,7 +16,6 @@ import { SlackBridge } from "../bridges/SlackBridge";
import { HookshotGithubBridge } from "../bridges/HookshotGithubBridge"; import { HookshotGithubBridge } from "../bridges/HookshotGithubBridge";
import { HookshotJiraBridge } from "../bridges/HookshotJiraBridge"; import { HookshotJiraBridge } from "../bridges/HookshotJiraBridge";
import { HookshotWebhookBridge } from "../bridges/HookshotWebhookBridge"; import { HookshotWebhookBridge } from "../bridges/HookshotWebhookBridge";
import HookshotWebhookBridgeRecord from "./models/HookshotWebhookBridgeRecord";
export class BridgeStore { export class BridgeStore {

View File

@ -5,7 +5,7 @@ import { PortalInfo, PuppetInfo } from "../bridges/TelegramBridge";
import { WebhookConfiguration } from "../bridges/models/webhooks"; import { WebhookConfiguration } from "../bridges/models/webhooks";
import { BridgedChannel } from "../bridges/SlackBridge"; import { BridgedChannel } from "../bridges/SlackBridge";
import { import {
HookshotConnection, HookshotGithubRoomConfig, HookshotGithubRoomConfig,
HookshotJiraInstance, HookshotJiraInstance,
HookshotJiraRoomConfig, HookshotJiraRoomConfig,
HookshotWebhookRoomConfig HookshotWebhookRoomConfig

View File

@ -1,10 +1,7 @@
import { Component } from "@angular/core"; import { Component } from "@angular/core";
import { BridgeComponent } from "../bridge.component"; import { BridgeComponent } from "../bridge.component";
import { FE_Webhook } from "../../../shared/models/webhooks";
import { WebhooksApiService } from "../../../shared/services/integrations/webhooks-api.service";
import { ScalarClientApiService } from "../../../shared/services/scalar/scalar-client-api.service"; import { ScalarClientApiService } from "../../../shared/services/scalar/scalar-client-api.service";
import { TranslateService } from "@ngx-translate/core"; import { TranslateService } from "@ngx-translate/core";
import { FE_HookshotJiraConnection } from "../../../shared/models/hookshot_jira";
import { FE_HookshotWebhookConnection } from "../../../shared/models/hookshot_webhook"; import { FE_HookshotWebhookConnection } from "../../../shared/models/hookshot_webhook";
import { HookshotWebhookApiService } from "../../../shared/services/integrations/hookshot-webhook-api.service"; import { HookshotWebhookApiService } from "../../../shared/services/integrations/hookshot-webhook-api.service";

View File

@ -2,7 +2,6 @@ import { Injectable } from "@angular/core";
import { AuthedApi } from "../authed-api"; import { AuthedApi } from "../authed-api";
import { FE_Upstream } from "../../models/admin-responses"; import { FE_Upstream } from "../../models/admin-responses";
import { HttpClient } from "@angular/common/http"; import { HttpClient } from "@angular/common/http";
import { FE_HookshotGithubBridge } from "../../models/hookshot_github";
import { FE_HookshotWebhookBridge } from "../../models/hookshot_webhook"; import { FE_HookshotWebhookBridge } from "../../models/hookshot_webhook";
@Injectable() @Injectable()