mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Optimize imports
This commit is contained in:
parent
6cef362815
commit
136faac349
@ -3,7 +3,6 @@ import { Cache, CACHE_HOOKSHOT_WEBHOOK_BRIDGE, CACHE_INTEGRATIONS } from "../../
|
||||
import { LogService } from "matrix-bot-sdk";
|
||||
import { ApiError } from "../ApiError";
|
||||
import { ROLE_ADMIN, ROLE_USER } from "../security/MatrixSecurity";
|
||||
import HookshotGithubBridgeRecord from "../../db/models/HookshotGithubBridgeRecord";
|
||||
import HookshotWebhookBridgeRecord from "../../db/models/HookshotWebhookBridgeRecord";
|
||||
|
||||
interface CreateWithUpstream {
|
||||
|
@ -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 { LogService } from "matrix-bot-sdk";
|
||||
import { ROLE_USER } from "../security/MatrixSecurity";
|
||||
import {
|
||||
HookshotGithubOrg,
|
||||
HookshotGithubRepo,
|
||||
HookshotGithubRoomConfig,
|
||||
HookshotWebhookRoomConfig
|
||||
} from "../../bridges/models/hookshot";
|
||||
import { HookshotGithubBridge } from "../../bridges/HookshotGithubBridge";
|
||||
import { HookshotWebhookRoomConfig } from "../../bridges/models/hookshot";
|
||||
import { HookshotWebhookBridge } from "../../bridges/HookshotWebhookBridge";
|
||||
|
||||
interface BridgeRoomRequest {
|
||||
|
@ -1,7 +1,4 @@
|
||||
import {
|
||||
HookshotTypes,
|
||||
HookshotWebhookRoomConfig
|
||||
} from "./models/hookshot";
|
||||
import { HookshotTypes, HookshotWebhookRoomConfig } from "./models/hookshot";
|
||||
import { HookshotBridge } from "./HookshotBridge";
|
||||
import HookshotWebhookBridgeRecord from "../db/models/HookshotWebhookBridgeRecord";
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
import {
|
||||
Bridge,
|
||||
HookshotGithubBridgeConfiguration,
|
||||
HookshotJiraBridgeConfiguration, HookshotWebhookBridgeConfiguration,
|
||||
HookshotJiraBridgeConfiguration,
|
||||
HookshotWebhookBridgeConfiguration,
|
||||
SlackBridgeConfiguration,
|
||||
TelegramBridgeConfiguration,
|
||||
WebhookBridgeConfiguration
|
||||
@ -15,7 +16,6 @@ import { SlackBridge } from "../bridges/SlackBridge";
|
||||
import { HookshotGithubBridge } from "../bridges/HookshotGithubBridge";
|
||||
import { HookshotJiraBridge } from "../bridges/HookshotJiraBridge";
|
||||
import { HookshotWebhookBridge } from "../bridges/HookshotWebhookBridge";
|
||||
import HookshotWebhookBridgeRecord from "./models/HookshotWebhookBridgeRecord";
|
||||
|
||||
export class BridgeStore {
|
||||
|
||||
|
@ -5,7 +5,7 @@ import { PortalInfo, PuppetInfo } from "../bridges/TelegramBridge";
|
||||
import { WebhookConfiguration } from "../bridges/models/webhooks";
|
||||
import { BridgedChannel } from "../bridges/SlackBridge";
|
||||
import {
|
||||
HookshotConnection, HookshotGithubRoomConfig,
|
||||
HookshotGithubRoomConfig,
|
||||
HookshotJiraInstance,
|
||||
HookshotJiraRoomConfig,
|
||||
HookshotWebhookRoomConfig
|
||||
|
@ -1,10 +1,7 @@
|
||||
import { Component } from "@angular/core";
|
||||
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 { TranslateService } from "@ngx-translate/core";
|
||||
import { FE_HookshotJiraConnection } from "../../../shared/models/hookshot_jira";
|
||||
import { FE_HookshotWebhookConnection } from "../../../shared/models/hookshot_webhook";
|
||||
import { HookshotWebhookApiService } from "../../../shared/services/integrations/hookshot-webhook-api.service";
|
||||
|
||||
|
@ -2,7 +2,6 @@ import { Injectable } from "@angular/core";
|
||||
import { AuthedApi } from "../authed-api";
|
||||
import { FE_Upstream } from "../../models/admin-responses";
|
||||
import { HttpClient } from "@angular/common/http";
|
||||
import { FE_HookshotGithubBridge } from "../../models/hookshot_github";
|
||||
import { FE_HookshotWebhookBridge } from "../../models/hookshot_webhook";
|
||||
|
||||
@Injectable()
|
||||
|
Loading…
Reference in New Issue
Block a user