-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/aktos-io/scada.js
- Loading branch information
Showing
3 changed files
with
54 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
![ScadaJS](https://cdn.rawgit.com/aktos-io/scada.js/master/assets/scadajs-logo-long.svg) | ||
|
||
# Description | ||
|
||
ScadaJS is a library to easily create Single Page Applications, targeted to industrial SCADA and MRP/ERP systems. Main objective of this library is to provide an integrated Distributed Control System layer which will make it possible to communicate with any type of hardware in realtime in any location (distributed), within the browser. | ||
|
||
# Key features | ||
|
||
* Uses HTML for building user interfaces and supports [Pug](https://pugjs.org) for advanced usage (and sanity) | ||
|
@@ -14,37 +18,58 @@ | |
* Siemens Comm | ||
* Omron Hostlink | ||
* and many others... | ||
* Fully compatible with [aktos-dcs (Python)](https://github.com/aktos-io/aktos-dcs), [aktos-dcs-cs (C# port)](https://github.com/aktos-io/aktos-dcs-cs), [aktos-dcs-node (Node.js port)](https://github.com/aktos-io/aktos-dcs-node) libraries, a message passing library for distributed control systems by [aktos.io](https://aktos.io). | ||
* Fully compatible with aktos.io hardwares | ||
* Fully compatible with [aktos-dcs](https://github.com/aktos-io/aktos-dcs), a message passing library for distributed control systems. | ||
* Fully compatible with aktos.io hardwares, such as [ScadaGateway](https://aktos.io/scada/pdf). | ||
* Supports tools and documentation for [DRY](https://en.wikipedia.org/wiki/Don't_repeat_yourself) and [TDD](https://en.wikipedia.org/wiki/Test-driven_development) in mind. | ||
* Provides build system via [Gulp](http://gulpjs.com). | ||
|
||
# INSTALL | ||
# DEMO | ||
|
||
Demo application [source is here](https://github.com/aktos-io/scadajs-template) and can be seen in action at https://aktos.io/showcase | ||
|
||
# Usage | ||
|
||
### 1. Install Global Dependencies | ||
|
||
1. Install [`NodeJs`](https://nodejs.org) | ||
2. Install global dependencies: | ||
2. Install global `npm` dependencies: | ||
|
||
npm install -g gulp yarn [email protected] | ||
|
||
...and optionally [follow the aea-way](doc/aea-way.md). | ||
|
||
# Create a ScadaJS Project | ||
### 2. Add ScadaJS Into Your Project | ||
|
||
Add ScadaJS into your project | ||
You can add ScadaJS any existing project: | ||
|
||
git init your-project | ||
# if there is no project yet | ||
git init your-project | ||
|
||
cd your-project | ||
git submodule add https://github.com/aktos-io/scada.js | ||
|
||
# Start Your Project | ||
### 3. Install ScadaJS Dependencies | ||
|
||
When you first create or clone a ScadaJS project, you need to install the dependencies: | ||
|
||
|
||
cd your-project | ||
git submodule update --init --recursive | ||
cd scada.js | ||
yarn | ||
yarn # or `npm install` | ||
|
||
|
||
### 4. Build Your Webapp | ||
|
||
# DEMO | ||
You can simply build your webapp: | ||
|
||
cd your-project/scada.js | ||
gulp --webapp your-webapp [--optimize] | ||
|
||
Demo application source is [here](http://TODO) and can be seen here in action: https://aktos.io/showcase | ||
|
||
> For a full example project, take a look at the [scadajs-template](https://github.com/aktos-io/scadajs-template). | ||
# Tested on | ||
|
||
* **Linux** | ||
* Debian 8 | ||
* Raspbian (on Raspberry 2 and 3) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
+if('settings.pageSize > 0') | ||
+if('(tableview_filtered.length / settings.pageSize) > 1') | ||
tfoot | ||
tr | ||
th(colspan="{{ colNames.length }}") | ||
.ui.right.floated.pagination.menu | ||
+each('range(1, Math.ceil(tableview_filtered.length / settings.pageSize)):i') | ||
a(on-click="@.fire('selectPage', i)" class!="item {{#if currPage === i}}active{{/if}}") {{ . }} | ||
|
||
+if('openingRowMsg') | ||
tr | ||
th(colspan="{{ colNames.length }}") | ||
| {{ openingRowMsg }} | ||
.ui.pagination.menu | ||
+each('range(1, Math.ceil(tableview_filtered.length / settings.pageSize)):i') | ||
a( | ||
on-click="@.fire('selectPage', i)" | ||
class!="item {{#if currPage === i}}active{{/if}}") {{ . }} |