-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathcode-generator.html
More file actions
133 lines (120 loc) · 3.02 KB
/
code-generator.html
File metadata and controls
133 lines (120 loc) · 3.02 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<title>🤖 Code Generator Example - Sequential Workflow Designer</title>
<meta property="og:title" content="🤖 Code Generator Example - Sequential Workflow Designer" />
<meta name="description" content="How you can use Sequential Workflow Designer to generate code." />
<meta property="og:description" content="How you can use Sequential Workflow Designer to generate code." />
<meta property="og:image" content="https://nocode-js.com/img/social-card.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://nocode-js.com/img/social-card.png" />
<link rel="icon" href="./assets/favicon.ico" />
<style>
body {
font:
14px/1.3em 'Open Sans',
Arial,
Verdana,
Serif;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
#designer {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 42%;
}
#output {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 58%;
padding: 10px;
box-sizing: border-box;
color: #fff;
background: #151515;
}
#output #code {
color: silver;
}
#output #result {
color: yellow;
}
#output a {
color: #fff;
}
#output a:hover {
text-decoration: none;
}
.sqd-root-editor {
padding: 10px;
}
.sqd-editor h3 {
margin: 0;
padding: 10px;
}
.sqd-editor p {
margin: 0;
padding: 10px;
}
.sqd-editor p label {
display: block;
padding: 0 0 5px;
}
.sqd-editor input {
width: 100%;
box-sizing: border-box;
border: 1px solid silver;
padding: 6px;
border-radius: 5px;
}
/* types */
.sqd-theme-soft .sqd-toolbox-item.sqd-type-setNumber {
background: #e6f2ff !important;
border-color: #c6d0db !important;
}
.sqd-step-task.sqd-type-setNumber .sqd-step-task-rect {
fill: #e6f2ff !important;
stroke: #c6d0db !important;
}
.sqd-theme-soft .sqd-toolbox-item.sqd-type-assignVar {
background: #ffeee6 !important;
border-color: #e3cec4 !important;
}
.sqd-step-task.sqd-type-assignVar .sqd-step-task-rect {
fill: #ffeee6 !important;
stroke: #e3cec4 !important;
}
.sqd-theme-soft .sqd-toolbox-item.sqd-type-addVar {
background: #e6ffe6 !important;
border-color: #c2dac2 !important;
}
.sqd-step-task.sqd-type-addVar .sqd-step-task-rect {
fill: #e6ffe6 !important;
stroke: #c2dac2 !important;
}
</style>
</head>
<body>
<div id="designer"></div>
<div id="output">
<h4>🤖 Code Generator | <a href="https://github.com/nocode-js/sequential-workflow-designer" target="_blank">GitHub</a></h4>
<pre id="code"></pre>
<h4>Result</h4>
<pre id="result"></pre>
</div>
<script src="./assets/lib.js"></script>
<script src="./assets/code-generator.js"></script>
</body>
</html>