Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaymehul committed Feb 7, 2019
0 parents commit fe5f721
Show file tree
Hide file tree
Showing 6,658 changed files with 728,768 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
A Pen created at CodePen.io. You can find this one at https://codepen.io/Ni55aN/pen/xzgQYq.


206 changes: 206 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
@charset "UTF-8";
html, body {
height: 100%;
margin: 0;
}

#rete {
height: 100%;
}

/* Style buttons */
.btn {
background-color: transparent; /* Blue background */
border: none; /* Remove borders */
color: white; /* White text */
padding: 3px 4px; /* Some padding */
font-size: 8px; /* Set a font size */
cursor: pointer; /* Mouse pointer on hover */

}

/* Darker background on mouse-over */
.btn:hover {
background-color: RoyalBlue;
}

.node-editor {
background-size: 20px 20px;
background-image: linear-gradient(to right, #363636 1px, transparent 1px), linear-gradient(to bottom, #363636 1px, transparent 1px);
background-color: #272727;
overflow: hidden;
}
.node-editor * {
box-sizing: border-box;
}
.node-editor .node {
background: rgba(35, 35, 35, 0.7);
box-shadow: 1px solid black;
border: 1px solid black;
border-radius: 10px;
cursor: pointer;
display: inline-block;
height: auto;
padding-bottom: 6px;
box-sizing: content-box;
box-shadow: 4px 5px 9px rgba(0, 0, 0, 0.5);
min-width: 160px;
}
.node-editor .node:hover {
background: rgba(35, 35, 35, 0.7);
}
.node-editor .node.active {
background: rgba(22, 22, 22, 0.7);
border: 1px solid #ffd252;
}
.node-editor .node .title {
border-top: 1px solid #ccc;
color: white;
text-align: center;
font-weight: bold;
font-family: sans-serif;
font-size: 18px;
border-radius: 10px 10px 0 0;
padding: 8px;
overflow: hidden;
background: linear-gradient(to top, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.19) 100%), radial-gradient(70% 40px at center, rgba(0, 255, 0, 0.5) 0%, rgba(0, 255, 0, 0) 60%);
}
.node-editor .node .content {
display: table;
width: 100%;
}
.node-editor .node .content .col {
display: table-cell;
white-space: nowrap;
}
.node-editor .node .content .col:not(:last-child) {
padding-right: 0px;
}
.node-editor .node .socket {
display: inline-block;
cursor: pointer;
border: 2px solid white;
border-radius: 8px;
width: 16px;
height: 16px;
margin: 10px !important;
vertical-align: middle;
background: transparent;
position: relative;
z-index: 2;
}
.node-editor .node .socket.used {
background: white;
}
.node-editor .node .socket:after {
content: "";
position: absolute;
width: 0;
height: 0;
top: 3px;
left: 16px;
display: inline-block;
border-style: solid;
border-width: 4px 0 4px 2.6666666667px;
border-color: transparent transparent transparent white;
}
.node-editor .node .socket:hover {
border: 2px solid #777;
}
.node-editor .node .socket.multiple {
border-color: yellow;
}
.node-editor .node .input-title, .node-editor .node .output-title {
vertical-align: middle;
color: white;
display: inline-block;
font-family: sans-serif;
font-size: 14px;
margin: 10px 0;
line-height: 16px;
}

.output{
margin-top:auto;
margin-bottom:auto;
text-align: right;
}
.node-editor .node .input-control {
z-index: 1;
vertical-align: middle;
display: inline-block;
}
.node-editor .node .control {
width: 100%;
padding: 10px 18px;
}


.node-editor .connection path {
fill: none;
stroke: #eee;
stroke-width: 2px;
pointer-events: none;
}
.node-editor .connection path.active {
stroke: #aaa;
}
.node-editor .node select, .node-editor .node input {
width: 60px;
background-color: transparent;
padding: 2px 6px;
border: 1px solid white;
font-size: 14px;
color: white;
border-radius: 0;
}

