cpee-frames 1.0.5 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/cpee-frames.gemspec +1 -1
- data/lib/cpee-frames/frames.xml +0 -8
- data/lib/cpee-frames/implementation.rb +40 -63
- data/lib/cpee-frames/ui/template.html +12 -16
- data/lib/cpee-frames/ui/tutorial.html +89 -108
- data/server/frames +2 -0
- data/tools/cpee-frames +5 -5
- data/ui/examples/button.html +48 -0
- data/ui/examples/questions.css +23 -0
- data/ui/examples/questions.html +238 -0
- data/ui/examples/spinner.html +34 -0
- data/ui/examples/text.css +1 -0
- data/ui/examples/text.html +21 -0
- data/ui/js/frames.js +17 -0
- data/ui/js/ui.js +12 -127
- metadata +10 -11
- data/lib/cpee-frames/ui/framedata.html +0 -57
- data/lib/cpee-frames/ui/menu.html +0 -66
- data/lib/cpee-frames/ui/test.html +0 -52
- data/ui/js/frame_data.js +0 -55
- data/ui/js/test.js +0 -61
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
This file is part of centurio.work/out/frame.
|
|
3
|
-
|
|
4
|
-
centurio.work/out/frame is free software: you can redistribute it and/or modify
|
|
5
|
-
it under the terms of the GNU General Public License as published by the Free
|
|
6
|
-
Software Foundation, either version 3 of the License, or (at your option) any
|
|
7
|
-
later version.
|
|
8
|
-
|
|
9
|
-
centurio.work/out/frame is distributed in the hope that it will be useful, but
|
|
10
|
-
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
11
|
-
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
12
|
-
more details.
|
|
13
|
-
|
|
14
|
-
You should have received a copy of the GNU General Public License along with
|
|
15
|
-
centurio.work/out/frame (file LICENSE in the main directory). If not, see
|
|
16
|
-
<http://www.gnu.org/licenses/>.
|
|
17
|
-
-->
|
|
18
|
-
|
|
19
|
-
<!DOCTYPE html>
|
|
20
|
-
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
|
|
21
|
-
<head>
|
|
22
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
23
|
-
<title>data frame</title>
|
|
24
|
-
|
|
25
|
-
<!-- libs, do not modify. When local than load local libs. -->
|
|
26
|
-
<script type="text/javascript" src="/js_libs/jquery.min.js"></script>
|
|
27
|
-
<script type="text/javascript" src="/js_libs/jquery.browser.js"></script>
|
|
28
|
-
<script type="text/javascript" src="/js_libs/jquery.svg.min.js"></script>
|
|
29
|
-
<script type="text/javascript" src="/js_libs/jquery.svgdom.min.js"></script>
|
|
30
|
-
<script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
|
|
31
|
-
<script type="text/javascript" src="/js_libs/util.js"></script>
|
|
32
|
-
<script type="text/javascript" src="/js_libs/printf.js"></script>
|
|
33
|
-
<script type="text/javascript" src="/js_libs/strftime.min.js"></script>
|
|
34
|
-
<script type="text/javascript" src="/js_libs/parsequery.js"></script>
|
|
35
|
-
<script type="text/javascript" src="/js_libs/underscore.min.js"></script>
|
|
36
|
-
<script type="text/javascript" src="/js_libs/jquery.caret.min.js"></script>
|
|
37
|
-
<script type="text/javascript" src="/js_libs/jquery.cookie.js"></script>
|
|
38
|
-
|
|
39
|
-
<!-- custom stuff, play arround -->
|
|
40
|
-
<script type="text/javascript" src="../js/frame_data.js"></script>
|
|
41
|
-
<script type="text/javascript" src="../js/language.js"></script>
|
|
42
|
-
<link rel="stylesheet" href="../css/frames.css" type="text/css"/>
|
|
43
|
-
<link class='custom' rel="stylesheet" href="" type="text/css"/>
|
|
44
|
-
|
|
45
|
-
<!-- Forms
|
|
46
|
-
<script src='https://centurio.work/out/forms/js/formio.full.min.js'></script>
|
|
47
|
-
-->
|
|
48
|
-
<script>
|
|
49
|
-
if (location.href.match(/\/$/) == null) {
|
|
50
|
-
location.href = location.href + '/';
|
|
51
|
-
}
|
|
52
|
-
</script>
|
|
53
|
-
</head>
|
|
54
|
-
<body is="x-ui">
|
|
55
|
-
Data: <div id="alldata"></div>
|
|
56
|
-
</body>
|
|
57
|
-
</html>
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
This file is part of centurio.work/out/frame.
|
|
3
|
-
|
|
4
|
-
centurio.work/out/frame is free software: you can redistribute it and/or modify
|
|
5
|
-
it under the terms of the GNU General Public License as published by the Free
|
|
6
|
-
Software Foundation, either version 3 of the License, or (at your option) any
|
|
7
|
-
later version.
|
|
8
|
-
|
|
9
|
-
centurio.work/out/frame is distributed in the hope that it will be useful, but
|
|
10
|
-
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
11
|
-
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
12
|
-
more details.
|
|
13
|
-
|
|
14
|
-
You should have received a copy of the GNU General Public License along with
|
|
15
|
-
centurio.work/out/frame (file LICENSE in the main directory). If not, see
|
|
16
|
-
<http://www.gnu.org/licenses/>.
|
|
17
|
-
-->
|
|
18
|
-
|
|
19
|
-
<!DOCTYPE html>
|
|
20
|
-
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
|
|
21
|
-
<head>
|
|
22
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
23
|
-
<title>menu frame</title>
|
|
24
|
-
|
|
25
|
-
<!-- libs, do not modify. When local than load local libs. -->
|
|
26
|
-
<script type="text/javascript" src="/js_libs/jquery.min.js"></script>
|
|
27
|
-
<script type="text/javascript" src="/js_libs/jquery.browser.js"></script>
|
|
28
|
-
<script type="text/javascript" src="/js_libs/jquery.svg.min.js"></script>
|
|
29
|
-
<script type="text/javascript" src="/js_libs/jquery.svgdom.min.js"></script>
|
|
30
|
-
<script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
|
|
31
|
-
<script type="text/javascript" src="/js_libs/util.js"></script>
|
|
32
|
-
<script type="text/javascript" src="/js_libs/printf.js"></script>
|
|
33
|
-
<script type="text/javascript" src="/js_libs/strftime.min.js"></script>
|
|
34
|
-
<script type="text/javascript" src="/js_libs/parsequery.js"></script>
|
|
35
|
-
<script type="text/javascript" src="/js_libs/underscore.min.js"></script>
|
|
36
|
-
<script type="text/javascript" src="/js_libs/jquery.caret.min.js"></script>
|
|
37
|
-
<script type="text/javascript" src="/js_libs/jquery.cookie.js"></script>
|
|
38
|
-
|
|
39
|
-
<!-- custom stuff, play arround -->
|
|
40
|
-
<script type="text/javascript" src="../js/test.js"></script>
|
|
41
|
-
<link rel="stylesheet" href="../css/design.css" type="text/css"/>
|
|
42
|
-
<link class='custom' rel="stylesheet" href="" type="text/css"/>
|
|
43
|
-
<script>
|
|
44
|
-
if (location.href.match(/\/$/) == null) {
|
|
45
|
-
location.href = location.href + '/';
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function openlink(menuitem){
|
|
49
|
-
var menu = { name: menuitem };
|
|
50
|
-
|
|
51
|
-
$.ajax({
|
|
52
|
-
type: "PUT",
|
|
53
|
-
url: window.name,
|
|
54
|
-
contentType: "application/json",
|
|
55
|
-
data: JSON.stringify(menu),
|
|
56
|
-
success: function (data) { }
|
|
57
|
-
});
|
|
58
|
-
//alert(xyz);
|
|
59
|
-
}
|
|
60
|
-
</script>
|
|
61
|
-
</head>
|
|
62
|
-
<body is="x-ui">
|
|
63
|
-
<a href="javascript:openlink('Centurio');">Centurio</a>
|
|
64
|
-
<a href="javascript:openlink('WAS');">WAS</a>
|
|
65
|
-
</body>
|
|
66
|
-
</html>
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
This file is part of centurio.work/out/frame.
|
|
3
|
-
|
|
4
|
-
centurio.work/out/frame is free software: you can redistribute it and/or modify
|
|
5
|
-
it under the terms of the GNU General Public License as published by the Free
|
|
6
|
-
Software Foundation, either version 3 of the License, or (at your option) any
|
|
7
|
-
later version.
|
|
8
|
-
|
|
9
|
-
centurio.work/out/frame is distributed in the hope that it will be useful, but
|
|
10
|
-
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
11
|
-
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
12
|
-
more details.
|
|
13
|
-
|
|
14
|
-
You should have received a copy of the GNU General Public License along with
|
|
15
|
-
centurio.work/out/frame (file LICENSE in the main directory). If not, see
|
|
16
|
-
<http://www.gnu.org/licenses/>.
|
|
17
|
-
-->
|
|
18
|
-
|
|
19
|
-
<!DOCTYPE html>
|
|
20
|
-
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
|
|
21
|
-
<head>
|
|
22
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
23
|
-
<title>test frame</title>
|
|
24
|
-
|
|
25
|
-
<!-- libs, do not modify. When local than load local libs. -->
|
|
26
|
-
<script type="text/javascript" src="/js_libs/jquery.min.js"></script>
|
|
27
|
-
<script type="text/javascript" src="/js_libs/jquery.browser.js"></script>
|
|
28
|
-
<script type="text/javascript" src="/js_libs/jquery.svg.min.js"></script>
|
|
29
|
-
<script type="text/javascript" src="/js_libs/jquery.svgdom.min.js"></script>
|
|
30
|
-
<script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
|
|
31
|
-
<script type="text/javascript" src="/js_libs/util.js"></script>
|
|
32
|
-
<script type="text/javascript" src="/js_libs/printf.js"></script>
|
|
33
|
-
<script type="text/javascript" src="/js_libs/strftime.min.js"></script>
|
|
34
|
-
<script type="text/javascript" src="/js_libs/parsequery.js"></script>
|
|
35
|
-
<script type="text/javascript" src="/js_libs/underscore.min.js"></script>
|
|
36
|
-
<script type="text/javascript" src="/js_libs/jquery.caret.min.js"></script>
|
|
37
|
-
<script type="text/javascript" src="/js_libs/jquery.cookie.js"></script>
|
|
38
|
-
|
|
39
|
-
<!-- custom stuff, play arround -->
|
|
40
|
-
<script type="text/javascript" src="../js/test.js"></script>
|
|
41
|
-
<link rel="stylesheet" href="../css/design.css" type="text/css"/>
|
|
42
|
-
<link class='custom' rel="stylesheet" href="" type="text/css"/>
|
|
43
|
-
<script>
|
|
44
|
-
if (location.href.match(/\/$/) == null) {
|
|
45
|
-
location.href = location.href + '/';
|
|
46
|
-
}
|
|
47
|
-
</script>
|
|
48
|
-
</head>
|
|
49
|
-
<body is="x-ui">
|
|
50
|
-
<div id="container">test</div>
|
|
51
|
-
</body>
|
|
52
|
-
</html>
|
data/ui/js/frame_data.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
function showDocument(fr = "") {
|
|
2
|
-
if(fr != ""){
|
|
3
|
-
$.ajax({
|
|
4
|
-
type: "GET",
|
|
5
|
-
url: '/out/frames/' + fr + '/dataelements.json',
|
|
6
|
-
success: function(ret) {
|
|
7
|
-
$("#alldata").text(JSON.stringify(ret["ausfuehrungen"]));
|
|
8
|
-
},
|
|
9
|
-
error: function() {
|
|
10
|
-
reason = '';
|
|
11
|
-
clearDocument();
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function clearDocument() { }
|
|
18
|
-
|
|
19
|
-
function init() {
|
|
20
|
-
es = new EventSource('handler/sse/');
|
|
21
|
-
es.onopen = function() {
|
|
22
|
-
showDocument("FormTest");
|
|
23
|
-
// load
|
|
24
|
-
};
|
|
25
|
-
es.onmessage = function(e) {
|
|
26
|
-
if (e.data == 'new') {
|
|
27
|
-
reason = '';
|
|
28
|
-
showDocument();
|
|
29
|
-
}
|
|
30
|
-
if (e.data == 'reset') {
|
|
31
|
-
reason = '';
|
|
32
|
-
showDocument();
|
|
33
|
-
}
|
|
34
|
-
else{
|
|
35
|
-
if(e.data != "keepalive" && e.data != "started"){
|
|
36
|
-
try {
|
|
37
|
-
showDocument(e.data);
|
|
38
|
-
}
|
|
39
|
-
catch (e) {
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
es.onerror = function() {
|
|
46
|
-
reason = 'Server down.';
|
|
47
|
-
clearDocument();
|
|
48
|
-
setTimeout(init, 10000);
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
$(document).ready(function() {
|
|
53
|
-
init();
|
|
54
|
-
});
|
|
55
|
-
|
data/ui/js/test.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
document.addEventListener('keyup', (event) => {
|
|
2
|
-
if (event.key == 'ArrowRight') {
|
|
3
|
-
$.ajax({
|
|
4
|
-
type: "PUT",
|
|
5
|
-
url: "../Manuel",
|
|
6
|
-
headers: {"content-id": "input"},
|
|
7
|
-
data: { style_url: "mystyleURL", document_url: 'www.nixdrin.at' },
|
|
8
|
-
success: function(res) {
|
|
9
|
-
location.reload();
|
|
10
|
-
},
|
|
11
|
-
error: function (request, status, error) {
|
|
12
|
-
alert(request.responseText + status + error);
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
if (event.key == 'ArrowUp') {
|
|
18
|
-
$.ajax({
|
|
19
|
-
type: "POST",
|
|
20
|
-
url: "../Manuel",
|
|
21
|
-
headers: {"content-id": "frame"},
|
|
22
|
-
data: { lx: "2", ly: '0', rx: '1', ry: '2', url: 'https://centurio.work/' },
|
|
23
|
-
success: function(res) {
|
|
24
|
-
location.reload();
|
|
25
|
-
},
|
|
26
|
-
error: function (request, status, error) {
|
|
27
|
-
alert(request.responseText + status + error);
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
if (event.key == 'ArrowDown') {
|
|
33
|
-
$.ajax({
|
|
34
|
-
type: "POST",
|
|
35
|
-
url: "../Manuel",
|
|
36
|
-
headers: {"content-id": "frame"},
|
|
37
|
-
data: { lx: "0", ly: '0', rx: '2', ry: '2', url: 'https://centurio.work/flow-test/' },
|
|
38
|
-
success: function(res) {
|
|
39
|
-
location.reload();
|
|
40
|
-
},
|
|
41
|
-
error: function (request, status, error) {
|
|
42
|
-
alert(request.responseText + status + error);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
if (event.key == 'ArrowLeft') {
|
|
48
|
-
$.ajax({
|
|
49
|
-
type: "POST",
|
|
50
|
-
url: "../Manuel",
|
|
51
|
-
headers: {"content-id": "frame"},
|
|
52
|
-
data: { lx: "1", ly: '1', rx: '2', ry: '2', url: 'https://centurio.work/customers/evva/was/ui/' },
|
|
53
|
-
success: function(res) {
|
|
54
|
-
location.reload();
|
|
55
|
-
},
|
|
56
|
-
error: function (request, status, error) {
|
|
57
|
-
alert(request.responseText + status + error);
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
});
|