From aa851d99df5a6faa991c4bb1816c866386b22161 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 6 Dec 2021 21:20:16 -0700 Subject: [PATCH] Misc cleanup --- src/api/dimension/DimensionHookshotGithubService.ts | 1 - src/bridges/HookshotGithubBridge.ts | 4 +++- .../hookshot-github/hookshot-github.bridge.component.ts | 6 +----- .../services/integrations/hookshot-github-api.service.ts | 3 ++- web/assets/i18n/en.json | 2 ++ web/assets/i18n/template.json | 2 ++ 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/api/dimension/DimensionHookshotGithubService.ts b/src/api/dimension/DimensionHookshotGithubService.ts index ae10501..00a12c1 100644 --- a/src/api/dimension/DimensionHookshotGithubService.ts +++ b/src/api/dimension/DimensionHookshotGithubService.ts @@ -5,7 +5,6 @@ import { ROLE_USER } from "../security/MatrixSecurity"; import { HookshotGithubAuthUrls, HookshotGithubOrgReposDto, - HookshotGithubRepo, HookshotGithubRoomConfig } from "../../bridges/models/hookshot"; import { HookshotGithubBridge } from "../../bridges/HookshotGithubBridge"; diff --git a/src/bridges/HookshotGithubBridge.ts b/src/bridges/HookshotGithubBridge.ts index 94fc742..000fbfd 100644 --- a/src/bridges/HookshotGithubBridge.ts +++ b/src/bridges/HookshotGithubBridge.ts @@ -1,6 +1,8 @@ import HookshotGithubBridgeRecord from "../db/models/HookshotGithubBridgeRecord"; import { - HookshotGithubAuthUrls, HookshotGithubOrg, HookshotGithubOrgReposDto, + HookshotGithubAuthUrls, + HookshotGithubOrg, + HookshotGithubOrgReposDto, HookshotGithubRepo, HookshotGithubRoomConfig, HookshotGithubUserInfo, diff --git a/web/app/configs/bridge/hookshot-github/hookshot-github.bridge.component.ts b/web/app/configs/bridge/hookshot-github/hookshot-github.bridge.component.ts index 1149028..a2cd5ae 100644 --- a/web/app/configs/bridge/hookshot-github/hookshot-github.bridge.component.ts +++ b/web/app/configs/bridge/hookshot-github/hookshot-github.bridge.component.ts @@ -3,11 +3,7 @@ import { BridgeComponent } from "../bridge.component"; import { ScalarClientApiService } from "../../../shared/services/scalar/scalar-client-api.service"; import { DomSanitizer, SafeUrl } from "@angular/platform-browser"; import { TranslateService } from "@ngx-translate/core"; -import { - FE_HookshotGithubConnection, - FE_HookshotGithubOrgReposDto, - FE_HookshotGithubRepo -} from "../../../shared/models/hookshot_github"; +import { FE_HookshotGithubConnection, FE_HookshotGithubOrgReposDto } from "../../../shared/models/hookshot_github"; import { HookshotGithubApiService } from "../../../shared/services/integrations/hookshot-github-api.service"; interface HookshotConfig { diff --git a/web/app/shared/services/integrations/hookshot-github-api.service.ts b/web/app/shared/services/integrations/hookshot-github-api.service.ts index 8309b90..33676fe 100644 --- a/web/app/shared/services/integrations/hookshot-github-api.service.ts +++ b/web/app/shared/services/integrations/hookshot-github-api.service.ts @@ -3,7 +3,8 @@ import { AuthedApi } from "../authed-api"; import { HttpClient } from "@angular/common/http"; import { FE_HookshotGithubAuthUrls, - FE_HookshotGithubConnection, FE_HookshotGithubOrgReposDto, + FE_HookshotGithubConnection, + FE_HookshotGithubOrgReposDto, } from "../../models/hookshot_github"; @Injectable() diff --git a/web/assets/i18n/en.json b/web/assets/i18n/en.json index e49fc69..3d89d50 100644 --- a/web/assets/i18n/en.json +++ b/web/assets/i18n/en.json @@ -162,7 +162,9 @@ "Almost there! Just need to add the bot to your organizations now.": "Almost there! Just need to add the bot to your organizations now.", "Add to GitHub": "Add to GitHub", "Organization": "Organization", + "Add to another GitHub organization": "Add to another GitHub organization", "Repository": "Repository", + "Add more repositories from this organization": "Add more repositories from this organization", "Bridge to Jira": "Bridge to Jira", "In order to bridge to Jira, you'll need to authorize the bridge to access your organization(s). Please click the button below to do so.": "In order to bridge to Jira, you'll need to authorize the bridge to access your organization(s). Please click the button below to do so.", "Sign in with Jira": "Sign in with Jira", diff --git a/web/assets/i18n/template.json b/web/assets/i18n/template.json index 88b4759..ae45739 100644 --- a/web/assets/i18n/template.json +++ b/web/assets/i18n/template.json @@ -162,7 +162,9 @@ "Almost there! Just need to add the bot to your organizations now.": "Almost there! Just need to add the bot to your organizations now.", "Add to GitHub": "Add to GitHub", "Organization": "Organization", + "Add to another GitHub organization": "Add to another GitHub organization", "Repository": "Repository", + "Add more repositories from this organization": "Add more repositories from this organization", "Bridge to Jira": "Bridge to Jira", "In order to bridge to Jira, you'll need to authorize the bridge to access your organization(s). Please click the button below to do so.": "In order to bridge to Jira, you'll need to authorize the bridge to access your organization(s). Please click the button below to do so.", "Sign in with Jira": "Sign in with Jira",