0.17.6 • Published 1 month ago

@tehw0lf/git-portfolio v0.17.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

GitPortfolio

This project provides a minimalistic git portfolio component which displays repositories for a configurable user. Currently supporting GitHub and GitLab.

demo

Installation

Peer Dependencies

The following dependencies are needed:

    @angular/animations
    @angular/cdk
    @angular/common
    @angular/core
    @angular/material
    @primer/octicons
    @tehw0lf/mvc
    github-language-colors

Module

If it's not added already, please run ng add @angular/material prior to adding this module. Run ng add @tehw0lf/git-portfolio in the workspace root of your angular application.

Usage

The portfolio component takes a configuration as input. This configuration is a simple JS Object which holds usernames for the available git providers:

gitProviderConfig = {
  github: 'githubUsername',
  gitlab: 'gitlabUsername'
};

Then, in the template, the portfolio can be added by its tag:

<git-portfolio [gitProviderConfig]="gitProviderConfig"></git-portfolio>

In addition to the git provider configuration, the types of repositories displayed can be customized with optional input parameters:

showForked; //display forked repositories. default: true
showOwn; //display own repositories. default: true

Theming

The styles of card background, button and text as well as the octicon colors can be customized with optional input parameters:

buttonStyle; // { 'background-color': '#424242', color: '#cc7832' }
cardStyle; /* {
    color: '#437da8',
    'background-color': 'rgba(34, 34, 34, 0.75)',
    'backdrop-filter': 'blur(50px)'
  }*/
textStyle; //default: { color: '#437da8' };
checkColor; //default: '#38e038';
forkColor; //default: '#437da8';
issueColor; //default: 'rgb(56, 224, 56)';
pasteColor; //default: '#cc7832';
starColor; //default: 'gold';

Development

Serve

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.

Build

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).

Running unit tests

Run ng test to execute the unit tests via Jest.

Contributing

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.17.5

1 month ago

0.17.6

1 month ago

0.17.1

1 month ago

0.14.1

2 years ago

0.14.3

2 years ago

0.14.4

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago