yunkong2.javascript/README.md
2018-07-21 19:30:07 +08:00

170 lines
4.5 KiB
Markdown

![Logo](admin/js.jpeg)
# Javascript Script Engine
==================
[![NPM version](http://img.shields.io/npm/v/yunkong2.javascript.svg)](https://www.npmjs.com/package/yunkong2.javascript)
[![Downloads](https://img.shields.io/npm/dm/yunkong2.javascript.svg)](https://www.npmjs.com/package/yunkong2.javascript)
[![Tests](https://travis-ci.org/yunkong2/yunkong2.javascript.svg?branch=master)](https://travis-ci.org/yunkong2/yunkong2.javascript)
[![NPM](https://nodei.co/npm/yunkong2.javascript.png?downloads=true)](https://nodei.co/npm/yunkong2.javascript/)
Executes Javascript, Typescript and Coffescript Scripts.
[Function documentation](doc/en/javascript.md)
[Benutzung](doc/de/usage.md)
Here you can find description of [blockly](doc/en/blockly.md).
Hier kann man die Beschreibung von [Blockly](doc/de/blockly.md) finden.
Описание по [blockly](doc/ru/blockly.md) можно найти [здесь](doc/ru/blockly.md).
## Changelog
### 3.7.0 (2018-05-05)
* (bluefox) Used VM2 as sandbox. The script errors will be caught.
* (bluefox) refactoring: split into many modules
### 3.6.4 (2018-02-05)
* (bluefox) Pattern error is fixed
### 3.6.3 (2018-01-31)
* (bluefox) Fixing the CSS for CRON dialog
* (bluefox) Fixing the reorder of scripts
### 3.6.1 (2018-01-23)
* (bluefox) Pattern error is fixed
### 3.6.0 (2017-12-28)
* (bluefox) more translations are added
* (bluefox) update blockly engine
### 3.5.1 (2017-11-14)
* (bluefox) fixed: sometimes MSG is not defined
* (dominic.griesel) TypeScript support (preparations)
* (bluefox) add sendToHost call
* (bluefox) protect exec call
* (bluefox) add getStateDelayed function
### 3.4.4 (2017-09-12)
* (soef) typo error in line number correction fixed
### 3.4.1 (2017-08-12)
* (soef) patternMatching optimized
### 3.4.0 (2017-08-06)
* (bluefox) Support of new admin
### 3.3.12 (2017-07-24)
* (bluefox) file and line info added to log outputs
### 3.3.11 (2017-07-18)
* (bluefox) fix build CRON block
### 3.3.9 (2017-06-18)
* (bluefox) Add the toggle blockly block
### 3.3.8 (2017-05-22)
* (Apollon77/bluefox) Accept for subscribes arrays of IDs
### 3.3.6 (2017-05-17)
* (bluefox) add the genitive month for formatDate
### 3.3.4 (2017-04-01)
* (bluefox) Catch error by request if host unavailable
* (bluefox) add "request" to script namespace
### 3.3.3 (2017-03-27)
* (bluefox)Fix stopScript
### 3.3.2 (2017-03-18)
* (bluefox) Support of system coordinates
### 3.3.1 (2017-03-15)
* (bluefox) fix error if no scripts exists
### 3.3.0 (2017-03-14)
* (bluefox) all callbacks in try/catch
### 3.2.8 (2017-03-08)
* (bluefox) Translations
### 3.2.7 (2017-03-03)
* (bluefox) allow creation of states for other javascript instances
### 3.2.6 (2017-02-14)
* (bluefox) Fix import of scripts
* (bluefox) Ask to save before start the script
### 3.2.5 (2017-01-23)
* (bluefox) Extend compareTime function with astro features
### 3.2.4 (2017-01-13)
* (bluefox) fix stopScript
### 3.2.3 (2017-01-05)
* (bluefox) Try to fix error with sayit
### 3.2.2 (2016-12-17)
* (bluefox) Allow with stopScript() to stop itself
### 3.2.1 (2016-11-24)
* (bluefox) Fix error with subscribe for only required states
### 3.2.0 (2016-11-14)
* (bluefox) Fix error with of blocks in adapters
* (bluefox) Support of subscribe for only required states
* (bluefox) add delFile
* (bluefox) fix error with names
### 3.1.0 (2016-10-12)
* (bluefox) Support of blocks in adapters
* (bluefox) Move sendTo blocks into adapters
### 3.0.10 (2016-09-30)
* (bluefox) New blocks: compare time, write state
* (bluefox) Documentation
### 3.0.9 (2016-09-20)
* (bluefox) Bugfixing of blockly
### 3.0.7 (2016-09-09)
* (bluefox) add ack for trigger in blockly
* (bluefox) add block to get info about trigger
* (bluefox) start description of blockly
* (bluefox) add runScript functions
* (bluefox) disable zoom on wheel in blockly
* (bluefox) fix block: time compare
### 3.0.6 (2016-09-07)
* (bluefox) add extendObject function
* (bluefox) add custom sendTo block
* (bluefox) add multiple trigger block
### 3.0.5 (2016-09-03)
* (bluefox) Fix sendTo blocks
### 3.0.4 (2016-09-01)
* (bluefox) Support of convert day of week into text in blockly
### 3.0.3 (2016-08-29)
* (bluefox) Fixed the convert date block
### 3.0.2 (2016-08-28)
* (bluefox) Change name of sandbox debug variable
### 3.0.1 (2016-08-27)
* (bluefox) Fix disabling of script
### 3.0.0 (2016-08-27)
* (bluefox) Beta Release with Blockly
## License
The MIT License (MIT)
Copyright (c) 2014-2018 bluefox <dogafox@gmail.com>,
Copyright (c) 2014 hobbyquaker