Skip to content

Commit 4ecf19d

Browse files
harshit98gabru-md
authored andcommitted
Fixes component parsing errors (#20)
Fixes Travis report for building project Reverts back the directory of missing file Fixes lint error
1 parent 4be7473 commit 4ecf19d

13 files changed

+47
-97
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*/.gfs/
22
*/*/.gfs/
3+
.DS_Store

Diff for: .travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ after_success:
2525
- bash <(curl -s https://codecov.io/bash)
2626

2727
cache:
28+
bundler: true
2829
directories: node_modules

Diff for: README.md

+19-26
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
1-
## Git-From-Scratch
1+
# GitVisualize
22

3-
I work with `git` for like a lot of time and listening to the terms that I don'
4-
t have enough knowledge gives me a hit.
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.3.
54

6-
So, here I am, figuring out how git may work.
7-
It is just a trial where I will try to figure out how `git` `may` work. Since I am not
8-
interested in reading the original mirror of @git so I thought of challenging myself a bit.
5+
## Development server
96

10-
## Vision
11-
`A git that everyone can understand`. It will have the necessary documentation about the hypothesis
12-
proposed for the project.
13-
Since It is just a timepass project, therefore I will be using it to `Version Control` a simple
14-
file that contains data as
15-
```
16-
1
17-
2
18-
3
19-
4
20-
```
21-
Any change in the file will be checked and then stored. I will make it a heavy VCS and tnen
22-
make it comply with space efficiency (ik it is difficult to do, when you're going on with
23-
the intuition that your hypothesis is correct :P)
7+
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.
248

9+
## Code scaffolding
2510

26-
## Language
11+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
2712

28-
I will be using Javascript for making this project. I don't have any specific reason for
29-
choosing this language. Let's just go with the flow :P
13+
## Build
3014

31-
## Author
15+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
3216

33-
Manish Devgan
34-
@gabru-md
17+
## Running unit tests
18+
19+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20+
21+
## Running end-to-end tests
22+
23+
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24+
25+
## Further help
26+
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

Diff for: git-visualize/README.md

-27
This file was deleted.

Diff for: git-visualize/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"zone.js": "^0.8.19"
2828
},
2929
"devDependencies": {
30-
"@angular/cli": "~1.7.3",
30+
"@angular/cli": "^1.7.4",
3131
"@angular/compiler-cli": "^5.2.0",
3232
"@angular/language-service": "^5.2.0",
3333
"@types/jasmine": "~2.8.3",

Diff for: git-visualize/src/app/app.component.spec.ts

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
import { TestBed, async } from '@angular/core/testing';
22
import { AppComponent } from './app.component';
3+
import { TreeComponent } from './tree/tree.component';
4+
import { TerminalComponent } from './terminal/terminal.component';
5+
import { FormsModule } from '@angular/forms';
6+
37
describe('AppComponent', () => {
48
beforeEach(async(() => {
59
TestBed.configureTestingModule({
610
declarations: [
7-
AppComponent
11+
AppComponent,
12+
TerminalComponent,
13+
TreeComponent
14+
],
15+
imports: [
16+
FormsModule
817
],
918
}).compileComponents();
1019
}));
@@ -18,10 +27,4 @@ describe('AppComponent', () => {
1827
const app = fixture.debugElement.componentInstance;
1928
expect(app.title).toEqual('app');
2029
}));
21-
it('should render title in a h1 tag', async(() => {
22-
const fixture = TestBed.createComponent(AppComponent);
23-
fixture.detectChanges();
24-
const compiled = fixture.debugElement.nativeElement;
25-
expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!');
26-
}));
2730
});

Diff for: git-visualize/src/app/app.component.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { Component } from '@angular/core';
2-
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
2+
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
3+
import { TreeComponent } from './tree/tree.component';
4+
import { TerminalComponent } from './terminal/terminal.component';
5+
import { FormsModule } from '@angular/forms';
36

47
@Component({
58
selector: 'app-root',

Diff for: git-visualize/src/app/app.module.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { TreeComponent } from './tree/tree.component';
77
import { TerminalComponent } from './terminal/terminal.component';
88
import { CommunicateService } from './communicate.service';
99

10-
1110
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
1211

1312

@@ -23,9 +22,6 @@ import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
2322
NgbModule.forRoot()
2423
],
2524
providers: [CommunicateService],
26-
bootstrap: [AppComponent],
27-
schemas: [
28-
CUSTOM_ELEMENTS_SCHEMA
29-
]
25+
bootstrap: [AppComponent]
3026
})
3127
export class AppModule { }

Diff for: git-visualize/src/app/communicate.service.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { TestBed, inject } from '@angular/core/testing';
2-
2+
import { Http, HttpModule } from '@angular/http';
33
import { CommunicateService } from './communicate.service';
44

55
describe('CommunicateService', () => {
66
beforeEach(() => {
77
TestBed.configureTestingModule({
8-
providers: [CommunicateService]
8+
providers: [ CommunicateService ]
99
});
1010
});
1111

Diff for: git-visualize/src/app/terminal/terminal.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<span class="user-command"><span class="admin">git@yogdaan $~ </span>{{command}}</span>
99
</li>
1010
<li>
11-
<span class="user-command"><span class="admin">git@yogdaan $~ </span><input id="input-cli" type="text" width="100" [(ngModel)]="cli" (keypress)="executeCommand($event)" name="cli"></span>
11+
<span class="user-command"><span class="admin">git@yogdaan $~ </span><input id="input-cli" type="text" width="100" (ngModel)="cli" (keypress)="executeCommand($event)" name="cli"></span>
1212
</li>
1313
</ul>
1414
</div>

Diff for: git-visualize/src/app/terminal/terminal.component.spec.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2-
2+
import { CommunicateService } from '../communicate.service';
33
import { TerminalComponent } from './terminal.component';
4+
import { FormsModule } from '@angular/forms';
45

56
describe('TerminalComponent', () => {
67
let component: TerminalComponent;
78
let fixture: ComponentFixture<TerminalComponent>;
89

910
beforeEach(async(() => {
1011
TestBed.configureTestingModule({
11-
declarations: [ TerminalComponent ]
12+
declarations: [ TerminalComponent ],
13+
providers: [ CommunicateService ]
1214
})
1315
.compileComponents();
1416
}));

Diff for: git-visualize/src/app/terminal/terminal.component.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { Component, OnInit, Renderer2 } from '@angular/core';
22
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
33
import { CommunicateService } from '../communicate.service';
4+
import { FormsModule } from '@angular/forms';
45

56
@Component({
67
selector: 'app-terminal',
78
templateUrl: './terminal.component.html',
8-
styleUrls: ['./terminal.component.css']
9+
styleUrls: ['./terminal.component.css'],
10+
providers: [ CommunicateService ]
911
})
1012
export class TerminalComponent implements OnInit {
1113

Diff for: package.json

-24
This file was deleted.

0 commit comments

Comments
 (0)