@tehw0lf/git-portfolio 0.17.6 → 0.18.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.
@@ -3,7 +3,7 @@ import { LayoutModule } from '@angular/cdk/layout';
3
3
  import * as i3$1 from '@angular/common';
4
4
  import { NgStyle, DatePipe, CommonModule, AsyncPipe, KeyValuePipe } from '@angular/common';
5
5
  import * as i0 from '@angular/core';
6
- import { Injectable, Directive, Input, EventEmitter, Component, Output } from '@angular/core';
6
+ import { Injectable, input, Directive, output, Component } from '@angular/core';
7
7
  import * as i4 from '@angular/material/progress-spinner';
8
8
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
9
9
  import { BehaviorSubject, zip, of, Subject } from 'rxjs';
@@ -74,10 +74,10 @@ class GitProviderService {
74
74
  }
75
75
  return of([new GitRepository()]);
76
76
  }
77
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: GitProviderService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
78
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: GitProviderService, providedIn: 'root' }); }
77
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: GitProviderService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
78
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: GitProviderService, providedIn: 'root' }); }
79
79
  }
80
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: GitProviderService, decorators: [{
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: GitProviderService, decorators: [{
81
81
  type: Injectable,
82
82
  args: [{
83
83
  providedIn: 'root'
@@ -88,19 +88,22 @@ class OcticonDirective {
88
88
  constructor(elementRef, renderer) {
89
89
  this.elementRef = elementRef;
90
90
  this.renderer = renderer;
91
+ this.octicon = input.required();
92
+ this.color = input.required();
93
+ this.width = input();
91
94
  }
92
95
  ngOnInit() {
93
96
  const el = this.elementRef.nativeElement;
94
- if (this.octicon) {
95
- if (octicons[this.octicon] !== undefined) {
96
- el.innerHTML = octicons[this.octicon].toSVG();
97
+ if (this.octicon()) {
98
+ if (octicons[this.octicon()] !== undefined) {
99
+ el.innerHTML = octicons[this.octicon()].toSVG();
97
100
  const icon = el.firstChild;
98
- if (this.color && icon) {
99
- this.renderer.setStyle(icon, 'fill', this.color);
101
+ if (this.color() && icon) {
102
+ this.renderer.setStyle(icon, 'fill', this.color());
100
103
  }
101
- if (this.width && icon) {
102
- this.renderer.setStyle(icon, 'width', this.width);
103
- this.renderer.setStyle(icon, 'height', this.width);
104
+ if (this.width() && icon) {
105
+ this.renderer.setStyle(icon, 'width', this.width());
106
+ this.renderer.setStyle(icon, 'height', this.width());
104
107
  }
105
108
  }
106
109
  else {
@@ -109,40 +112,37 @@ class OcticonDirective {
109
112
  }
110
113
  }
111
114
  }
112
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: OcticonDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
113
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.3", type: OcticonDirective, isStandalone: true, selector: "[octicon]", inputs: { octicon: "octicon", color: "color", width: "width" }, ngImport: i0 }); }
115
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: OcticonDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
116
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.3", type: OcticonDirective, isStandalone: true, selector: "[octicon]", inputs: { octicon: { classPropertyName: "octicon", publicName: "octicon", isSignal: true, isRequired: true, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: true, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
114
117
  }
115
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: OcticonDirective, decorators: [{
118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: OcticonDirective, decorators: [{
116
119
  type: Directive,
117
120
  args: [{
118
121
  // eslint-disable-next-line @angular-eslint/directive-selector
119
122
  selector: '[octicon]',
120
123
  standalone: true
121
124
  }]
122
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { octicon: [{
123
- type: Input,
124
- args: [{ required: true }]
125
- }], color: [{
126
- type: Input,
127
- args: [{ required: true }]
128
- }], width: [{
129
- type: Input
130
- }] } });
125
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
131
126
 
132
- /* eslint-disable @typescript-eslint/no-explicit-any */
133
127
  class RepoCardComponent {
134
128
  constructor() {
135
- this.isCopied = false;
136
- this.copiedToClipboardEvent = new EventEmitter();
129
+ this.buttonStyle = input.required();
130
+ this.cardStyle = input.required();
131
+ this.textStyle = input.required();
132
+ this.checkColor = input.required();
133
+ this.forkColor = input.required();
134
+ this.issueColor = input.required();
135
+ this.pasteColor = input.required();
136
+ this.starColor = input.required();
137
+ this.gitRepo = input.required();
138
+ this.isCopied = input(false);
139
+ this.copiedToClipboard = output();
137
140
  this.githubLanguageColors = githubLanguageColors;
138
141
  }
139
- copiedToClipboard() {
140
- this.copiedToClipboardEvent.emit();
141
- }
142
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: RepoCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
143
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.3", type: RepoCardComponent, isStandalone: true, 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 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 octicon=\"repo-forked\" [color]=\"forkColor\" class=\"flex-gap-5\"></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()\"\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}.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" }] }); }
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" }] }); }
144
144
  }
145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: RepoCardComponent, decorators: [{
145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: RepoCardComponent, decorators: [{
146
146
  type: Component,
147
147
  args: [{ selector: 'repo-card', standalone: true, imports: [
148
148
  MatCardModule,
@@ -151,39 +151,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.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 octicon=\"repo-forked\" [color]=\"forkColor\" class=\"flex-gap-5\"></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()\"\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}.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
- }], propDecorators: { buttonStyle: [{
156
- type: Input,
157
- args: [{ required: true }]
158
- }], cardStyle: [{
159
- type: Input,
160
- args: [{ required: true }]
161
- }], textStyle: [{
162
- type: Input,
163
- args: [{ required: true }]
164
- }], checkColor: [{
165
- type: Input,
166
- args: [{ required: true }]
167
- }], forkColor: [{
168
- type: Input,
169
- args: [{ required: true }]
170
- }], issueColor: [{
171
- type: Input,
172
- args: [{ required: true }]
173
- }], pasteColor: [{
174
- type: Input,
175
- args: [{ required: true }]
176
- }], starColor: [{
177
- type: Input,
178
- args: [{ required: true }]
179
- }], gitRepo: [{
180
- type: Input,
181
- args: [{ required: true }]
182
- }], isCopied: [{
183
- type: Input
184
- }], copiedToClipboardEvent: [{
185
- type: Output
186
- }] } });
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"] }]
155
+ }] });
187
156
 
188
157
  /* eslint-disable no-shadow */
189
158
  var GitProviders;
@@ -196,24 +165,24 @@ class GitPortfolioComponent {
196
165
  constructor(gitProviderService, breakpointObserver) {
197
166
  this.gitProviderService = gitProviderService;
198
167
  this.breakpointObserver = breakpointObserver;
199
- this.buttonStyle = { 'background-color': '#424242', color: '#cc7832' };
200
- this.cardStyle = {
168
+ this.buttonStyle = input({ 'background-color': '#424242', color: '#cc7832' });
169
+ this.cardStyle = input({
201
170
  color: '#437da8',
202
171
  'background-color': 'rgba(34, 34, 34, 0.75)',
203
172
  'backdrop-filter': 'blur(50px)'
204
- };
205
- this.textStyle = { color: '#437da8' };
206
- this.checkColor = '#38e038';
207
- this.forkColor = '#437da8';
208
- this.issueColor = 'rgb(56, 224, 56)';
209
- this.pasteColor = '#cc7832';
210
- this.starColor = 'gold';
211
- this.gitProviderConfig = {
173
+ });
174
+ this.textStyle = input({ color: '#437da8' });
175
+ this.checkColor = input('#38e038');
176
+ this.forkColor = input('#437da8');
177
+ this.issueColor = input('rgb(56, 224, 56)');
178
+ this.pasteColor = input('#cc7832');
179
+ this.starColor = input('gold');
180
+ this.gitProviderConfig = input({
212
181
  github: 'tehw0lf',
213
182
  gitlab: 'tehw0lf'
214
- };
215
- this.showForked = true;
216
- this.showOwn = true;
183
+ });
184
+ this.showForked = input(true);
185
+ this.showOwn = input(true);
217
186
  this.gitProviders = GitProviders;
218
187
  this.viewport = '';
219
188
  this.unsubscribe$ = new Subject();
@@ -255,7 +224,7 @@ class GitPortfolioComponent {
255
224
  }
256
225
  getRepositories() {
257
226
  this.gitRepositories$ = this.gitProviderService
258
- .getRepositories(this.gitProviderConfig)
227
+ .getRepositories(this.gitProviderConfig())
259
228
  .pipe(takeUntil(this.unsubscribe$));
260
229
  }
261
230
  getOwnGitRepositories(gitRepositories, gitProvider) {
@@ -325,10 +294,10 @@ class GitPortfolioComponent {
325
294
  }
326
295
  return false;
327
296
  }
328
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: GitPortfolioComponent, deps: [{ token: GitProviderService }, { token: i2$1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
329
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.3", type: GitPortfolioComponent, isStandalone: true, 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: "@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 (copiedToClipboardEvent)=\"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 (copiedToClipboardEvent)=\"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", styles: [".repository-card{max-width:450px;margin:0 32px 32px 0}.mat-headline{font-weight:400;line-height:32px;margin-bottom:16px}.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: CommonModule }, { kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.KeyValuePipe, name: "keyvalue" }, { kind: "ngmodule", type: LayoutModule }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: RepoCardComponent, selector: "repo-card", inputs: ["buttonStyle", "cardStyle", "textStyle", "checkColor", "forkColor", "issueColor", "pasteColor", "starColor", "gitRepo", "isCopied"], outputs: ["copiedToClipboardEvent"] }] }); }
297
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: GitPortfolioComponent, deps: [{ token: GitProviderService }, { token: i2$1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
298
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.3", type: GitPortfolioComponent, isStandalone: true, selector: "git-portfolio", inputs: { buttonStyle: { classPropertyName: "buttonStyle", publicName: "buttonStyle", isSignal: true, isRequired: false, transformFunction: null }, cardStyle: { classPropertyName: "cardStyle", publicName: "cardStyle", isSignal: true, isRequired: false, transformFunction: null }, textStyle: { classPropertyName: "textStyle", publicName: "textStyle", isSignal: true, isRequired: false, transformFunction: null }, checkColor: { classPropertyName: "checkColor", publicName: "checkColor", isSignal: true, isRequired: false, transformFunction: null }, forkColor: { classPropertyName: "forkColor", publicName: "forkColor", isSignal: true, isRequired: false, transformFunction: null }, issueColor: { classPropertyName: "issueColor", publicName: "issueColor", isSignal: true, isRequired: false, transformFunction: null }, pasteColor: { classPropertyName: "pasteColor", publicName: "pasteColor", isSignal: true, isRequired: false, transformFunction: null }, starColor: { classPropertyName: "starColor", publicName: "starColor", isSignal: true, isRequired: false, transformFunction: null }, gitProviderConfig: { classPropertyName: "gitProviderConfig", publicName: "gitProviderConfig", isSignal: true, isRequired: false, transformFunction: null }, showForked: { classPropertyName: "showForked", publicName: "showForked", isSignal: true, isRequired: false, transformFunction: null }, showOwn: { classPropertyName: "showOwn", publicName: "showOwn", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@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", styles: [".repository-card{max-width:450px;margin:0 32px 32px 0}.mat-headline{font-weight:400;line-height:32px;margin-bottom:16px}.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: CommonModule }, { kind: "directive", type: i3$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.KeyValuePipe, name: "keyvalue" }, { kind: "ngmodule", type: LayoutModule }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: RepoCardComponent, selector: "repo-card", inputs: ["buttonStyle", "cardStyle", "textStyle", "checkColor", "forkColor", "issueColor", "pasteColor", "starColor", "gitRepo", "isCopied"], outputs: ["copiedToClipboard"] }] }); }
330
299
  }
331
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: GitPortfolioComponent, decorators: [{
300
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.3", ngImport: i0, type: GitPortfolioComponent, decorators: [{
332
301
  type: Component,
333
302
  args: [{ selector: 'git-portfolio', standalone: true, imports: [
334
303
  CommonModule,
@@ -338,30 +307,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImpor
338
307
  RepoCardComponent,
339
308
  AsyncPipe,
340
309
  KeyValuePipe
341
- ], template: "@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 (copiedToClipboardEvent)=\"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 (copiedToClipboardEvent)=\"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", styles: [".repository-card{max-width:450px;margin:0 32px 32px 0}.mat-headline{font-weight:400;line-height:32px;margin-bottom:16px}.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"] }]
342
- }], ctorParameters: () => [{ type: GitProviderService }, { type: i2$1.BreakpointObserver }], propDecorators: { buttonStyle: [{
343
- type: Input
344
- }], cardStyle: [{
345
- type: Input
346
- }], textStyle: [{
347
- type: Input
348
- }], checkColor: [{
349
- type: Input
350
- }], forkColor: [{
351
- type: Input
352
- }], issueColor: [{
353
- type: Input
354
- }], pasteColor: [{
355
- type: Input
356
- }], starColor: [{
357
- type: Input
358
- }], gitProviderConfig: [{
359
- type: Input
360
- }], showForked: [{
361
- type: Input
362
- }], showOwn: [{
363
- type: Input
364
- }] } });
310
+ ], template: "@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", styles: [".repository-card{max-width:450px;margin:0 32px 32px 0}.mat-headline{font-weight:400;line-height:32px;margin-bottom:16px}.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"] }]
311
+ }], ctorParameters: () => [{ type: GitProviderService }, { type: i2$1.BreakpointObserver }] });
365
312
 
366
313
  /**
367
314
  * Generated bundle index. Do not edit.
@@ -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 @Input({ required: true }) octicon: string | undefined;\n @Input({ required: true }) color: string | undefined;\n @Input() width: string | undefined;\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","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { ClipboardModule } from '@angular/cdk/clipboard';\nimport { DatePipe, NgStyle } from '@angular/common';\nimport { Component, EventEmitter, 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\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 @Input({ required: true }) buttonStyle!: any;\n @Input({ required: true }) cardStyle!: any;\n @Input({ required: true }) textStyle!: any;\n @Input({ required: true }) checkColor!: string;\n @Input({ required: true }) forkColor!: string;\n @Input({ required: true }) issueColor!: string;\n @Input({ required: true }) pasteColor!: string;\n @Input({ required: true }) starColor!: string;\n\n @Input({ required: true })\n gitRepo!: GitRepository;\n\n @Input()\n public isCopied = false;\n\n @Output()\n public copiedToClipboardEvent: EventEmitter<boolean> =\n new EventEmitter<boolean>();\n\n public githubLanguageColors = githubLanguageColors as Dictionary;\n\n copiedToClipboard(): void {\n this.copiedToClipboardEvent.emit();\n }\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 octicon=\"repo-forked\" [color]=\"forkColor\" class=\"flex-gap-5\"></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()\"\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 @Input() buttonStyle = { 'background-color': '#424242', color: '#cc7832' };\n\n @Input() cardStyle = {\n color: '#437da8',\n 'background-color': 'rgba(34, 34, 34, 0.75)',\n 'backdrop-filter': 'blur(50px)'\n };\n\n @Input()\n textStyle = { color: '#437da8' };\n\n @Input()\n checkColor = '#38e038';\n\n @Input()\n forkColor = '#437da8';\n\n @Input()\n issueColor = 'rgb(56, 224, 56)';\n\n @Input()\n pasteColor = '#cc7832';\n\n @Input()\n starColor = 'gold';\n\n @Input()\n gitProviderConfig: GitProviderConfig = {\n github: 'tehw0lf',\n gitlab: 'tehw0lf'\n };\n\n @Input()\n showForked = true;\n\n @Input()\n showOwn = 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 (copiedToClipboardEvent)=\"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 (copiedToClipboardEvent)=\"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;;MCnB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B,KAAK;gBAON,UAAU,EAAA,CAAA;sBADT,KAAK;gBAIN,OAAO,EAAA,CAAA;sBADN,KAAK;;;AE3ER;;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,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,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oBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACxB,iBAAiB,EAAA,QAAA,EAAA,WAAA,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;;;;"}
@@ -10,26 +10,26 @@ import * as i0 from "@angular/core";
10
10
  export declare class GitPortfolioComponent implements OnInit, OnDestroy {
11
11
  private gitProviderService;
12
12
  private breakpointObserver;
13
- buttonStyle: {
13
+ buttonStyle: import("@angular/core").InputSignal<{
14
14
  'background-color': string;
15
15
  color: string;
16
- };
17
- cardStyle: {
16
+ }>;
17
+ cardStyle: import("@angular/core").InputSignal<{
18
18
  color: string;
19
19
  'background-color': string;
20
20
  'backdrop-filter': string;
21
- };
22
- textStyle: {
21
+ }>;
22
+ textStyle: import("@angular/core").InputSignal<{
23
23
  color: string;
24
- };
25
- checkColor: string;
26
- forkColor: string;
27
- issueColor: string;
28
- pasteColor: string;
29
- starColor: string;
30
- gitProviderConfig: GitProviderConfig;
31
- showForked: boolean;
32
- showOwn: boolean;
24
+ }>;
25
+ checkColor: import("@angular/core").InputSignal<string>;
26
+ forkColor: import("@angular/core").InputSignal<string>;
27
+ issueColor: import("@angular/core").InputSignal<string>;
28
+ pasteColor: import("@angular/core").InputSignal<string>;
29
+ starColor: import("@angular/core").InputSignal<string>;
30
+ gitProviderConfig: import("@angular/core").InputSignal<GitProviderConfig>;
31
+ showForked: import("@angular/core").InputSignal<boolean>;
32
+ showOwn: import("@angular/core").InputSignal<boolean>;
33
33
  loading: Observable<boolean>;
34
34
  gitProviders: typeof GitProviders;
35
35
  currentRepo: GitRepository | undefined;
@@ -46,5 +46,5 @@ export declare class GitPortfolioComponent implements OnInit, OnDestroy {
46
46
  getForkedGitRepositories(gitRepositories: GitRepositories, gitProvider: string): GitRepository[];
47
47
  hasRepositories(gitRepositories: GitRepositories, gitProvider: string, type: 'own' | 'forked'): boolean;
48
48
  static ɵfac: i0.ɵɵFactoryDeclaration<GitPortfolioComponent, never>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<GitPortfolioComponent, "git-portfolio", never, { "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "cardStyle": { "alias": "cardStyle"; "required": false; }; "textStyle": { "alias": "textStyle"; "required": false; }; "checkColor": { "alias": "checkColor"; "required": false; }; "forkColor": { "alias": "forkColor"; "required": false; }; "issueColor": { "alias": "issueColor"; "required": false; }; "pasteColor": { "alias": "pasteColor"; "required": false; }; "starColor": { "alias": "starColor"; "required": false; }; "gitProviderConfig": { "alias": "gitProviderConfig"; "required": false; }; "showForked": { "alias": "showForked"; "required": false; }; "showOwn": { "alias": "showOwn"; "required": false; }; }, {}, never, never, true, never>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<GitPortfolioComponent, "git-portfolio", never, { "buttonStyle": { "alias": "buttonStyle"; "required": false; "isSignal": true; }; "cardStyle": { "alias": "cardStyle"; "required": false; "isSignal": true; }; "textStyle": { "alias": "textStyle"; "required": false; "isSignal": true; }; "checkColor": { "alias": "checkColor"; "required": false; "isSignal": true; }; "forkColor": { "alias": "forkColor"; "required": false; "isSignal": true; }; "issueColor": { "alias": "issueColor"; "required": false; "isSignal": true; }; "pasteColor": { "alias": "pasteColor"; "required": false; "isSignal": true; }; "starColor": { "alias": "starColor"; "required": false; "isSignal": true; }; "gitProviderConfig": { "alias": "gitProviderConfig"; "required": false; "isSignal": true; }; "showForked": { "alias": "showForked"; "required": false; "isSignal": true; }; "showOwn": { "alias": "showOwn"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
50
50
  }