README
lemon-probe-extension-task
This project is used together with probe-core, probe-extension-project, cloud-core & cloud-extension-task.
Install
Probe.html
<!DOCTYPE html>
<html ng-app="probe">
<head>
<!-- Suggest to use 'utf-8' -->
<meta charset="utf-8" />
<title>[Any]</title>
<!-- All script can be from relative/absolute url or inline JavaScript -->
<!-- Some config items in window.config, must in the first. -->
<script src="./config.js"></script>
<!-- Load the probe-core. -->
<script src="[path/lemon-probe-core.js]"></script>
<!-- other extensions -->
<script src="[lemon-probe-extension-project.js]"></script>
<script src="[lemon-probe-extension-task.js]"></script>
</head><body></body></html>
Use NPM:
npm install --save-dev lemon-probe-extension-task
<script src="./node_modules/lemon-probe-extension-project/dist/lemon-probe-extension-project.js"></script>
<script src="./node_modules/lemon-probe-extension-task/dist/lemon-probe-extension-task.js"></script>
config.js
Here to provide a configuration template.
var config = {
api: {
// if use public service "//probe2.lemonce.net"
domain: '[cloud-core server]',
// If probe work in http protocol
HttpPort: '81',
// If probe work in https protocol
HttpsPort: '443',
// If your service has custom pathname.
pathname: 'probe/'
},
language: 'en_US'
};
If you use the public service from offical, Lemonce
var config = {
api: {
domain: '//probe2.lemonce.net',
HttpPort: '81',
HttpsPort: '443',
pathname: 'probe/'
},
language: 'en_US'
};