cpee-frames 1.0.6 → 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 +31 -46
- data/lib/cpee-frames/ui/template.html +2 -3
- data/lib/cpee-frames/ui/tutorial.html +79 -98
- 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/ui/examples/frame_data.js +0 -55
- data/ui/examples/framedata.html +0 -57
- data/ui/examples/menu.html +0 -66
- data/ui/examples/test.html +0 -52
- data/ui/examples/test.js +0 -61
data/ui/examples/menu.html
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
This file is part of CPEE-FRAMES.
|
|
3
|
-
|
|
4
|
-
CPEE-FRAMES is free software: you can redistribute it and/or modify it under
|
|
5
|
-
the terms of the GNU General Public License as published by the Free Software
|
|
6
|
-
Foundation, either version 3 of the License, or (at your option) any later
|
|
7
|
-
version.
|
|
8
|
-
|
|
9
|
-
CPEE-FRAMES is distributed in the hope that it will be useful, but WITHOUT
|
|
10
|
-
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
11
|
-
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
12
|
-
details.
|
|
13
|
-
|
|
14
|
-
You should have received a copy of the GNU General Public License along with
|
|
15
|
-
CPEE-FRAMES (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>
|
data/ui/examples/test.html
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
This file is part of CPEE-FRAMES.
|
|
3
|
-
|
|
4
|
-
CPEE-FRAMES is free software: you can redistribute it and/or modify it under
|
|
5
|
-
the terms of the GNU General Public License as published by the Free Software
|
|
6
|
-
Foundation, either version 3 of the License, or (at your option) any later
|
|
7
|
-
version.
|
|
8
|
-
|
|
9
|
-
CPEE-FRAMES is distributed in the hope that it will be useful, but WITHOUT
|
|
10
|
-
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
11
|
-
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
12
|
-
details.
|
|
13
|
-
|
|
14
|
-
You should have received a copy of the GNU General Public License along with
|
|
15
|
-
CPEE-FRAMES (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/examples/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
|
-
});
|