-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
143 lines (133 loc) · 6.22 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jsplumb-demo</title>
<meta charset="utf-8">
<link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.css" rel="stylesheet">
<link rel="stylesheet" href="./src/css/index.css">
</head>
<body>
<div id="app">
<div class="container-fluid">
<div class="row">
<div id="side-buttons" class="col-md-1 bg-info min-height">
<div>
<h5>节点列表</h5>
<p>
<a class="btn btn-success btn-controler node-source" href="#" data-template="tpl-audio" role="button">
<i class="fa fa-play-circle-o" aria-hidden="true"></i>
单个节点</a>
</p>
<p>
<a class="btn btn-success btn-controler node-source" href="#" data-template="tpl-menu" role="button">
<i class="fa fa-navicon" aria-hidden="true"></i>
菜单节点</a>
</p>
</div>
</div>
<div class="col-md-11 bg-success min-height" id="drop-bg"></div>
</div>
</div>
</div>
<script id="tpl-audio" type="text/html">
<div class='pa' id='{{id}}' style='top:{{top}}px;left:{{left}}px'>
<a class='btn btn-default' href='#' role='button'> 节点样式
<span class="delete-node pull-right" data-type="deleteNode" data-id="{{id}}">X</span>
</a>
</div>
</script>
<script id="tpl-demo" type="text/html">
<div class='pa' id='{{id}}' style='top:{{top}}px;left:{{left}}px'>
<a class='btn btn-default' href='#' role='button'> {{name}}
<span class="delete-node pull-right" data-type="deleteNode" data-id="{{id}}">X</span>
</a>
</div>
</script>
<script id="tpl-Announce" type="text/html">
<div class='pa' id='{{id}}' style='top:{{top}}px;left:{{left}}px'>
<a class='btn btn-default' href='#' role='button'>
<i class="fa fa-play-circle-o" aria-hidden="true"></i>
{{name}}
<span class="delete-node pull-right" data-type="deleteNode" data-id="{{id}}">X</span>
</a>
</div>
</script>
<script id="tpl-menu" type="text/html">
<div class="pa" id='{{id}}' style='top:{{top}}px;left:{{left}}px'>
<div class="panel panel-default panel-node panel-info">
<div id='{{id}}-heading' data-id="{{id}}" class="panel-heading">菜单
<span class="delete-node pull-right" data-type="deleteNode" data-id="{{id}}">X</span>
</div>
<ul class="list-group">
<li id="{{generateId}}" data-pid="{{id}}" class="list-group-item panel-node-list">按1
</li>
<li id="{{generateId}}" data-pid="{{id}}" class="list-group-item panel-node-list">按2
</li>
<li id="{{generateId}}" data-pid="{{id}}" class="list-group-item panel-node-list">按3
</li>
</ul>
</div>
</div>
</script>
<script id="tpl-Root" type="text/html">
<div class='pa' id='{{id}}' style='top:{{top}}px;left:{{left}}px'>
<a class='btn btn-success' href='#' role='button' data-id="{{id}}"> {{name}}
<!-- <span class="delete-node pull-right" data-type="deleteNode" data-id="{{id}}">X</span> -->
</a>
</div>
</script>
<script id="tpl-Exit" type="text/html">
<div class='pa' id='{{id}}' style='top:{{top}}px;left:{{left}}px'>
<a class='btn btn-w3r' href='#' role='button'> {{name}}
<span class="delete-node pull-right" data-type="deleteNode" data-id="{{id}}">X</span>
</a>
</div>
</script>
<script id="tpl-WorkTime" type="text/html">
<div class="pa" id='{{id}}' style='top:{{top}}px;left:{{left}}px'>
<div class="panel panel-default panel-node panel-info">
<div id='{{id}}-heading' data-id="{{id}}" class="panel-heading"><i class="fa fa-calendar-times-o" aria-hidden="true"></i> {{name}}
<span class="delete-node pull-right" data-type="deleteNode" data-id="{{id}}">X</span>
</div>
<ul class="list-group">
<li id="{{id}}-onWorkTime" data-pid="{{id}}" class="list-group-item panel-node-list">工作时间
</li>
<li id="{{id}}-offWorkTime" data-pid="{{id}}" class="list-group-item panel-node-list">非工作时间
</li>
</ul>
</div>
</div>
</script>
<script id="tpl-Menu" type="text/html">
<div class="pa" id='{{id}}' style='top:{{top}}px;left:{{left}}px'>
<div class="panel panel-default panel-node panel-info">
<div id='{{id}}-heading' data-id="{{id}}" class="panel-heading"><i class="fa fa-navicon" aria-hidden="true"></i> {{name}}
<span class="delete-node pull-right" data-type="deleteNode" data-id="{{id}}">X</span>
</div>
<ul class="list-group">
<li id="{{id}}-noinput" data-pid="{{id}}" class="list-group-item panel-node-list">输入超时
</li>
<li id="{{id}}-nomatch" data-pid="{{id}}" class="list-group-item panel-node-list">输入错误
</li>
{{#choices}}
<li id="{{id}}-key-{{key}}" data-pid="{{id}}" class="list-group-item panel-node-list">按{{key}}
</li>{{/choices}}
</ul>
</div>
</div>
</script>
<script src="https://cdn.bootcss.com/node-uuid/1.4.8/uuid.min.js"></script>
<script src="https://cdn.bootcss.com/mustache.js/2.3.0/mustache.min.js"></script>
<script src="https://cdn.bootcss.com/jquery/1.12.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src="https://cdn.bootcss.com/jsPlumb/1.7.6/jquery.jsPlumb.min.js"></script>
<script src="./src/js/graphlib.min.js"></script>
<script src="./src/js/data.js"></script>
<script src="./src/js/config.js"></script>
<script src="./src/js/index.js"></script>
</body>
</html>