-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjson2mysql.html
More file actions
executable file
·57 lines (51 loc) · 1.14 KB
/
json2mysql.html
File metadata and controls
executable file
·57 lines (51 loc) · 1.14 KB
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
<script type="text/javascript">
RED.nodes.registerType('json2mysql',
{
category: 'storage',
color: '#deb887',
defaults:
{
name: {
value: ""
},
server: {
value: "",
type: "json2mysql-server",
},
template: {
value: ""
}
},
inputs: 1,
outputs: 1,
icon: 'db.svg',
label: function()
{
return this.name || 'json 2 mysql';
},
oneditprepare: function()
{
$("#node-input-template").typedInput({
type:"json",
types:["json"]
});
}
});
</script>
<script type="text/html" data-template-name="json2mysql">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-server"><i class="fa fa-globe"></i> Server</label>
<input type="text" id="node-input-server">
</div>
<div class="form-row">
<label for="node-input-template"><i class="fa fa-code"></i> Template</label>
<input type="text" id="node-input-template">
</div>
</script>
<script type="text/html" data-help-name="json2mysql">
<p>Creates mysql queries from json</p>
</script>