@tehw0lf/git-portfolio 0.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Robert Weyres
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,99 @@
1
+ # GitPortfolio
2
+
3
+ This project provides a minimalistic git portfolio component which displays repositories for a configurable user. Currently supporting GitHub and GitLab.
4
+
5
+ ![demo](https://user-images.githubusercontent.com/15650679/105714749-09522200-5f1d-11eb-9d29-11e526d6a02c.png)
6
+
7
+ ## Installation
8
+
9
+ ### Peer Dependencies
10
+
11
+ The following dependencies are needed:
12
+
13
+ ```bash
14
+ @angular/animations
15
+ @angular/cdk
16
+ @angular/common
17
+ @angular/core
18
+ @angular/flex-layout
19
+ @angular/material
20
+ @primer/octicons
21
+ github-language-colors
22
+ ```
23
+
24
+ ### Module
25
+
26
+ Run `ng add @tehw0lf/git-portfolio` in the workspace root of your angular application.
27
+ In app.module.ts, import GitPortfolioModule and add it to the module's import section:
28
+
29
+ ```ts
30
+ import { GitPortfolioModule } from '../../../git-portfolio/src/public-api';
31
+
32
+ @NgModule({
33
+ ...
34
+ imports: [
35
+ ...
36
+ GitPortfolioModule
37
+ ],
38
+ ...
39
+ })
40
+ export class AppModule {}
41
+ ```
42
+
43
+ ## Usage
44
+
45
+ The portfolio component takes a configuration as input. This configuration is a simple JS Object which holds usernames for the available git providers:
46
+
47
+ ```ts
48
+ gitProviderConfig = {
49
+ github: 'githubUsername',
50
+ gitlab: 'gitlabUsername'
51
+ };
52
+ ```
53
+
54
+ Then, in the template, the portfolio can be added by its tag:
55
+
56
+ ```html
57
+ <git-portfolio [gitProviderConfig]="gitProviderConfig"></git-portfolio>
58
+ ```
59
+
60
+ In addition to the git provider configuration, the types of repositories displayed can be customized with optional input parameters:
61
+
62
+ ```ts
63
+ showForked; //display forked repositories. default: true
64
+ showOwn; //display own repositories. default: true
65
+ ```
66
+
67
+ ## Theming
68
+
69
+ The colors of card background, button and text as well as the backdrop filter can be customized with optional input parameters:
70
+
71
+ ```ts
72
+ backgroundColor; //default: 'rgba(34, 34, 34, 0.75)';
73
+ backdropFilter; //default: 'blur(50px)';
74
+ buttonColor; //default: '#cc7832';
75
+ cardColor; //default: 'lightgray';
76
+ ```
77
+
78
+ ## Development
79
+
80
+ ### Serve
81
+
82
+ Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
83
+
84
+ ### Build
85
+
86
+ Run `ng build git-portfolio` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build (e.g. when building to publish to npm).
87
+
88
+ ### Running unit tests
89
+
90
+ Run `ng test` to execute the unit tests via [Jest](https://jestjs.io).
91
+
92
+ ## To Do
93
+
94
+ Expand schematic to add module entry
95
+ Install dependencies automatically
96
+
97
+ ## Contributing
98
+
99
+ Contributions are welcome, although the library is still in an alpha stage. Feel free to open a PR and I'll have a look!
@@ -0,0 +1,393 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@angular/common/http'), require('@angular/material/progress-spinner'), require('@angular/material/card'), require('@angular/material/button'), require('@angular/common'), require('@angular/flex-layout/extended'), require('@angular/flex-layout/flex'), require('@angular/cdk/clipboard'), require('@angular/flex-layout'), require('@angular/platform-browser'), require('@angular/platform-browser/animations')) :
3
+ typeof define === 'function' && define.amd ? define('@tehw0lf/git-portfolio', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', '@angular/common/http', '@angular/material/progress-spinner', '@angular/material/card', '@angular/material/button', '@angular/common', '@angular/flex-layout/extended', '@angular/flex-layout/flex', '@angular/cdk/clipboard', '@angular/flex-layout', '@angular/platform-browser', '@angular/platform-browser/animations'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.tehw0lf = global.tehw0lf || {}, global.tehw0lf['git-portfolio'] = {}), global.ng.core, global.rxjs, global.rxjs.operators, global.ng.common.http, global.ng.material.progressSpinner, global.ng.material.card, global.ng.material.button, global.ng.common, global.ng.flexLayout.extended, global.ng.flexLayout.flex, global.ng.cdk.clipboard, global.ng.flexLayout, global.ng.platformBrowser, global.ng.platformBrowser.animations));
5
+ }(this, (function (exports, i0, rxjs, operators, i1, i2$1, i1$1, i2, i4, i4$1, i5, i7, flexLayout, platformBrowser, animations) { 'use strict';
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () {
17
+ return e[k];
18
+ }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n['default'] = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
30
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
31
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
32
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
33
+ var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
34
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
35
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
36
+
37
+ /* eslint-disable no-shadow */
38
+ var GitProviders;
39
+ (function (GitProviders) {
40
+ GitProviders["github"] = "GitHub";
41
+ GitProviders["gitlab"] = "GitLab";
42
+ })(GitProviders || (GitProviders = {}));
43
+
44
+ /* eslint-disable @typescript-eslint/naming-convention */
45
+ var GitRepository = /** @class */ (function () {
46
+ function GitRepository() {
47
+ }
48
+ return GitRepository;
49
+ }());
50
+
51
+ var GitProviderService = /** @class */ (function () {
52
+ function GitProviderService(http) {
53
+ this.http = http;
54
+ this.loadingStateSubject = new rxjs.BehaviorSubject(true);
55
+ this.repositorySubject = new rxjs.BehaviorSubject({});
56
+ }
57
+ Object.defineProperty(GitProviderService.prototype, "loading", {
58
+ get: function () {
59
+ return this.loadingStateSubject.asObservable();
60
+ },
61
+ enumerable: false,
62
+ configurable: true
63
+ });
64
+ GitProviderService.prototype.getRepositories = function (gitProviderUserNames) {
65
+ var _this = this;
66
+ if (this.repositorySubject.value.github === undefined &&
67
+ this.repositorySubject.value.gitlab === undefined) {
68
+ this.fetchRepositories(gitProviderUserNames)
69
+ .pipe(operators.tap(function (repositories) {
70
+ _this.repositorySubject.next(repositories);
71
+ _this.loadingStateSubject.next(false);
72
+ }))
73
+ .subscribe();
74
+ }
75
+ return this.repositorySubject.asObservable();
76
+ };
77
+ GitProviderService.prototype.fetchRepositories = function (gitProviderUserNames) {
78
+ var _this = this;
79
+ var _a, _b;
80
+ return rxjs.zip(this.fetchGithubRepositories((_a = gitProviderUserNames === null || gitProviderUserNames === void 0 ? void 0 : gitProviderUserNames.github) !== null && _a !== void 0 ? _a : ''), this.fetchGitlabRepositories((_b = gitProviderUserNames === null || gitProviderUserNames === void 0 ? void 0 : gitProviderUserNames.gitlab) !== null && _b !== void 0 ? _b : '')).pipe(operators.map(function (gitRepositoryArray) {
81
+ var repositories = {
82
+ github: _this.filterAndSortGitRepositories(gitRepositoryArray[0]),
83
+ gitlab: _this.filterAndSortGitRepositories(gitRepositoryArray[1])
84
+ };
85
+ return repositories;
86
+ }));
87
+ };
88
+ GitProviderService.prototype.filterAndSortGitRepositories = function (gitRepositoryArray) {
89
+ return {
90
+ own: gitRepositoryArray
91
+ .filter(function (gitRepository) { return !gitRepository.fork; })
92
+ .sort(function (repoA, repoB) { var _a, _b; return ((_a = repoB.stargazers_count) !== null && _a !== void 0 ? _a : 0) - ((_b = repoA.stargazers_count) !== null && _b !== void 0 ? _b : 0); }),
93
+ forked: gitRepositoryArray
94
+ .filter(function (gitRepository) { return gitRepository.fork; })
95
+ .sort(function (repoA, repoB) { var _a, _b; return ((_a = repoB.stargazers_count) !== null && _a !== void 0 ? _a : 0) - ((_b = repoA.stargazers_count) !== null && _b !== void 0 ? _b : 0); })
96
+ };
97
+ };
98
+ GitProviderService.prototype.fetchGithubRepositories = function (githubUser) {
99
+ if (githubUser !== '') {
100
+ return this.http.get("https://api.github.com/users/" + githubUser + "/repos");
101
+ }
102
+ return rxjs.of([new GitRepository()]);
103
+ };
104
+ GitProviderService.prototype.fetchGitlabRepositories = function (gitlabUser) {
105
+ if (gitlabUser !== '') {
106
+ return this.http.get("https://gitlab.com/api/v4/users/" + gitlabUser + "/projects");
107
+ }
108
+ return rxjs.of([new GitRepository()]);
109
+ };
110
+ return GitProviderService;
111
+ }());
112
+ GitProviderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: GitProviderService, deps: [{ token: i1__namespace.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
113
+ GitProviderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: GitProviderService, providedIn: 'root' });
114
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: GitProviderService, decorators: [{
115
+ type: i0.Injectable,
116
+ args: [{
117
+ providedIn: 'root'
118
+ }]
119
+ }], ctorParameters: function () { return [{ type: i1__namespace.HttpClient }]; } });
120
+
121
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
122
+ var octicons = require('@primer/octicons');
123
+ var OcticonDirective = /** @class */ (function () {
124
+ function OcticonDirective(elementRef, renderer) {
125
+ this.elementRef = elementRef;
126
+ this.renderer = renderer;
127
+ }
128
+ OcticonDirective.prototype.ngOnInit = function () {
129
+ var el = this.elementRef.nativeElement;
130
+ if (this.octicon) {
131
+ if (octicons[this.octicon] !== undefined) {
132
+ el.innerHTML = octicons[this.octicon].toSVG();
133
+ var icon = el.firstChild;
134
+ if (this.color && icon) {
135
+ this.renderer.setStyle(icon, 'fill', this.color);
136
+ }
137
+ if (this.width && icon) {
138
+ this.renderer.setStyle(icon, 'width', this.width);
139
+ this.renderer.setStyle(icon, 'height', this.width);
140
+ }
141
+ }
142
+ else {
143
+ el.innerHTML = octicons['alert'].toSVG();
144
+ this.renderer.setStyle(el.firstChild, 'fill', 'red');
145
+ }
146
+ }
147
+ };
148
+ return OcticonDirective;
149
+ }());
150
+ OcticonDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: OcticonDirective, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Directive });
151
+ OcticonDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.11", type: OcticonDirective, selector: "[octicon]", inputs: { octicon: "octicon", color: "color", width: "width" }, ngImport: i0__namespace });
152
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: OcticonDirective, decorators: [{
153
+ type: i0.Directive,
154
+ args: [{
155
+ // eslint-disable-next-line @angular-eslint/directive-selector
156
+ selector: '[octicon]'
157
+ }]
158
+ }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { octicon: [{
159
+ type: i0.Input
160
+ }], color: [{
161
+ type: i0.Input
162
+ }], width: [{
163
+ type: i0.Input
164
+ }] } });
165
+
166
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
167
+ var githubLanguageColors = require('github-language-colors/colors.json');
168
+ var RepoCardComponent = /** @class */ (function () {
169
+ function RepoCardComponent() {
170
+ this.isCopied = false;
171
+ this.copiedToClipboardEvent = new i0.EventEmitter();
172
+ this.githubLanguageColors = githubLanguageColors;
173
+ //
174
+ }
175
+ RepoCardComponent.prototype.copiedToClipboard = function () {
176
+ this.copiedToClipboardEvent.emit();
177
+ };
178
+ return RepoCardComponent;
179
+ }());
180
+ RepoCardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: RepoCardComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
181
+ RepoCardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: RepoCardComponent, selector: "repo-card", inputs: { backgroundColor: "backgroundColor", backdropFilter: "backdropFilter", buttonColor: "buttonColor", cardColor: "cardColor", gitRepo: "gitRepo", isCopied: "isCopied" }, outputs: { copiedToClipboardEvent: "copiedToClipboardEvent" }, ngImport: i0__namespace, template: "<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", 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"], components: [{ type: i1__namespace$1.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i1__namespace$1.MatCardHeader, selector: "mat-card-header" }, { type: i2__namespace.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"] }, { type: i2__namespace.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"] }], directives: [{ type: i4__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4__namespace$1.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"] }, { type: i1__namespace$1.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { type: i1__namespace$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { type: i1__namespace$1.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { type: i5__namespace.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"] }, { type: i5__namespace.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"] }, { type: OcticonDirective, selector: "[octicon]", inputs: ["octicon", "color", "width"] }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i1__namespace$1.MatCardFooter, selector: "mat-card-footer" }, { type: i5__namespace.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"] }, { type: i7__namespace.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }], pipes: { "date": i4__namespace.DatePipe } });
182
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: RepoCardComponent, decorators: [{
183
+ type: i0.Component,
184
+ args: [{
185
+ // eslint-disable-next-line @angular-eslint/component-selector
186
+ selector: 'repo-card',
187
+ templateUrl: './repo-card.component.html',
188
+ styleUrls: ['./repo-card.component.scss']
189
+ }]
190
+ }], ctorParameters: function () { return []; }, propDecorators: { backgroundColor: [{
191
+ type: i0.Input
192
+ }], backdropFilter: [{
193
+ type: i0.Input
194
+ }], buttonColor: [{
195
+ type: i0.Input
196
+ }], cardColor: [{
197
+ type: i0.Input
198
+ }], gitRepo: [{
199
+ type: i0.Input
200
+ }], isCopied: [{
201
+ type: i0.Input
202
+ }], copiedToClipboardEvent: [{
203
+ type: i0.Output
204
+ }] } });
205
+
206
+ var GitPortfolioComponent = /** @class */ (function () {
207
+ function GitPortfolioComponent(gitProviderService) {
208
+ this.gitProviderService = gitProviderService;
209
+ this.backgroundColor = 'rgba(34, 34, 34, 0.75)';
210
+ this.backdropFilter = 'blur(50px)';
211
+ this.buttonColor = '#cc7832';
212
+ this.cardColor = 'lightgray';
213
+ this.gitProviderConfig = { github: '', gitlab: '' };
214
+ this.showForked = true;
215
+ this.showOwn = true;
216
+ this.gitProviders = GitProviders;
217
+ this.unsubscribe$ = new rxjs.Subject();
218
+ this.loading = this.gitProviderService.loading;
219
+ }
220
+ GitPortfolioComponent.prototype.ngOnInit = function () {
221
+ this.getRepositories();
222
+ };
223
+ GitPortfolioComponent.prototype.ngOnDestroy = function () {
224
+ this.unsubscribe$.next();
225
+ this.unsubscribe$.complete();
226
+ };
227
+ GitPortfolioComponent.prototype.copyToClipboard = function (githubRepo) {
228
+ this.currentRepo = githubRepo;
229
+ };
230
+ GitPortfolioComponent.prototype.isCopiedToClipboard = function (githubRepo) {
231
+ if (!this.currentRepo) {
232
+ return false;
233
+ }
234
+ return this.currentRepo.id === githubRepo.id ? true : false;
235
+ };
236
+ GitPortfolioComponent.prototype.getRepositories = function () {
237
+ this.gitRepositories$ = this.gitProviderService
238
+ .getRepositories(this.gitProviderConfig)
239
+ .pipe(operators.takeUntil(this.unsubscribe$));
240
+ };
241
+ GitPortfolioComponent.prototype.getOwnGitRepositories = function (gitRepositories, gitProvider) {
242
+ if (gitRepositories) {
243
+ switch (gitProvider) {
244
+ case 'github':
245
+ if (gitRepositories.github) {
246
+ return gitRepositories.github.own;
247
+ }
248
+ else {
249
+ return [];
250
+ }
251
+ case 'gitlab':
252
+ if (gitRepositories.gitlab) {
253
+ return gitRepositories.gitlab.own;
254
+ }
255
+ else {
256
+ return [];
257
+ }
258
+ default:
259
+ return [];
260
+ }
261
+ }
262
+ else {
263
+ return [];
264
+ }
265
+ };
266
+ GitPortfolioComponent.prototype.getForkedGitRepositories = function (gitRepositories, gitProvider) {
267
+ if (gitRepositories) {
268
+ switch (gitProvider) {
269
+ case 'github':
270
+ if (gitRepositories.github) {
271
+ return gitRepositories.github.forked;
272
+ }
273
+ else {
274
+ return [];
275
+ }
276
+ case 'gitlab':
277
+ if (gitRepositories.gitlab) {
278
+ return gitRepositories.gitlab.forked;
279
+ }
280
+ else {
281
+ return [];
282
+ }
283
+ default:
284
+ return [];
285
+ }
286
+ }
287
+ else {
288
+ return [];
289
+ }
290
+ };
291
+ GitPortfolioComponent.prototype.hasRepositories = function (gitRepositories, gitProvider, type) {
292
+ if (gitRepositories) {
293
+ switch (gitProvider) {
294
+ case 'github':
295
+ if (gitRepositories.github) {
296
+ return gitRepositories.github[type].length > 0;
297
+ }
298
+ break;
299
+ case 'gitlab':
300
+ if (gitRepositories.gitlab) {
301
+ return gitRepositories.gitlab[type].length > 0;
302
+ }
303
+ break;
304
+ }
305
+ }
306
+ return false;
307
+ };
308
+ return GitPortfolioComponent;
309
+ }());
310
+ GitPortfolioComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: GitPortfolioComponent, deps: [{ token: GitProviderService }], target: i0__namespace.ɵɵFactoryTarget.Component });
311
+ GitPortfolioComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.11", type: GitPortfolioComponent, selector: "git-portfolio", inputs: { backgroundColor: "backgroundColor", backdropFilter: "backdropFilter", buttonColor: "buttonColor", cardColor: "cardColor", gitProviderConfig: "gitProviderConfig", showForked: "showForked", showOwn: "showOwn" }, ngImport: i0__namespace, 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 [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", styles: [".repository-card{max-width:450px;margin:0 32px 32px 0}\n"], components: [{ type: i2__namespace$1.MatSpinner, selector: "mat-spinner", inputs: ["color"] }, { type: RepoCardComponent, selector: "repo-card", inputs: ["backgroundColor", "backdropFilter", "buttonColor", "cardColor", "gitRepo", "isCopied"], outputs: ["copiedToClipboardEvent"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace.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"] }, { type: i5__namespace.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"] }, { type: i5__namespace.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"] }], pipes: { "async": i4__namespace.AsyncPipe, "keyvalue": i4__namespace.KeyValuePipe } });
312
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: GitPortfolioComponent, decorators: [{
313
+ type: i0.Component,
314
+ args: [{
315
+ // eslint-disable-next-line @angular-eslint/component-selector
316
+ selector: 'git-portfolio',
317
+ templateUrl: './git-portfolio.component.html',
318
+ styleUrls: ['./git-portfolio.component.scss']
319
+ }]
320
+ }], ctorParameters: function () { return [{ type: GitProviderService }]; }, propDecorators: { backgroundColor: [{
321
+ type: i0.Input
322
+ }], backdropFilter: [{
323
+ type: i0.Input
324
+ }], buttonColor: [{
325
+ type: i0.Input
326
+ }], cardColor: [{
327
+ type: i0.Input
328
+ }], gitProviderConfig: [{
329
+ type: i0.Input
330
+ }], showForked: [{
331
+ type: i0.Input
332
+ }], showOwn: [{
333
+ type: i0.Input
334
+ }] } });
335
+
336
+ var GitPortfolioModule = /** @class */ (function () {
337
+ function GitPortfolioModule() {
338
+ }
339
+ return GitPortfolioModule;
340
+ }());
341
+ GitPortfolioModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: GitPortfolioModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
342
+ GitPortfolioModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: GitPortfolioModule, declarations: [GitPortfolioComponent, RepoCardComponent, OcticonDirective], imports: [i4.CommonModule,
343
+ platformBrowser.BrowserModule,
344
+ animations.BrowserAnimationsModule,
345
+ i1.HttpClientModule,
346
+ i1$1.MatCardModule,
347
+ i2.MatButtonModule,
348
+ i2$1.MatProgressSpinnerModule,
349
+ i7.ClipboardModule,
350
+ flexLayout.FlexLayoutModule], exports: [GitPortfolioComponent, OcticonDirective] });
351
+ GitPortfolioModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: GitPortfolioModule, providers: [GitProviderService], imports: [[
352
+ i4.CommonModule,
353
+ platformBrowser.BrowserModule,
354
+ animations.BrowserAnimationsModule,
355
+ i1.HttpClientModule,
356
+ i1$1.MatCardModule,
357
+ i2.MatButtonModule,
358
+ i2$1.MatProgressSpinnerModule,
359
+ i7.ClipboardModule,
360
+ flexLayout.FlexLayoutModule
361
+ ]] });
362
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.11", ngImport: i0__namespace, type: GitPortfolioModule, decorators: [{
363
+ type: i0.NgModule,
364
+ args: [{
365
+ declarations: [GitPortfolioComponent, RepoCardComponent, OcticonDirective],
366
+ imports: [
367
+ i4.CommonModule,
368
+ platformBrowser.BrowserModule,
369
+ animations.BrowserAnimationsModule,
370
+ i1.HttpClientModule,
371
+ i1$1.MatCardModule,
372
+ i2.MatButtonModule,
373
+ i2$1.MatProgressSpinnerModule,
374
+ i7.ClipboardModule,
375
+ flexLayout.FlexLayoutModule
376
+ ],
377
+ exports: [GitPortfolioComponent, OcticonDirective],
378
+ providers: [GitProviderService]
379
+ }]
380
+ }] });
381
+
382
+ /**
383
+ * Generated bundle index. Do not edit.
384
+ */
385
+
386
+ exports.GitPortfolioComponent = GitPortfolioComponent;
387
+ exports.GitPortfolioModule = GitPortfolioModule;
388
+ exports.OcticonDirective = OcticonDirective;
389
+
390
+ Object.defineProperty(exports, '__esModule', { value: true });
391
+
392
+ })));
393
+ //# sourceMappingURL=tehw0lf-git-portfolio.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tehw0lf-git-portfolio.umd.js","sources":["../../../../libs/git-portfolio/src/lib/types/git-providers-type.ts","../../../../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/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 no-shadow */\nexport enum GitProviders {\n github = 'GitHub',\n gitlab = 'GitLab'\n}\n","/* 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';\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 = { github: '', gitlab: '' };\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":["BehaviorSubject","tap","zip","map","of","Injectable","Directive","Input","EventEmitter","Component","Output","Subject","takeUntil","CommonModule","BrowserModule","BrowserAnimationsModule","HttpClientModule","MatCardModule","MatButtonModule","MatProgressSpinnerModule","ClipboardModule","FlexLayoutModule","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA;IACA,IAAY,YAGX;IAHD,WAAY,YAAY;QACtB,iCAAiB,CAAA;QACjB,iCAAiB,CAAA;IACnB,CAAC,EAHW,YAAY,KAAZ,YAAY;;ICDxB;IACA;QAAA;SA8BC;4BAAA;KAAA;;ICnBD;QAIE,4BAAoB,IAAgB;YAAhB,SAAI,GAAJ,IAAI,CAAY;YAH5B,wBAAmB,GAAG,IAAIA,oBAAe,CAAU,IAAI,CAAC,CAAC;YACzD,sBAAiB,GAAG,IAAIA,oBAAe,CAAkB,EAAE,CAAC,CAAC;SAE7B;QAExC,sBAAI,uCAAO;iBAAX;gBACE,OAAO,IAAI,CAAC,mBAAmB,CAAC,YAAY,EAAE,CAAC;aAChD;;;WAAA;QAED,4CAAe,GAAf,UACE,oBAAwC;YAD1C,iBAiBC;YAdC,IACE,IAAI,CAAC,iBAAiB,CAAC,KA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gBAAgB;2IAGtC,kBAAkB,aAFlB,CAAC,kBAAkB,CAAC,YAZtB;gBACPR,eAAY;gBACZC,6BAAa;gBACbC,kCAAuB;gBACvBC,mBAAgB;gBAChBC,kBAAa;gBACbC,kBAAe;gBACfC,6BAAwB;gBACxBC,kBAAe;gBACfC,2BAAgB;aACjB;sHAIU,kBAAkB;sBAhB9BC,WAAQ;uBAAC;wBACR,YAAY,EAAE,CAAC,qBAAqB,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;wBAC1E,OAAO,EAAE;4BACPT,eAAY;4BACZC,6BAAa;4BACbC,kCAAuB;4BACvBC,mBAAgB;4BAChBC,kBAAa;4BACbC,kBAAe;4BACfC,6BAAwB;4BACxBC,kBAAe;4BACfC,2BAAgB;yBACjB;wBACD,OAAO,EAAE,CAAC,qBAAqB,EAAE,gBAAgB,CAAC;wBAClD,SAAS,EAAE,CAAC,kBAAkB,CAAC;qBAChC;;;IC/BD;;;;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ export * from './lib/git-portfolio.component';
2
+ export * from './lib/git-portfolio.module';
3
+ export * from './lib/octicon.directive';
4
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL2dpdC1wb3J0Zm9saW8vc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWIvZ2l0LXBvcnRmb2xpby5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZ2l0LXBvcnRmb2xpby5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvb2N0aWNvbi5kaXJlY3RpdmUnO1xuIl19