.context-menu {
left: 0;
top: 0;
position: absolute;
padding: 10px;
margin-top: -20px;
}
.context-menu > .item {
margin-left: -80%;
}
.context-menu > .item .subitems {
position: absolute;
display: none;
left: 100%;
top: 0;
border-radius: 7px;
overflow: overlay;
}
.context-menu > .item:hover .subitems {
display: block;
}
.context-menu > .item.have-subitems {
padding-right: 16px;
}
.context-menu > .item.have-subitems:after {
content: "►";
position: absolute;
opacity: 0.6;
right: 5px;
top: 5px;
}
.context-menu .item {
padding: 4px;
border-bottom: 1px solid rgba(15, 15, 15, 0.7);
color: #fff;
background-color: rgba(35, 35, 35, 0.7);
cursor: pointer;
width: 100px;
position: relative;
}
.context-menu .item:first-child {
border-radius: 7px 7px 0 0;
}
.context-menu .item:last-child {
border-radius: 0 0 7px 7px;
}
.context-menu .item:hover {
background-color: rgba(45, 45, 45, 0.7);
}
2 changes: 2 additions & 0 deletions dist/bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/bundle.js.map

Large diffs are not rendered by default.

100 changes: 100 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<!DOCTYPE html>
<html lang="en" >

<head>
<meta charset="UTF-8">
<title>Rete.js (dataflow, node editor)</title>




<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/bci.min.js"></script>
<script src="src/BCIDevice.pack.js" type="text/javascript"></script>
<script src='https://cdn.jsdelivr.net/npm/[email protected]/build/rete.debug.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/[email protected]/build/vue-render-plugin.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/[email protected]/build/connection-plugin.debug.js'></script>
<script src='https://cdn.jsdelivr.net/npm/[email protected]/alight.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/[email protected]/build/context-menu-plugin.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/[email protected]/build/area-plugin.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/[email protected]/build/comment-plugin.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/[email protected]/build/history-plugin.min.js'></script>

</head>

<body>

<div id="rete" class="node-editor"></div>

<template id="MuseNode">
<div class="node" :class="[selected(), node.name] | kebab">
<div class="title">
<button id="Muse_BT" class="btn" onclick="myFunction()">
<i class="material-icons">
settings_bluetooth
</i>
</button>
{{node.name}}
</div>
<div class="content">
<div class="col" v-if="node.controls.size&gt;0 || node.inputs.size&gt;0">
<div class="input" v-for="input in inputs()" :key="input.key" style="text-align: left">
<Socket v-socket:input="input" type="input" :socket="input.socket" :used="() => input.connections.length"></Socket>
<div class="input-title" v-show="!input.showControl()">{{input.name}}</div>
<div class="input-control" v-show="input.showControl()" v-control="input.control"></div>
</div>
</div>
<div class="control" v-for="control in controls()" v-control="control" style="display: none;"></div>
<div class="col">
<div class="output" v-for="output in outputs()" :key="output.key">

<div class="output-title">{{output.name}}</div>
<Socket v-socket:output="output" type="output" :socket="output.socket" :used="() => output.connections.length" class="output-socket"></Socket>

</div>
</div>
</div>
</div>
</template>

<template id="CustomNode">
<div class="node" :class="[selected(), node.name] | kebab">
<div class="title">

{{node.name}}
</div>
<div class="content">
<div class="col" v-if="node.controls.size&gt;0 || node.inputs.size&gt;0">
<div class="input" v-for="input in inputs()" :key="input.key" style="text-align: left">
<Socket v-socket:input="input" type="input" :socket="input.socket" :used="() => input.connections.length"></Socket>
<div class="input-title" v-show="!input.showControl()">{{input.name}}</div>
<div class="input-control" v-show="input.showControl()" v-control="input.control"></div>
</div>
</div>
<div class="control" v-for="control in controls()" v-control="control"></div>
<div class="col">
<div class="output" v-for="output in outputs()" :key="output.key">

<div class="output-title">{{output.name}}</div>
<Socket v-socket:output="output" type="output" :socket="output.socket" :used="() => output.connections.length"></Socket>
</div>
</div>
</div>
</div>
</template>





<script src="dist/bundle.js"></script>




</body>

</html>
13 changes: 13 additions & 0 deletions license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


<!--
Copyright (c) 2019 by Ni55aN (https://codepen.io/Ni55aN/pen/xzgQYq)


Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->

15 changes: 15 additions & 0 deletions node_modules/.bin/babylon

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions node_modules/.bin/babylon.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions node_modules/.bin/cssesc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions node_modules/.bin/cssesc.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions node_modules/.bin/csvtojson

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fe5f721

Please sign in to comment.