mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-29 00:47:01 +00:00
Fix Lint errors in JunoUtil (#484)
This commit is contained in:
parent
9d30dd5d0a
commit
1af44fb207
@ -275,7 +275,6 @@ src/Utils/AuthorizationUtils.test.ts
|
|||||||
src/Utils/AuthorizationUtils.ts
|
src/Utils/AuthorizationUtils.ts
|
||||||
src/Utils/DatabaseAccountUtils.test.ts
|
src/Utils/DatabaseAccountUtils.test.ts
|
||||||
src/Utils/DatabaseAccountUtils.ts
|
src/Utils/DatabaseAccountUtils.ts
|
||||||
src/Utils/JunoUtils.ts
|
|
||||||
src/Utils/MessageValidation.ts
|
src/Utils/MessageValidation.ts
|
||||||
src/Utils/NotebookConfigurationUtils.ts
|
src/Utils/NotebookConfigurationUtils.ts
|
||||||
src/Utils/PricingUtils.test.ts
|
src/Utils/PricingUtils.test.ts
|
||||||
|
@ -6,7 +6,7 @@ import { IPinnedRepo, JunoClient } from "../../Juno/JunoClient";
|
|||||||
import { Action, ActionModifiers } from "../../Shared/Telemetry/TelemetryConstants";
|
import { Action, ActionModifiers } from "../../Shared/Telemetry/TelemetryConstants";
|
||||||
import * as TelemetryProcessor from "../../Shared/Telemetry/TelemetryProcessor";
|
import * as TelemetryProcessor from "../../Shared/Telemetry/TelemetryProcessor";
|
||||||
import * as GitHubUtils from "../../Utils/GitHubUtils";
|
import * as GitHubUtils from "../../Utils/GitHubUtils";
|
||||||
import { JunoUtils } from "../../Utils/JunoUtils";
|
import * as JunoUtils from "../../Utils/JunoUtils";
|
||||||
import { AuthorizeAccessComponent } from "../Controls/GitHub/AuthorizeAccessComponent";
|
import { AuthorizeAccessComponent } from "../Controls/GitHub/AuthorizeAccessComponent";
|
||||||
import { GitHubReposComponent, GitHubReposComponentProps, RepoListItem } from "../Controls/GitHub/GitHubReposComponent";
|
import { GitHubReposComponent, GitHubReposComponentProps, RepoListItem } from "../Controls/GitHub/GitHubReposComponent";
|
||||||
import { GitHubReposComponentAdapter } from "../Controls/GitHub/GitHubReposComponentAdapter";
|
import { GitHubReposComponentAdapter } from "../Controls/GitHub/GitHubReposComponentAdapter";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { RepoListItem } from "../Explorer/Controls/GitHub/GitHubReposComponent";
|
import { RepoListItem } from "../Explorer/Controls/GitHub/GitHubReposComponent";
|
||||||
import { IPinnedRepo } from "../Juno/JunoClient";
|
import { IPinnedRepo } from "../Juno/JunoClient";
|
||||||
import { JunoUtils } from "./JunoUtils";
|
import * as JunoUtils from "./JunoUtils";
|
||||||
import { IGitHubRepo } from "../GitHub/GitHubClient";
|
import { IGitHubRepo } from "../GitHub/GitHubClient";
|
||||||
|
|
||||||
const gitHubRepo: IGitHubRepo = {
|
const gitHubRepo: IGitHubRepo = {
|
||||||
|
@ -2,21 +2,19 @@ import { RepoListItem } from "../Explorer/Controls/GitHub/GitHubReposComponent";
|
|||||||
import { IGitHubRepo } from "../GitHub/GitHubClient";
|
import { IGitHubRepo } from "../GitHub/GitHubClient";
|
||||||
import { IPinnedRepo } from "../Juno/JunoClient";
|
import { IPinnedRepo } from "../Juno/JunoClient";
|
||||||
|
|
||||||
export class JunoUtils {
|
export function toPinnedRepo(item: RepoListItem): IPinnedRepo {
|
||||||
public static toPinnedRepo(item: RepoListItem): IPinnedRepo {
|
return {
|
||||||
return {
|
owner: item.repo.owner,
|
||||||
owner: item.repo.owner,
|
name: item.repo.name,
|
||||||
name: item.repo.name,
|
private: item.repo.private,
|
||||||
private: item.repo.private,
|
branches: item.branches.map((element) => ({ name: element.name })),
|
||||||
branches: item.branches.map((element) => ({ name: element.name })),
|
};
|
||||||
};
|
}
|
||||||
}
|
|
||||||
|
export function toGitHubRepo(pinnedRepo: IPinnedRepo): IGitHubRepo {
|
||||||
public static toGitHubRepo(pinnedRepo: IPinnedRepo): IGitHubRepo {
|
return {
|
||||||
return {
|
owner: pinnedRepo.owner,
|
||||||
owner: pinnedRepo.owner,
|
name: pinnedRepo.name,
|
||||||
name: pinnedRepo.name,
|
private: pinnedRepo.private,
|
||||||
private: pinnedRepo.private,
|
};
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user