@tehw0lf/git-portfolio 0.0.12 → 0.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -5
- package/esm2020/lib/git-portfolio.component.mjs +34 -17
- package/esm2020/lib/git-portfolio.module.mjs +13 -15
- package/esm2020/lib/git-provider.service.mjs +3 -3
- package/esm2020/lib/octicon.directive.mjs +3 -3
- package/esm2020/lib/repo-card/repo-card.component.mjs +24 -15
- package/fesm2015/tehw0lf-git-portfolio.mjs +71 -48
- package/fesm2015/tehw0lf-git-portfolio.mjs.map +1 -1
- package/fesm2020/tehw0lf-git-portfolio.mjs +71 -48
- package/fesm2020/tehw0lf-git-portfolio.mjs.map +1 -1
- package/lib/git-portfolio.component.d.ts +18 -5
- package/lib/octicon.directive.d.ts +1 -1
- package/lib/repo-card/repo-card.component.d.ts +9 -5
- package/package.json +14 -14
- package/schematics/ng-add/index.js +2 -4
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/index.spec.js +21 -22
- package/schematics/ng-add/index.spec.js.map +1 -1
- package/schematics/ng-add/setup.js +1 -1
- package/schematics/testing/test-project.d.ts +2 -2
- package/schematics/testing/test-project.js +9 -2
- package/schematics/testing/test-project.js.map +1 -1
- package/tehw0lf-git-portfolio.d.ts +0 -5
|
@@ -4,17 +4,17 @@ import { BehaviorSubject, zip, of, Subject } from 'rxjs';
|
|
|
4
4
|
import { tap, map, takeUntil } from 'rxjs/operators';
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
6
6
|
import { HttpClientModule } from '@angular/common/http';
|
|
7
|
-
import * as i2
|
|
7
|
+
import * as i2 from '@angular/common';
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
9
|
+
import * as i3$1 from '@angular/material/progress-spinner';
|
|
8
10
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
9
|
-
import * as
|
|
11
|
+
import * as i5 from '@angular/flex-layout/flex';
|
|
12
|
+
import * as i6 from '@angular/flex-layout/extended';
|
|
13
|
+
import * as i2$1 from '@angular/material/card';
|
|
10
14
|
import { MatCardModule } from '@angular/material/card';
|
|
11
|
-
import * as
|
|
15
|
+
import * as i3 from '@angular/material/button';
|
|
12
16
|
import { MatButtonModule } from '@angular/material/button';
|
|
13
|
-
import * as i4 from '@angular/
|
|
14
|
-
import { CommonModule } from '@angular/common';
|
|
15
|
-
import * as i4$1 from '@angular/flex-layout/extended';
|
|
16
|
-
import * as i5 from '@angular/flex-layout/flex';
|
|
17
|
-
import * as i7 from '@angular/cdk/clipboard';
|
|
17
|
+
import * as i4 from '@angular/cdk/clipboard';
|
|
18
18
|
import { ClipboardModule } from '@angular/cdk/clipboard';
|
|
19
19
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
20
20
|
import { BrowserModule } from '@angular/platform-browser';
|
|
@@ -77,9 +77,9 @@ class GitProviderService {
|
|
|
77
77
|
return of([new GitRepository()]);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
GitProviderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
81
|
-
GitProviderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
80
|
+
GitProviderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitProviderService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
81
|
+
GitProviderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitProviderService, providedIn: 'root' });
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitProviderService, decorators: [{
|
|
83
83
|
type: Injectable,
|
|
84
84
|
args: [{
|
|
85
85
|
providedIn: 'root'
|
|
@@ -121,9 +121,9 @@ class OcticonDirective {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
OcticonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
125
|
-
OcticonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
124
|
+
OcticonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: OcticonDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
125
|
+
OcticonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.3", type: OcticonDirective, selector: "[octicon]", inputs: { octicon: "octicon", color: "color", width: "width" }, ngImport: i0 });
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: OcticonDirective, decorators: [{
|
|
127
127
|
type: Directive,
|
|
128
128
|
args: [{
|
|
129
129
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -137,6 +137,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImpor
|
|
|
137
137
|
type: Input
|
|
138
138
|
}] } });
|
|
139
139
|
|
|
140
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
140
141
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
141
142
|
const githubLanguageColors = require('github-language-colors/colors.json');
|
|
142
143
|
class RepoCardComponent {
|
|
@@ -150,18 +151,26 @@ class RepoCardComponent {
|
|
|
150
151
|
this.copiedToClipboardEvent.emit();
|
|
151
152
|
}
|
|
152
153
|
}
|
|
153
|
-
RepoCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
154
|
-
RepoCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
154
|
+
RepoCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RepoCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
155
|
+
RepoCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: RepoCardComponent, selector: "repo-card", inputs: { buttonStyle: "buttonStyle", cardStyle: "cardStyle", textStyle: "textStyle", checkColor: "checkColor", forkColor: "forkColor", issueColor: "issueColor", pasteColor: "pasteColor", starColor: "starColor", gitRepo: "gitRepo", isCopied: "isCopied" }, outputs: { copiedToClipboardEvent: "copiedToClipboardEvent" }, ngImport: i0, template: "<mat-card [ngStyle]=\"cardStyle\">\n <mat-card-header>\n <div\n mat-card-avatar\n [ngStyle]=\"{\n 'background-image':\n 'url(' +\n (gitRepo.owner?.avatar_url || gitRepo.namespace?.avatar_url) +\n ')',\n 'background-size': 'cover',\n 'border-radius': 0\n }\"\n ></div>\n <mat-card-title\n ><a\n mat-button\n [ngStyle]=\"buttonStyle\"\n target=\"_blank\"\n href=\"{{ gitRepo.html_url || gitRepo.web_url }}\"\n >\n {{ gitRepo.name }}\n </a>\n </mat-card-title>\n <mat-card-subtitle fxLayout=\"row\" fxLayoutGap=\"12px\">\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo.language !== undefined\n ? githubLanguageColors[gitRepo.language]\n : 'transparent'\n }\"\n class=\"language-icon\"\n ></div>\n <div [ngStyle]=\"textStyle\">{{ gitRepo.language }}</div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"star\" [color]=\"starColor\"></div>\n <div [ngStyle]=\"textStyle\">\n {{ gitRepo.stargazers_count || gitRepo.star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"repo-forked\" [color]=\"forkColor\"></div>\n <div [ngStyle]=\"textStyle\">{{ gitRepo.forks_count }}</div>\n </div>\n <div\n *ngIf=\"gitRepo.open_issues_count\"\n class=\"info-item\"\n fxLayout=\"row\"\n fxLayoutGap=\"5px\"\n >\n <div octicon=\"issue-opened\" [color]=\"issueColor\"></div>\n <div [ngStyle]=\"textStyle\">\n {{ gitRepo.open_issues_count }}\n </div>\n </div>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <p>{{ gitRepo.description }}</p>\n </mat-card-content>\n <mat-card-footer fxLayout=\"row\" fxLayoutGap=\"12px\">\n <span class=\"mat-footer-cell\" fxFlex>\n <span class=\"footer-span\" [ngStyle]=\"textStyle\"\n >Created: {{ gitRepo.created_at | date }}</span\n >\n <span class=\"footer-span\" [ngStyle]=\"textStyle\"\n >Updated:\n {{ gitRepo.pushed_at || gitRepo.last_activity_at | date }}</span\n >\n </span>\n <span class=\"mat-footer-cell\">\n <button\n [ngStyle]=\"buttonStyle\"\n mat-button\n [cdkCopyToClipboard]=\"\n gitRepo.clone_url || gitRepo.http_url_to_repo || ''\n \"\n (cdkCopyToClipboardCopied)=\"copiedToClipboard()\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n *ngIf=\"isCopied\"\n octicon=\"check\"\n [color]=\"checkColor\"\n width=\"24\"\n ></div>\n <div octicon=\"paste\" [color]=\"pasteColor\" width=\"24px\"></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n", styles: [".clipboard-button{line-height:24px!important;padding:0;margin-bottom:0}.clipboard-button span{font-size:20px}.mat-button{vertical-align:middle;line-height:36px;font-size:24px;margin:0 10px 0 0;text-align:center;text-decoration:none}.mat-card{display:flex;flex-direction:column;width:450px}.mat-card-avatar{height:53px;width:53px}.mat-card-subtitle{padding-left:16px}.mat-card-header{flex-shrink:0}.mat-card-content{flex-grow:1;overflow:auto}.mat-card-footer{padding:16px}.footer-span{display:block;font-size:12px}.language-icon{height:12px;width:12px;border-radius:50%;margin-top:2px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2$1.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { kind: "component", type: i2$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i2$1.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { kind: "directive", type: i2$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: i2$1.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: i2$1.MatCardFooter, selector: "mat-card-footer" }, { kind: "directive", type: i2$1.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "component", type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i4.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i6.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "directive", type: OcticonDirective, selector: "[octicon]", inputs: ["octicon", "color", "width"] }, { kind: "pipe", type: i2.DatePipe, name: "date" }] });
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: RepoCardComponent, decorators: [{
|
|
156
157
|
type: Component,
|
|
157
|
-
args: [{ selector: 'repo-card', template: "<mat-card
|
|
158
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
158
|
+
args: [{ selector: 'repo-card', template: "<mat-card [ngStyle]=\"cardStyle\">\n <mat-card-header>\n <div\n mat-card-avatar\n [ngStyle]=\"{\n 'background-image':\n 'url(' +\n (gitRepo.owner?.avatar_url || gitRepo.namespace?.avatar_url) +\n ')',\n 'background-size': 'cover',\n 'border-radius': 0\n }\"\n ></div>\n <mat-card-title\n ><a\n mat-button\n [ngStyle]=\"buttonStyle\"\n target=\"_blank\"\n href=\"{{ gitRepo.html_url || gitRepo.web_url }}\"\n >\n {{ gitRepo.name }}\n </a>\n </mat-card-title>\n <mat-card-subtitle fxLayout=\"row\" fxLayoutGap=\"12px\">\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo.language !== undefined\n ? githubLanguageColors[gitRepo.language]\n : 'transparent'\n }\"\n class=\"language-icon\"\n ></div>\n <div [ngStyle]=\"textStyle\">{{ gitRepo.language }}</div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"star\" [color]=\"starColor\"></div>\n <div [ngStyle]=\"textStyle\">\n {{ gitRepo.stargazers_count || gitRepo.star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"repo-forked\" [color]=\"forkColor\"></div>\n <div [ngStyle]=\"textStyle\">{{ gitRepo.forks_count }}</div>\n </div>\n <div\n *ngIf=\"gitRepo.open_issues_count\"\n class=\"info-item\"\n fxLayout=\"row\"\n fxLayoutGap=\"5px\"\n >\n <div octicon=\"issue-opened\" [color]=\"issueColor\"></div>\n <div [ngStyle]=\"textStyle\">\n {{ gitRepo.open_issues_count }}\n </div>\n </div>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <p>{{ gitRepo.description }}</p>\n </mat-card-content>\n <mat-card-footer fxLayout=\"row\" fxLayoutGap=\"12px\">\n <span class=\"mat-footer-cell\" fxFlex>\n <span class=\"footer-span\" [ngStyle]=\"textStyle\"\n >Created: {{ gitRepo.created_at | date }}</span\n >\n <span class=\"footer-span\" [ngStyle]=\"textStyle\"\n >Updated:\n {{ gitRepo.pushed_at || gitRepo.last_activity_at | date }}</span\n >\n </span>\n <span class=\"mat-footer-cell\">\n <button\n [ngStyle]=\"buttonStyle\"\n mat-button\n [cdkCopyToClipboard]=\"\n gitRepo.clone_url || gitRepo.http_url_to_repo || ''\n \"\n (cdkCopyToClipboardCopied)=\"copiedToClipboard()\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n *ngIf=\"isCopied\"\n octicon=\"check\"\n [color]=\"checkColor\"\n width=\"24\"\n ></div>\n <div octicon=\"paste\" [color]=\"pasteColor\" width=\"24px\"></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n", styles: [".clipboard-button{line-height:24px!important;padding:0;margin-bottom:0}.clipboard-button span{font-size:20px}.mat-button{vertical-align:middle;line-height:36px;font-size:24px;margin:0 10px 0 0;text-align:center;text-decoration:none}.mat-card{display:flex;flex-direction:column;width:450px}.mat-card-avatar{height:53px;width:53px}.mat-card-subtitle{padding-left:16px}.mat-card-header{flex-shrink:0}.mat-card-content{flex-grow:1;overflow:auto}.mat-card-footer{padding:16px}.footer-span{display:block;font-size:12px}.language-icon{height:12px;width:12px;border-radius:50%;margin-top:2px}\n"] }]
|
|
159
|
+
}], ctorParameters: function () { return []; }, propDecorators: { buttonStyle: [{
|
|
160
|
+
type: Input
|
|
161
|
+
}], cardStyle: [{
|
|
159
162
|
type: Input
|
|
160
|
-
}],
|
|
163
|
+
}], textStyle: [{
|
|
161
164
|
type: Input
|
|
162
|
-
}],
|
|
165
|
+
}], checkColor: [{
|
|
163
166
|
type: Input
|
|
164
|
-
}],
|
|
167
|
+
}], forkColor: [{
|
|
168
|
+
type: Input
|
|
169
|
+
}], issueColor: [{
|
|
170
|
+
type: Input
|
|
171
|
+
}], pasteColor: [{
|
|
172
|
+
type: Input
|
|
173
|
+
}], starColor: [{
|
|
165
174
|
type: Input
|
|
166
175
|
}], gitRepo: [{
|
|
167
176
|
type: Input
|
|
@@ -174,10 +183,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImpor
|
|
|
174
183
|
class GitPortfolioComponent {
|
|
175
184
|
constructor(gitProviderService) {
|
|
176
185
|
this.gitProviderService = gitProviderService;
|
|
177
|
-
this.
|
|
178
|
-
this.
|
|
179
|
-
|
|
180
|
-
|
|
186
|
+
this.buttonStyle = { 'background-color': '#424242', color: '#cc7832' };
|
|
187
|
+
this.cardStyle = {
|
|
188
|
+
color: '#437da8',
|
|
189
|
+
'background-color': 'rgba(34, 34, 34, 0.75)',
|
|
190
|
+
'backdrop-filter': 'blur(50px)'
|
|
191
|
+
};
|
|
192
|
+
this.textStyle = { color: '#437da8' };
|
|
193
|
+
this.checkColor = '#38e038';
|
|
194
|
+
this.forkColor = '#437da8';
|
|
195
|
+
this.issueColor = 'rgb(56, 224, 56)';
|
|
196
|
+
this.pasteColor = '#cc7832';
|
|
197
|
+
this.starColor = 'gold';
|
|
181
198
|
this.gitProviderConfig = {
|
|
182
199
|
github: 'tehw0lf',
|
|
183
200
|
gitlab: 'tehw0lf'
|
|
@@ -277,18 +294,26 @@ class GitPortfolioComponent {
|
|
|
277
294
|
return false;
|
|
278
295
|
}
|
|
279
296
|
}
|
|
280
|
-
GitPortfolioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
281
|
-
GitPortfolioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
297
|
+
GitPortfolioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioComponent, deps: [{ token: GitProviderService }], target: i0.ɵɵFactoryTarget.Component });
|
|
298
|
+
GitPortfolioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: GitPortfolioComponent, selector: "git-portfolio", inputs: { buttonStyle: "buttonStyle", cardStyle: "cardStyle", textStyle: "textStyle", checkColor: "checkColor", forkColor: "forkColor", issueColor: "issueColor", pasteColor: "pasteColor", starColor: "starColor", gitProviderConfig: "gitProviderConfig", showForked: "showForked", showOwn: "showOwn" }, ngImport: i0, template: "<div *ngIf=\"gitRepositories$ | async as gitRepositories\">\n <div *ngFor=\"let gitProvider of gitProviders | keyvalue\">\n <h1 [ngStyle]=\"textStyle\">{{ gitProvider.value }}</h1>\n <div *ngIf=\"showOwn\">\n <h2 [ngStyle]=\"textStyle\" class=\"mat-headline\">Own Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getOwnGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [buttonStyle]=\"buttonStyle\"\n [cardStyle]=\"cardStyle\"\n [textStyle]=\"textStyle\"\n [checkColor]=\"checkColor\"\n [forkColor]=\"forkColor\"\n [issueColor]=\"issueColor\"\n [pasteColor]=\"pasteColor\"\n [starColor]=\"starColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n >\n </repo-card>\n <div\n [ngStyle]=\"textStyle\"\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'own')\n \"\n >\n This user has not created any repositories yet\n </div>\n </div>\n </div>\n <div *ngIf=\"showForked\">\n <h2 [ngStyle]=\"textStyle\" class=\"mat-headline\">Forked Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getForkedGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [buttonStyle]=\"buttonStyle\"\n [cardStyle]=\"cardStyle\"\n [textStyle]=\"textStyle\"\n [checkColor]=\"checkColor\"\n [forkColor]=\"forkColor\"\n [issueColor]=\"issueColor\"\n [pasteColor]=\"pasteColor\"\n [starColor]=\"starColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n ></repo-card>\n <div\n [ngStyle]=\"textStyle\"\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'forked')\n \"\n >\n This user has not forked any repositories yet\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [".repository-card{max-width:450px;margin:0 32px 32px 0}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i6.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "component", type: RepoCardComponent, selector: "repo-card", inputs: ["buttonStyle", "cardStyle", "textStyle", "checkColor", "forkColor", "issueColor", "pasteColor", "starColor", "gitRepo", "isCopied"], outputs: ["copiedToClipboardEvent"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.KeyValuePipe, name: "keyvalue" }] });
|
|
299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioComponent, decorators: [{
|
|
283
300
|
type: Component,
|
|
284
|
-
args: [{ selector: 'git-portfolio', template: "<div *ngIf=\"gitRepositories$ | async as gitRepositories\">\n <div *ngFor=\"let gitProvider of gitProviders | keyvalue\">\n <h1>{{ gitProvider.value }}</h1>\n <div *ngIf=\"showOwn\">\n <h2 class=\"mat-headline\">Own Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getOwnGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [
|
|
285
|
-
}], ctorParameters: function () { return [{ type: GitProviderService }]; }, propDecorators: {
|
|
301
|
+
args: [{ selector: 'git-portfolio', template: "<div *ngIf=\"gitRepositories$ | async as gitRepositories\">\n <div *ngFor=\"let gitProvider of gitProviders | keyvalue\">\n <h1 [ngStyle]=\"textStyle\">{{ gitProvider.value }}</h1>\n <div *ngIf=\"showOwn\">\n <h2 [ngStyle]=\"textStyle\" class=\"mat-headline\">Own Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getOwnGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [buttonStyle]=\"buttonStyle\"\n [cardStyle]=\"cardStyle\"\n [textStyle]=\"textStyle\"\n [checkColor]=\"checkColor\"\n [forkColor]=\"forkColor\"\n [issueColor]=\"issueColor\"\n [pasteColor]=\"pasteColor\"\n [starColor]=\"starColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n >\n </repo-card>\n <div\n [ngStyle]=\"textStyle\"\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'own')\n \"\n >\n This user has not created any repositories yet\n </div>\n </div>\n </div>\n <div *ngIf=\"showForked\">\n <h2 [ngStyle]=\"textStyle\" class=\"mat-headline\">Forked Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getForkedGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [buttonStyle]=\"buttonStyle\"\n [cardStyle]=\"cardStyle\"\n [textStyle]=\"textStyle\"\n [checkColor]=\"checkColor\"\n [forkColor]=\"forkColor\"\n [issueColor]=\"issueColor\"\n [pasteColor]=\"pasteColor\"\n [starColor]=\"starColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n ></repo-card>\n <div\n [ngStyle]=\"textStyle\"\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'forked')\n \"\n >\n This user has not forked any repositories yet\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [".repository-card{max-width:450px;margin:0 32px 32px 0}\n"] }]
|
|
302
|
+
}], ctorParameters: function () { return [{ type: GitProviderService }]; }, propDecorators: { buttonStyle: [{
|
|
303
|
+
type: Input
|
|
304
|
+
}], cardStyle: [{
|
|
286
305
|
type: Input
|
|
287
|
-
}],
|
|
306
|
+
}], textStyle: [{
|
|
288
307
|
type: Input
|
|
289
|
-
}],
|
|
308
|
+
}], checkColor: [{
|
|
290
309
|
type: Input
|
|
291
|
-
}],
|
|
310
|
+
}], forkColor: [{
|
|
311
|
+
type: Input
|
|
312
|
+
}], issueColor: [{
|
|
313
|
+
type: Input
|
|
314
|
+
}], pasteColor: [{
|
|
315
|
+
type: Input
|
|
316
|
+
}], starColor: [{
|
|
292
317
|
type: Input
|
|
293
318
|
}], gitProviderConfig: [{
|
|
294
319
|
type: Input
|
|
@@ -300,8 +325,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImpor
|
|
|
300
325
|
|
|
301
326
|
class GitPortfolioModule {
|
|
302
327
|
}
|
|
303
|
-
GitPortfolioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
304
|
-
GitPortfolioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
328
|
+
GitPortfolioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
329
|
+
GitPortfolioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioModule, declarations: [GitPortfolioComponent, RepoCardComponent, OcticonDirective], imports: [CommonModule,
|
|
305
330
|
BrowserModule,
|
|
306
331
|
BrowserAnimationsModule,
|
|
307
332
|
HttpClientModule,
|
|
@@ -310,18 +335,16 @@ GitPortfolioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
310
335
|
MatProgressSpinnerModule,
|
|
311
336
|
ClipboardModule,
|
|
312
337
|
FlexLayoutModule], exports: [GitPortfolioComponent, OcticonDirective] });
|
|
313
|
-
GitPortfolioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
]] });
|
|
324
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: GitPortfolioModule, decorators: [{
|
|
338
|
+
GitPortfolioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioModule, providers: [GitProviderService], imports: [CommonModule,
|
|
339
|
+
BrowserModule,
|
|
340
|
+
BrowserAnimationsModule,
|
|
341
|
+
HttpClientModule,
|
|
342
|
+
MatCardModule,
|
|
343
|
+
MatButtonModule,
|
|
344
|
+
MatProgressSpinnerModule,
|
|
345
|
+
ClipboardModule,
|
|
346
|
+
FlexLayoutModule] });
|
|
347
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: GitPortfolioModule, decorators: [{
|
|
325
348
|
type: NgModule,
|
|
326
349
|
args: [{
|
|
327
350
|
declarations: [GitPortfolioComponent, RepoCardComponent, OcticonDirective],
|
|
@@ -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/types/git-providers-type.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/git-portfolio.component.ts","../../../../libs/git-portfolio/src/lib/git-portfolio.component.html","../../../../libs/git-portfolio/src/lib/git-portfolio.module.ts","../../../../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","/* eslint-disable no-shadow */\nexport enum GitProviders {\n github = 'GitHub',\n gitlab = 'GitLab'\n}\n","import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';\n\n// eslint-disable-next-line @typescript-eslint/no-var-requires\nconst octicons = require('@primer/octicons');\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[octicon]'\n})\nexport class OcticonDirective implements OnInit {\n @Input() octicon: string | undefined;\n @Input() color: string | undefined;\n @Input() width: string | undefined;\n\n constructor(private elementRef: ElementRef, private renderer: Renderer2) {}\n\n ngOnInit(): void {\n const el: HTMLElement = this.elementRef.nativeElement;\n if (this.octicon) {\n if (octicons[this.octicon] !== undefined) {\n el.innerHTML = octicons[this.octicon].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 { Component, EventEmitter, Input, Output } from '@angular/core';\n\nimport { GitRepository } from '../types/git-repository-type';\n\n// eslint-disable-next-line @typescript-eslint/no-var-requires\nconst githubLanguageColors = require('github-language-colors/colors.json');\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})\nexport class RepoCardComponent {\n @Input() backgroundColor!: string;\n @Input() backdropFilter!: string;\n @Input() buttonColor!: string;\n @Input() cardColor!: string;\n\n @Input()\n gitRepo!: GitRepository;\n\n @Input()\n public isCopied = false;\n\n @Output()\n public copiedToClipboardEvent: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n public githubLanguageColors = githubLanguageColors;\n\n constructor() {\n //\n }\n copiedToClipboard(): void {\n this.copiedToClipboardEvent.emit();\n }\n}\n","<mat-card\n [ngStyle]=\"{\n color: cardColor,\n 'background-color': backgroundColor,\n 'backdrop-filter': backdropFilter\n }\"\n>\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]=\"{ color: buttonColor }\"\n target=\"_blank\"\n href=\"{{ gitRepo.html_url || gitRepo.web_url }}\"\n >\n {{ gitRepo.name }}\n </a>\n </mat-card-title>\n <mat-card-subtitle fxLayout=\"row\" fxLayoutGap=\"12px\">\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo.language !== undefined\n ? githubLanguageColors[gitRepo.language]\n : 'transparent'\n }\"\n class=\"language-icon\"\n ></div>\n <div>{{ gitRepo.language }}</div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"star\" color=\"gold\"></div>\n <div>{{ gitRepo.stargazers_count || gitRepo.star_count || 0 }}</div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"repo-forked\" color=\"#437da8\"></div>\n <div>{{ gitRepo.forks_count }}</div>\n </div>\n <div\n *ngIf=\"gitRepo.open_issues_count\"\n class=\"info-item\"\n fxLayout=\"row\"\n fxLayoutGap=\"5px\"\n >\n <div octicon=\"issue-opened\" color=\"rgb(56, 224, 56)\"></div>\n <div>{{ gitRepo.open_issues_count }}</div>\n </div>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <p>{{ gitRepo.description }}</p>\n </mat-card-content>\n <mat-card-footer fxLayout=\"row\" fxLayoutGap=\"12px\">\n <span class=\"mat-footer-cell\" fxFlex>\n <span class=\"footer-span\" [ngStyle]=\"{ color: cardColor }\"\n >Created: {{ gitRepo.created_at | date }}</span\n >\n <span class=\"footer-span\" [ngStyle]=\"{ color: cardColor }\"\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]=\"{ color: buttonColor }\"\n mat-button\n [cdkCopyToClipboard]=\"\n gitRepo.clone_url || gitRepo.http_url_to_repo || ''\n \"\n (cdkCopyToClipboardCopied)=\"copiedToClipboard()\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n *ngIf=\"isCopied\"\n octicon=\"check\"\n color=\"#38e038\"\n width=\"24\"\n ></div>\n <div octicon=\"paste\" color=\"#cc7832\" width=\"24px\"></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n","import { Component, Input, OnDestroy, OnInit } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { GitProviderService } from './git-provider.service';\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})\nexport class GitPortfolioComponent implements OnInit, OnDestroy {\n @Input()\n backgroundColor = 'rgba(34, 34, 34, 0.75)';\n\n @Input()\n backdropFilter = 'blur(50px)';\n\n @Input()\n buttonColor = '#cc7832';\n\n @Input()\n cardColor = 'lightgray';\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 private unsubscribe$ = new Subject<void>();\n\n constructor(private gitProviderService: GitProviderService) {\n this.loading = this.gitProviderService.loading;\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","<div *ngIf=\"gitRepositories$ | async as gitRepositories\">\n <div *ngFor=\"let gitProvider of gitProviders | keyvalue\">\n <h1>{{ gitProvider.value }}</h1>\n <div *ngIf=\"showOwn\">\n <h2 class=\"mat-headline\">Own Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getOwnGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [backgroundColor]=\"backgroundColor\"\n [backdropFilter]=\"backdropFilter\"\n [buttonColor]=\"buttonColor\"\n [cardColor]=\"cardColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n >\n </repo-card>\n <div\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'own')\n \"\n >\n This user has not created any repositories yet\n </div>\n </div>\n </div>\n <div *ngIf=\"showForked\">\n <h2 class=\"mat-headline\">Forked Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getForkedGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [backgroundColor]=\"backgroundColor\"\n [backdropFilter]=\"backdropFilter\"\n [buttonColor]=\"buttonColor\"\n [cardColor]=\"cardColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n ></repo-card>\n <div\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'forked')\n \"\n >\n This user has not forked any repositories yet\n </div>\n </div>\n </div>\n </div>\n</div>\n","import { ClipboardModule } from '@angular/cdk/clipboard';\nimport { CommonModule } from '@angular/common';\nimport { HttpClientModule } from '@angular/common/http';\nimport { NgModule } from '@angular/core';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\n\nimport { GitPortfolioComponent } from './git-portfolio.component';\nimport { GitProviderService } from './git-provider.service';\nimport { OcticonDirective } from './octicon.directive';\nimport { RepoCardComponent } from './repo-card/repo-card.component';\n\n@NgModule({\n declarations: [GitPortfolioComponent, RepoCardComponent, OcticonDirective],\n imports: [\n CommonModule,\n BrowserModule,\n BrowserAnimationsModule,\n HttpClientModule,\n MatCardModule,\n MatButtonModule,\n MatProgressSpinnerModule,\n ClipboardModule,\n FlexLayoutModule\n ],\n exports: [GitPortfolioComponent, OcticonDirective],\n providers: [GitProviderService]\n})\nexport class GitPortfolioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;MACa,aAAa;;;MCWb,kBAAkB;IAI7B,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;QAH5B,wBAAmB,GAAG,IAAI,eAAe,CAAU,IAAI,CAAC,CAAC;QACzD,sBAAiB,GAAG,IAAI,eAAe,CAAkB,EAAE,CAAC,CAAC;KAE7B;IAExC,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,mBAAmB,CAAC,YAAY,EAAE,CAAC;KAChD;I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ACb,uBAAuB;wBACvB,gBAAgB;wBAChB,aAAa;wBACb,eAAe;wBACf,wBAAwB;wBACxB,eAAe;wBACf,gBAAgB;qBACjB;oBACD,OAAO,EAAE,CAAC,qBAAqB,EAAE,gBAAgB,CAAC;oBAClD,SAAS,EAAE,CAAC,kBAAkB,CAAC;iBAChC;;;AC/BD;;;;;;"}
|
|
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/types/git-providers-type.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/git-portfolio.component.ts","../../../../libs/git-portfolio/src/lib/git-portfolio.component.html","../../../../libs/git-portfolio/src/lib/git-portfolio.module.ts","../../../../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","/* eslint-disable no-shadow */\nexport enum GitProviders {\n github = 'GitHub',\n gitlab = 'GitLab'\n}\n","import { Directive, ElementRef, Input, OnInit, Renderer2 } from '@angular/core';\n\n// eslint-disable-next-line @typescript-eslint/no-var-requires\nconst octicons = require('@primer/octicons');\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[octicon]'\n})\nexport class OcticonDirective implements OnInit {\n @Input() octicon: string | undefined;\n @Input() color: string | undefined;\n @Input() width: string | undefined;\n\n constructor(private elementRef: ElementRef, private renderer: Renderer2) {}\n\n ngOnInit(): void {\n const el: HTMLElement = this.elementRef.nativeElement;\n if (this.octicon) {\n if (octicons[this.octicon] !== undefined) {\n el.innerHTML = octicons[this.octicon].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 { Component, EventEmitter, Input, Output } from '@angular/core';\n\nimport { GitRepository } from '../types/git-repository-type';\n\n// eslint-disable-next-line @typescript-eslint/no-var-requires\nconst githubLanguageColors = require('github-language-colors/colors.json');\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})\nexport class RepoCardComponent {\n @Input() buttonStyle!: any;\n @Input() cardStyle!: any;\n @Input() textStyle!: any;\n @Input() checkColor!: string;\n @Input() forkColor!: string;\n @Input() issueColor!: string;\n @Input() pasteColor!: string;\n @Input() starColor!: string;\n\n @Input()\n gitRepo!: GitRepository;\n\n @Input()\n public isCopied = false;\n\n @Output()\n public copiedToClipboardEvent: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n public githubLanguageColors = githubLanguageColors;\n\n constructor() {\n //\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 fxLayout=\"row\" fxLayoutGap=\"12px\">\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n [ngStyle]=\"{\n 'background-color':\n gitRepo.language !== undefined\n ? githubLanguageColors[gitRepo.language]\n : 'transparent'\n }\"\n class=\"language-icon\"\n ></div>\n <div [ngStyle]=\"textStyle\">{{ gitRepo.language }}</div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"star\" [color]=\"starColor\"></div>\n <div [ngStyle]=\"textStyle\">\n {{ gitRepo.stargazers_count || gitRepo.star_count || 0 }}\n </div>\n </div>\n <div class=\"info-item\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div octicon=\"repo-forked\" [color]=\"forkColor\"></div>\n <div [ngStyle]=\"textStyle\">{{ gitRepo.forks_count }}</div>\n </div>\n <div\n *ngIf=\"gitRepo.open_issues_count\"\n class=\"info-item\"\n fxLayout=\"row\"\n fxLayoutGap=\"5px\"\n >\n <div octicon=\"issue-opened\" [color]=\"issueColor\"></div>\n <div [ngStyle]=\"textStyle\">\n {{ gitRepo.open_issues_count }}\n </div>\n </div>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <p>{{ gitRepo.description }}</p>\n </mat-card-content>\n <mat-card-footer fxLayout=\"row\" fxLayoutGap=\"12px\">\n <span class=\"mat-footer-cell\" fxFlex>\n <span class=\"footer-span\" [ngStyle]=\"textStyle\"\n >Created: {{ gitRepo.created_at | date }}</span\n >\n <span class=\"footer-span\" [ngStyle]=\"textStyle\"\n >Updated:\n {{ gitRepo.pushed_at || gitRepo.last_activity_at | date }}</span\n >\n </span>\n <span class=\"mat-footer-cell\">\n <button\n [ngStyle]=\"buttonStyle\"\n mat-button\n [cdkCopyToClipboard]=\"\n gitRepo.clone_url || gitRepo.http_url_to_repo || ''\n \"\n (cdkCopyToClipboardCopied)=\"copiedToClipboard()\"\n class=\"clipboard-button\"\n >\n <span class=\"mat-button-wrapper\" fxLayout=\"row\" fxLayoutGap=\"5px\">\n <div\n *ngIf=\"isCopied\"\n octicon=\"check\"\n [color]=\"checkColor\"\n width=\"24\"\n ></div>\n <div octicon=\"paste\" [color]=\"pasteColor\" width=\"24px\"></div>\n <span>Copy URL</span>\n </span>\n </button>\n </span>\n </mat-card-footer>\n</mat-card>\n","import { Component, Input, OnDestroy, OnInit } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { GitProviderService } from './git-provider.service';\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})\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 private unsubscribe$ = new Subject<void>();\n\n constructor(private gitProviderService: GitProviderService) {\n this.loading = this.gitProviderService.loading;\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","<div *ngIf=\"gitRepositories$ | async as gitRepositories\">\n <div *ngFor=\"let gitProvider of gitProviders | keyvalue\">\n <h1 [ngStyle]=\"textStyle\">{{ gitProvider.value }}</h1>\n <div *ngIf=\"showOwn\">\n <h2 [ngStyle]=\"textStyle\" class=\"mat-headline\">Own Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getOwnGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [buttonStyle]=\"buttonStyle\"\n [cardStyle]=\"cardStyle\"\n [textStyle]=\"textStyle\"\n [checkColor]=\"checkColor\"\n [forkColor]=\"forkColor\"\n [issueColor]=\"issueColor\"\n [pasteColor]=\"pasteColor\"\n [starColor]=\"starColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n >\n </repo-card>\n <div\n [ngStyle]=\"textStyle\"\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'own')\n \"\n >\n This user has not created any repositories yet\n </div>\n </div>\n </div>\n <div *ngIf=\"showForked\">\n <h2 [ngStyle]=\"textStyle\" class=\"mat-headline\">Forked Repos</h2>\n <div\n fxLayout=\"row wrap\"\n fxLayout.lt-sm=\"column\"\n fxLayoutAlign=\"flex-start\"\n >\n <div *ngIf=\"(loading | async) === true\">\n <mat-spinner></mat-spinner>\n </div>\n <repo-card\n *ngFor=\"\n let gitRepo of getForkedGitRepositories(\n gitRepositories,\n gitProvider.key\n )\n \"\n [buttonStyle]=\"buttonStyle\"\n [cardStyle]=\"cardStyle\"\n [textStyle]=\"textStyle\"\n [checkColor]=\"checkColor\"\n [forkColor]=\"forkColor\"\n [issueColor]=\"issueColor\"\n [pasteColor]=\"pasteColor\"\n [starColor]=\"starColor\"\n [gitRepo]=\"gitRepo\"\n [isCopied]=\"isCopiedToClipboard(gitRepo)\"\n (copiedToClipboardEvent)=\"copyToClipboard(gitRepo)\"\n class=\"repository-card\"\n fxFlex=\"0 1 calc(33.3% - 32px)\"\n fxFlex.lt-md=\"0 1 calc(50% - 32px)\"\n fxFlex.lt-sm=\"100%\"\n fxLayoutAlign=\"stretch\"\n ></repo-card>\n <div\n [ngStyle]=\"textStyle\"\n *ngIf=\"\n (loading | async) === false &&\n !hasRepositories(gitRepositories, gitProvider.key, 'forked')\n \"\n >\n This user has not forked any repositories yet\n </div>\n </div>\n </div>\n </div>\n</div>\n","import { ClipboardModule } from '@angular/cdk/clipboard';\nimport { CommonModule } from '@angular/common';\nimport { HttpClientModule } from '@angular/common/http';\nimport { NgModule } from '@angular/core';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\n\nimport { GitPortfolioComponent } from './git-portfolio.component';\nimport { GitProviderService } from './git-provider.service';\nimport { OcticonDirective } from './octicon.directive';\nimport { RepoCardComponent } from './repo-card/repo-card.component';\n\n@NgModule({\n declarations: [GitPortfolioComponent, RepoCardComponent, OcticonDirective],\n imports: [\n CommonModule,\n BrowserModule,\n BrowserAnimationsModule,\n HttpClientModule,\n MatCardModule,\n MatButtonModule,\n MatProgressSpinnerModule,\n ClipboardModule,\n FlexLayoutModule\n ],\n exports: [GitPortfolioComponent, OcticonDirective],\n providers: [GitProviderService]\n})\nexport class GitPortfolioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i7.OcticonDirective","i1.GitProviderService","i3","i4","i5","i6.RepoCardComponent"],"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,iBA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BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAFlB,SAAA,EAAA,CAAC,kBAAkB,CAAC,YAX7B,YAAY;QACZ,aAAa;QACb,uBAAuB;QACvB,gBAAgB;QAChB,aAAa;QACb,eAAe;QACf,wBAAwB;QACxB,eAAe;QACf,gBAAgB,CAAA,EAAA,CAAA,CAAA;2FAKP,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAhB9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,qBAAqB,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;AAC1E,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBACb,uBAAuB;wBACvB,gBAAgB;wBAChB,aAAa;wBACb,eAAe;wBACf,wBAAwB;wBACxB,eAAe;wBACf,gBAAgB;AACjB,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,qBAAqB,EAAE,gBAAgB,CAAC;oBAClD,SAAS,EAAE,CAAC,kBAAkB,CAAC;AAChC,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
|
|
@@ -8,10 +8,23 @@ import { GitRepository } from './types/git-repository-type';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class GitPortfolioComponent implements OnInit, OnDestroy {
|
|
10
10
|
private gitProviderService;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
buttonStyle: {
|
|
12
|
+
'background-color': string;
|
|
13
|
+
color: string;
|
|
14
|
+
};
|
|
15
|
+
cardStyle: {
|
|
16
|
+
color: string;
|
|
17
|
+
'background-color': string;
|
|
18
|
+
'backdrop-filter': string;
|
|
19
|
+
};
|
|
20
|
+
textStyle: {
|
|
21
|
+
color: string;
|
|
22
|
+
};
|
|
23
|
+
checkColor: string;
|
|
24
|
+
forkColor: string;
|
|
25
|
+
issueColor: string;
|
|
26
|
+
pasteColor: string;
|
|
27
|
+
starColor: string;
|
|
15
28
|
gitProviderConfig: GitProviderConfig;
|
|
16
29
|
showForked: boolean;
|
|
17
30
|
showOwn: boolean;
|
|
@@ -30,5 +43,5 @@ export declare class GitPortfolioComponent implements OnInit, OnDestroy {
|
|
|
30
43
|
getForkedGitRepositories(gitRepositories: GitRepositories, gitProvider: string): GitRepository[];
|
|
31
44
|
hasRepositories(gitRepositories: GitRepositories, gitProvider: string, type: 'own' | 'forked'): boolean;
|
|
32
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<GitPortfolioComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GitPortfolioComponent, "git-portfolio", never, { "
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GitPortfolioComponent, "git-portfolio", never, { "buttonStyle": "buttonStyle"; "cardStyle": "cardStyle"; "textStyle": "textStyle"; "checkColor": "checkColor"; "forkColor": "forkColor"; "issueColor": "issueColor"; "pasteColor": "pasteColor"; "starColor": "starColor"; "gitProviderConfig": "gitProviderConfig"; "showForked": "showForked"; "showOwn": "showOwn"; }, {}, never, never, false>;
|
|
34
47
|
}
|
|
@@ -9,5 +9,5 @@ export declare class OcticonDirective implements OnInit {
|
|
|
9
9
|
constructor(elementRef: ElementRef, renderer: Renderer2);
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<OcticonDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<OcticonDirective, "[octicon]", never, { "octicon": "octicon"; "color": "color"; "width": "width"; }, {}, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OcticonDirective, "[octicon]", never, { "octicon": "octicon"; "color": "color"; "width": "width"; }, {}, never, never, false>;
|
|
13
13
|
}
|
|
@@ -2,10 +2,14 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { GitRepository } from '../types/git-repository-type';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class RepoCardComponent {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
buttonStyle: any;
|
|
6
|
+
cardStyle: any;
|
|
7
|
+
textStyle: any;
|
|
8
|
+
checkColor: string;
|
|
9
|
+
forkColor: string;
|
|
10
|
+
issueColor: string;
|
|
11
|
+
pasteColor: string;
|
|
12
|
+
starColor: string;
|
|
9
13
|
gitRepo: GitRepository;
|
|
10
14
|
isCopied: boolean;
|
|
11
15
|
copiedToClipboardEvent: EventEmitter<boolean>;
|
|
@@ -13,5 +17,5 @@ export declare class RepoCardComponent {
|
|
|
13
17
|
constructor();
|
|
14
18
|
copiedToClipboard(): void;
|
|
15
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<RepoCardComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RepoCardComponent, "repo-card", never, { "
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RepoCardComponent, "repo-card", never, { "buttonStyle": "buttonStyle"; "cardStyle": "cardStyle"; "textStyle": "textStyle"; "checkColor": "checkColor"; "forkColor": "forkColor"; "issueColor": "issueColor"; "pasteColor": "pasteColor"; "starColor": "starColor"; "gitRepo": "gitRepo"; "isCopied": "isCopied"; }, { "copiedToClipboardEvent": "copiedToClipboardEvent"; }, never, never, false>;
|
|
17
21
|
}
|