-
-
-
-
-
-
-
-
-
-
-
-
-
{{ title }} app is running!
-
-
-
-
-
-
-
Resources
-
Here are some links to help you get started:
-
-
-
-
-
Next Steps
-
What do you want to do next with your app?
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Run and Watch Tests
-
-
-
-
-
-
Build for Production
-
-
-
-
-
-
ng generate component xyz
-
ng add @angular/material
-
ng add @angular/pwa
-
ng add _____
-
ng test
-
ng build --prod
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index 6385688..9a8db0f 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -6,5 +6,4 @@ import { Component } from '@angular/core';
styleUrls: ['./app.component.scss']
})
export class AppComponent {
- title = 'git-catalogue';
}
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index f657163..80427b0 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -1,14 +1,19 @@
-import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
-
+import { BrowserModule } from '@angular/platform-browser';
+import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { AppComponent } from './app.component';
+import { RepoComponent } from './repo/repo.component';
+import { MomentModule } from 'angular2-moment';
@NgModule({
declarations: [
- AppComponent
+ AppComponent,
+ RepoComponent
],
imports: [
- BrowserModule
+ BrowserModule,
+ FontAwesomeModule,
+ MomentModule
],
providers: [],
bootstrap: [AppComponent]
diff --git a/src/app/repo/repo.component.html b/src/app/repo/repo.component.html
new file mode 100644
index 0000000..4dca236
--- /dev/null
+++ b/src/app/repo/repo.component.html
@@ -0,0 +1,12 @@
+
diff --git a/src/app/repo/repo.component.scss b/src/app/repo/repo.component.scss
new file mode 100644
index 0000000..14cb5d4
--- /dev/null
+++ b/src/app/repo/repo.component.scss
@@ -0,0 +1,3 @@
+.logo-small {
+ height: 80px;
+}
diff --git a/src/app/repo/repo.component.spec.ts b/src/app/repo/repo.component.spec.ts
new file mode 100644
index 0000000..22fe4bd
--- /dev/null
+++ b/src/app/repo/repo.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { RepoComponent } from './repo.component';
+
+describe('RepoComponent', () => {
+ let component: RepoComponent;
+ let fixture: ComponentFixture
;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ RepoComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(RepoComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/repo/repo.component.ts b/src/app/repo/repo.component.ts
new file mode 100644
index 0000000..755a614
--- /dev/null
+++ b/src/app/repo/repo.component.ts
@@ -0,0 +1,24 @@
+import { Component, OnInit, Input } from '@angular/core';
+import { faStar, IconDefinition } from '@fortawesome/free-solid-svg-icons';
+
+@Component({
+ selector: 'app-repo',
+ templateUrl: './repo.component.html',
+ styleUrls: ['./repo.component.scss']
+})
+export class RepoComponent implements OnInit {
+
+ @Input() name: string;
+ @Input() stars: number;
+ @Input() created: Date;
+ @Input() description: string;
+ @Input() fullName: string;
+
+ faStar: IconDefinition = faStar;
+
+ constructor() { }
+
+ ngOnInit(): void {
+ }
+
+}