Browse Source

Setup components

master
Amer Ansari 4 months ago
parent
commit
49afa2548e

+ 1
- 0
.gitignore View File

@@ -1 +1,2 @@
node_modules/
.idea/

+ 7
- 3
angular.json View File

@@ -88,9 +88,13 @@
"src/assets"
],
"styles": [
"src/styles.scss"
"src/styles.scss",
"node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"scripts": []
"scripts": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/bootstrap/dist/js/bootstrap.min.js"
]
}
},
"lint": {
@@ -121,4 +125,4 @@
}
}},
"defaultProject": "kharjomarj"
}
}

+ 5
- 0
package-lock.json View File

@@ -1525,6 +1525,11 @@
"multicast-dns-service-types": "^1.1.0"
}
},
"bootstrap": {
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.3.1.tgz",
"integrity": "sha512-rXqOmH1VilAt2DyPzluTi2blhk17bO7ef+zLLPlWvG494pDxcM234pJ8wTc/6R40UWizAIIMgxjvxZg5kmsbag=="
},
"brace-expansion": {
"version": "1.1.11",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",

+ 1
- 0
package.json View File

@@ -19,6 +19,7 @@
"@angular/platform-browser": "~8.0.3",
"@angular/platform-browser-dynamic": "~8.0.3",
"@angular/router": "~8.0.3",
"bootstrap": "^4.3.1",
"rxjs": "~6.4.0",
"tslib": "^1.9.0",
"zone.js": "~0.9.1"

+ 0
- 15
src/app/app.component.html View File

@@ -3,19 +3,4 @@
<h1>
Welcome to {{ title }}!
</h1>
<img width="300" alt="Angular Logo" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg==">
</div>
<h2>Here are some links to help you start: </h2>
<ul>
<li>
<h2><a target="_blank" rel="noopener" href="https://angular.io/tutorial">Tour of Heroes</a></h2>
</li>
<li>
<h2><a target="_blank" rel="noopener" href="https://angular.io/cli">CLI Documentation</a></h2>
</li>
<li>
<h2><a target="_blank" rel="noopener" href="https://blog.angular.io/">Angular blog</a></h2>
</li>
</ul>

<router-outlet></router-outlet>

+ 9
- 1
src/app/app.module.ts View File

@@ -3,10 +3,18 @@ import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './components/home/home.component';
import { SpendComponent } from './components/shared/spend/spend.component';
import { EarnComponent } from './components/shared/earn/earn.component';
import { TotalComponent } from './components/shared/total/total.component';

@NgModule({
declarations: [
AppComponent
AppComponent,
HomeComponent,
SpendComponent,
EarnComponent,
TotalComponent,
],
imports: [
BrowserModule,

+ 1
- 0
src/app/components/home/home.component.html View File

@@ -0,0 +1 @@
<p>home works!</p>

+ 0
- 0
src/app/components/home/home.component.scss View File


+ 25
- 0
src/app/components/home/home.component.spec.ts View File

@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { HomeComponent } from 'src/app/components/home/home.component';

describe('HomeComponent', () => {
let component: HomeComponent;
let fixture: ComponentFixture<HomeComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HomeComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(HomeComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});

+ 15
- 0
src/app/components/home/home.component.ts View File

@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss']
})
export class HomeComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}

+ 1
- 0
src/app/components/shared/earn/earn.component.html View File

@@ -0,0 +1 @@
<p>earn works!</p>

+ 0
- 0
src/app/components/shared/earn/earn.component.scss View File


+ 25
- 0
src/app/components/shared/earn/earn.component.spec.ts View File

@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { EarnComponent } from 'src/app/components/shared/earn/earn.component';

describe('EarnComponent', () => {
let component: EarnComponent;
let fixture: ComponentFixture<EarnComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ EarnComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(EarnComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});

+ 15
- 0
src/app/components/shared/earn/earn.component.ts View File

@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-earn',
templateUrl: './earn.component.html',
styleUrls: ['./earn.component.scss']
})
export class EarnComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}

+ 1
- 0
src/app/components/shared/spend/spend.component.html View File

@@ -0,0 +1 @@
<p>spend works!</p>

+ 0
- 0
src/app/components/shared/spend/spend.component.scss View File


+ 25
- 0
src/app/components/shared/spend/spend.component.spec.ts View File

@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { SpendComponent } from 'src/app/components/shared/spend/spend.component';

describe('SpendComponent', () => {
let component: SpendComponent;
let fixture: ComponentFixture<SpendComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SpendComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(SpendComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});

+ 15
- 0
src/app/components/shared/spend/spend.component.ts View File

@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-spend',
templateUrl: './spend.component.html',
styleUrls: ['./spend.component.scss']
})
export class SpendComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}

+ 1
- 0
src/app/components/shared/total/total.component.html View File

@@ -0,0 +1 @@
<p>total works!</p>

+ 0
- 0
src/app/components/shared/total/total.component.scss View File


+ 25
- 0
src/app/components/shared/total/total.component.spec.ts View File

@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { TotalComponent } from 'src/app/components/shared/total/total.component';

describe('TotalComponent', () => {
let component: TotalComponent;
let fixture: ComponentFixture<TotalComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ TotalComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(TotalComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});

+ 15
- 0
src/app/components/shared/total/total.component.ts View File

@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-total',
templateUrl: './total.component.html',
styleUrls: ['./total.component.scss']
})
export class TotalComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}

Loading…
Cancel
Save