@tehw0lf/git-portfolio 0.0.13 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/git-portfolio.component.mjs +7 -7
- package/esm2020/lib/git-portfolio.module.mjs +13 -15
- package/esm2020/lib/git-provider.service.mjs +3 -3
- package/esm2020/lib/octicon.directive.mjs +3 -3
- package/esm2020/lib/repo-card/repo-card.component.mjs +9 -9
- package/fesm2015/tehw0lf-git-portfolio.mjs +32 -34
- package/fesm2015/tehw0lf-git-portfolio.mjs.map +1 -1
- package/fesm2020/tehw0lf-git-portfolio.mjs +32 -34
- package/fesm2020/tehw0lf-git-portfolio.mjs.map +1 -1
- package/lib/git-portfolio.component.d.ts +1 -1
- package/lib/octicon.directive.d.ts +1 -1
- package/lib/repo-card/repo-card.component.d.ts +1 -1
- package/package.json +13 -13
- package/schematics/ng-add/index.js +2 -4
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/index.spec.js +21 -22
- package/schematics/ng-add/index.spec.js.map +1 -1
- package/schematics/ng-add/setup.js +1 -1
- package/schematics/testing/test-project.d.ts +2 -2
- package/schematics/testing/test-project.js +9 -2
- package/schematics/testing/test-project.js.map +1 -1
- package/tehw0lf-git-portfolio.d.ts +0 -5
|
@@ -5,11 +5,11 @@ import { GitProviderService } from './git-provider.service';
|
|
|
5
5
|
import { GitProviders } from './types/git-providers-type';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
import * as i1 from "./git-provider.service";
|
|
8
|
-
import * as i2 from "@angular/
|
|
9
|
-
import * as i3 from "
|
|
10
|
-
import * as i4 from "@angular/
|
|
8
|
+
import * as i2 from "@angular/common";
|
|
9
|
+
import * as i3 from "@angular/material/progress-spinner";
|
|
10
|
+
import * as i4 from "@angular/flex-layout/flex";
|
|
11
11
|
import * as i5 from "@angular/flex-layout/extended";
|
|
12
|
-
import * as i6 from "
|
|
12
|
+
import * as i6 from "./repo-card/repo-card.component";
|
|
13
13
|
export class GitPortfolioComponent {
|
|
14
14
|
constructor(gitProviderService) {
|
|
15
15
|
this.gitProviderService = gitProviderService;
|
|
@@ -124,9 +124,9 @@ export class GitPortfolioComponent {
|
|
|
124
124
|
return false;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
GitPortfolioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
128
|
-
GitPortfolioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
127
|
+
GitPortfolioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioComponent, deps: [{ token: i1.GitProviderService }], target: i0.ɵɵFactoryTarget.Component });
|
|
128
|
+
GitPortfolioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: GitPortfolioComponent, selector: "git-portfolio", inputs: { buttonStyle: "buttonStyle", cardStyle: "cardStyle", textStyle: "textStyle", checkColor: "checkColor", forkColor: "forkColor", issueColor: "issueColor", pasteColor: "pasteColor", starColor: "starColor", gitProviderConfig: "gitProviderConfig", showForked: "showForked", showOwn: "showOwn" }, ngImport: i0, template: "<div *ngIf=\"gitRepositories$ | async as gitRepositories\">\n <div *ngFor=\"let gitProvider of gitProviders | keyvalue\">\n <h1 [ngStyle]=\"textStyle\">{{ gitProvider.value }}</h1>\n <div *ngIf=\"showOwn\">\n <h2 [ngStyle]=\"textStyle\" class=\"mat-headline\">Own Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getOwnGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [buttonStyle]=\"buttonStyle\"\n [cardStyle]=\"cardStyle\"\n [textStyle]=\"textStyle\"\n [checkColor]=\"checkColor\"\n [forkColor]=\"forkColor\"\n [issueColor]=\"issueColor\"\n [pasteColor]=\"pasteColor\"\n [starColor]=\"starColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n >\n </repo-card>\n <div\n [ngStyle]=\"textStyle\"\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'own')\n \"\n >\n This user has not created any repositories yet\n </div>\n </div>\n </div>\n <div *ngIf=\"showForked\">\n <h2 [ngStyle]=\"textStyle\" class=\"mat-headline\">Forked Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getForkedGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [buttonStyle]=\"buttonStyle\"\n [cardStyle]=\"cardStyle\"\n [textStyle]=\"textStyle\"\n [checkColor]=\"checkColor\"\n [forkColor]=\"forkColor\"\n [issueColor]=\"issueColor\"\n [pasteColor]=\"pasteColor\"\n [starColor]=\"starColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n ></repo-card>\n <div\n [ngStyle]=\"textStyle\"\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'forked')\n \"\n >\n This user has not forked any repositories yet\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [".repository-card{max-width:450px;margin:0 32px 32px 0}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i4.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i4.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i4.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i5.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "component", type: i6.RepoCardComponent, selector: "repo-card", inputs: ["buttonStyle", "cardStyle", "textStyle", "checkColor", "forkColor", "issueColor", "pasteColor", "starColor", "gitRepo", "isCopied"], outputs: ["copiedToClipboardEvent"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.KeyValuePipe, name: "keyvalue" }] });
|
|
129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioComponent, decorators: [{
|
|
130
130
|
type: Component,
|
|
131
131
|
args: [{ selector: 'git-portfolio', template: "<div *ngIf=\"gitRepositories$ | async as gitRepositories\">\n <div *ngFor=\"let gitProvider of gitProviders | keyvalue\">\n <h1 [ngStyle]=\"textStyle\">{{ gitProvider.value }}</h1>\n <div *ngIf=\"showOwn\">\n <h2 [ngStyle]=\"textStyle\" class=\"mat-headline\">Own Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getOwnGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [buttonStyle]=\"buttonStyle\"\n [cardStyle]=\"cardStyle\"\n [textStyle]=\"textStyle\"\n [checkColor]=\"checkColor\"\n [forkColor]=\"forkColor\"\n [issueColor]=\"issueColor\"\n [pasteColor]=\"pasteColor\"\n [starColor]=\"starColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n >\n </repo-card>\n <div\n [ngStyle]=\"textStyle\"\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'own')\n \"\n >\n This user has not created any repositories yet\n </div>\n </div>\n </div>\n <div *ngIf=\"showForked\">\n <h2 [ngStyle]=\"textStyle\" class=\"mat-headline\">Forked Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getForkedGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [buttonStyle]=\"buttonStyle\"\n [cardStyle]=\"cardStyle\"\n [textStyle]=\"textStyle\"\n [checkColor]=\"checkColor\"\n [forkColor]=\"forkColor\"\n [issueColor]=\"issueColor\"\n [pasteColor]=\"pasteColor\"\n [starColor]=\"starColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n ></repo-card>\n <div\n [ngStyle]=\"textStyle\"\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'forked')\n \"\n >\n This user has not forked any repositories yet\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [".repository-card{max-width:450px;margin:0 32px 32px 0}\n"] }]
|
|
132
132
|
}], ctorParameters: function () { return [{ type: i1.GitProviderService }]; }, propDecorators: { buttonStyle: [{
|
|
@@ -15,8 +15,8 @@ import { RepoCardComponent } from './repo-card/repo-card.component';
|
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
16
16
|
export class GitPortfolioModule {
|
|
17
17
|
}
|
|
18
|
-
GitPortfolioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
GitPortfolioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
18
|
+
GitPortfolioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
19
|
+
GitPortfolioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioModule, declarations: [GitPortfolioComponent, RepoCardComponent, OcticonDirective], imports: [CommonModule,
|
|
20
20
|
BrowserModule,
|
|
21
21
|
BrowserAnimationsModule,
|
|
22
22
|
HttpClientModule,
|
|
@@ -25,18 +25,16 @@ GitPortfolioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
25
25
|
MatProgressSpinnerModule,
|
|
26
26
|
ClipboardModule,
|
|
27
27
|
FlexLayoutModule], exports: [GitPortfolioComponent, OcticonDirective] });
|
|
28
|
-
GitPortfolioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
]] });
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: GitPortfolioModule, decorators: [{
|
|
28
|
+
GitPortfolioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioModule, providers: [GitProviderService], imports: [CommonModule,
|
|
29
|
+
BrowserModule,
|
|
30
|
+
BrowserAnimationsModule,
|
|
31
|
+
HttpClientModule,
|
|
32
|
+
MatCardModule,
|
|
33
|
+
MatButtonModule,
|
|
34
|
+
MatProgressSpinnerModule,
|
|
35
|
+
ClipboardModule,
|
|
36
|
+
FlexLayoutModule] });
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioModule, decorators: [{
|
|
40
38
|
type: NgModule,
|
|
41
39
|
args: [{
|
|
42
40
|
declarations: [GitPortfolioComponent, RepoCardComponent, OcticonDirective],
|
|
@@ -55,4 +53,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
55
53
|
providers: [GitProviderService]
|
|
56
54
|
}]
|
|
57
55
|
}] });
|
|
58
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2l0LXBvcnRmb2xpby5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2dpdC1wb3J0Zm9saW8vc3JjL2xpYi9naXQtcG9ydGZvbGlvLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDekQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ3hELE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDeEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzNELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUN2RCxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxvQ0FBb0MsQ0FBQztBQUM5RSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDMUQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFFL0UsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDbEUsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDNUQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdkQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0saUNBQWlDLENBQUM7O0FBa0JwRSxNQUFNLE9BQU8sa0JBQWtCOzsrR0FBbEIsa0JBQWtCO2dIQUFsQixrQkFBa0IsaUJBZmQscUJBQXFCLEVBQUUsaUJBQWlCLEVBQUUsZ0JBQWdCLGFBRXZFLFlBQVk7UUFDWixhQUFhO1FBQ2IsdUJBQXVCO1FBQ3ZCLGdCQUFnQjtRQUNoQixhQUFhO1FBQ2IsZUFBZTtRQUNmLHdCQUF3QjtRQUN4QixlQUFlO1FBQ2YsZ0JBQWdCLGFBRVIscUJBQXFCLEVBQUUsZ0JBQWdCO2dIQUd0QyxrQkFBa0IsYUFGbEIsQ0FBQyxrQkFBa0IsQ0FBQyxZQVg3QixZQUFZO1FBQ1osYUFBYTtRQUNiLHVCQUF1QjtRQUN2QixnQkFBZ0I7UUFDaEIsYUFBYTtRQUNiLGVBQWU7UUFDZix3QkFBd0I7UUFDeEIsZUFBZTtRQUNmLGdCQUFnQjsyRkFLUCxrQkFBa0I7a0JBaEI5QixRQUFRO21CQUFDO29CQUNSLFlBQVksRUFBRSxDQUFDLHFCQUFxQixFQUFFLGlCQUFpQixFQUFFLGdCQUFnQixDQUFDO29CQUMxRSxPQUFPLEVBQUU7d0JBQ1AsWUFBWTt3QkFDWixhQUFhO3dCQUNiLHVCQUF1Qjt3QkFDdkIsZ0JBQWdCO3dCQUNoQixhQUFhO3dCQUNiLGVBQWU7d0JBQ2Ysd0JBQXdCO3dCQUN4QixlQUFlO3dCQUNmLGdCQUFnQjtxQkFDakI7b0JBQ0QsT0FBTyxFQUFFLENBQUMscUJBQXFCLEVBQUUsZ0JBQWdCLENBQUM7b0JBQ2xELFNBQVMsRUFBRSxDQUFDLGtCQUFrQixDQUFDO2lCQUNoQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENsaXBib2FyZE1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2Nkay9jbGlwYm9hcmQnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IEh0dHBDbGllbnRNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24vaHR0cCc7XG5pbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgRmxleExheW91dE1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2ZsZXgtbGF5b3V0JztcbmltcG9ydCB7IE1hdEJ1dHRvbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL21hdGVyaWFsL2J1dHRvbic7XG5pbXBvcnQgeyBNYXRDYXJkTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvbWF0ZXJpYWwvY2FyZCc7XG5pbXBvcnQgeyBNYXRQcm9ncmVzc1NwaW5uZXJNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9tYXRlcmlhbC9wcm9ncmVzcy1zcGlubmVyJztcbmltcG9ydCB7IEJyb3dzZXJNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9wbGF0Zm9ybS1icm93c2VyJztcbmltcG9ydCB7IEJyb3dzZXJBbmltYXRpb25zTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvcGxhdGZvcm0tYnJvd3Nlci9hbmltYXRpb25zJztcblxuaW1wb3J0IHsgR2l0UG9ydGZvbGlvQ29tcG9uZW50IH0gZnJvbSAnLi9naXQtcG9ydGZvbGlvLmNvbXBvbmVudCc7XG5pbXBvcnQgeyBHaXRQcm92aWRlclNlcnZpY2UgfSBmcm9tICcuL2dpdC1wcm92aWRlci5zZXJ2aWNlJztcbmltcG9ydCB7IE9jdGljb25EaXJlY3RpdmUgfSBmcm9tICcuL29jdGljb24uZGlyZWN0aXZlJztcbmltcG9ydCB7IFJlcG9DYXJkQ29tcG9uZW50IH0gZnJvbSAnLi9yZXBvLWNhcmQvcmVwby1jYXJkLmNvbXBvbmVudCc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW0dpdFBvcnRmb2xpb0NvbXBvbmVudCwgUmVwb0NhcmRDb21wb25lbnQsIE9jdGljb25EaXJlY3RpdmVdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIEJyb3dzZXJNb2R1bGUsXG4gICAgQnJvd3NlckFuaW1hdGlvbnNNb2R1bGUsXG4gICAgSHR0cENsaWVudE1vZHVsZSxcbiAgICBNYXRDYXJkTW9kdWxlLFxuICAgIE1hdEJ1dHRvbk1vZHVsZSxcbiAgICBNYXRQcm9ncmVzc1NwaW5uZXJNb2R1bGUsXG4gICAgQ2xpcGJvYXJkTW9kdWxlLFxuICAgIEZsZXhMYXlvdXRNb2R1bGVcbiAgXSxcbiAgZXhwb3J0czogW0dpdFBvcnRmb2xpb0NvbXBvbmVudCwgT2N0aWNvbkRpcmVjdGl2ZV0sXG4gIHByb3ZpZGVyczogW0dpdFByb3ZpZGVyU2VydmljZV1cbn0pXG5leHBvcnQgY2xhc3MgR2l0UG9ydGZvbGlvTW9kdWxlIHt9XG4iXX0=
|
|
@@ -58,9 +58,9 @@ export class GitProviderService {
|
|
|
58
58
|
return of([new GitRepository()]);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
GitProviderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
62
|
-
GitProviderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
61
|
+
GitProviderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitProviderService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
62
|
+
GitProviderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitProviderService, providedIn: 'root' });
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitProviderService, decorators: [{
|
|
64
64
|
type: Injectable,
|
|
65
65
|
args: [{
|
|
66
66
|
providedIn: 'root'
|
|
@@ -28,9 +28,9 @@ export class OcticonDirective {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
OcticonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
32
|
-
OcticonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
31
|
+
OcticonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: OcticonDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
32
|
+
OcticonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.3", type: OcticonDirective, selector: "[octicon]", inputs: { octicon: "octicon", color: "color", width: "width" }, ngImport: i0 });
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: OcticonDirective, decorators: [{
|
|
34
34
|
type: Directive,
|
|
35
35
|
args: [{
|
|
36
36
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
3
3
|
import { GitRepository } from '../types/git-repository-type';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/
|
|
6
|
-
import * as i2 from "@angular/material/
|
|
7
|
-
import * as i3 from "@angular/
|
|
8
|
-
import * as i4 from "@angular/
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "@angular/material/card";
|
|
7
|
+
import * as i3 from "@angular/material/button";
|
|
8
|
+
import * as i4 from "@angular/cdk/clipboard";
|
|
9
9
|
import * as i5 from "@angular/flex-layout/flex";
|
|
10
|
-
import * as i6 from "
|
|
11
|
-
import * as i7 from "
|
|
10
|
+
import * as i6 from "@angular/flex-layout/extended";
|
|
11
|
+
import * as i7 from "../octicon.directive";
|
|
12
12
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
13
13
|
const githubLanguageColors = require('github-language-colors/colors.json');
|
|
14
14
|
export class RepoCardComponent {
|
|
@@ -22,9 +22,9 @@ export class RepoCardComponent {
|
|
|
22
22
|
this.copiedToClipboardEvent.emit();
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
RepoCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
26
|
-
RepoCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
25
|
+
RepoCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RepoCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
RepoCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: RepoCardComponent, selector: "repo-card", inputs: { buttonStyle: "buttonStyle", cardStyle: "cardStyle", textStyle: "textStyle", checkColor: "checkColor", forkColor: "forkColor", issueColor: "issueColor", pasteColor: "pasteColor", starColor: "starColor", gitRepo: "gitRepo", isCopied: "isCopied" }, outputs: { copiedToClipboardEvent: "copiedToClipboardEvent" }, ngImport: i0, template: "<mat-card [ngStyle]=\"cardStyle\">\n <mat-card-header>\n <div\n mat-card-avatar\n [ngStyle]=\"{\n 'background-image':\n 'url(' +\n (gitRepo.owner?.avatar_url || gitRepo.namespace?.avatar_url) +\n ')',\n 'background-size': 'cover',\n 'border-radius': 0\n }\"\n ></div>\n <mat-card-title\n ><a\n mat-button\n [ngStyle]=\"buttonStyle\"\n target=\"_blank\"\n href=\"{{ gitRepo.html_url || gitRepo.web_url }}\"\n >\n {{ gitRepo.name }}\n </a>\n </mat-card-title>\n <mat-card-subtitle fxLayout=\"row\" fxLayoutGap=\"12px\">\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo.language !== undefined\n ? githubLanguageColors[gitRepo.language]\n : 'transparent'\n }\"\n class=\"language-icon\"\n ></div>\n <div [ngStyle]=\"textStyle\">{{ gitRepo.language }}</div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"star\" [color]=\"starColor\"></div>\n <div [ngStyle]=\"textStyle\">\n {{ gitRepo.stargazers_count || gitRepo.star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"repo-forked\" [color]=\"forkColor\"></div>\n <div [ngStyle]=\"textStyle\">{{ gitRepo.forks_count }}</div>\n </div>\n <div\n *ngIf=\"gitRepo.open_issues_count\"\n class=\"info-item\"\n fxLayout=\"row\"\n fxLayoutGap=\"5px\"\n >\n <div octicon=\"issue-opened\" [color]=\"issueColor\"></div>\n <div [ngStyle]=\"textStyle\">\n {{ gitRepo.open_issues_count }}\n </div>\n </div>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <p>{{ gitRepo.description }}</p>\n </mat-card-content>\n <mat-card-footer fxLayout=\"row\" fxLayoutGap=\"12px\">\n <span class=\"mat-footer-cell\" fxFlex>\n <span class=\"footer-span\" [ngStyle]=\"textStyle\"\n >Created: {{ gitRepo.created_at | date }}</span\n >\n <span class=\"footer-span\" [ngStyle]=\"textStyle\"\n >Updated:\n {{ gitRepo.pushed_at || gitRepo.last_activity_at | date }}</span\n >\n </span>\n <span class=\"mat-footer-cell\">\n <button\n [ngStyle]=\"buttonStyle\"\n mat-button\n [cdkCopyToClipboard]=\"\n gitRepo.clone_url || gitRepo.http_url_to_repo || ''\n \"\n (cdkCopyToClipboardCopied)=\"copiedToClipboard()\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n *ngIf=\"isCopied\"\n octicon=\"check\"\n [color]=\"checkColor\"\n width=\"24\"\n ></div>\n <div octicon=\"paste\" [color]=\"pasteColor\" width=\"24px\"></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n", styles: [".clipboard-button{line-height:24px!important;padding:0;margin-bottom:0}.clipboard-button span{font-size:20px}.mat-button{vertical-align:middle;line-height:36px;font-size:24px;margin:0 10px 0 0;text-align:center;text-decoration:none}.mat-card{display:flex;flex-direction:column;width:450px}.mat-card-avatar{height:53px;width:53px}.mat-card-subtitle{padding-left:16px}.mat-card-header{flex-shrink:0}.mat-card-content{flex-grow:1;overflow:auto}.mat-card-footer{padding:16px}.footer-span{display:block;font-size:12px}.language-icon{height:12px;width:12px;border-radius:50%;margin-top:2px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { kind: "component", type: i2.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i2.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { kind: "directive", type: i2.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: i2.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: i2.MatCardFooter, selector: "mat-card-footer" }, { kind: "directive", type: i2.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "component", type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i4.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i6.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "directive", type: i7.OcticonDirective, selector: "[octicon]", inputs: ["octicon", "color", "width"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }] });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RepoCardComponent, decorators: [{
|
|
28
28
|
type: Component,
|
|
29
29
|
args: [{ selector: 'repo-card', template: "<mat-card [ngStyle]=\"cardStyle\">\n <mat-card-header>\n <div\n mat-card-avatar\n [ngStyle]=\"{\n 'background-image':\n 'url(' +\n (gitRepo.owner?.avatar_url || gitRepo.namespace?.avatar_url) +\n ')',\n 'background-size': 'cover',\n 'border-radius': 0\n }\"\n ></div>\n <mat-card-title\n ><a\n mat-button\n [ngStyle]=\"buttonStyle\"\n target=\"_blank\"\n href=\"{{ gitRepo.html_url || gitRepo.web_url }}\"\n >\n {{ gitRepo.name }}\n </a>\n </mat-card-title>\n <mat-card-subtitle fxLayout=\"row\" fxLayoutGap=\"12px\">\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo.language !== undefined\n ? githubLanguageColors[gitRepo.language]\n : 'transparent'\n }\"\n class=\"language-icon\"\n ></div>\n <div [ngStyle]=\"textStyle\">{{ gitRepo.language }}</div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"star\" [color]=\"starColor\"></div>\n <div [ngStyle]=\"textStyle\">\n {{ gitRepo.stargazers_count || gitRepo.star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"repo-forked\" [color]=\"forkColor\"></div>\n <div [ngStyle]=\"textStyle\">{{ gitRepo.forks_count }}</div>\n </div>\n <div\n *ngIf=\"gitRepo.open_issues_count\"\n class=\"info-item\"\n fxLayout=\"row\"\n fxLayoutGap=\"5px\"\n >\n <div octicon=\"issue-opened\" [color]=\"issueColor\"></div>\n <div [ngStyle]=\"textStyle\">\n {{ gitRepo.open_issues_count }}\n </div>\n </div>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <p>{{ gitRepo.description }}</p>\n </mat-card-content>\n <mat-card-footer fxLayout=\"row\" fxLayoutGap=\"12px\">\n <span class=\"mat-footer-cell\" fxFlex>\n <span class=\"footer-span\" [ngStyle]=\"textStyle\"\n >Created: {{ gitRepo.created_at | date }}</span\n >\n <span class=\"footer-span\" [ngStyle]=\"textStyle\"\n >Updated:\n {{ gitRepo.pushed_at || gitRepo.last_activity_at | date }}</span\n >\n </span>\n <span class=\"mat-footer-cell\">\n <button\n [ngStyle]=\"buttonStyle\"\n mat-button\n [cdkCopyToClipboard]=\"\n gitRepo.clone_url || gitRepo.http_url_to_repo || ''\n \"\n (cdkCopyToClipboardCopied)=\"copiedToClipboard()\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n *ngIf=\"isCopied\"\n octicon=\"check\"\n [color]=\"checkColor\"\n width=\"24\"\n ></div>\n <div octicon=\"paste\" [color]=\"pasteColor\" width=\"24px\"></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n", styles: [".clipboard-button{line-height:24px!important;padding:0;margin-bottom:0}.clipboard-button span{font-size:20px}.mat-button{vertical-align:middle;line-height:36px;font-size:24px;margin:0 10px 0 0;text-align:center;text-decoration:none}.mat-card{display:flex;flex-direction:column;width:450px}.mat-card-avatar{height:53px;width:53px}.mat-card-subtitle{padding-left:16px}.mat-card-header{flex-shrink:0}.mat-card-content{flex-grow:1;overflow:auto}.mat-card-footer{padding:16px}.footer-span{display:block;font-size:12px}.language-icon{height:12px;width:12px;border-radius:50%;margin-top:2px}\n"] }]
|
|
30
30
|
}], ctorParameters: function () { return []; }, propDecorators: { buttonStyle: [{
|
|
@@ -4,17 +4,17 @@ import { BehaviorSubject, zip, of, Subject } from 'rxjs';
|
|
|
4
4
|
import { tap, map, takeUntil } from 'rxjs/operators';
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
6
6
|
import { HttpClientModule } from '@angular/common/http';
|
|
7
|
-
import * as i2
|
|
7
|
+
import * as i2 from '@angular/common';
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
9
|
+
import * as i3$1 from '@angular/material/progress-spinner';
|
|
8
10
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
9
|
-
import * as
|
|
11
|
+
import * as i5 from '@angular/flex-layout/flex';
|
|
12
|
+
import * as i6 from '@angular/flex-layout/extended';
|
|
13
|
+
import * as i2$1 from '@angular/material/card';
|
|
10
14
|
import { MatCardModule } from '@angular/material/card';
|
|
11
|
-
import * as
|
|
15
|
+
import * as i3 from '@angular/material/button';
|
|
12
16
|
import { MatButtonModule } from '@angular/material/button';
|
|
13
|
-
import * as i4 from '@angular/
|
|
14
|
-
import { CommonModule } from '@angular/common';
|
|
15
|
-
import * as i4$1 from '@angular/flex-layout/extended';
|
|
16
|
-
import * as i5 from '@angular/flex-layout/flex';
|
|
17
|
-
import * as i7 from '@angular/cdk/clipboard';
|
|
17
|
+
import * as i4 from '@angular/cdk/clipboard';
|
|
18
18
|
import { ClipboardModule } from '@angular/cdk/clipboard';
|
|
19
19
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
20
20
|
import { BrowserModule } from '@angular/platform-browser';
|
|
@@ -85,9 +85,9 @@ class GitProviderService {
|
|
|
85
85
|
return of([new GitRepository()]);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
GitProviderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
89
|
-
GitProviderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
88
|
+
GitProviderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitProviderService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
89
|
+
GitProviderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitProviderService, providedIn: 'root' });
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitProviderService, decorators: [{
|
|
91
91
|
type: Injectable,
|
|
92
92
|
args: [{
|
|
93
93
|
providedIn: 'root'
|
|
@@ -122,9 +122,9 @@ class OcticonDirective {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
OcticonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
126
|
-
OcticonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
125
|
+
OcticonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: OcticonDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
126
|
+
OcticonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.3", type: OcticonDirective, selector: "[octicon]", inputs: { octicon: "octicon", color: "color", width: "width" }, ngImport: i0 });
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: OcticonDirective, decorators: [{
|
|
128
128
|
type: Directive,
|
|
129
129
|
args: [{
|
|
130
130
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -152,9 +152,9 @@ class RepoCardComponent {
|
|
|
152
152
|
this.copiedToClipboardEvent.emit();
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
RepoCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
156
|
-
RepoCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
155
|
+
RepoCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RepoCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
156
|
+
RepoCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: RepoCardComponent, selector: "repo-card", inputs: { buttonStyle: "buttonStyle", cardStyle: "cardStyle", textStyle: "textStyle", checkColor: "checkColor", forkColor: "forkColor", issueColor: "issueColor", pasteColor: "pasteColor", starColor: "starColor", gitRepo: "gitRepo", isCopied: "isCopied" }, outputs: { copiedToClipboardEvent: "copiedToClipboardEvent" }, ngImport: i0, template: "<mat-card [ngStyle]=\"cardStyle\">\n <mat-card-header>\n <div\n mat-card-avatar\n [ngStyle]=\"{\n 'background-image':\n 'url(' +\n (gitRepo.owner?.avatar_url || gitRepo.namespace?.avatar_url) +\n ')',\n 'background-size': 'cover',\n 'border-radius': 0\n }\"\n ></div>\n <mat-card-title\n ><a\n mat-button\n [ngStyle]=\"buttonStyle\"\n target=\"_blank\"\n href=\"{{ gitRepo.html_url || gitRepo.web_url }}\"\n >\n {{ gitRepo.name }}\n </a>\n </mat-card-title>\n <mat-card-subtitle fxLayout=\"row\" fxLayoutGap=\"12px\">\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo.language !== undefined\n ? githubLanguageColors[gitRepo.language]\n : 'transparent'\n }\"\n class=\"language-icon\"\n ></div>\n <div [ngStyle]=\"textStyle\">{{ gitRepo.language }}</div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"star\" [color]=\"starColor\"></div>\n <div [ngStyle]=\"textStyle\">\n {{ gitRepo.stargazers_count || gitRepo.star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"repo-forked\" [color]=\"forkColor\"></div>\n <div [ngStyle]=\"textStyle\">{{ gitRepo.forks_count }}</div>\n </div>\n <div\n *ngIf=\"gitRepo.open_issues_count\"\n class=\"info-item\"\n fxLayout=\"row\"\n fxLayoutGap=\"5px\"\n >\n <div octicon=\"issue-opened\" [color]=\"issueColor\"></div>\n <div [ngStyle]=\"textStyle\">\n {{ gitRepo.open_issues_count }}\n </div>\n </div>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <p>{{ gitRepo.description }}</p>\n </mat-card-content>\n <mat-card-footer fxLayout=\"row\" fxLayoutGap=\"12px\">\n <span class=\"mat-footer-cell\" fxFlex>\n <span class=\"footer-span\" [ngStyle]=\"textStyle\"\n >Created: {{ gitRepo.created_at | date }}</span\n >\n <span class=\"footer-span\" [ngStyle]=\"textStyle\"\n >Updated:\n {{ gitRepo.pushed_at || gitRepo.last_activity_at | date }}</span\n >\n </span>\n <span class=\"mat-footer-cell\">\n <button\n [ngStyle]=\"buttonStyle\"\n mat-button\n [cdkCopyToClipboard]=\"\n gitRepo.clone_url || gitRepo.http_url_to_repo || ''\n \"\n (cdkCopyToClipboardCopied)=\"copiedToClipboard()\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n *ngIf=\"isCopied\"\n octicon=\"check\"\n [color]=\"checkColor\"\n width=\"24\"\n ></div>\n <div octicon=\"paste\" [color]=\"pasteColor\" width=\"24px\"></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n", styles: [".clipboard-button{line-height:24px!important;padding:0;margin-bottom:0}.clipboard-button span{font-size:20px}.mat-button{vertical-align:middle;line-height:36px;font-size:24px;margin:0 10px 0 0;text-align:center;text-decoration:none}.mat-card{display:flex;flex-direction:column;width:450px}.mat-card-avatar{height:53px;width:53px}.mat-card-subtitle{padding-left:16px}.mat-card-header{flex-shrink:0}.mat-card-content{flex-grow:1;overflow:auto}.mat-card-footer{padding:16px}.footer-span{display:block;font-size:12px}.language-icon{height:12px;width:12px;border-radius:50%;margin-top:2px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2$1.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { kind: "component", type: i2$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i2$1.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { kind: "directive", type: i2$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: i2$1.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: i2$1.MatCardFooter, selector: "mat-card-footer" }, { kind: "directive", type: i2$1.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "component", type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i4.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i6.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "directive", type: OcticonDirective, selector: "[octicon]", inputs: ["octicon", "color", "width"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }] });
|
|
157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RepoCardComponent, decorators: [{
|
|
158
158
|
type: Component,
|
|
159
159
|
args: [{ selector: 'repo-card', template: "<mat-card [ngStyle]=\"cardStyle\">\n <mat-card-header>\n <div\n mat-card-avatar\n [ngStyle]=\"{\n 'background-image':\n 'url(' +\n (gitRepo.owner?.avatar_url || gitRepo.namespace?.avatar_url) +\n ')',\n 'background-size': 'cover',\n 'border-radius': 0\n }\"\n ></div>\n <mat-card-title\n ><a\n mat-button\n [ngStyle]=\"buttonStyle\"\n target=\"_blank\"\n href=\"{{ gitRepo.html_url || gitRepo.web_url }}\"\n >\n {{ gitRepo.name }}\n </a>\n </mat-card-title>\n <mat-card-subtitle fxLayout=\"row\" fxLayoutGap=\"12px\">\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo.language !== undefined\n ? githubLanguageColors[gitRepo.language]\n : 'transparent'\n }\"\n class=\"language-icon\"\n ></div>\n <div [ngStyle]=\"textStyle\">{{ gitRepo.language }}</div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"star\" [color]=\"starColor\"></div>\n <div [ngStyle]=\"textStyle\">\n {{ gitRepo.stargazers_count || gitRepo.star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"repo-forked\" [color]=\"forkColor\"></div>\n <div [ngStyle]=\"textStyle\">{{ gitRepo.forks_count }}</div>\n </div>\n <div\n *ngIf=\"gitRepo.open_issues_count\"\n class=\"info-item\"\n fxLayout=\"row\"\n fxLayoutGap=\"5px\"\n >\n <div octicon=\"issue-opened\" [color]=\"issueColor\"></div>\n <div [ngStyle]=\"textStyle\">\n {{ gitRepo.open_issues_count }}\n </div>\n </div>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <p>{{ gitRepo.description }}</p>\n </mat-card-content>\n <mat-card-footer fxLayout=\"row\" fxLayoutGap=\"12px\">\n <span class=\"mat-footer-cell\" fxFlex>\n <span class=\"footer-span\" [ngStyle]=\"textStyle\"\n >Created: {{ gitRepo.created_at | date }}</span\n >\n <span class=\"footer-span\" [ngStyle]=\"textStyle\"\n >Updated:\n {{ gitRepo.pushed_at || gitRepo.last_activity_at | date }}</span\n >\n </span>\n <span class=\"mat-footer-cell\">\n <button\n [ngStyle]=\"buttonStyle\"\n mat-button\n [cdkCopyToClipboard]=\"\n gitRepo.clone_url || gitRepo.http_url_to_repo || ''\n \"\n (cdkCopyToClipboardCopied)=\"copiedToClipboard()\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n *ngIf=\"isCopied\"\n octicon=\"check\"\n [color]=\"checkColor\"\n width=\"24\"\n ></div>\n <div octicon=\"paste\" [color]=\"pasteColor\" width=\"24px\"></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n", styles: [".clipboard-button{line-height:24px!important;padding:0;margin-bottom:0}.clipboard-button span{font-size:20px}.mat-button{vertical-align:middle;line-height:36px;font-size:24px;margin:0 10px 0 0;text-align:center;text-decoration:none}.mat-card{display:flex;flex-direction:column;width:450px}.mat-card-avatar{height:53px;width:53px}.mat-card-subtitle{padding-left:16px}.mat-card-header{flex-shrink:0}.mat-card-content{flex-grow:1;overflow:auto}.mat-card-footer{padding:16px}.footer-span{display:block;font-size:12px}.language-icon{height:12px;width:12px;border-radius:50%;margin-top:2px}\n"] }]
|
|
160
160
|
}], ctorParameters: function () { return []; }, propDecorators: { buttonStyle: [{
|
|
@@ -295,9 +295,9 @@ class GitPortfolioComponent {
|
|
|
295
295
|
return false;
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
GitPortfolioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
299
|
-
GitPortfolioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
300
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
298
|
+
GitPortfolioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioComponent, deps: [{ token: GitProviderService }], target: i0.ɵɵFactoryTarget.Component });
|
|
299
|
+
GitPortfolioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: GitPortfolioComponent, selector: "git-portfolio", inputs: { buttonStyle: "buttonStyle", cardStyle: "cardStyle", textStyle: "textStyle", checkColor: "checkColor", forkColor: "forkColor", issueColor: "issueColor", pasteColor: "pasteColor", starColor: "starColor", gitProviderConfig: "gitProviderConfig", showForked: "showForked", showOwn: "showOwn" }, ngImport: i0, template: "<div *ngIf=\"gitRepositories$ | async as gitRepositories\">\n <div *ngFor=\"let gitProvider of gitProviders | keyvalue\">\n <h1 [ngStyle]=\"textStyle\">{{ gitProvider.value }}</h1>\n <div *ngIf=\"showOwn\">\n <h2 [ngStyle]=\"textStyle\" class=\"mat-headline\">Own Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getOwnGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [buttonStyle]=\"buttonStyle\"\n [cardStyle]=\"cardStyle\"\n [textStyle]=\"textStyle\"\n [checkColor]=\"checkColor\"\n [forkColor]=\"forkColor\"\n [issueColor]=\"issueColor\"\n [pasteColor]=\"pasteColor\"\n [starColor]=\"starColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n >\n </repo-card>\n <div\n [ngStyle]=\"textStyle\"\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'own')\n \"\n >\n This user has not created any repositories yet\n </div>\n </div>\n </div>\n <div *ngIf=\"showForked\">\n <h2 [ngStyle]=\"textStyle\" class=\"mat-headline\">Forked Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getForkedGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [buttonStyle]=\"buttonStyle\"\n [cardStyle]=\"cardStyle\"\n [textStyle]=\"textStyle\"\n [checkColor]=\"checkColor\"\n [forkColor]=\"forkColor\"\n [issueColor]=\"issueColor\"\n [pasteColor]=\"pasteColor\"\n [starColor]=\"starColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n ></repo-card>\n <div\n [ngStyle]=\"textStyle\"\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'forked')\n \"\n >\n This user has not forked any repositories yet\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [".repository-card{max-width:450px;margin:0 32px 32px 0}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i6.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "component", type: RepoCardComponent, selector: "repo-card", inputs: ["buttonStyle", "cardStyle", "textStyle", "checkColor", "forkColor", "issueColor", "pasteColor", "starColor", "gitRepo", "isCopied"], outputs: ["copiedToClipboardEvent"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.KeyValuePipe, name: "keyvalue" }] });
|
|
300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioComponent, decorators: [{
|
|
301
301
|
type: Component,
|
|
302
302
|
args: [{ selector: 'git-portfolio', template: "<div *ngIf=\"gitRepositories$ | async as gitRepositories\">\n <div *ngFor=\"let gitProvider of gitProviders | keyvalue\">\n <h1 [ngStyle]=\"textStyle\">{{ gitProvider.value }}</h1>\n <div *ngIf=\"showOwn\">\n <h2 [ngStyle]=\"textStyle\" class=\"mat-headline\">Own Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getOwnGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [buttonStyle]=\"buttonStyle\"\n [cardStyle]=\"cardStyle\"\n [textStyle]=\"textStyle\"\n [checkColor]=\"checkColor\"\n [forkColor]=\"forkColor\"\n [issueColor]=\"issueColor\"\n [pasteColor]=\"pasteColor\"\n [starColor]=\"starColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n >\n </repo-card>\n <div\n [ngStyle]=\"textStyle\"\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'own')\n \"\n >\n This user has not created any repositories yet\n </div>\n </div>\n </div>\n <div *ngIf=\"showForked\">\n <h2 [ngStyle]=\"textStyle\" class=\"mat-headline\">Forked Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getForkedGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [buttonStyle]=\"buttonStyle\"\n [cardStyle]=\"cardStyle\"\n [textStyle]=\"textStyle\"\n [checkColor]=\"checkColor\"\n [forkColor]=\"forkColor\"\n [issueColor]=\"issueColor\"\n [pasteColor]=\"pasteColor\"\n [starColor]=\"starColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n ></repo-card>\n <div\n [ngStyle]=\"textStyle\"\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'forked')\n \"\n >\n This user has not forked any repositories yet\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [".repository-card{max-width:450px;margin:0 32px 32px 0}\n"] }]
|
|
303
303
|
}], ctorParameters: function () { return [{ type: GitProviderService }]; }, propDecorators: { buttonStyle: [{
|
|
@@ -326,8 +326,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
326
326
|
|
|
327
327
|
class GitPortfolioModule {
|
|
328
328
|
}
|
|
329
|
-
GitPortfolioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
330
|
-
GitPortfolioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
329
|
+
GitPortfolioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
330
|
+
GitPortfolioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioModule, declarations: [GitPortfolioComponent, RepoCardComponent, OcticonDirective], imports: [CommonModule,
|
|
331
331
|
BrowserModule,
|
|
332
332
|
BrowserAnimationsModule,
|
|
333
333
|
HttpClientModule,
|
|
@@ -336,18 +336,16 @@ GitPortfolioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
336
336
|
MatProgressSpinnerModule,
|
|
337
337
|
ClipboardModule,
|
|
338
338
|
FlexLayoutModule], exports: [GitPortfolioComponent, OcticonDirective] });
|
|
339
|
-
GitPortfolioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
]] });
|
|
350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: GitPortfolioModule, decorators: [{
|
|
339
|
+
GitPortfolioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioModule, providers: [GitProviderService], imports: [CommonModule,
|
|
340
|
+
BrowserModule,
|
|
341
|
+
BrowserAnimationsModule,
|
|
342
|
+
HttpClientModule,
|
|
343
|
+
MatCardModule,
|
|
344
|
+
MatButtonModule,
|
|
345
|
+
MatProgressSpinnerModule,
|
|
346
|
+
ClipboardModule,
|
|
347
|
+
FlexLayoutModule] });
|
|
348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioModule, decorators: [{
|
|
351
349
|
type: NgModule,
|
|
352
350
|
args: [{
|
|
353
351
|
declarations: [GitPortfolioComponent, RepoCardComponent, OcticonDirective],
|