@tehw0lf/git-portfolio 0.14.3 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/{esm2020 → esm2022}/index.mjs +1 -2
- package/esm2022/lib/git-portfolio.component.mjs +185 -0
- package/esm2022/lib/git-provider.service.mjs +69 -0
- package/esm2022/lib/octicon.directive.mjs +48 -0
- package/esm2022/lib/repo-card/repo-card.component.mjs +68 -0
- package/fesm2022/tehw0lf-git-portfolio.mjs +371 -0
- package/fesm2022/tehw0lf-git-portfolio.mjs.map +1 -0
- package/index.d.ts +0 -1
- package/lib/git-portfolio.component.d.ts +5 -2
- package/lib/octicon.directive.d.ts +1 -1
- package/lib/repo-card/repo-card.component.d.ts +6 -3
- package/package.json +15 -26
- package/esm2020/lib/git-portfolio.component.mjs +0 -155
- package/esm2020/lib/git-portfolio.module.mjs +0 -56
- package/esm2020/lib/git-provider.service.mjs +0 -69
- package/esm2020/lib/octicon.directive.mjs +0 -46
- package/esm2020/lib/repo-card/repo-card.component.mjs +0 -53
- package/fesm2015/tehw0lf-git-portfolio.mjs +0 -373
- package/fesm2015/tehw0lf-git-portfolio.mjs.map +0 -1
- package/fesm2020/tehw0lf-git-portfolio.mjs +0 -372
- package/fesm2020/tehw0lf-git-portfolio.mjs.map +0 -1
- package/lib/git-portfolio.module.d.ts +0 -18
- package/schematics/collection.json +0 -16
- package/schematics/ng-add/index.d.ts +0 -3
- package/schematics/ng-add/index.js +0 -46
- package/schematics/ng-add/index.js.map +0 -1
- package/schematics/ng-add/index.spec.d.ts +0 -1
- package/schematics/ng-add/index.spec.js +0 -102
- package/schematics/ng-add/index.spec.js.map +0 -1
- package/schematics/ng-add/package-config.d.ts +0 -12
- package/schematics/ng-add/package-config.js +0 -48
- package/schematics/ng-add/package-config.js.map +0 -1
- package/schematics/ng-add/schema.d.ts +0 -3
- package/schematics/ng-add/schema.js +0 -3
- package/schematics/ng-add/schema.js.map +0 -1
- package/schematics/ng-add/schema.json +0 -16
- package/schematics/ng-add/setup.d.ts +0 -3
- package/schematics/ng-add/setup.js +0 -50
- package/schematics/ng-add/setup.js.map +0 -1
- package/schematics/testing/file-content.d.ts +0 -10
- package/schematics/testing/file-content.js +0 -13
- package/schematics/testing/file-content.js.map +0 -1
- package/schematics/testing/test-app.d.ts +0 -12
- package/schematics/testing/test-app.js +0 -44
- package/schematics/testing/test-app.js.map +0 -1
- package/schematics/testing/test-library.d.ts +0 -11
- package/schematics/testing/test-library.js +0 -21
- package/schematics/testing/test-library.js.map +0 -1
- package/schematics/testing/test-project.d.ts +0 -11
- package/schematics/testing/test-project.js +0 -36
- package/schematics/testing/test-project.js.map +0 -1
- /package/{esm2020 → esm2022}/lib/types/git-provider-config-type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/types/git-providers-type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/types/git-repositories-type.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/types/git-repository-type.mjs +0 -0
- /package/{esm2020 → esm2022}/tehw0lf-git-portfolio.mjs +0 -0
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import * as i2$1 from '@angular/cdk/layout';
|
|
2
|
+
import { LayoutModule } from '@angular/cdk/layout';
|
|
3
|
+
import * as i3$1 from '@angular/common';
|
|
4
|
+
import { NgStyle, DatePipe, CommonModule, AsyncPipe, KeyValuePipe } from '@angular/common';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { Injectable, Directive, Input, EventEmitter, Component, Output } from '@angular/core';
|
|
7
|
+
import * as i4 from '@angular/material/progress-spinner';
|
|
8
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
9
|
+
import { BehaviorSubject, zip, of, Subject } from 'rxjs';
|
|
10
|
+
import { tap, map, takeUntil } from 'rxjs/operators';
|
|
11
|
+
import * as i1 from '@angular/common/http';
|
|
12
|
+
import * as i3 from '@angular/cdk/clipboard';
|
|
13
|
+
import { ClipboardModule } from '@angular/cdk/clipboard';
|
|
14
|
+
import * as i2 from '@angular/material/button';
|
|
15
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
16
|
+
import * as i1$1 from '@angular/material/card';
|
|
17
|
+
import { MatCardModule } from '@angular/material/card';
|
|
18
|
+
import * as githubLanguageColors from 'github-language-colors/colors.json';
|
|
19
|
+
import octicons from '@primer/octicons';
|
|
20
|
+
|
|
21
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
22
|
+
class GitRepository {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
class GitProviderService {
|
|
26
|
+
constructor(http) {
|
|
27
|
+
this.http = http;
|
|
28
|
+
this.loadingStateSubject = new BehaviorSubject(true);
|
|
29
|
+
this.repositorySubject = new BehaviorSubject({});
|
|
30
|
+
}
|
|
31
|
+
get loading() {
|
|
32
|
+
return this.loadingStateSubject.asObservable();
|
|
33
|
+
}
|
|
34
|
+
getRepositories(gitProviderUserNames) {
|
|
35
|
+
if (this.repositorySubject.value.github === undefined &&
|
|
36
|
+
this.repositorySubject.value.gitlab === undefined) {
|
|
37
|
+
this.fetchRepositories(gitProviderUserNames)
|
|
38
|
+
.pipe(tap((repositories) => {
|
|
39
|
+
this.repositorySubject.next(repositories);
|
|
40
|
+
this.loadingStateSubject.next(false);
|
|
41
|
+
}))
|
|
42
|
+
.subscribe();
|
|
43
|
+
}
|
|
44
|
+
return this.repositorySubject.asObservable();
|
|
45
|
+
}
|
|
46
|
+
fetchRepositories(gitProviderUserNames) {
|
|
47
|
+
return zip(this.fetchGithubRepositories(gitProviderUserNames?.github ?? ''), this.fetchGitlabRepositories(gitProviderUserNames?.gitlab ?? '')).pipe(map((gitRepositoryArray) => {
|
|
48
|
+
const repositories = {
|
|
49
|
+
github: this.filterAndSortGitRepositories(gitRepositoryArray[0]),
|
|
50
|
+
gitlab: this.filterAndSortGitRepositories(gitRepositoryArray[1])
|
|
51
|
+
};
|
|
52
|
+
return repositories;
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
filterAndSortGitRepositories(gitRepositoryArray) {
|
|
56
|
+
return {
|
|
57
|
+
own: gitRepositoryArray
|
|
58
|
+
.filter((gitRepository) => !gitRepository.fork)
|
|
59
|
+
.sort((repoA, repoB) => (repoB.stargazers_count ?? 0) - (repoA.stargazers_count ?? 0)),
|
|
60
|
+
forked: gitRepositoryArray
|
|
61
|
+
.filter((gitRepository) => gitRepository.fork)
|
|
62
|
+
.sort((repoA, repoB) => (repoB.stargazers_count ?? 0) - (repoA.stargazers_count ?? 0))
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
fetchGithubRepositories(githubUser) {
|
|
66
|
+
if (githubUser !== '') {
|
|
67
|
+
return this.http.get(`https://api.github.com/users/${githubUser}/repos`);
|
|
68
|
+
}
|
|
69
|
+
return of([new GitRepository()]);
|
|
70
|
+
}
|
|
71
|
+
fetchGitlabRepositories(gitlabUser) {
|
|
72
|
+
if (gitlabUser !== '') {
|
|
73
|
+
return this.http.get(`https://gitlab.com/api/v4/users/${gitlabUser}/projects`);
|
|
74
|
+
}
|
|
75
|
+
return of([new GitRepository()]);
|
|
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' }); }
|
|
79
|
+
}
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: GitProviderService, decorators: [{
|
|
81
|
+
type: Injectable,
|
|
82
|
+
args: [{
|
|
83
|
+
providedIn: 'root'
|
|
84
|
+
}]
|
|
85
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
86
|
+
|
|
87
|
+
class OcticonDirective {
|
|
88
|
+
constructor(elementRef, renderer) {
|
|
89
|
+
this.elementRef = elementRef;
|
|
90
|
+
this.renderer = renderer;
|
|
91
|
+
}
|
|
92
|
+
ngOnInit() {
|
|
93
|
+
const el = this.elementRef.nativeElement;
|
|
94
|
+
if (this.octicon) {
|
|
95
|
+
if (octicons[this.octicon] !== undefined) {
|
|
96
|
+
el.innerHTML = octicons[this.octicon].toSVG();
|
|
97
|
+
const icon = el.firstChild;
|
|
98
|
+
if (this.color && icon) {
|
|
99
|
+
this.renderer.setStyle(icon, 'fill', this.color);
|
|
100
|
+
}
|
|
101
|
+
if (this.width && icon) {
|
|
102
|
+
this.renderer.setStyle(icon, 'width', this.width);
|
|
103
|
+
this.renderer.setStyle(icon, 'height', this.width);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
el.innerHTML = octicons['alert'].toSVG();
|
|
108
|
+
this.renderer.setStyle(el.firstChild, 'fill', 'red');
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
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 }); }
|
|
114
|
+
}
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: OcticonDirective, decorators: [{
|
|
116
|
+
type: Directive,
|
|
117
|
+
args: [{
|
|
118
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
119
|
+
selector: '[octicon]',
|
|
120
|
+
standalone: true
|
|
121
|
+
}]
|
|
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
|
+
}] } });
|
|
131
|
+
|
|
132
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
133
|
+
class RepoCardComponent {
|
|
134
|
+
constructor() {
|
|
135
|
+
this.isCopied = false;
|
|
136
|
+
this.copiedToClipboardEvent = new EventEmitter();
|
|
137
|
+
this.githubLanguageColors = githubLanguageColors;
|
|
138
|
+
}
|
|
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;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}.flex-row{display:flex;flex-direction:row;box-sizing:border-box}.flex-gap-12{margin-right:12px}.flex-gap-5{margin-right:5px}.flex-fxflex{flex:1 1 0%}.info-item{font-weight:400;letter-spacing:normal}p{margin:0}\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
|
+
}
|
|
145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: RepoCardComponent, decorators: [{
|
|
146
|
+
type: Component,
|
|
147
|
+
args: [{ selector: 'repo-card', standalone: true, imports: [
|
|
148
|
+
MatCardModule,
|
|
149
|
+
NgStyle,
|
|
150
|
+
MatButtonModule,
|
|
151
|
+
OcticonDirective,
|
|
152
|
+
ClipboardModule,
|
|
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;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}.flex-row{display:flex;flex-direction:row;box-sizing:border-box}.flex-gap-12{margin-right:12px}.flex-gap-5{margin-right:5px}.flex-fxflex{flex:1 1 0%}.info-item{font-weight:400;letter-spacing:normal}p{margin:0}\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
|
+
}] } });
|
|
187
|
+
|
|
188
|
+
/* eslint-disable no-shadow */
|
|
189
|
+
var GitProviders;
|
|
190
|
+
(function (GitProviders) {
|
|
191
|
+
GitProviders["github"] = "GitHub";
|
|
192
|
+
GitProviders["gitlab"] = "GitLab";
|
|
193
|
+
})(GitProviders || (GitProviders = {}));
|
|
194
|
+
|
|
195
|
+
class GitPortfolioComponent {
|
|
196
|
+
constructor(gitProviderService, breakpointObserver) {
|
|
197
|
+
this.gitProviderService = gitProviderService;
|
|
198
|
+
this.breakpointObserver = breakpointObserver;
|
|
199
|
+
this.buttonStyle = { 'background-color': '#424242', color: '#cc7832' };
|
|
200
|
+
this.cardStyle = {
|
|
201
|
+
color: '#437da8',
|
|
202
|
+
'background-color': 'rgba(34, 34, 34, 0.75)',
|
|
203
|
+
'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 = {
|
|
212
|
+
github: 'tehw0lf',
|
|
213
|
+
gitlab: 'tehw0lf'
|
|
214
|
+
};
|
|
215
|
+
this.showForked = true;
|
|
216
|
+
this.showOwn = true;
|
|
217
|
+
this.gitProviders = GitProviders;
|
|
218
|
+
this.viewport = '';
|
|
219
|
+
this.unsubscribe$ = new Subject();
|
|
220
|
+
this.loading = this.gitProviderService.loading;
|
|
221
|
+
breakpointObserver
|
|
222
|
+
.observe([
|
|
223
|
+
'(max-width: 599.98px)',
|
|
224
|
+
'(max-width: 959.98px)',
|
|
225
|
+
'(min-width: 960px)'
|
|
226
|
+
])
|
|
227
|
+
.pipe(tap((breakpointState) => {
|
|
228
|
+
if (breakpointState.breakpoints['(max-width: 599.98px)']) {
|
|
229
|
+
this.viewport = 'xsmall';
|
|
230
|
+
}
|
|
231
|
+
else if (breakpointState.breakpoints['(max-width: 959.98px)']) {
|
|
232
|
+
this.viewport = 'small';
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
this.viewport = 'medium';
|
|
236
|
+
}
|
|
237
|
+
}), takeUntil(this.unsubscribe$))
|
|
238
|
+
.subscribe();
|
|
239
|
+
}
|
|
240
|
+
ngOnInit() {
|
|
241
|
+
this.getRepositories();
|
|
242
|
+
}
|
|
243
|
+
ngOnDestroy() {
|
|
244
|
+
this.unsubscribe$.next();
|
|
245
|
+
this.unsubscribe$.complete();
|
|
246
|
+
}
|
|
247
|
+
copyToClipboard(githubRepo) {
|
|
248
|
+
this.currentRepo = githubRepo;
|
|
249
|
+
}
|
|
250
|
+
isCopiedToClipboard(githubRepo) {
|
|
251
|
+
if (!this.currentRepo) {
|
|
252
|
+
return false;
|
|
253
|
+
}
|
|
254
|
+
return this.currentRepo.id === githubRepo.id ? true : false;
|
|
255
|
+
}
|
|
256
|
+
getRepositories() {
|
|
257
|
+
this.gitRepositories$ = this.gitProviderService
|
|
258
|
+
.getRepositories(this.gitProviderConfig)
|
|
259
|
+
.pipe(takeUntil(this.unsubscribe$));
|
|
260
|
+
}
|
|
261
|
+
getOwnGitRepositories(gitRepositories, gitProvider) {
|
|
262
|
+
if (gitRepositories) {
|
|
263
|
+
switch (gitProvider) {
|
|
264
|
+
case 'github':
|
|
265
|
+
if (gitRepositories.github) {
|
|
266
|
+
return gitRepositories.github.own;
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
return [];
|
|
270
|
+
}
|
|
271
|
+
case 'gitlab':
|
|
272
|
+
if (gitRepositories.gitlab) {
|
|
273
|
+
return gitRepositories.gitlab.own;
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
return [];
|
|
277
|
+
}
|
|
278
|
+
default:
|
|
279
|
+
return [];
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
return [];
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
getForkedGitRepositories(gitRepositories, gitProvider) {
|
|
287
|
+
if (gitRepositories) {
|
|
288
|
+
switch (gitProvider) {
|
|
289
|
+
case 'github':
|
|
290
|
+
if (gitRepositories.github) {
|
|
291
|
+
return gitRepositories.github.forked;
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
return [];
|
|
295
|
+
}
|
|
296
|
+
case 'gitlab':
|
|
297
|
+
if (gitRepositories.gitlab) {
|
|
298
|
+
return gitRepositories.gitlab.forked;
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
return [];
|
|
302
|
+
}
|
|
303
|
+
default:
|
|
304
|
+
return [];
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
return [];
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
hasRepositories(gitRepositories, gitProvider, type) {
|
|
312
|
+
if (gitRepositories) {
|
|
313
|
+
switch (gitProvider) {
|
|
314
|
+
case 'github':
|
|
315
|
+
if (gitRepositories.github) {
|
|
316
|
+
return gitRepositories.github[type].length > 0;
|
|
317
|
+
}
|
|
318
|
+
break;
|
|
319
|
+
case 'gitlab':
|
|
320
|
+
if (gitRepositories.gitlab) {
|
|
321
|
+
return gitRepositories.gitlab[type].length > 0;
|
|
322
|
+
}
|
|
323
|
+
break;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return false;
|
|
327
|
+
}
|
|
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}.flex-row-wrap{display:flex;flex-direction:row;flex-wrap:wrap;box-sizing:border-box}.flex-column{display:flex;flex-direction:column;box-sizing:border-box}.flex-align-start{justify-content:flex-start}.flex-align-stretch{align-content:stretch;align-items:stretch}.flex-fxflex{flex:0 1 calc(33.3% - 32px)}.flex-fxflex-lt-md{flex:0 1 calc(50% - 32px)}.flex-fxflex-lt-sm{flex:100%}.mat-headline{font-weight:400;line-height:32px;margin-bottom:16px}\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"] }] }); }
|
|
330
|
+
}
|
|
331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: GitPortfolioComponent, decorators: [{
|
|
332
|
+
type: Component,
|
|
333
|
+
args: [{ selector: 'git-portfolio', standalone: true, imports: [
|
|
334
|
+
CommonModule,
|
|
335
|
+
LayoutModule,
|
|
336
|
+
NgStyle,
|
|
337
|
+
MatProgressSpinnerModule,
|
|
338
|
+
RepoCardComponent,
|
|
339
|
+
AsyncPipe,
|
|
340
|
+
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}.flex-row-wrap{display:flex;flex-direction:row;flex-wrap:wrap;box-sizing:border-box}.flex-column{display:flex;flex-direction:column;box-sizing:border-box}.flex-align-start{justify-content:flex-start}.flex-align-stretch{align-content:stretch;align-items:stretch}.flex-fxflex{flex:0 1 calc(33.3% - 32px)}.flex-fxflex-lt-md{flex:0 1 calc(50% - 32px)}.flex-fxflex-lt-sm{flex:100%}.mat-headline{font-weight:400;line-height:32px;margin-bottom:16px}\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
|
+
}] } });
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Generated bundle index. Do not edit.
|
|
368
|
+
*/
|
|
369
|
+
|
|
370
|
+
export { GitPortfolioComponent, OcticonDirective };
|
|
371
|
+
//# sourceMappingURL=tehw0lf-git-portfolio.mjs.map
|
|
@@ -0,0 +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;;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;K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BAAiB,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,wBAAA,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,2xIAAA,EAAA,MAAA,EAAA,CAAA,ofAAA,CAAA,EAAA,CAAA;uHAGQ,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBAEG,SAAS,EAAA,CAAA;sBAAjB,KAAK;gBAON,SAAS,EAAA,CAAA;sBADR,KAAK;gBAIN,UAAU,EAAA,CAAA;sBADT,KAAK;gBAIN,SAAS,EAAA,CAAA;sBADR,KAAK;gBAIN,UAAU,EAAA,CAAA;sBADT,KAAK;gBAIN,UAAU,EAAA,CAAA;sBADT,KAAK;gBAIN,SAAS,EAAA,CAAA;sBADR,KAAK;gBAIN,iBAAiB,EAAA,CAAA;sBADhB,KAAK;gBAON,UAAU,EAAA,CAAA;sBADT,KAAK;gBAIN,OAAO,EAAA,CAAA;sBADN,KAAK;;;AE3ER;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
1
2
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { GitProviderService } from './git-provider.service';
|
|
@@ -8,6 +9,7 @@ import { GitRepository } from './types/git-repository-type';
|
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class GitPortfolioComponent implements OnInit, OnDestroy {
|
|
10
11
|
private gitProviderService;
|
|
12
|
+
private breakpointObserver;
|
|
11
13
|
buttonStyle: {
|
|
12
14
|
'background-color': string;
|
|
13
15
|
color: string;
|
|
@@ -32,8 +34,9 @@ export declare class GitPortfolioComponent implements OnInit, OnDestroy {
|
|
|
32
34
|
gitProviders: typeof GitProviders;
|
|
33
35
|
currentRepo: GitRepository | undefined;
|
|
34
36
|
gitRepositories$: Observable<GitRepositories> | undefined;
|
|
37
|
+
viewport: string;
|
|
35
38
|
private unsubscribe$;
|
|
36
|
-
constructor(gitProviderService: GitProviderService);
|
|
39
|
+
constructor(gitProviderService: GitProviderService, breakpointObserver: BreakpointObserver);
|
|
37
40
|
ngOnInit(): void;
|
|
38
41
|
ngOnDestroy(): void;
|
|
39
42
|
copyToClipboard(githubRepo: GitRepository): void;
|
|
@@ -43,5 +46,5 @@ export declare class GitPortfolioComponent implements OnInit, OnDestroy {
|
|
|
43
46
|
getForkedGitRepositories(gitRepositories: GitRepositories, gitProvider: string): GitRepository[];
|
|
44
47
|
hasRepositories(gitRepositories: GitRepositories, gitProvider: string, type: 'own' | 'forked'): boolean;
|
|
45
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<GitPortfolioComponent, 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,
|
|
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>;
|
|
47
50
|
}
|
|
@@ -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, never,
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OcticonDirective, "[octicon]", never, { "octicon": { "alias": "octicon"; "required": true; }; "color": { "alias": "color"; "required": true; }; "width": { "alias": "width"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
13
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { GitRepository } from '../types/git-repository-type';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
interface Dictionary {
|
|
5
|
+
[id: string]: string;
|
|
6
|
+
}
|
|
4
7
|
export declare class RepoCardComponent {
|
|
5
8
|
buttonStyle: any;
|
|
6
9
|
cardStyle: any;
|
|
@@ -13,9 +16,9 @@ export declare class RepoCardComponent {
|
|
|
13
16
|
gitRepo: GitRepository;
|
|
14
17
|
isCopied: boolean;
|
|
15
18
|
copiedToClipboardEvent: EventEmitter<boolean>;
|
|
16
|
-
githubLanguageColors:
|
|
17
|
-
constructor();
|
|
19
|
+
githubLanguageColors: Dictionary;
|
|
18
20
|
copiedToClipboard(): void;
|
|
19
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<RepoCardComponent, 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,
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RepoCardComponent, "repo-card", never, { "buttonStyle": { "alias": "buttonStyle"; "required": true; }; "cardStyle": { "alias": "cardStyle"; "required": true; }; "textStyle": { "alias": "textStyle"; "required": true; }; "checkColor": { "alias": "checkColor"; "required": true; }; "forkColor": { "alias": "forkColor"; "required": true; }; "issueColor": { "alias": "issueColor"; "required": true; }; "pasteColor": { "alias": "pasteColor"; "required": true; }; "starColor": { "alias": "starColor"; "required": true; }; "gitRepo": { "alias": "gitRepo"; "required": true; }; "isCopied": { "alias": "isCopied"; "required": false; }; }, { "copiedToClipboardEvent": "copiedToClipboardEvent"; }, never, never, true, never>;
|
|
21
23
|
}
|
|
24
|
+
export {};
|