Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e232e30
commit ba7b97e
Showing
586 changed files
with
179,734 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
//$maparray=SQLSelectOne ('select * from zigbee2mqtt where value like "digraph%"'); | ||
$maparray=SQLSelectOne ('select * from zigbee2mqtt where path like "zigbee2mqtt/bridge/networkmap/raw"'); | ||
|
||
$out['map_array']=$maparray['VALUE']; | ||
|
||
$nodess=json_decode($maparray['VALUE'],true); | ||
|
||
//debmes ($maparray['VALUE'],'zigbee2mqtt'); | ||
//debmes ($nodess,'zigbee2mqtt'); | ||
/* | ||
foreach($nodess as $k=>$v) { | ||
// {id: 11, font:{size:30}, size:40, label: 'coordinator', shape: 'circularImage', image: '/templates/zigbee2mqtt/img/cc2531.jpg', shapeProperties: {borderDashes:[15,5]}}, | ||
if (is_array($v)) | ||
foreach($v as $kk=>$vv) | ||
{} | ||
echo $k.":".$v; | ||
} | ||
*/ | ||
$nodes = <<<EOD | ||
{id: 1, font:{size:30}, label: 'circle', shape: 'circle' , shapeProperties:{borderDashes:[5,5]}}, | ||
{id: 11, font:{size:30}, size:40, label: 'coordinator', shape: 'circularImage', image: '/templates/zigbee2mqtt/img/cc2531.jpg', shapeProperties: {borderDashes:[15,5]}}, | ||
EOD; | ||
|
||
$out['NODES']=$nodes | ||
|
||
|
||
|
||
|
||
?> | ||
|
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
This file was deleted.
Oops, something went wrong.
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,4 +1,74 @@ | ||
<br> | ||
<a href="?view_mode=get_map" class="btn btn-default" title="Get network map" ><i class="glyphicon glyphicon-dashboard"></i> Get network map</a> | ||
<br> | ||
|
||
[#map_array#] | ||
|
||
<hr> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>Network | Shapes</title> | ||
|
||
<style type="text/css"> | ||
#mynetwork { | ||
width: 1000px; | ||
height: 800px; | ||
border: 1px solid lightgray; | ||
} | ||
</style> | ||
|
||
<script type="text/javascript" src="/templates/zigbee2mqtt/vis-4.21.0/dist/vis.js"></script> | ||
<link href="/templates/zigbee2mqtt/vis-network.min.css" rel="stylesheet" type="text/css" /> | ||
|
||
|
||
|
||
<script type="text/javascript"> | ||
var nodes = null; | ||
var edges = null; | ||
var network = null; | ||
|
||
function draw() { | ||
nodes = [ | ||
|
||
[#NODES#] | ||
// {id: 1, font:{size:30}, label: 'circle', shape: 'circle' , shapeProperties:{borderDashes:[5,5]}}, | ||
// {id: 2, font:{size:30}, label: 'ellipse', shape: 'ellipse', shapeProperties:{borderDashes:[5,5]}}, | ||
// {id: 3, font:{size:30}, label: 'database',shape: 'database', shapeProperties:{borderDashes:[5,5]}}, | ||
// {id: 4, font:{size:30}, label: 'box', shape: 'box' , shapeProperties:{borderDashes:[5,5]}}, | ||
// {id: 5, font:{size:30}, size:40, label: 'diamond', shape: 'diamond', shapeProperties:{borderDashes:[5,5]}}, | ||
// {id: 6, font:{size:30}, size:40, label: 'dot', shape: 'dot', shapeProperties:{borderDashes:[5,5]}}, | ||
// {id: 7, font:{size:30}, size:40, label: 'square', shape: 'square', shapeProperties:{borderDashes:[5,5]}}, | ||
// {id: 8, font:{size:30}, size:40, label: 'triangle',shape: 'triangle', shapeProperties:{borderDashes:[5,5]}}, | ||
// {id: 9, font:{size:30}, size:40, label: 'triangleDown', shape: 'triangleDown', shapeProperties:{borderDashes:[5,5]}}, | ||
// {id: 10, font:{size:30}, size:40, label: 'star', shape: 'star', shapeProperties:{borderDashes:true}}, | ||
// {id: 11, font:{size:30}, size:40, label: 'coordinator', shape: 'circularImage', image: '/templates/zigbee2mqtt/img/cc2531.jpg', shapeProperties: {borderDashes:[15,5]}}, | ||
]; | ||
|
||
edges = [ | ||
]; | ||
|
||
// create a network | ||
var container = document.getElementById('mynetwork'); | ||
var data = { | ||
nodes: nodes, | ||
edges: edges | ||
}; | ||
var options = {physics:{barnesHut:{gravitationalConstant:-4000}}}; | ||
network = new vis.Network(container, data, options); | ||
} | ||
</script> | ||
|
||
|
||
<body onload="draw()"> | ||
|
||
<div id="mynetwork"></div> | ||
|
||
<div id="info"></div> | ||
</body> | ||
</html> | ||
|
||
|
||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"presets": ["es2015"], | ||
"plugins": [ | ||
"transform-es3-property-literals", | ||
"transform-es3-member-expression-literals", | ||
"transform-runtime" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
languages: | ||
JavaScript: true | ||
engines: | ||
eslint: | ||
enabled: true | ||
csslint: | ||
enabled: true | ||
markdownlint: | ||
enabled: true | ||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
javascript: | ||
mass_threshold: 300 | ||
fixme : | ||
enabled: true | ||
ratings: | ||
paths: | ||
- "**/*.js" | ||
- "**/*.css" | ||
- "**/*.md" | ||
exclude_paths: | ||
- "dist/**/*" | ||
- "docs/**/*" | ||
- "examples/**/*" |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"adjoining-classes": false, | ||
"box-model": false, | ||
"box-sizing": false, | ||
"order-alphabetical": false | ||
} |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true, | ||
"mocha": true | ||
}, | ||
|
||
"parserOptions": { | ||
"sourceType": "module", | ||
}, | ||
|
||
"extends": "eslint:recommended", | ||
|
||
// For the full list of rules, see: http://eslint.org/docs/rules/ | ||
"rules": { | ||
"complexity": [2, 55], | ||
"max-statements": [2, 115], | ||
"no-unreachable": 1, | ||
"no-useless-escape": 0, | ||
|
||
"no-console": 0, | ||
// To flag presence of console.log without breaking linting: | ||
//"no-console": ["warn", { allow: ["warn", "error"] }], | ||
|
||
"require-jsdoc": ["error", { | ||
"require": { | ||
"FunctionDeclaration": true, | ||
"MethodDefinition": true, | ||
"ClassDeclaration": true, | ||
"ArrowFunctionExpression": false | ||
} | ||
}], | ||
"valid-jsdoc": [2, { | ||
"requireReturnDescription": false, | ||
"requireReturn": false, | ||
"requireParamDescription": false, | ||
"requireReturnType": true | ||
}], | ||
"guard-for-in": 1, | ||
}, | ||
} |
10 changes: 10 additions & 0 deletions
10
templates/zigbee2mqtt/vis-4.21.0/.github/ISSUE_TEMPLATE.md
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
Please make sure to **read the following list** before creating a new issue: | ||
|
||
* This issue tracker is not supposed to be used for questions on how to use visjs. It is intended to be used for bug reports and feature requests! In case you face yourself with a usage question, then post your question e.g. on [stackoverflow](https://stackoverflow.com/questions/tagged/vis.js) tagged with "vis.js". | ||
* Have you already used the [github search](https://github.com/almende/vis/issues), read the [documentation](http://visjs.org/) and looked at the [examples](https://github.com/almende/vis/tree/develop/examples)? | ||
* Make sure to mention which vis-component (network, timeline, graph2D, graph3d) you are referring to. | ||
* Make sure to use the [latest version of vis.js](https://cdnjs.com/libraries/vis) for bug reports. | ||
* Make sure to mention which browser and OS you are using when creating a bug report. | ||
* Please provide a minimal code example that demonstrates your issue. We recommend using [jsbin](jsbin.com) for that. | ||
* Delete this list from the actual issue. |
11 changes: 11 additions & 0 deletions
11
templates/zigbee2mqtt/vis-4.21.0/.github/PULL_REQUEST_TEMPLATE.md
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
**Thank you for contributing to vis.js!!** | ||
|
||
Please make sure to check the following requirements before creating a pull request: | ||
|
||
* [ ] All pull requests must be to the [develop branch](https://github.com/almende/vis/tree/develop). Pull requests to the `master` branch will be closed! | ||
* [ ] Make sure your changes are based on the latest version of the [develop branch](https://github.com/almende/vis/tree/develop). (Use e.g. `git fetch && git rebase origin develop` to update your feature branch). | ||
* [ ] Provide an additional or update an example to demonstrate your changes or new features. | ||
* [ ] Update the documentation if you introduced new behavior or changed existing behavior. | ||
* [ ] Reference issue numbers of issues that your pull request addresses. (If you write something like `fixes #1781` in your git commit message this issue gets closed automatically by merging your pull request). | ||
* [ ] Expect review comments and change requests by reviewer. | ||
* [ ] Delete this checklist from your pull request. |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# npm files | ||
node_modules | ||
npm-debug.log | ||
|
||
# ide or system files | ||
.idea | ||
.c9 | ||
*.iml | ||
.project | ||
.settings/ | ||
.directory | ||
|
||
# temporary files | ||
.*.sw[op] | ||
.commits.tmp |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Markdown Lint Rules | ||
// https://github.com/mivok/markdownlint/blob/master/docs/RULES.md | ||
|
||
rules | ||
"~MD012", // alert on multiple consecutive blank lines | ||
"~MD013", // line length should be no more than 80 characters | ||
"~MD014", // Dollar signs used before commands without showing output |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
misc | ||
node_modules | ||
test | ||
tools | ||
.idea | ||
bower.json | ||
Jakefile.js | ||
.npmignore | ||
.gitignore |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
language: node_js | ||
node_js: | ||
- "6" | ||
env: | ||
- CXX=g++-4.8 | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- libgif-dev | ||
- g++-4.8 | ||
before_script: | ||
- npm run lint | ||
- npm install gulp | ||
script: | ||
- gulp | ||
- npm test |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## Contributing | ||
|
||
[Contributions](//github.com/almende/vis/blob/master/misc/how_to_help.md) to the vis.js library are very welcome! [We can't do this alone](//github.com/almende/vis/blob/master/misc/we_need_help.md). | ||
|
||
### Questions | ||
If you have any *general question* on how to use the vis.js library in your own project please check out [stackoverflow](http://stackoverflow.com/questions/tagged/vis.js) for thinks like that. **This is NOT a JavaScript help forum!** | ||
|
||
### Bugs, Problems and Feature-Requests | ||
If you really want to open a new issue: | ||
* Please use the [search functionality](//github.com/almende/vis/issues) to make sure that there is not already an issue concerning the same topic. | ||
* Please make sure to **mention which module** of vis.js (network, timeline, graph3d, ...) your are referring to. | ||
* Note that development happens on the `develop` git branch. Be sure to submit PRs against this branch. | ||
* If you think you found a bug please **provide a simple example** (e.g. on [jsbin](jsbin.com)) that demonstrates the problem. | ||
* If you want to propose a feature-request please **describe what you are looking for in detail**, ideally providing a screenshot, drawing or something similar. | ||
* **Close the issue later**, when the issue is no longer needed. |
Oops, something went wrong.