Skip to content

Commit

Permalink
Merge pull request #18 from coderhindu/master
Browse files Browse the repository at this point in the history
Removed existing UI and added core-ui admin template
  • Loading branch information
narasimhangopinath committed Jan 8, 2018
2 parents 65c482c + 31effa9 commit 18948c2
Show file tree
Hide file tree
Showing 455 changed files with 17,199 additions and 383 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

# dependencies
/node_modules
open-wealth-manager/node_modules
/bower_components

# IDEs and editors
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"project": {
"name": "wealth-management-client"
"version": "1.0.0",
"name": "OpenWealthManager"
},
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": [
"assets",
"favicon.ico"
],
"assets": ["assets"],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
Expand All @@ -19,9 +17,14 @@
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"styles.css"
"../node_modules/font-awesome/css/font-awesome.css",
"../node_modules/simple-line-icons/css/simple-line-icons.css",
"scss/style.scss"
],
"scripts": [
"../node_modules/chart.js/dist/Chart.bundle.min.js",
"../node_modules/chart.js/dist/Chart.min.js"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
Expand All @@ -36,16 +39,13 @@
},
"lint": [
{
"project": "src/tsconfig.app.json",
"exclude": "**/node_modules/**"
"project": "src/tsconfig.app.json"
},
{
"project": "src/tsconfig.spec.json",
"exclude": "**/node_modules/**"
"project": "src/tsconfig.spec.json"
},
{
"project": "e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
"project": "e2e/tsconfig.e2e.json"
}
],
"test": {
Expand All @@ -54,10 +54,10 @@
}
},
"defaults": {
"styleExt": "css",
"component": {},
"styleExt": "scss",
"prefixInterfaces": false,
"serve": {
"port": 4600
"port": 4500
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,18 @@ root = true
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
max_line_length = 0
trim_trailing_whitespace = false
27 changes: 27 additions & 0 deletions open-wealth-manager/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Angular2DevelopmentCLI

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.0.0-beta.32.3.

## Development server
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.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive/pipe/service/class/module`.

## Build

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.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
Before running the tests make sure you are serving the app via `ng serve`.

## Further help

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).
14 changes: 14 additions & 0 deletions open-wealth-manager/e2e/app.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { AppPage } from './app.po';

describe('open-wealth-manager App', function() {
let page: AppPage;

beforeEach(() => {
page = new AppPage();
});

it('should display message saying app works', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('app works!');
});
});
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { browser, by, element } from 'protractor';
import { browser, element, by } from 'protractor';

export class AppPage {
navigateTo() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/e2e",
"baseUrl": "./",
"module": "commonjs",
"target": "es5",
"types": [
"types":[
"jasmine",
"jasminewd2",
"node"
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
// https://karma-runner.github.io/0.13/config/configuration-file.html

module.exports = function (config) {
config.set({
Expand All @@ -15,14 +15,25 @@ module.exports = function (config) {
client:{
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
files: [
{ pattern: './src/test.ts', watched: false }
],
preprocessors: {
'./src/test.ts': ['@angular/cli']
},
mime: {
'text/x-typescript': ['ts','tsx']
},
coverageIstanbulReporter: {
reports: [ 'html', 'lcovonly' ],
fixWebpackSourcePaths: true
},
angularCli: {
environment: 'dev'
},
reporters: ['progress', 'kjhtml'],
reporters: config.angularCli && config.angularCli.codeCoverage
? ['progress', 'coverage-istanbul']
: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
Expand Down
62 changes: 62 additions & 0 deletions open-wealth-manager/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"name": "OpenWealthManager",
"version": "1.0.0",
"description": "Web application to manage investments",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "5.0.1",
"@angular/common": "5.0.1",
"@angular/compiler": "5.0.1",
"@angular/core": "5.0.1",
"@angular/forms": "5.0.1",
"@angular/http": "5.0.1",
"@angular/platform-browser": "5.0.1",
"@angular/platform-browser-dynamic": "5.0.1",
"@angular/router": "5.0.1",
"@angular/upgrade": "5.0.1",
"bootstrap": "4.0.0-beta.2",
"chart.js": "2.7.1",
"core-js": "2.5.1",
"font-awesome": "^4.7.0",
"moment": "2.19.1",
"ng2-charts": "1.6.0",
"ngx-bootstrap": "1.9.3",
"primeng": "^5.0.2",
"rxjs": "5.5.2",
"simple-line-icons": "^2.4.1",
"ts-helpers": "1.1.2",
"zone.js": "0.8.18"
},
"devDependencies": {
"@angular/cli": "1.5.0",
"@angular/compiler-cli": "5.0.1",
"@types/jasmine": "2.6.3",
"@types/node": "8.0.50",
"codelyzer": "4.0.1",
"jasmine-core": "2.8.0",
"jasmine-spec-reporter": "4.2.1",
"karma": "1.7.1",
"karma-chrome-launcher": "2.2.0",
"karma-cli": "1.0.1",
"karma-jasmine": "1.1.0",
"karma-jasmine-html-reporter": "0.2.2",
"karma-coverage-istanbul-reporter": "1.3.0",
"protractor": "5.2.0",
"ts-node": "3.3.0",
"tslint": "5.8.0",
"typescript": "2.6.1"
},
"engines": {
"node": ">= 6.9.0",
"npm": ">= 3.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ exports.config = {
defaultTimeoutInterval: 30000,
print: function() {}
},
onPrepare() {
beforeLaunch: function() {
require('ts-node').register({
project: 'e2e/tsconfig.e2e.json'
});
},
onPrepare() {
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
}
};
69 changes: 69 additions & 0 deletions open-wealth-manager/src/app/_nav.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
export const navigation = [
{
name: 'Dashboard',
url: '/dashboard',
icon: 'icon-speedometer'
},
{
title: true,
name: 'Reports'
},
{
name: 'Recommendations',
url: '/reports/recommendations',
icon: 'icon-notebook',
children: [
{
name: 'Grid View',
url: '/reports/recommendations/gridview',
icon: 'icon-grid'
},
{
name: 'Chart View',
url: '/reports/recommendations/chartview',
icon: 'icon-graph'
}
]
},
{
name: 'Portfolio',
url: '/reports/portfolio',
icon: 'icon-briefcase',
children: [
{
name: 'Equity',
url: '/reports/portfolio/equity',
icon: 'icon-badge'
},
{
name: 'Mutual Funds',
url: '/reports/portfolio/mutualfunds',
icon: 'icon-wallet'
}
]
},
{
divider: true
},
{
title: true,
name: 'Forms',
},
{
name: 'New',
url: '/forms',
icon: 'icon-star',
children: [
{
name: 'Recommendation',
url: '/forms/recommendation',
icon: 'icon-star'
},
{
name: 'Portfolio Item',
url: '/forms/portfolio',
icon: 'icon-star'
}
]
}
];
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,31 @@ import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';

describe('AppComponent', () => {
beforeEach(async(() => {
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
}).compileComponents();
}));
});
TestBed.compileComponents();
});

it('should create the app', async(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
}));
it(`should have as title 'app'`, async(() => {

it(`should have as title 'app works!'`, async(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('app');
expect(app.title).toEqual('app works!');
}));

it('should render title in a h1 tag', async(() => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!');
expect(compiled.querySelector('h1').textContent).toContain('app works!');
}));
});
7 changes: 7 additions & 0 deletions open-wealth-manager/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Component } from '@angular/core';

@Component({
selector: 'body',
template: '<router-outlet></router-outlet>'
})
export class AppComponent { }
Loading

0 comments on commit 18948c2

Please sign in to comment.