├── LICENSE
├── README.md
├── _config.yml
├── app
├── alerts.service.ts
├── app.component.ts
├── authentication.service.ts
├── boot.ts
├── component.loader.ts
├── dynamic.component.ts
├── login.component.html
├── login.component.ts
├── results.component.html
├── results.component.ts
├── visualize.component.ts
└── vjs.config.service.ts
├── index.html
├── package.json
├── styles.css
├── systemjs.config.js
├── tsconfig.json
└── typings.json
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Business Learning Incorporated
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Ng2-Bootstrap-Visualizejs
2 | A demonstration application that draws [Jaspersoft](http://www.jaspersoft.com/) report/dashboard resources with the [Visualize.js](http://community.jaspersoft.com/project/visualizejs) library using the [tabs](http://valor-software.com/ng2-bootstrap/#/tabs) and [alerts](http://valor-software.com/ng2-bootstrap/#/alerts) directives from the [ng2-bootstrap](https://github.com/valor-software/ng2-bootstrap) library. All implemented using the [Angular Framework](https://angular.io/) (Angular 2.0).
3 |
4 | > Interested in implementing a [Visualize.js](http://community.jaspersoft.com/project/visualizejs) solution without using the [ng2-bootstrap](https://github.com/valor-software/ng2-bootstrap) library? Check out [this related project](https://github.com/richbl/ng2-visualizejs) instead.
5 |
6 | ## User Login Screen
7 | 
8 | ## Tabbed Result Views
9 | 
10 |
11 | 
12 |
13 | 
14 |
15 | ## Based on Angular 2-Quickstart
16 | This repository is based on the [Angular 2-Quickstart](https://github.com/valor-software/angular2-quickstart), which is provided by Valor Software to demo a simple implementation of their [Native Angular 2 Directives for Bootstrap](http://valor-software.com/ng2-bootstrap/#/).
17 |
18 | > Note that this project has not been forked from the [Angular 2-Quickstart](https://github.com/valor-software/angular2-quickstart) project, so no updates made to that project will be reflected in this project.
19 |
20 |
21 | ## Prerequisites
22 |
23 | - [Jaspersoft](http://jaspersoft.com/quick-start) software and server resources (*i.e.* JasperReports Server)
24 | - [Angular Framework](https://angular.io/) (*aka*, Angular 2.0) library resources
25 | - [Ng2-Bootstrap](https://github.com/valor-software/ng2-bootstrap) library resources
26 |
27 | ### Jaspersoft JasperReports Server
28 | Required software and servers are well described on the [Jaspersoft website](http://jaspersoft.com/quick-start).
29 |
30 | ### Angular Framework
31 | Node.js and npm are essential to Angular 2 development. Get them now if they're not already installed on your machine.
32 |
33 | **Verify that you are running at least node `v5.x.x` and npm `3.x.x`**
34 | by running `node -v` and `npm -v` in a terminal/console window.
35 | Older versions produce errors.
36 |
37 | > This project was originally developed using Angular 2.0.0-RC3.
38 |
39 | ### Ng2-Bootstrap
40 | The [ng2-bootstrap](https://github.com/valor-software/ng2-bootstrap) library is available as an [npm package](https://www.npmjs.com/package/ng2-bootstrap), which makes it extremely easy to implement in this or any Angular Framework project. When first installing npm packages, project dependencies should install the latest package.
41 |
42 | ## Getting Started
43 |
44 | Clone this repo into new project folder (*e.g.*, `my-proj`).
45 | ```bash
46 | git clone https://github.com/richbl/ng2-bootstrap-visualizejs my-proj
47 | cd my-proj
48 | ```
49 |
50 | ### Install npm Packages
51 |
52 | > See npm and nvm version notes above
53 |
54 | Install the npm packages described in the `package.json` and verify that it works:
55 |
56 | > Attention Windows developers: you must run all of these commands in administrator mode.
57 |
58 | ```bash
59 | npm install
60 | ```
61 |
62 | ### Edit Visualize.js Configuration
63 |
64 | Configuration details for the Visualize.js library are currently managed in two files:
65 |
66 | -`index.html`: sets the library include for the Visualize.js library script (*e.g.*, `)`
67 | -`app/vjs.config.service.ts`: set user and resource details (*i.e.*, reports and dashboards)
68 |
69 | It's expected that future releases of this demonstration should permit for the dynamic loading of the Visualize.js library in the `vjs.config.service.ts` component.
70 |
71 | > Login credentials for this demo: **joeuser/joeuser**.
72 |
73 | ### Start the Server
74 |
75 | The `npm start` command first compiles the application,
76 | then simultaneously re-compiles and runs the `lite-server`.
77 | Both the compiler and the server watch for file changes.
78 |
79 | ```bash
80 | npm start
81 | ```
82 |
83 | > By default, the server will be running on http://localhost:3000. Open a browser page on this URL and you should see the application running.
84 |
85 | Shut it down manually with Ctrl-C.
86 |
87 | **You're ready to go!**
88 |
--------------------------------------------------------------------------------
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-slate
--------------------------------------------------------------------------------
/app/alerts.service.ts:
--------------------------------------------------------------------------------
1 | import {Injectable} from '@angular/core';
2 | import {AlertComponent} from 'ng2-bootstrap/ng2-bootstrap';
3 |
4 | @Injectable()
5 | export class Alerts {
6 |
7 | public alerts: Array