@tehw0lf/git-portfolio 0.18.1 → 0.18.3
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.
|
@@ -25,7 +25,7 @@ export class RepoCardComponent {
|
|
|
25
25
|
this.githubLanguageColors = githubLanguageColors;
|
|
26
26
|
}
|
|
27
27
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: RepoCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
28
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.3", type: RepoCardComponent, isStandalone: true, selector: "repo-card", inputs: { buttonStyle: { classPropertyName: "buttonStyle", publicName: "buttonStyle", isSignal: true, isRequired: true, transformFunction: null }, cardStyle: { classPropertyName: "cardStyle", publicName: "cardStyle", isSignal: true, isRequired: true, transformFunction: null }, textStyle: { classPropertyName: "textStyle", publicName: "textStyle", isSignal: true, isRequired: true, transformFunction: null }, checkColor: { classPropertyName: "checkColor", publicName: "checkColor", isSignal: true, isRequired: true, transformFunction: null }, forkColor: { classPropertyName: "forkColor", publicName: "forkColor", isSignal: true, isRequired: true, transformFunction: null }, issueColor: { classPropertyName: "issueColor", publicName: "issueColor", isSignal: true, isRequired: true, transformFunction: null }, pasteColor: { classPropertyName: "pasteColor", publicName: "pasteColor", isSignal: true, isRequired: true, transformFunction: null }, starColor: { classPropertyName: "starColor", publicName: "starColor", isSignal: true, isRequired: true, transformFunction: null }, gitRepo: { classPropertyName: "gitRepo", publicName: "gitRepo", isSignal: true, isRequired: true, transformFunction: null }, isCopied: { classPropertyName: "isCopied", publicName: "isCopied", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { copiedToClipboard: "copiedToClipboard" }, 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 class=\"flex-row\">\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo().language !== undefined\n ? githubLanguageColors[gitRepo().language!]\n : 'transparent'\n }\"\n class=\"language-icon flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().language }}</div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div octicon=\"star\" [color]=\"starColor()\" class=\"flex-gap-5\"></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().stargazers_count || gitRepo().star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"repo-forked\"\n [color]=\"forkColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().forks_count }}</div>\n </div>\n @if (gitRepo().open_issues_count) {\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"issue-opened\"\n [color]=\"issueColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().open_issues_count }}\n </div>\n </div>\n }\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 class=\"flex-row\">\n <span class=\"mat-footer-cell flex-fxflex flex-gap-12\">\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.emit(true)\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper flex-row\">\n @if (isCopied()) {\n <div\n octicon=\"check\"\n [color]=\"checkColor()\"\n width=\"24\"\n class=\"flex-gap-5\"\n ></div>\n }\n <div\n octicon=\"paste\"\n [color]=\"pasteColor()\"\n width=\"24px\"\n class=\"flex-gap-5\"\n ></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n", styles: [".clipboard-button{height:29px;line-height:24px!important;padding:0!important;margin-bottom:0}.clipboard-button span{font-size:20px}.mat-mdc-button{vertical-align:middle;line-height:36px;font-size:24px;margin:0 10px 0 0;padding:0 16px;text-align:center;text-decoration:none}.mat-mdc-card{display:flex;flex-direction:column;width:450px}@media screen and (max-width: 430px){.mat-mdc-card{width:380px}}.mat-mdc-card-avatar{height:53px;width:53px;margin:0}.mat-mdc-card-title{margin-bottom:12px}.mat-mdc-card-subtitle{margin-top:-8px;margin-left:16px}.mat-mdc-card-header{flex-shrink:0;padding:0 0 16px}.mat-mdc-card-content{font-size:14px;height:34px;margin-bottom:16px;padding:0}.mat-mdc-card-content p{font-size:14px}.mat-mdc-card{padding:16px}.mat-mdc-card-footer{margin:0 -16px -10px;padding:16px 16px 10px}.footer-span{display:block;font-size:12px}.language-icon{height:12px;width:12px;border-radius:50%;margin-top:2px}.info-item{font-weight:400;letter-spacing:normal}p{margin:0}.flex-align-start{justify-content:flex-start}.flex-align-stretch{align-content:stretch;align-items:stretch}.flex-column{display:flex;flex-direction:column;box-sizing:border-box}.flex-row{display:flex;flex-direction:row;box-sizing:border-box}.flex-row-wrap{display:flex;flex-direction:row;flex-wrap:wrap;box-sizing:border-box}.flex-fxflex{flex:1 1 0%}.flex-fxflex-responsive{flex:0 1 calc(33.3% - 32px)}.flex-fxflex-lt-md{flex:0 1 calc(50% - 32px)}.flex-fxflex-lt-sm{flex:100%}.flex-fxflex-fill{height:100%;min-height:100%;min-width:100%;width:100%}.flex-gap-5{margin-right:5px}.flex-gap-12{margin-right:12px}.flex-gap-20{margin-right:20px}\n"], dependencies: [{ kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i1.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "directive", type: i1.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i1.MatCardFooter, selector: "mat-card-footer" }, { kind: "component", type: i1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i1.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: i1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: OcticonDirective, selector: "[octicon]", inputs: ["octicon", "color", "width"] }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i3.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "pipe", type: DatePipe, name: "date" }] }); }
|
|
28
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.3", type: RepoCardComponent, isStandalone: true, selector: "repo-card", inputs: { buttonStyle: { classPropertyName: "buttonStyle", publicName: "buttonStyle", isSignal: true, isRequired: true, transformFunction: null }, cardStyle: { classPropertyName: "cardStyle", publicName: "cardStyle", isSignal: true, isRequired: true, transformFunction: null }, textStyle: { classPropertyName: "textStyle", publicName: "textStyle", isSignal: true, isRequired: true, transformFunction: null }, checkColor: { classPropertyName: "checkColor", publicName: "checkColor", isSignal: true, isRequired: true, transformFunction: null }, forkColor: { classPropertyName: "forkColor", publicName: "forkColor", isSignal: true, isRequired: true, transformFunction: null }, issueColor: { classPropertyName: "issueColor", publicName: "issueColor", isSignal: true, isRequired: true, transformFunction: null }, pasteColor: { classPropertyName: "pasteColor", publicName: "pasteColor", isSignal: true, isRequired: true, transformFunction: null }, starColor: { classPropertyName: "starColor", publicName: "starColor", isSignal: true, isRequired: true, transformFunction: null }, gitRepo: { classPropertyName: "gitRepo", publicName: "gitRepo", isSignal: true, isRequired: true, transformFunction: null }, isCopied: { classPropertyName: "isCopied", publicName: "isCopied", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { copiedToClipboard: "copiedToClipboard" }, 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 class=\"flex-row\">\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo().language !== undefined\n ? githubLanguageColors[gitRepo().language!]\n : 'transparent'\n }\"\n class=\"language-icon flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().language }}</div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div octicon=\"star\" [color]=\"starColor()\" class=\"flex-gap-5\"></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().stargazers_count || gitRepo().star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"repo-forked\"\n [color]=\"forkColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().forks_count }}</div>\n </div>\n @if (gitRepo().open_issues_count) {\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"issue-opened\"\n [color]=\"issueColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().open_issues_count }}\n </div>\n </div>\n }\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 class=\"flex-row\">\n <span class=\"mat-footer-cell flex-fxflex flex-gap-12\">\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.emit(true)\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper flex-row\">\n @if (isCopied()) {\n <div\n octicon=\"check\"\n [color]=\"checkColor()\"\n width=\"24\"\n class=\"flex-gap-5\"\n ></div>\n }\n <div\n octicon=\"paste\"\n [color]=\"pasteColor()\"\n width=\"24px\"\n class=\"flex-gap-5\"\n ></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n", styles: [".clipboard-button{height:29px;line-height:24px!important;padding:0!important;margin-bottom:0}.clipboard-button span{font-size:20px}.mat-mdc-button{vertical-align:middle;line-height:36px;font-size:24px;margin:0 10px 0 0;padding:0 16px;text-align:center;text-decoration:none}@media screen and (max-width: 400px){.mat-mdc-button{font-size:20px}}.mat-mdc-card{display:flex;flex-direction:column;width:450px}@media screen and (max-width: 519px){.mat-mdc-card{width:415px}}@media screen and (max-width: 430px){.mat-mdc-card{width:380px}}@media screen and (max-width: 400px){.mat-mdc-card{width:350px}}@media screen and (max-width: 390px){.mat-mdc-card{width:310px}}.mat-mdc-card-avatar{height:53px;width:53px;margin:0}.mat-mdc-card-title{margin-bottom:12px}.mat-mdc-card-subtitle{margin-top:-8px;margin-left:16px}.mat-mdc-card-header{flex-shrink:0;padding:0 0 16px}.mat-mdc-card-content{font-size:14px;height:34px;margin-bottom:16px;padding:0}.mat-mdc-card-content p{font-size:14px}.mat-mdc-card{padding:16px}.mat-mdc-card-footer{margin:0 -16px -10px;padding:16px 16px 10px}.footer-span{display:block;font-size:12px}.language-icon{height:12px;width:12px;border-radius:50%;margin-top:2px}.info-item{font-weight:400;letter-spacing:normal}p{margin:0}.flex-align-start{justify-content:flex-start}.flex-align-stretch{align-content:stretch;align-items:stretch}.flex-column{display:flex;flex-direction:column;box-sizing:border-box}.flex-row{display:flex;flex-direction:row;box-sizing:border-box}.flex-row-wrap{display:flex;flex-direction:row;flex-wrap:wrap;box-sizing:border-box}.flex-fxflex{flex:1 1 0%}.flex-fxflex-responsive{flex:0 1 calc(33.3% - 32px)}.flex-fxflex-lt-md{flex:0 1 calc(50% - 32px)}.flex-fxflex-lt-sm{flex:100%}.flex-fxflex-fill{height:100%;min-height:100%;min-width:100%;width:100%}.flex-gap-5{margin-right:5px}.flex-gap-12{margin-right:12px}.flex-gap-20{margin-right:20px}\n"], dependencies: [{ kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i1.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "directive", type: i1.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i1.MatCardFooter, selector: "mat-card-footer" }, { kind: "component", type: i1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i1.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: i1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: OcticonDirective, selector: "[octicon]", inputs: ["octicon", "color", "width"] }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i3.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "pipe", type: DatePipe, name: "date" }] }); }
|
|
29
29
|
}
|
|
30
30
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: RepoCardComponent, decorators: [{
|
|
31
31
|
type: Component,
|
|
@@ -36,6 +36,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImpor
|
|
|
36
36
|
OcticonDirective,
|
|
37
37
|
ClipboardModule,
|
|
38
38
|
DatePipe
|
|
39
|
-
], 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 class=\"flex-row\">\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo().language !== undefined\n ? githubLanguageColors[gitRepo().language!]\n : 'transparent'\n }\"\n class=\"language-icon flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().language }}</div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div octicon=\"star\" [color]=\"starColor()\" class=\"flex-gap-5\"></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().stargazers_count || gitRepo().star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"repo-forked\"\n [color]=\"forkColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().forks_count }}</div>\n </div>\n @if (gitRepo().open_issues_count) {\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"issue-opened\"\n [color]=\"issueColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().open_issues_count }}\n </div>\n </div>\n }\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 class=\"flex-row\">\n <span class=\"mat-footer-cell flex-fxflex flex-gap-12\">\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.emit(true)\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper flex-row\">\n @if (isCopied()) {\n <div\n octicon=\"check\"\n [color]=\"checkColor()\"\n width=\"24\"\n class=\"flex-gap-5\"\n ></div>\n }\n <div\n octicon=\"paste\"\n [color]=\"pasteColor()\"\n width=\"24px\"\n class=\"flex-gap-5\"\n ></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n", styles: [".clipboard-button{height:29px;line-height:24px!important;padding:0!important;margin-bottom:0}.clipboard-button span{font-size:20px}.mat-mdc-button{vertical-align:middle;line-height:36px;font-size:24px;margin:0 10px 0 0;padding:0 16px;text-align:center;text-decoration:none}.mat-mdc-card{display:flex;flex-direction:column;width:450px}@media screen and (max-width: 430px){.mat-mdc-card{width:380px}}.mat-mdc-card-avatar{height:53px;width:53px;margin:0}.mat-mdc-card-title{margin-bottom:12px}.mat-mdc-card-subtitle{margin-top:-8px;margin-left:16px}.mat-mdc-card-header{flex-shrink:0;padding:0 0 16px}.mat-mdc-card-content{font-size:14px;height:34px;margin-bottom:16px;padding:0}.mat-mdc-card-content p{font-size:14px}.mat-mdc-card{padding:16px}.mat-mdc-card-footer{margin:0 -16px -10px;padding:16px 16px 10px}.footer-span{display:block;font-size:12px}.language-icon{height:12px;width:12px;border-radius:50%;margin-top:2px}.info-item{font-weight:400;letter-spacing:normal}p{margin:0}.flex-align-start{justify-content:flex-start}.flex-align-stretch{align-content:stretch;align-items:stretch}.flex-column{display:flex;flex-direction:column;box-sizing:border-box}.flex-row{display:flex;flex-direction:row;box-sizing:border-box}.flex-row-wrap{display:flex;flex-direction:row;flex-wrap:wrap;box-sizing:border-box}.flex-fxflex{flex:1 1 0%}.flex-fxflex-responsive{flex:0 1 calc(33.3% - 32px)}.flex-fxflex-lt-md{flex:0 1 calc(50% - 32px)}.flex-fxflex-lt-sm{flex:100%}.flex-fxflex-fill{height:100%;min-height:100%;min-width:100%;width:100%}.flex-gap-5{margin-right:5px}.flex-gap-12{margin-right:12px}.flex-gap-20{margin-right:20px}\n"] }]
|
|
39
|
+
], 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 class=\"flex-row\">\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo().language !== undefined\n ? githubLanguageColors[gitRepo().language!]\n : 'transparent'\n }\"\n class=\"language-icon flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().language }}</div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div octicon=\"star\" [color]=\"starColor()\" class=\"flex-gap-5\"></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().stargazers_count || gitRepo().star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"repo-forked\"\n [color]=\"forkColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().forks_count }}</div>\n </div>\n @if (gitRepo().open_issues_count) {\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"issue-opened\"\n [color]=\"issueColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().open_issues_count }}\n </div>\n </div>\n }\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 class=\"flex-row\">\n <span class=\"mat-footer-cell flex-fxflex flex-gap-12\">\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.emit(true)\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper flex-row\">\n @if (isCopied()) {\n <div\n octicon=\"check\"\n [color]=\"checkColor()\"\n width=\"24\"\n class=\"flex-gap-5\"\n ></div>\n }\n <div\n octicon=\"paste\"\n [color]=\"pasteColor()\"\n width=\"24px\"\n class=\"flex-gap-5\"\n ></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n", styles: [".clipboard-button{height:29px;line-height:24px!important;padding:0!important;margin-bottom:0}.clipboard-button span{font-size:20px}.mat-mdc-button{vertical-align:middle;line-height:36px;font-size:24px;margin:0 10px 0 0;padding:0 16px;text-align:center;text-decoration:none}@media screen and (max-width: 400px){.mat-mdc-button{font-size:20px}}.mat-mdc-card{display:flex;flex-direction:column;width:450px}@media screen and (max-width: 519px){.mat-mdc-card{width:415px}}@media screen and (max-width: 430px){.mat-mdc-card{width:380px}}@media screen and (max-width: 400px){.mat-mdc-card{width:350px}}@media screen and (max-width: 390px){.mat-mdc-card{width:310px}}.mat-mdc-card-avatar{height:53px;width:53px;margin:0}.mat-mdc-card-title{margin-bottom:12px}.mat-mdc-card-subtitle{margin-top:-8px;margin-left:16px}.mat-mdc-card-header{flex-shrink:0;padding:0 0 16px}.mat-mdc-card-content{font-size:14px;height:34px;margin-bottom:16px;padding:0}.mat-mdc-card-content p{font-size:14px}.mat-mdc-card{padding:16px}.mat-mdc-card-footer{margin:0 -16px -10px;padding:16px 16px 10px}.footer-span{display:block;font-size:12px}.language-icon{height:12px;width:12px;border-radius:50%;margin-top:2px}.info-item{font-weight:400;letter-spacing:normal}p{margin:0}.flex-align-start{justify-content:flex-start}.flex-align-stretch{align-content:stretch;align-items:stretch}.flex-column{display:flex;flex-direction:column;box-sizing:border-box}.flex-row{display:flex;flex-direction:row;box-sizing:border-box}.flex-row-wrap{display:flex;flex-direction:row;flex-wrap:wrap;box-sizing:border-box}.flex-fxflex{flex:1 1 0%}.flex-fxflex-responsive{flex:0 1 calc(33.3% - 32px)}.flex-fxflex-lt-md{flex:0 1 calc(50% - 32px)}.flex-fxflex-lt-sm{flex:100%}.flex-fxflex-fill{height:100%;min-height:100%;min-width:100%;width:100%}.flex-gap-5{margin-right:5px}.flex-gap-12{margin-right:12px}.flex-gap-20{margin-right:20px}\n"] }]
|
|
40
40
|
}] });
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwby1jYXJkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZ2l0LXBvcnRmb2xpby9zcmMvbGliL3JlcG8tY2FyZC9yZXBvLWNhcmQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9naXQtcG9ydGZvbGlvL3NyYy9saWIvcmVwby1jYXJkL3JlcG8tY2FyZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZUFBZSxFQUFFLE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pZHRoPVwiMjRcIlxuICAgICAgICAgICAgICBjbGFzcz1cImZsZXgtZ2FwLTVcIlxuICAgICAgICAgICAgPjwvZGl2PlxuICAgICAgICAgIH1cbiAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICBvY3RpY29uPVwicGFzdGVcIlxuICAgICAgICAgICAgW2NvbG9yXT1cInBhc3RlQ29sb3IoKVwiXG4gICAgICAgICAgICB3aWR0aD1cIjI0cHhcIlxuICAgICAgICAgICAgY2xhc3M9XCJmbGV4LWdhcC01XCJcbiAgICAgICAgICA+PC9kaXY+XG4gICAgICAgICAgPHNwYW4+Q29weSBVUkw8L3NwYW4+XG4gICAgICAgIDwvc3Bhbj5cbiAgICAgIDwvYnV0dG9uPlxuICAgIDwvc3Bhbj5cbiAgPC9tYXQtY2FyZC1mb290ZXI+XG48L21hdC1jYXJkPlxuIl19
|
|
@@ -140,7 +140,7 @@ class RepoCardComponent {
|
|
|
140
140
|
this.githubLanguageColors = githubLanguageColors;
|
|
141
141
|
}
|
|
142
142
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: RepoCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
143
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.3", type: RepoCardComponent, isStandalone: true, selector: "repo-card", inputs: { buttonStyle: { classPropertyName: "buttonStyle", publicName: "buttonStyle", isSignal: true, isRequired: true, transformFunction: null }, cardStyle: { classPropertyName: "cardStyle", publicName: "cardStyle", isSignal: true, isRequired: true, transformFunction: null }, textStyle: { classPropertyName: "textStyle", publicName: "textStyle", isSignal: true, isRequired: true, transformFunction: null }, checkColor: { classPropertyName: "checkColor", publicName: "checkColor", isSignal: true, isRequired: true, transformFunction: null }, forkColor: { classPropertyName: "forkColor", publicName: "forkColor", isSignal: true, isRequired: true, transformFunction: null }, issueColor: { classPropertyName: "issueColor", publicName: "issueColor", isSignal: true, isRequired: true, transformFunction: null }, pasteColor: { classPropertyName: "pasteColor", publicName: "pasteColor", isSignal: true, isRequired: true, transformFunction: null }, starColor: { classPropertyName: "starColor", publicName: "starColor", isSignal: true, isRequired: true, transformFunction: null }, gitRepo: { classPropertyName: "gitRepo", publicName: "gitRepo", isSignal: true, isRequired: true, transformFunction: null }, isCopied: { classPropertyName: "isCopied", publicName: "isCopied", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { copiedToClipboard: "copiedToClipboard" }, 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 class=\"flex-row\">\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo().language !== undefined\n ? githubLanguageColors[gitRepo().language!]\n : 'transparent'\n }\"\n class=\"language-icon flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().language }}</div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div octicon=\"star\" [color]=\"starColor()\" class=\"flex-gap-5\"></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().stargazers_count || gitRepo().star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"repo-forked\"\n [color]=\"forkColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().forks_count }}</div>\n </div>\n @if (gitRepo().open_issues_count) {\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"issue-opened\"\n [color]=\"issueColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().open_issues_count }}\n </div>\n </div>\n }\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 class=\"flex-row\">\n <span class=\"mat-footer-cell flex-fxflex flex-gap-12\">\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.emit(true)\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper flex-row\">\n @if (isCopied()) {\n <div\n octicon=\"check\"\n [color]=\"checkColor()\"\n width=\"24\"\n class=\"flex-gap-5\"\n ></div>\n }\n <div\n octicon=\"paste\"\n [color]=\"pasteColor()\"\n width=\"24px\"\n class=\"flex-gap-5\"\n ></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n", styles: [".clipboard-button{height:29px;line-height:24px!important;padding:0!important;margin-bottom:0}.clipboard-button span{font-size:20px}.mat-mdc-button{vertical-align:middle;line-height:36px;font-size:24px;margin:0 10px 0 0;padding:0 16px;text-align:center;text-decoration:none}.mat-mdc-card{display:flex;flex-direction:column;width:450px}@media screen and (max-width: 430px){.mat-mdc-card{width:380px}}.mat-mdc-card-avatar{height:53px;width:53px;margin:0}.mat-mdc-card-title{margin-bottom:12px}.mat-mdc-card-subtitle{margin-top:-8px;margin-left:16px}.mat-mdc-card-header{flex-shrink:0;padding:0 0 16px}.mat-mdc-card-content{font-size:14px;height:34px;margin-bottom:16px;padding:0}.mat-mdc-card-content p{font-size:14px}.mat-mdc-card{padding:16px}.mat-mdc-card-footer{margin:0 -16px -10px;padding:16px 16px 10px}.footer-span{display:block;font-size:12px}.language-icon{height:12px;width:12px;border-radius:50%;margin-top:2px}.info-item{font-weight:400;letter-spacing:normal}p{margin:0}.flex-align-start{justify-content:flex-start}.flex-align-stretch{align-content:stretch;align-items:stretch}.flex-column{display:flex;flex-direction:column;box-sizing:border-box}.flex-row{display:flex;flex-direction:row;box-sizing:border-box}.flex-row-wrap{display:flex;flex-direction:row;flex-wrap:wrap;box-sizing:border-box}.flex-fxflex{flex:1 1 0%}.flex-fxflex-responsive{flex:0 1 calc(33.3% - 32px)}.flex-fxflex-lt-md{flex:0 1 calc(50% - 32px)}.flex-fxflex-lt-sm{flex:100%}.flex-fxflex-fill{height:100%;min-height:100%;min-width:100%;width:100%}.flex-gap-5{margin-right:5px}.flex-gap-12{margin-right:12px}.flex-gap-20{margin-right:20px}\n"], dependencies: [{ kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i1$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i1$1.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "directive", type: i1$1.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i1$1.MatCardFooter, selector: "mat-card-footer" }, { kind: "component", type: i1$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i1$1.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: i1$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: OcticonDirective, selector: "[octicon]", inputs: ["octicon", "color", "width"] }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i3.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "pipe", type: DatePipe, name: "date" }] }); }
|
|
143
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.3", type: RepoCardComponent, isStandalone: true, selector: "repo-card", inputs: { buttonStyle: { classPropertyName: "buttonStyle", publicName: "buttonStyle", isSignal: true, isRequired: true, transformFunction: null }, cardStyle: { classPropertyName: "cardStyle", publicName: "cardStyle", isSignal: true, isRequired: true, transformFunction: null }, textStyle: { classPropertyName: "textStyle", publicName: "textStyle", isSignal: true, isRequired: true, transformFunction: null }, checkColor: { classPropertyName: "checkColor", publicName: "checkColor", isSignal: true, isRequired: true, transformFunction: null }, forkColor: { classPropertyName: "forkColor", publicName: "forkColor", isSignal: true, isRequired: true, transformFunction: null }, issueColor: { classPropertyName: "issueColor", publicName: "issueColor", isSignal: true, isRequired: true, transformFunction: null }, pasteColor: { classPropertyName: "pasteColor", publicName: "pasteColor", isSignal: true, isRequired: true, transformFunction: null }, starColor: { classPropertyName: "starColor", publicName: "starColor", isSignal: true, isRequired: true, transformFunction: null }, gitRepo: { classPropertyName: "gitRepo", publicName: "gitRepo", isSignal: true, isRequired: true, transformFunction: null }, isCopied: { classPropertyName: "isCopied", publicName: "isCopied", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { copiedToClipboard: "copiedToClipboard" }, 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 class=\"flex-row\">\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo().language !== undefined\n ? githubLanguageColors[gitRepo().language!]\n : 'transparent'\n }\"\n class=\"language-icon flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().language }}</div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div octicon=\"star\" [color]=\"starColor()\" class=\"flex-gap-5\"></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().stargazers_count || gitRepo().star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"repo-forked\"\n [color]=\"forkColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().forks_count }}</div>\n </div>\n @if (gitRepo().open_issues_count) {\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"issue-opened\"\n [color]=\"issueColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().open_issues_count }}\n </div>\n </div>\n }\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 class=\"flex-row\">\n <span class=\"mat-footer-cell flex-fxflex flex-gap-12\">\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.emit(true)\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper flex-row\">\n @if (isCopied()) {\n <div\n octicon=\"check\"\n [color]=\"checkColor()\"\n width=\"24\"\n class=\"flex-gap-5\"\n ></div>\n }\n <div\n octicon=\"paste\"\n [color]=\"pasteColor()\"\n width=\"24px\"\n class=\"flex-gap-5\"\n ></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n", styles: [".clipboard-button{height:29px;line-height:24px!important;padding:0!important;margin-bottom:0}.clipboard-button span{font-size:20px}.mat-mdc-button{vertical-align:middle;line-height:36px;font-size:24px;margin:0 10px 0 0;padding:0 16px;text-align:center;text-decoration:none}@media screen and (max-width: 400px){.mat-mdc-button{font-size:20px}}.mat-mdc-card{display:flex;flex-direction:column;width:450px}@media screen and (max-width: 519px){.mat-mdc-card{width:415px}}@media screen and (max-width: 430px){.mat-mdc-card{width:380px}}@media screen and (max-width: 400px){.mat-mdc-card{width:350px}}@media screen and (max-width: 390px){.mat-mdc-card{width:310px}}.mat-mdc-card-avatar{height:53px;width:53px;margin:0}.mat-mdc-card-title{margin-bottom:12px}.mat-mdc-card-subtitle{margin-top:-8px;margin-left:16px}.mat-mdc-card-header{flex-shrink:0;padding:0 0 16px}.mat-mdc-card-content{font-size:14px;height:34px;margin-bottom:16px;padding:0}.mat-mdc-card-content p{font-size:14px}.mat-mdc-card{padding:16px}.mat-mdc-card-footer{margin:0 -16px -10px;padding:16px 16px 10px}.footer-span{display:block;font-size:12px}.language-icon{height:12px;width:12px;border-radius:50%;margin-top:2px}.info-item{font-weight:400;letter-spacing:normal}p{margin:0}.flex-align-start{justify-content:flex-start}.flex-align-stretch{align-content:stretch;align-items:stretch}.flex-column{display:flex;flex-direction:column;box-sizing:border-box}.flex-row{display:flex;flex-direction:row;box-sizing:border-box}.flex-row-wrap{display:flex;flex-direction:row;flex-wrap:wrap;box-sizing:border-box}.flex-fxflex{flex:1 1 0%}.flex-fxflex-responsive{flex:0 1 calc(33.3% - 32px)}.flex-fxflex-lt-md{flex:0 1 calc(50% - 32px)}.flex-fxflex-lt-sm{flex:100%}.flex-fxflex-fill{height:100%;min-height:100%;min-width:100%;width:100%}.flex-gap-5{margin-right:5px}.flex-gap-12{margin-right:12px}.flex-gap-20{margin-right:20px}\n"], dependencies: [{ kind: "ngmodule", type: MatCardModule }, { kind: "component", type: i1$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i1$1.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "directive", type: i1$1.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i1$1.MatCardFooter, selector: "mat-card-footer" }, { kind: "component", type: i1$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i1$1.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: i1$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: OcticonDirective, selector: "[octicon]", inputs: ["octicon", "color", "width"] }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i3.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "pipe", type: DatePipe, name: "date" }] }); }
|
|
144
144
|
}
|
|
145
145
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: RepoCardComponent, decorators: [{
|
|
146
146
|
type: Component,
|
|
@@ -151,7 +151,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImpor
|
|
|
151
151
|
OcticonDirective,
|
|
152
152
|
ClipboardModule,
|
|
153
153
|
DatePipe
|
|
154
|
-
], 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 class=\"flex-row\">\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo().language !== undefined\n ? githubLanguageColors[gitRepo().language!]\n : 'transparent'\n }\"\n class=\"language-icon flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().language }}</div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div octicon=\"star\" [color]=\"starColor()\" class=\"flex-gap-5\"></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().stargazers_count || gitRepo().star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"repo-forked\"\n [color]=\"forkColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().forks_count }}</div>\n </div>\n @if (gitRepo().open_issues_count) {\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"issue-opened\"\n [color]=\"issueColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().open_issues_count }}\n </div>\n </div>\n }\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 class=\"flex-row\">\n <span class=\"mat-footer-cell flex-fxflex flex-gap-12\">\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.emit(true)\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper flex-row\">\n @if (isCopied()) {\n <div\n octicon=\"check\"\n [color]=\"checkColor()\"\n width=\"24\"\n class=\"flex-gap-5\"\n ></div>\n }\n <div\n octicon=\"paste\"\n [color]=\"pasteColor()\"\n width=\"24px\"\n class=\"flex-gap-5\"\n ></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n", styles: [".clipboard-button{height:29px;line-height:24px!important;padding:0!important;margin-bottom:0}.clipboard-button span{font-size:20px}.mat-mdc-button{vertical-align:middle;line-height:36px;font-size:24px;margin:0 10px 0 0;padding:0 16px;text-align:center;text-decoration:none}.mat-mdc-card{display:flex;flex-direction:column;width:450px}@media screen and (max-width: 430px){.mat-mdc-card{width:380px}}.mat-mdc-card-avatar{height:53px;width:53px;margin:0}.mat-mdc-card-title{margin-bottom:12px}.mat-mdc-card-subtitle{margin-top:-8px;margin-left:16px}.mat-mdc-card-header{flex-shrink:0;padding:0 0 16px}.mat-mdc-card-content{font-size:14px;height:34px;margin-bottom:16px;padding:0}.mat-mdc-card-content p{font-size:14px}.mat-mdc-card{padding:16px}.mat-mdc-card-footer{margin:0 -16px -10px;padding:16px 16px 10px}.footer-span{display:block;font-size:12px}.language-icon{height:12px;width:12px;border-radius:50%;margin-top:2px}.info-item{font-weight:400;letter-spacing:normal}p{margin:0}.flex-align-start{justify-content:flex-start}.flex-align-stretch{align-content:stretch;align-items:stretch}.flex-column{display:flex;flex-direction:column;box-sizing:border-box}.flex-row{display:flex;flex-direction:row;box-sizing:border-box}.flex-row-wrap{display:flex;flex-direction:row;flex-wrap:wrap;box-sizing:border-box}.flex-fxflex{flex:1 1 0%}.flex-fxflex-responsive{flex:0 1 calc(33.3% - 32px)}.flex-fxflex-lt-md{flex:0 1 calc(50% - 32px)}.flex-fxflex-lt-sm{flex:100%}.flex-fxflex-fill{height:100%;min-height:100%;min-width:100%;width:100%}.flex-gap-5{margin-right:5px}.flex-gap-12{margin-right:12px}.flex-gap-20{margin-right:20px}\n"] }]
|
|
154
|
+
], 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 class=\"flex-row\">\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo().language !== undefined\n ? githubLanguageColors[gitRepo().language!]\n : 'transparent'\n }\"\n class=\"language-icon flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().language }}</div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div octicon=\"star\" [color]=\"starColor()\" class=\"flex-gap-5\"></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().stargazers_count || gitRepo().star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"repo-forked\"\n [color]=\"forkColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().forks_count }}</div>\n </div>\n @if (gitRepo().open_issues_count) {\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"issue-opened\"\n [color]=\"issueColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().open_issues_count }}\n </div>\n </div>\n }\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 class=\"flex-row\">\n <span class=\"mat-footer-cell flex-fxflex flex-gap-12\">\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.emit(true)\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper flex-row\">\n @if (isCopied()) {\n <div\n octicon=\"check\"\n [color]=\"checkColor()\"\n width=\"24\"\n class=\"flex-gap-5\"\n ></div>\n }\n <div\n octicon=\"paste\"\n [color]=\"pasteColor()\"\n width=\"24px\"\n class=\"flex-gap-5\"\n ></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n", styles: [".clipboard-button{height:29px;line-height:24px!important;padding:0!important;margin-bottom:0}.clipboard-button span{font-size:20px}.mat-mdc-button{vertical-align:middle;line-height:36px;font-size:24px;margin:0 10px 0 0;padding:0 16px;text-align:center;text-decoration:none}@media screen and (max-width: 400px){.mat-mdc-button{font-size:20px}}.mat-mdc-card{display:flex;flex-direction:column;width:450px}@media screen and (max-width: 519px){.mat-mdc-card{width:415px}}@media screen and (max-width: 430px){.mat-mdc-card{width:380px}}@media screen and (max-width: 400px){.mat-mdc-card{width:350px}}@media screen and (max-width: 390px){.mat-mdc-card{width:310px}}.mat-mdc-card-avatar{height:53px;width:53px;margin:0}.mat-mdc-card-title{margin-bottom:12px}.mat-mdc-card-subtitle{margin-top:-8px;margin-left:16px}.mat-mdc-card-header{flex-shrink:0;padding:0 0 16px}.mat-mdc-card-content{font-size:14px;height:34px;margin-bottom:16px;padding:0}.mat-mdc-card-content p{font-size:14px}.mat-mdc-card{padding:16px}.mat-mdc-card-footer{margin:0 -16px -10px;padding:16px 16px 10px}.footer-span{display:block;font-size:12px}.language-icon{height:12px;width:12px;border-radius:50%;margin-top:2px}.info-item{font-weight:400;letter-spacing:normal}p{margin:0}.flex-align-start{justify-content:flex-start}.flex-align-stretch{align-content:stretch;align-items:stretch}.flex-column{display:flex;flex-direction:column;box-sizing:border-box}.flex-row{display:flex;flex-direction:row;box-sizing:border-box}.flex-row-wrap{display:flex;flex-direction:row;flex-wrap:wrap;box-sizing:border-box}.flex-fxflex{flex:1 1 0%}.flex-fxflex-responsive{flex:0 1 calc(33.3% - 32px)}.flex-fxflex-lt-md{flex:0 1 calc(50% - 32px)}.flex-fxflex-lt-sm{flex:100%}.flex-fxflex-fill{height:100%;min-height:100%;min-width:100%;width:100%}.flex-gap-5{margin-right:5px}.flex-gap-12{margin-right:12px}.flex-gap-20{margin-right:20px}\n"] }]
|
|
155
155
|
}] });
|
|
156
156
|
|
|
157
157
|
/* eslint-disable no-shadow */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tehw0lf-git-portfolio.mjs","sources":["../../../../libs/git-portfolio/src/lib/types/git-repository-type.ts","../../../../libs/git-portfolio/src/lib/git-provider.service.ts","../../../../libs/git-portfolio/src/lib/octicon.directive.ts","../../../../libs/git-portfolio/src/lib/repo-card/repo-card.component.ts","../../../../libs/git-portfolio/src/lib/repo-card/repo-card.component.html","../../../../libs/git-portfolio/src/lib/types/git-providers-type.ts","../../../../libs/git-portfolio/src/lib/git-portfolio.component.ts","../../../../libs/git-portfolio/src/lib/git-portfolio.component.html","../../../../libs/git-portfolio/src/tehw0lf-git-portfolio.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\nexport class GitRepository {\n id: number | undefined;\n clone_url?: string;\n http_url_to_repo?: string;\n created_at: string | undefined;\n description: string | undefined;\n fork?: boolean;\n forks_count: number | undefined;\n html_url?: string;\n web_url?: string;\n language?: string;\n license?: {\n key: string;\n name: string;\n node_id: string;\n spdx_id: string;\n url: string;\n };\n name: string | undefined;\n open_issues_count?: number;\n owner?: {\n avatar_url: string;\n };\n namespace?: {\n avatar_url: string;\n };\n pushed_at?: string;\n last_activity_at?: string;\n stargazers_count?: number;\n star_count?: number;\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable, of, zip } from 'rxjs';\nimport { map, tap } from 'rxjs/operators';\n\nimport { GitProviderConfig } from './types/git-provider-config-type';\nimport { GitRepositories } from './types/git-repositories-type';\nimport { GitRepository } from './types/git-repository-type';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class GitProviderService {\n private loadingStateSubject = new BehaviorSubject<boolean>(true);\n private repositorySubject = new BehaviorSubject<GitRepositories>({});\n\n constructor(private http: HttpClient) {}\n\n get loading(): Observable<boolean> {\n return this.loadingStateSubject.asObservable();\n }\n\n getRepositories(\n gitProviderUserNames?: GitProviderConfig\n ): Observable<GitRepositories> {\n if (\n this.repositorySubject.value.github === undefined &&\n this.repositorySubject.value.gitlab === undefined\n ) {\n this.fetchRepositories(gitProviderUserNames)\n .pipe(\n tap((repositories: GitRepositories) => {\n this.repositorySubject.next(repositories);\n this.loadingStateSubject.next(false);\n })\n )\n .subscribe();\n }\n return this.repositorySubject.asObservable();\n }\n\n fetchRepositories(\n gitProviderUserNames?: GitProviderConfig\n ): Observable<GitRepositories> {\n return zip(\n this.fetchGithubRepositories(gitProviderUserNames?.github ?? ''),\n this.fetchGitlabRepositories(gitProviderUserNames?.gitlab ?? '')\n ).pipe(\n map((gitRepositoryArray: [GitRepository[], GitRepository[]]) => {\n const repositories: GitRepositories = {\n github: this.filterAndSortGitRepositories(gitRepositoryArray[0]),\n gitlab: this.filterAndSortGitRepositories(gitRepositoryArray[1])\n };\n return repositories;\n })\n );\n }\n\n private filterAndSortGitRepositories(gitRepositoryArray: GitRepository[]): {\n own: GitRepository[];\n forked: GitRepository[];\n } {\n return {\n own: gitRepositoryArray\n .filter((gitRepository: GitRepository) => !gitRepository.fork)\n .sort(\n (repoA: GitRepository, repoB: GitRepository) =>\n (repoB.stargazers_count ?? 0) - (repoA.stargazers_count ?? 0)\n ),\n forked: gitRepositoryArray\n .filter((gitRepository: GitRepository) => gitRepository.fork)\n .sort(\n (repoA: GitRepository, repoB: GitRepository) =>\n (repoB.stargazers_count ?? 0) - (repoA.stargazers_count ?? 0)\n )\n };\n }\n\n private fetchGithubRepositories(\n githubUser: string\n ): Observable<GitRepository[]> {\n if (githubUser !== '') {\n return this.http.get<GitRepository[]>(\n `https://api.github.com/users/${githubUser}/repos`\n );\n }\n return of([new GitRepository()]);\n }\n private fetchGitlabRepositories(\n gitlabUser: string\n ): Observable<GitRepository[]> {\n if (gitlabUser !== '') {\n return this.http.get<GitRepository[]>(\n `https://gitlab.com/api/v4/users/${gitlabUser}/projects`\n );\n }\n return of([new GitRepository()]);\n }\n}\n","import { Directive, ElementRef, input, OnInit, Renderer2 } from '@angular/core';\nimport octicons, { IconName } from '@primer/octicons';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[octicon]',\n standalone: true\n})\nexport class OcticonDirective implements OnInit {\n octicon = input.required<string>();\n color = input.required<string>();\n width = input<string>();\n\n constructor(\n private elementRef: ElementRef,\n private renderer: Renderer2\n ) {}\n\n ngOnInit(): void {\n const el: HTMLElement = this.elementRef.nativeElement;\n if (this.octicon()) {\n if (octicons[this.octicon()! as IconName] !== undefined) {\n el.innerHTML = octicons[this.octicon()! as IconName].toSVG();\n\n const icon: Node | null = el.firstChild;\n\n if (this.color() && icon) {\n this.renderer.setStyle(icon, 'fill', this.color());\n }\n if (this.width() && icon) {\n this.renderer.setStyle(icon, 'width', this.width());\n this.renderer.setStyle(icon, 'height', this.width());\n }\n } else {\n el.innerHTML = octicons['alert'].toSVG();\n this.renderer.setStyle(el.firstChild, 'fill', 'red');\n }\n }\n }\n}\n","import { ClipboardModule } from '@angular/cdk/clipboard';\nimport { DatePipe, NgStyle } from '@angular/common';\nimport { Component, input, output } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport * as githubLanguageColors from 'github-language-colors/colors.json';\n\nimport { OcticonDirective } from '../octicon.directive';\nimport { GitRepository } from '../types/git-repository-type';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\ninterface Dictionary {\n [id: string]: string;\n}\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'repo-card',\n templateUrl: './repo-card.component.html',\n styleUrls: ['./repo-card.component.scss'],\n standalone: true,\n imports: [\n MatCardModule,\n NgStyle,\n MatButtonModule,\n OcticonDirective,\n ClipboardModule,\n DatePipe\n ]\n})\nexport class RepoCardComponent {\n buttonStyle = input.required<any>();\n cardStyle = input.required<any>();\n textStyle = input.required<any>();\n checkColor = input.required<string>();\n forkColor = input.required<string>();\n issueColor = input.required<string>();\n pasteColor = input.required<string>();\n starColor = input.required<string>();\n\n gitRepo = input.required<GitRepository>();\n\n isCopied = input(false);\n\n copiedToClipboard = output<boolean>();\n\n githubLanguageColors = githubLanguageColors as Dictionary;\n}\n","<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 class=\"flex-row\">\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo().language !== undefined\n ? githubLanguageColors[gitRepo().language!]\n : 'transparent'\n }\"\n class=\"language-icon flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().language }}</div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div octicon=\"star\" [color]=\"starColor()\" class=\"flex-gap-5\"></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().stargazers_count || gitRepo().star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"repo-forked\"\n [color]=\"forkColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().forks_count }}</div>\n </div>\n @if (gitRepo().open_issues_count) {\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"issue-opened\"\n [color]=\"issueColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().open_issues_count }}\n </div>\n </div>\n }\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 class=\"flex-row\">\n <span class=\"mat-footer-cell flex-fxflex flex-gap-12\">\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.emit(true)\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper flex-row\">\n @if (isCopied()) {\n <div\n octicon=\"check\"\n [color]=\"checkColor()\"\n width=\"24\"\n class=\"flex-gap-5\"\n ></div>\n }\n <div\n octicon=\"paste\"\n [color]=\"pasteColor()\"\n width=\"24px\"\n class=\"flex-gap-5\"\n ></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n","/* eslint-disable no-shadow */\nexport enum GitProviders {\n github = 'GitHub',\n gitlab = 'GitLab'\n}\n","import {\n BreakpointObserver,\n BreakpointState,\n LayoutModule\n} from '@angular/cdk/layout';\nimport {\n AsyncPipe,\n CommonModule,\n KeyValuePipe,\n NgStyle\n} from '@angular/common';\nimport { Component, input, OnDestroy, OnInit } from '@angular/core';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { Observable, Subject } from 'rxjs';\nimport { takeUntil, tap } from 'rxjs/operators';\n\nimport { GitProviderService } from './git-provider.service';\nimport { RepoCardComponent } from './repo-card/repo-card.component';\nimport { GitProviderConfig } from './types/git-provider-config-type';\nimport { GitProviders } from './types/git-providers-type';\nimport { GitRepositories } from './types/git-repositories-type';\nimport { GitRepository } from './types/git-repository-type';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'git-portfolio',\n templateUrl: './git-portfolio.component.html',\n styleUrls: ['./git-portfolio.component.scss'],\n standalone: true,\n imports: [\n CommonModule,\n LayoutModule,\n NgStyle,\n MatProgressSpinnerModule,\n RepoCardComponent,\n AsyncPipe,\n KeyValuePipe\n ]\n})\nexport class GitPortfolioComponent implements OnInit, OnDestroy {\n buttonStyle = input({ 'background-color': '#424242', color: '#cc7832' });\n\n cardStyle = input({\n color: '#437da8',\n 'background-color': 'rgba(34, 34, 34, 0.75)',\n 'backdrop-filter': 'blur(50px)'\n });\n\n textStyle = input({ color: '#437da8' });\n\n checkColor = input('#38e038');\n\n forkColor = input('#437da8');\n\n issueColor = input('rgb(56, 224, 56)');\n\n pasteColor = input('#cc7832');\n\n starColor = input('gold');\n\n gitProviderConfig = input<GitProviderConfig>({\n github: 'tehw0lf',\n gitlab: 'tehw0lf'\n });\n\n showForked = input(true);\n\n showOwn = input(true);\n\n loading: Observable<boolean>;\n gitProviders = GitProviders;\n currentRepo: GitRepository | undefined;\n gitRepositories$: Observable<GitRepositories> | undefined;\n viewport = '';\n\n private unsubscribe$ = new Subject<void>();\n\n constructor(\n private gitProviderService: GitProviderService,\n private breakpointObserver: BreakpointObserver\n ) {\n this.loading = this.gitProviderService.loading;\n\n breakpointObserver\n .observe([\n '(max-width: 599.98px)',\n '(max-width: 959.98px)',\n '(min-width: 960px)'\n ])\n .pipe(\n tap((breakpointState: BreakpointState) => {\n if (breakpointState.breakpoints['(max-width: 599.98px)']) {\n this.viewport = 'xsmall';\n } else if (breakpointState.breakpoints['(max-width: 959.98px)']) {\n this.viewport = 'small';\n } else {\n this.viewport = 'medium';\n }\n }),\n takeUntil(this.unsubscribe$)\n )\n .subscribe();\n }\n\n ngOnInit(): void {\n this.getRepositories();\n }\n\n ngOnDestroy(): void {\n this.unsubscribe$.next();\n this.unsubscribe$.complete();\n }\n\n copyToClipboard(githubRepo: GitRepository): void {\n this.currentRepo = githubRepo;\n }\n\n isCopiedToClipboard(githubRepo: GitRepository): boolean {\n if (!this.currentRepo) {\n return false;\n }\n return this.currentRepo.id === githubRepo.id ? true : false;\n }\n\n getRepositories(): void {\n this.gitRepositories$ = this.gitProviderService\n .getRepositories(this.gitProviderConfig())\n .pipe(takeUntil(this.unsubscribe$));\n }\n\n getOwnGitRepositories(\n gitRepositories: GitRepositories,\n gitProvider: string\n ): GitRepository[] {\n if (gitRepositories) {\n switch (gitProvider) {\n case 'github':\n if (gitRepositories.github) {\n return gitRepositories.github.own;\n } else {\n return [];\n }\n\n case 'gitlab':\n if (gitRepositories.gitlab) {\n return gitRepositories.gitlab.own;\n } else {\n return [];\n }\n\n default:\n return [];\n }\n } else {\n return [];\n }\n }\n\n getForkedGitRepositories(\n gitRepositories: GitRepositories,\n gitProvider: string\n ): GitRepository[] {\n if (gitRepositories) {\n switch (gitProvider) {\n case 'github':\n if (gitRepositories.github) {\n return gitRepositories.github.forked;\n } else {\n return [];\n }\n\n case 'gitlab':\n if (gitRepositories.gitlab) {\n return gitRepositories.gitlab.forked;\n } else {\n return [];\n }\n\n default:\n return [];\n }\n } else {\n return [];\n }\n }\n\n hasRepositories(\n gitRepositories: GitRepositories,\n gitProvider: string,\n type: 'own' | 'forked'\n ): boolean {\n if (gitRepositories) {\n switch (gitProvider) {\n case 'github':\n if (gitRepositories.github) {\n return gitRepositories.github[type].length > 0;\n }\n break;\n\n case 'gitlab':\n if (gitRepositories.gitlab) {\n return gitRepositories.gitlab[type].length > 0;\n }\n break;\n }\n }\n return false;\n }\n}\n","@if (gitRepositories$ | async; as gitRepositories) {\n <div>\n @for (gitProvider of gitProviders | keyvalue; track gitProvider) {\n <div>\n <h1 [ngStyle]=\"textStyle()\">{{ gitProvider.value }}</h1>\n @if (showOwn()) {\n <div>\n <h2 [ngStyle]=\"textStyle()\" class=\"mat-headline\">Own Repos</h2>\n <div\n class=\"flex-align-start\"\n [ngClass]=\"{\n 'flex-row-wrap': viewport === 'medium' || viewport === 'small',\n 'flex-column': viewport === 'xsmall'\n }\"\n >\n @if ((loading | async) === true) {\n <div>\n <mat-spinner></mat-spinner>\n </div>\n }\n @for (\n gitRepo of getOwnGitRepositories(\n gitRepositories,\n gitProvider.key\n );\n track gitRepo\n ) {\n <repo-card\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 (copiedToClipboard)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card flex-align-stretch\"\n [ngClass]=\"{\n 'flex-fxflex': viewport === 'medium',\n 'flex-fxflex-lt-md': viewport === 'small',\n 'flex-fxflex-lt-sm': viewport === 'xsmall'\n }\"\n >\n </repo-card>\n }\n @if (\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'own')\n ) {\n <div [ngStyle]=\"textStyle()\">\n This user has not created any repositories yet\n </div>\n }\n </div>\n </div>\n }\n @if (showForked()) {\n <div>\n <h2 [ngStyle]=\"textStyle()\" class=\"mat-headline\">Forked Repos</h2>\n <div\n class=\"flex-align-start\"\n [ngClass]=\"{\n 'flex-row-wrap': viewport === 'medium' || viewport === 'small',\n 'flex-column': viewport === 'xsmall'\n }\"\n >\n @if ((loading | async) === true) {\n <div>\n <mat-spinner></mat-spinner>\n </div>\n }\n @for (\n gitRepo of getForkedGitRepositories(\n gitRepositories,\n gitProvider.key\n );\n track gitRepo\n ) {\n <repo-card\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 (copiedToClipboard)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card flex-align-stretch\"\n [ngClass]=\"{\n 'flex-fxflex': viewport === 'medium',\n 'flex-fxflex-lt-md': viewport === 'small',\n 'flex-fxflex-lt-sm': viewport === 'xsmall'\n }\"\n ></repo-card>\n }\n @if (\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'forked')\n ) {\n <div [ngStyle]=\"textStyle()\">\n This user has not forked any repositories yet\n </div>\n }\n </div>\n </div>\n }\n </div>\n }\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i1.GitProviderService","i2"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;MACa,aAAa,CAAA;AA8BzB;;MCnBY,kBAAkB,CAAA;AAI7B,IAAA,WAAA,CAAoB,IAAgB,EAAA;QAAhB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;AAH5B,QAAA,IAAA,CAAA,mBAAmB,GAAG,IAAI,eAAe,CAAU,IAAI,CAAC,CAAC;AACzD,QAAA,IAAA,CAAA,iBAAiB,GAAG,IAAI,eAAe,CAAkB,EAAE,CAAC,CAAC;KAE7B;AAExC,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,IAAI,CAAC,mBAAmB,CAAC,YAAY,EAAE,CAAC;KAChD;AAED,IAAA,eAAe,CACb,oBAAwC,EAAA;QAExC,IACE,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,MAAM,KAAK,SAAS;YACjD,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,MAAM,KAAK,SAAS,EACjD;AACA,YAAA,IAAI,CAAC,iBAAiB,CAAC,oBAAoB,CAAC;AACzC,iBAAA,IAAI,CACH,GAAG,CAAC,CAAC,YAA6B,KAAI;AACpC,gBAAA,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AAC1C,gBAAA,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACvC,aAAC,CAAC,CACH;AACA,iBAAA,SAAS,EAAE,CAAC;SAChB;AAC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A,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,WAAA,EAAA,WAAA,EAAA,YAAA,EAAA,WAAA,EAAA,YAAA,EAAA,YAAA,EAAA,WAAA,EAAA,SAAA,EAAA,UAAA,CAAA,EAAA,OAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAKR,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAhBjC,SAAS;+BAEE,eAAe,EAAA,UAAA,EAGb,IAAI,EACP,OAAA,EAAA;wBACP,YAAY;wBACZ,YAAY;wBACZ,OAAO;wBACP,wBAAwB;wBACxB,iBAAiB;wBACjB,SAAS;wBACT,YAAY;AACb,qBAAA,EAAA,QAAA,EAAA,+zIAAA,EAAA,MAAA,EAAA,CAAA,2vBAAA,CAAA,EAAA,CAAA;;;AErCH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"tehw0lf-git-portfolio.mjs","sources":["../../../../libs/git-portfolio/src/lib/types/git-repository-type.ts","../../../../libs/git-portfolio/src/lib/git-provider.service.ts","../../../../libs/git-portfolio/src/lib/octicon.directive.ts","../../../../libs/git-portfolio/src/lib/repo-card/repo-card.component.ts","../../../../libs/git-portfolio/src/lib/repo-card/repo-card.component.html","../../../../libs/git-portfolio/src/lib/types/git-providers-type.ts","../../../../libs/git-portfolio/src/lib/git-portfolio.component.ts","../../../../libs/git-portfolio/src/lib/git-portfolio.component.html","../../../../libs/git-portfolio/src/tehw0lf-git-portfolio.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\nexport class GitRepository {\n id: number | undefined;\n clone_url?: string;\n http_url_to_repo?: string;\n created_at: string | undefined;\n description: string | undefined;\n fork?: boolean;\n forks_count: number | undefined;\n html_url?: string;\n web_url?: string;\n language?: string;\n license?: {\n key: string;\n name: string;\n node_id: string;\n spdx_id: string;\n url: string;\n };\n name: string | undefined;\n open_issues_count?: number;\n owner?: {\n avatar_url: string;\n };\n namespace?: {\n avatar_url: string;\n };\n pushed_at?: string;\n last_activity_at?: string;\n stargazers_count?: number;\n star_count?: number;\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable, of, zip } from 'rxjs';\nimport { map, tap } from 'rxjs/operators';\n\nimport { GitProviderConfig } from './types/git-provider-config-type';\nimport { GitRepositories } from './types/git-repositories-type';\nimport { GitRepository } from './types/git-repository-type';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class GitProviderService {\n private loadingStateSubject = new BehaviorSubject<boolean>(true);\n private repositorySubject = new BehaviorSubject<GitRepositories>({});\n\n constructor(private http: HttpClient) {}\n\n get loading(): Observable<boolean> {\n return this.loadingStateSubject.asObservable();\n }\n\n getRepositories(\n gitProviderUserNames?: GitProviderConfig\n ): Observable<GitRepositories> {\n if (\n this.repositorySubject.value.github === undefined &&\n this.repositorySubject.value.gitlab === undefined\n ) {\n this.fetchRepositories(gitProviderUserNames)\n .pipe(\n tap((repositories: GitRepositories) => {\n this.repositorySubject.next(repositories);\n this.loadingStateSubject.next(false);\n })\n )\n .subscribe();\n }\n return this.repositorySubject.asObservable();\n }\n\n fetchRepositories(\n gitProviderUserNames?: GitProviderConfig\n ): Observable<GitRepositories> {\n return zip(\n this.fetchGithubRepositories(gitProviderUserNames?.github ?? ''),\n this.fetchGitlabRepositories(gitProviderUserNames?.gitlab ?? '')\n ).pipe(\n map((gitRepositoryArray: [GitRepository[], GitRepository[]]) => {\n const repositories: GitRepositories = {\n github: this.filterAndSortGitRepositories(gitRepositoryArray[0]),\n gitlab: this.filterAndSortGitRepositories(gitRepositoryArray[1])\n };\n return repositories;\n })\n );\n }\n\n private filterAndSortGitRepositories(gitRepositoryArray: GitRepository[]): {\n own: GitRepository[];\n forked: GitRepository[];\n } {\n return {\n own: gitRepositoryArray\n .filter((gitRepository: GitRepository) => !gitRepository.fork)\n .sort(\n (repoA: GitRepository, repoB: GitRepository) =>\n (repoB.stargazers_count ?? 0) - (repoA.stargazers_count ?? 0)\n ),\n forked: gitRepositoryArray\n .filter((gitRepository: GitRepository) => gitRepository.fork)\n .sort(\n (repoA: GitRepository, repoB: GitRepository) =>\n (repoB.stargazers_count ?? 0) - (repoA.stargazers_count ?? 0)\n )\n };\n }\n\n private fetchGithubRepositories(\n githubUser: string\n ): Observable<GitRepository[]> {\n if (githubUser !== '') {\n return this.http.get<GitRepository[]>(\n `https://api.github.com/users/${githubUser}/repos`\n );\n }\n return of([new GitRepository()]);\n }\n private fetchGitlabRepositories(\n gitlabUser: string\n ): Observable<GitRepository[]> {\n if (gitlabUser !== '') {\n return this.http.get<GitRepository[]>(\n `https://gitlab.com/api/v4/users/${gitlabUser}/projects`\n );\n }\n return of([new GitRepository()]);\n }\n}\n","import { Directive, ElementRef, input, OnInit, Renderer2 } from '@angular/core';\nimport octicons, { IconName } from '@primer/octicons';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[octicon]',\n standalone: true\n})\nexport class OcticonDirective implements OnInit {\n octicon = input.required<string>();\n color = input.required<string>();\n width = input<string>();\n\n constructor(\n private elementRef: ElementRef,\n private renderer: Renderer2\n ) {}\n\n ngOnInit(): void {\n const el: HTMLElement = this.elementRef.nativeElement;\n if (this.octicon()) {\n if (octicons[this.octicon()! as IconName] !== undefined) {\n el.innerHTML = octicons[this.octicon()! as IconName].toSVG();\n\n const icon: Node | null = el.firstChild;\n\n if (this.color() && icon) {\n this.renderer.setStyle(icon, 'fill', this.color());\n }\n if (this.width() && icon) {\n this.renderer.setStyle(icon, 'width', this.width());\n this.renderer.setStyle(icon, 'height', this.width());\n }\n } else {\n el.innerHTML = octicons['alert'].toSVG();\n this.renderer.setStyle(el.firstChild, 'fill', 'red');\n }\n }\n }\n}\n","import { ClipboardModule } from '@angular/cdk/clipboard';\nimport { DatePipe, NgStyle } from '@angular/common';\nimport { Component, input, output } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport * as githubLanguageColors from 'github-language-colors/colors.json';\n\nimport { OcticonDirective } from '../octicon.directive';\nimport { GitRepository } from '../types/git-repository-type';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\ninterface Dictionary {\n [id: string]: string;\n}\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'repo-card',\n templateUrl: './repo-card.component.html',\n styleUrls: ['./repo-card.component.scss'],\n standalone: true,\n imports: [\n MatCardModule,\n NgStyle,\n MatButtonModule,\n OcticonDirective,\n ClipboardModule,\n DatePipe\n ]\n})\nexport class RepoCardComponent {\n buttonStyle = input.required<any>();\n cardStyle = input.required<any>();\n textStyle = input.required<any>();\n checkColor = input.required<string>();\n forkColor = input.required<string>();\n issueColor = input.required<string>();\n pasteColor = input.required<string>();\n starColor = input.required<string>();\n\n gitRepo = input.required<GitRepository>();\n\n isCopied = input(false);\n\n copiedToClipboard = output<boolean>();\n\n githubLanguageColors = githubLanguageColors as Dictionary;\n}\n","<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 class=\"flex-row\">\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo().language !== undefined\n ? githubLanguageColors[gitRepo().language!]\n : 'transparent'\n }\"\n class=\"language-icon flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().language }}</div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div octicon=\"star\" [color]=\"starColor()\" class=\"flex-gap-5\"></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().stargazers_count || gitRepo().star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"repo-forked\"\n [color]=\"forkColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">{{ gitRepo().forks_count }}</div>\n </div>\n @if (gitRepo().open_issues_count) {\n <div class=\"info-item flex-row flex-gap-12\">\n <div\n octicon=\"issue-opened\"\n [color]=\"issueColor()\"\n class=\"flex-gap-5\"\n ></div>\n <div [ngStyle]=\"textStyle()\">\n {{ gitRepo().open_issues_count }}\n </div>\n </div>\n }\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 class=\"flex-row\">\n <span class=\"mat-footer-cell flex-fxflex flex-gap-12\">\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.emit(true)\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper flex-row\">\n @if (isCopied()) {\n <div\n octicon=\"check\"\n [color]=\"checkColor()\"\n width=\"24\"\n class=\"flex-gap-5\"\n ></div>\n }\n <div\n octicon=\"paste\"\n [color]=\"pasteColor()\"\n width=\"24px\"\n class=\"flex-gap-5\"\n ></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n","/* eslint-disable no-shadow */\nexport enum GitProviders {\n github = 'GitHub',\n gitlab = 'GitLab'\n}\n","import {\n BreakpointObserver,\n BreakpointState,\n LayoutModule\n} from '@angular/cdk/layout';\nimport {\n AsyncPipe,\n CommonModule,\n KeyValuePipe,\n NgStyle\n} from '@angular/common';\nimport { Component, input, OnDestroy, OnInit } from '@angular/core';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { Observable, Subject } from 'rxjs';\nimport { takeUntil, tap } from 'rxjs/operators';\n\nimport { GitProviderService } from './git-provider.service';\nimport { RepoCardComponent } from './repo-card/repo-card.component';\nimport { GitProviderConfig } from './types/git-provider-config-type';\nimport { GitProviders } from './types/git-providers-type';\nimport { GitRepositories } from './types/git-repositories-type';\nimport { GitRepository } from './types/git-repository-type';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'git-portfolio',\n templateUrl: './git-portfolio.component.html',\n styleUrls: ['./git-portfolio.component.scss'],\n standalone: true,\n imports: [\n CommonModule,\n LayoutModule,\n NgStyle,\n MatProgressSpinnerModule,\n RepoCardComponent,\n AsyncPipe,\n KeyValuePipe\n ]\n})\nexport class GitPortfolioComponent implements OnInit, OnDestroy {\n buttonStyle = input({ 'background-color': '#424242', color: '#cc7832' });\n\n cardStyle = input({\n color: '#437da8',\n 'background-color': 'rgba(34, 34, 34, 0.75)',\n 'backdrop-filter': 'blur(50px)'\n });\n\n textStyle = input({ color: '#437da8' });\n\n checkColor = input('#38e038');\n\n forkColor = input('#437da8');\n\n issueColor = input('rgb(56, 224, 56)');\n\n pasteColor = input('#cc7832');\n\n starColor = input('gold');\n\n gitProviderConfig = input<GitProviderConfig>({\n github: 'tehw0lf',\n gitlab: 'tehw0lf'\n });\n\n showForked = input(true);\n\n showOwn = input(true);\n\n loading: Observable<boolean>;\n gitProviders = GitProviders;\n currentRepo: GitRepository | undefined;\n gitRepositories$: Observable<GitRepositories> | undefined;\n viewport = '';\n\n private unsubscribe$ = new Subject<void>();\n\n constructor(\n private gitProviderService: GitProviderService,\n private breakpointObserver: BreakpointObserver\n ) {\n this.loading = this.gitProviderService.loading;\n\n breakpointObserver\n .observe([\n '(max-width: 599.98px)',\n '(max-width: 959.98px)',\n '(min-width: 960px)'\n ])\n .pipe(\n tap((breakpointState: BreakpointState) => {\n if (breakpointState.breakpoints['(max-width: 599.98px)']) {\n this.viewport = 'xsmall';\n } else if (breakpointState.breakpoints['(max-width: 959.98px)']) {\n this.viewport = 'small';\n } else {\n this.viewport = 'medium';\n }\n }),\n takeUntil(this.unsubscribe$)\n )\n .subscribe();\n }\n\n ngOnInit(): void {\n this.getRepositories();\n }\n\n ngOnDestroy(): void {\n this.unsubscribe$.next();\n this.unsubscribe$.complete();\n }\n\n copyToClipboard(githubRepo: GitRepository): void {\n this.currentRepo = githubRepo;\n }\n\n isCopiedToClipboard(githubRepo: GitRepository): boolean {\n if (!this.currentRepo) {\n return false;\n }\n return this.currentRepo.id === githubRepo.id ? true : false;\n }\n\n getRepositories(): void {\n this.gitRepositories$ = this.gitProviderService\n .getRepositories(this.gitProviderConfig())\n .pipe(takeUntil(this.unsubscribe$));\n }\n\n getOwnGitRepositories(\n gitRepositories: GitRepositories,\n gitProvider: string\n ): GitRepository[] {\n if (gitRepositories) {\n switch (gitProvider) {\n case 'github':\n if (gitRepositories.github) {\n return gitRepositories.github.own;\n } else {\n return [];\n }\n\n case 'gitlab':\n if (gitRepositories.gitlab) {\n return gitRepositories.gitlab.own;\n } else {\n return [];\n }\n\n default:\n return [];\n }\n } else {\n return [];\n }\n }\n\n getForkedGitRepositories(\n gitRepositories: GitRepositories,\n gitProvider: string\n ): GitRepository[] {\n if (gitRepositories) {\n switch (gitProvider) {\n case 'github':\n if (gitRepositories.github) {\n return gitRepositories.github.forked;\n } else {\n return [];\n }\n\n case 'gitlab':\n if (gitRepositories.gitlab) {\n return gitRepositories.gitlab.forked;\n } else {\n return [];\n }\n\n default:\n return [];\n }\n } else {\n return [];\n }\n }\n\n hasRepositories(\n gitRepositories: GitRepositories,\n gitProvider: string,\n type: 'own' | 'forked'\n ): boolean {\n if (gitRepositories) {\n switch (gitProvider) {\n case 'github':\n if (gitRepositories.github) {\n return gitRepositories.github[type].length > 0;\n }\n break;\n\n case 'gitlab':\n if (gitRepositories.gitlab) {\n return gitRepositories.gitlab[type].length > 0;\n }\n break;\n }\n }\n return false;\n }\n}\n","@if (gitRepositories$ | async; as gitRepositories) {\n <div>\n @for (gitProvider of gitProviders | keyvalue; track gitProvider) {\n <div>\n <h1 [ngStyle]=\"textStyle()\">{{ gitProvider.value }}</h1>\n @if (showOwn()) {\n <div>\n <h2 [ngStyle]=\"textStyle()\" class=\"mat-headline\">Own Repos</h2>\n <div\n class=\"flex-align-start\"\n [ngClass]=\"{\n 'flex-row-wrap': viewport === 'medium' || viewport === 'small',\n 'flex-column': viewport === 'xsmall'\n }\"\n >\n @if ((loading | async) === true) {\n <div>\n <mat-spinner></mat-spinner>\n </div>\n }\n @for (\n gitRepo of getOwnGitRepositories(\n gitRepositories,\n gitProvider.key\n );\n track gitRepo\n ) {\n <repo-card\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 (copiedToClipboard)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card flex-align-stretch\"\n [ngClass]=\"{\n 'flex-fxflex': viewport === 'medium',\n 'flex-fxflex-lt-md': viewport === 'small',\n 'flex-fxflex-lt-sm': viewport === 'xsmall'\n }\"\n >\n </repo-card>\n }\n @if (\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'own')\n ) {\n <div [ngStyle]=\"textStyle()\">\n This user has not created any repositories yet\n </div>\n }\n </div>\n </div>\n }\n @if (showForked()) {\n <div>\n <h2 [ngStyle]=\"textStyle()\" class=\"mat-headline\">Forked Repos</h2>\n <div\n class=\"flex-align-start\"\n [ngClass]=\"{\n 'flex-row-wrap': viewport === 'medium' || viewport === 'small',\n 'flex-column': viewport === 'xsmall'\n }\"\n >\n @if ((loading | async) === true) {\n <div>\n <mat-spinner></mat-spinner>\n </div>\n }\n @for (\n gitRepo of getForkedGitRepositories(\n gitRepositories,\n gitProvider.key\n );\n track gitRepo\n ) {\n <repo-card\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 (copiedToClipboard)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card flex-align-stretch\"\n [ngClass]=\"{\n 'flex-fxflex': viewport === 'medium',\n 'flex-fxflex-lt-md': viewport === 'small',\n 'flex-fxflex-lt-sm': viewport === 'xsmall'\n }\"\n ></repo-card>\n }\n @if (\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'forked')\n ) {\n <div [ngStyle]=\"textStyle()\">\n This user has not forked any repositories yet\n </div>\n }\n </div>\n </div>\n }\n </div>\n }\n </div>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i1.GitProviderService","i2"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;MACa,aAAa,CAAA;AA8BzB;;MCnBY,kBAAkB,CAAA;AAI7B,IAAA,WAAA,CAAoB,IAAgB,EAAA;QAAhB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;AAH5B,QAAA,IAAA,CAAA,mBAAmB,GAAG,IAAI,eAAe,CAAU,IAAI,CAAC,CAAC;AACzD,QAAA,IAAA,CAAA,iBAAiB,GAAG,IAAI,eAAe,CAAkB,EAAE,CAAC,CAAC;KAE7B;AAExC,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OA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