cpee 1.3.223 → 1.3.224
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cockpit/css/ui.css +14 -14
- data/cockpit/css/wfadaptor.css +50 -0
- data/cockpit/graph.html +116 -0
- data/cockpit/index.html +41 -41
- data/cockpit/js/instance.js +15 -5
- data/cockpit/js/ui.js +5 -11
- data/cockpit/js/wfadaptor.js +20 -7
- data/cockpit/themes/{labels → compact}/theme.js +199 -48
- data/cockpit/themes/default/rngs/call.rng +26 -0
- data/cockpit/themes/default/rngs/callmanipulate.rng +29 -0
- data/cockpit/themes/default/rngs/manipulate.rng +3 -0
- data/cockpit/themes/default/symbols/alternative.svg +1 -1
- data/cockpit/themes/default/symbols/arrow.svg +3 -0
- data/cockpit/themes/default/symbols/call.svg +1 -1
- data/cockpit/themes/default/symbols/callcorrelationreceive.svg +1 -1
- data/cockpit/themes/default/symbols/callcorrelationsend.svg +2 -2
- data/cockpit/themes/default/symbols/callinstantiation.svg +1 -1
- data/cockpit/themes/default/symbols/callmanipulate.svg +1 -1
- data/cockpit/themes/default/symbols/callmanipulateworklist.svg +2 -2
- data/cockpit/themes/default/symbols/callworklist.svg +1 -1
- data/cockpit/themes/default/symbols/choose.svg +1 -1
- data/cockpit/themes/default/symbols/choose_exclusive.svg +1 -1
- data/cockpit/themes/default/symbols/choose_inclusive.svg +1 -1
- data/cockpit/themes/default/symbols/critical.svg +2 -2
- data/cockpit/themes/default/symbols/escape.svg +1 -1
- data/cockpit/themes/default/symbols/loop.svg +1 -1
- data/cockpit/themes/default/symbols/manipulate.svg +1 -1
- data/cockpit/themes/default/symbols/otherwise.svg +1 -1
- data/cockpit/themes/default/symbols/parallel.svg +1 -1
- data/cockpit/themes/default/symbols/parallel_branch.svg +1 -1
- data/cockpit/themes/default/symbols/scripts.svg +1 -1
- data/cockpit/themes/default/theme.js +198 -57
- data/cockpit/themes/lego/theme.js +459 -400
- data/cockpit/themes/promise/theme.js +459 -400
- data/cpee.gemspec +1 -1
- data/server/resources/transformation_dslx.xsl +98 -0
- metadata +5 -67
- data/cockpit/themes/adventure/rngs/alternative.rng +0 -5
- data/cockpit/themes/adventure/rngs/call.rng +0 -29
- data/cockpit/themes/adventure/rngs/callmanipulate.rng +0 -41
- data/cockpit/themes/adventure/rngs/choose.rng +0 -8
- data/cockpit/themes/adventure/rngs/critical.rng +0 -5
- data/cockpit/themes/adventure/rngs/escape.rng +0 -1
- data/cockpit/themes/adventure/rngs/finalize.rng +0 -6
- data/cockpit/themes/adventure/rngs/group.rng +0 -3
- data/cockpit/themes/adventure/rngs/loop.rng +0 -11
- data/cockpit/themes/adventure/rngs/manipulate.rng +0 -6
- data/cockpit/themes/adventure/rngs/otherwise.rng +0 -1
- data/cockpit/themes/adventure/rngs/parallel.rng +0 -5
- data/cockpit/themes/adventure/rngs/parallel_branch.rng +0 -8
- data/cockpit/themes/adventure/rngs/update.rng +0 -6
- data/cockpit/themes/adventure/symbols/alternative.svg +0 -4
- data/cockpit/themes/adventure/symbols/call.svg +0 -4
- data/cockpit/themes/adventure/symbols/callmanipulate.svg +0 -6
- data/cockpit/themes/adventure/symbols/choose.svg +0 -5
- data/cockpit/themes/adventure/symbols/choose_exclusive.svg +0 -5
- data/cockpit/themes/adventure/symbols/choose_inclusive.svg +0 -4
- data/cockpit/themes/adventure/symbols/critical.svg +0 -4
- data/cockpit/themes/adventure/symbols/escape.svg +0 -5
- data/cockpit/themes/adventure/symbols/loop.svg +0 -5
- data/cockpit/themes/adventure/symbols/manipulate.svg +0 -4
- data/cockpit/themes/adventure/symbols/otherwise.svg +0 -4
- data/cockpit/themes/adventure/symbols/parallel.svg +0 -5
- data/cockpit/themes/adventure/symbols/parallel_branch.svg +0 -4
- data/cockpit/themes/adventure/symbols/scripts.svg +0 -4
- data/cockpit/themes/adventure/symbols/start.svg +0 -3
- data/cockpit/themes/adventure/theme.js +0 -739
- data/cockpit/themes/labels/rngs/alternative.rng +0 -5
- data/cockpit/themes/labels/rngs/call.rng +0 -32
- data/cockpit/themes/labels/rngs/callmanipulate.rng +0 -47
- data/cockpit/themes/labels/rngs/choose.rng +0 -8
- data/cockpit/themes/labels/rngs/critical.rng +0 -5
- data/cockpit/themes/labels/rngs/escape.rng +0 -1
- data/cockpit/themes/labels/rngs/finalize.rng +0 -6
- data/cockpit/themes/labels/rngs/group.rng +0 -3
- data/cockpit/themes/labels/rngs/loop.rng +0 -11
- data/cockpit/themes/labels/rngs/manipulate.rng +0 -6
- data/cockpit/themes/labels/rngs/otherwise.rng +0 -1
- data/cockpit/themes/labels/rngs/parallel.rng +0 -5
- data/cockpit/themes/labels/rngs/parallel_branch.rng +0 -8
- data/cockpit/themes/labels/rngs/update.rng +0 -6
- data/cockpit/themes/labels/symbols/alternative.svg +0 -4
- data/cockpit/themes/labels/symbols/call.svg +0 -4
- data/cockpit/themes/labels/symbols/callcorrelationreceive.svg +0 -6
- data/cockpit/themes/labels/symbols/callcorrelationsend.svg +0 -6
- data/cockpit/themes/labels/symbols/callinstantiation.svg +0 -3
- data/cockpit/themes/labels/symbols/callmanipulate.svg +0 -6
- data/cockpit/themes/labels/symbols/callmanipulateworklist.svg +0 -6
- data/cockpit/themes/labels/symbols/callworklist.svg +0 -4
- data/cockpit/themes/labels/symbols/choose.svg +0 -5
- data/cockpit/themes/labels/symbols/choose_exclusive.svg +0 -5
- data/cockpit/themes/labels/symbols/choose_inclusive.svg +0 -4
- data/cockpit/themes/labels/symbols/critical.svg +0 -4
- data/cockpit/themes/labels/symbols/escape.svg +0 -5
- data/cockpit/themes/labels/symbols/loop.svg +0 -5
- data/cockpit/themes/labels/symbols/manipulate.svg +0 -4
- data/cockpit/themes/labels/symbols/otherwise.svg +0 -4
- data/cockpit/themes/labels/symbols/parallel.svg +0 -5
- data/cockpit/themes/labels/symbols/parallel_branch.svg +0 -4
- data/cockpit/themes/labels/symbols/scripts.svg +0 -4
- data/cockpit/themes/labels/symbols/start.svg +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce2f2888804d0868122fbcfd26f63b6845d157ad
|
4
|
+
data.tar.gz: ef8225299e50b439e22365ddfb3801c355cf3b70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af3f3e3c8e11ffe0b09333194247a13e1f77468c22c3d3ea285c46cb23a517b0809010180b6ee54feae35d55b50611f2bdcedb424151dc1c18430fcb93d74feb
|
7
|
+
data.tar.gz: 33a265bd3ebf2658f80ba79c121627a0b9c37621eb4db8fefe66bad8b32c7466cbdfe21304e84e15bf8840418bda32c962e45bc2b8b5c629b95d9e70d727f91b
|
data/cockpit/css/ui.css
CHANGED
@@ -49,20 +49,20 @@ ui-tabbed ui-tabbar ui-behind button {
|
|
49
49
|
|
50
50
|
#areainstance input[type=file] { display: none; }
|
51
51
|
#areainstance div.section { display: table-cell; vertical-align: middle; }
|
52
|
-
#areainstance div.section:nth-child(1) { padding: 0 0.5em 0 0; }
|
53
|
-
#areainstance div.section:nth-child(2) { border-left: 1px solid #a1a1a1; padding: 0 0.5em; }
|
54
|
-
#areainstance div.section:nth-child(3) { border-left: 1px solid #a1a1a1; padding: 0 0 0 0.5em; }
|
55
|
-
|
56
|
-
#areainstance div.section:nth-child(1) div { vertical-align: middle; margin: 0; padding: 0; }
|
57
|
-
#areainstance div.section:nth-child(1) button { vertical-align: middle; margin: 0; padding: 0; }
|
58
|
-
#areainstance div.section:nth-child(1) div:nth-child(2) { text-align: right; }
|
59
|
-
#areainstance div.section:nth-child(1) button[name=loadtestset] { width: 10em; height: 3.5em; }
|
60
|
-
#areainstance div.section:nth-child(1) button[name=loadtestsetfile] { width: 10em; height: 3.5em; margin-left: 0.2em; }
|
61
|
-
#areainstance div.section:nth-child(1) button[name=loadmodelfile] { width: 10em; height: 2em; margin-top: 0.2em; }
|
62
|
-
|
63
|
-
#areainstance div.section:nth-child(2) button { width: 6em; height: 4.5em; vertical-align: middle; margin: 0; padding: 0; }
|
64
|
-
#areainstance div.section:nth-child(3) div { vertical-align: middle; margin: 0; padding: 0; }
|
65
|
-
#areainstance div.section:nth-child(3) button[name=loadmodeltype] { width: 10em; height: 2em; }
|
52
|
+
#areainstance div.section:nth-child(1) { padding: 0 0.5em 0 0; white-space: nowrap; }
|
53
|
+
#areainstance div.section:nth-child(2) { border-left: 1px solid #a1a1a1; padding: 0 0.5em; white-space: nowrap; }
|
54
|
+
#areainstance div.section:nth-child(3) { border-left: 1px solid #a1a1a1; padding: 0 0 0 0.5em; white-space: nowrap; }
|
55
|
+
|
56
|
+
#areainstance div.section:nth-child(1) div { white-space: normal; vertical-align: middle; margin: 0; padding: 0; }
|
57
|
+
#areainstance div.section:nth-child(1) button { white-space: normal; vertical-align: middle; margin: 0; padding: 0; }
|
58
|
+
#areainstance div.section:nth-child(1) div:nth-child(2) { white-space: normal; text-align: right; }
|
59
|
+
#areainstance div.section:nth-child(1) button[name=loadtestset] { white-space: normal; width: 10em; height: 3.5em; }
|
60
|
+
#areainstance div.section:nth-child(1) button[name=loadtestsetfile] { white-space: normal; width: 10em; height: 3.5em; margin-left: 0.2em; }
|
61
|
+
#areainstance div.section:nth-child(1) button[name=loadmodelfile] { white-space: normal; width: 10em; height: 2em; margin-top: 0.2em; }
|
62
|
+
|
63
|
+
#areainstance div.section:nth-child(2) button { white-space: normal; width: 6em; height: 4.5em; vertical-align: middle; margin: 0; padding: 0; }
|
64
|
+
#areainstance div.section:nth-child(3) div { white-space: normal; vertical-align: middle; margin: 0; padding: 0; }
|
65
|
+
#areainstance div.section:nth-child(3) button[name=loadmodeltype] { white-space: normal; width: 10em; height: 2em; }
|
66
66
|
|
67
67
|
#areaexecution input { padding: 0; margin:0; }
|
68
68
|
#areaexecution table.compact { width: 100%; }
|
data/cockpit/css/wfadaptor.css
CHANGED
@@ -42,6 +42,11 @@ svg g.vote .rfill {
|
|
42
42
|
fill-opacity:1;
|
43
43
|
}
|
44
44
|
|
45
|
+
svg .rfill.menu {
|
46
|
+
fill: #ff7f7f;
|
47
|
+
fill-opacity:1;
|
48
|
+
}
|
49
|
+
|
45
50
|
svg line.ourline, svg path.ourline {
|
46
51
|
stroke-opacity:1;
|
47
52
|
stroke:#000000;
|
@@ -106,6 +111,31 @@ svg .black {
|
|
106
111
|
stroke-dasharray:none;
|
107
112
|
}
|
108
113
|
|
114
|
+
svg .marked text.label {
|
115
|
+
color: #d4d4d4;
|
116
|
+
fill: #d4d4d4;
|
117
|
+
}
|
118
|
+
svg .marked .cfill {
|
119
|
+
fill:#d4d4d4;
|
120
|
+
fill-opacity:1;
|
121
|
+
stroke:#d4d4d4;
|
122
|
+
stroke-width:0.2;
|
123
|
+
stroke-linecap:round;
|
124
|
+
stroke-linejoin:round;
|
125
|
+
stroke-miterlimit:4;
|
126
|
+
stroke-opacity:1;
|
127
|
+
stroke-dasharray:none;
|
128
|
+
}
|
129
|
+
svg .marked .cline {
|
130
|
+
stroke:#d4d4d4;
|
131
|
+
stroke-width:2.06896567;
|
132
|
+
stroke-linecap:round;
|
133
|
+
stroke-linejoin:round;
|
134
|
+
stroke-miterlimit:4;
|
135
|
+
stroke-opacity:1;
|
136
|
+
stroke-dasharray:none;
|
137
|
+
}
|
138
|
+
|
109
139
|
svg .clicked text.label {
|
110
140
|
color: #f57900;
|
111
141
|
fill: #f57900;
|
@@ -316,3 +346,23 @@ svg g.element[element-id]:hover > text.label {
|
|
316
346
|
color: #f57900;
|
317
347
|
fill: #f57900;
|
318
348
|
}
|
349
|
+
svg g.element[element-id]:hover .cfill {
|
350
|
+
fill:#000000;
|
351
|
+
fill-opacity:1;
|
352
|
+
stroke:#000000;
|
353
|
+
stroke-width:0.2;
|
354
|
+
stroke-linecap:round;
|
355
|
+
stroke-linejoin:round;
|
356
|
+
stroke-miterlimit:4;
|
357
|
+
stroke-opacity:1;
|
358
|
+
stroke-dasharray:none;
|
359
|
+
}
|
360
|
+
svg g.element[element-id]:hover .cline {
|
361
|
+
stroke:#000000;
|
362
|
+
stroke-width:2.06896567;
|
363
|
+
stroke-linecap:round;
|
364
|
+
stroke-linejoin:round;
|
365
|
+
stroke-miterlimit:4;
|
366
|
+
stroke-opacity:1;
|
367
|
+
stroke-dasharray:none;
|
368
|
+
}
|
data/cockpit/graph.html
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
<!--
|
2
|
+
This file is part of CPEE.
|
3
|
+
|
4
|
+
CPEE is free software: you can redistribute it and/or modify it under the terms
|
5
|
+
of the GNU General Public License as published by the Free Software Foundation,
|
6
|
+
either version 3 of the License, or (at your option) any later version.
|
7
|
+
|
8
|
+
CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
|
9
|
+
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
10
|
+
PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
11
|
+
|
12
|
+
You should have received a copy of the GNU General Public License along with
|
13
|
+
CPEE (file COPYING in the main directory). If not, see
|
14
|
+
<http://www.gnu.org/licenses/>.
|
15
|
+
-->
|
16
|
+
|
17
|
+
<!DOCTYPE html>
|
18
|
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
19
|
+
<head>
|
20
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
21
|
+
<title>CPEE Cockpit</title>
|
22
|
+
|
23
|
+
<!-- libs, do not modify. When local than load local libs. -->
|
24
|
+
<script type="text/javascript">
|
25
|
+
if ((document.location.host == 'localhost') && (document.location.protocol == 'http:')) {
|
26
|
+
document.write('<script type="text/javascript" src="http://localhost/js_libs/jquery.min.js">\x3C/script>');
|
27
|
+
document.write('<script type="text/javascript" src="http://localhost/js_libs/jquery.browser.js">\x3C/script>');
|
28
|
+
document.write('<script type="text/javascript" src="http://localhost/js_libs/jquery.svg.min.js">\x3C/script>');
|
29
|
+
document.write('<script type="text/javascript" src="http://localhost/js_libs/jquery.svgdom.min.js">\x3C/script>');
|
30
|
+
document.write('<script type="text/javascript" src="http://localhost/js_libs/vkbeautify.js">\x3C/script>');
|
31
|
+
document.write('<script type="text/javascript" src="http://localhost/js_libs/util.js">\x3C/script>');
|
32
|
+
document.write('<script type="text/javascript" src="http://localhost/js_libs/printf.js">\x3C/script>');
|
33
|
+
document.write('<script type="text/javascript" src="http://localhost/js_libs/strftime.min.js">\x3C/script>');
|
34
|
+
document.write('<script type="text/javascript" src="http://localhost/js_libs/parsequery.js">\x3C/script>');
|
35
|
+
document.write('<script type="text/javascript" src="http://localhost/js_libs/underscore.min.js">\x3C/script>');
|
36
|
+
document.write('<script type="text/javascript" src="http://localhost/js_libs/jquery.caret.min.js">\x3C/script>');
|
37
|
+
document.write('<script type="text/javascript" src="http://localhost/js_libs/jquery.cookie.js">\x3C/script>');
|
38
|
+
document.write('<script type="text/javascript" src="http://localhost/js_libs/relaxngui.js">\x3C/script>');
|
39
|
+
|
40
|
+
document.write('<script type="text/javascript" src="http://localhost/js_libs/ui.js">\x3C/script>');
|
41
|
+
document.write('<script type="text/javascript" src="http://localhost/js_libs/custommenu.js">\x3C/script>');
|
42
|
+
|
43
|
+
document.write('<link rel="stylesheet" href="http://localhost/js_libs/custommenu.css" type="text/css"/>');
|
44
|
+
document.write('<link rel="stylesheet" href="http://localhost/js_libs/ui.css" type="text/css"/>');
|
45
|
+
|
46
|
+
document.write('<link rel="stylesheet" href="http://localhost/js_libs/relaxngui.css" type="text/css"/>');
|
47
|
+
} else if ((document.location.host == 'localhost') && (document.location.protocol == 'https:')) {
|
48
|
+
document.write('<script type="text/javascript" src="https://localhost/js_libs/jquery.min.js">\x3C/script>');
|
49
|
+
document.write('<script type="text/javascript" src="https://localhost/js_libs/jquery.browser.js">\x3C/script>');
|
50
|
+
document.write('<script type="text/javascript" src="https://localhost/js_libs/jquery.svg.min.js">\x3C/script>');
|
51
|
+
document.write('<script type="text/javascript" src="https://localhost/js_libs/jquery.svgdom.min.js">\x3C/script>');
|
52
|
+
document.write('<script type="text/javascript" src="https://localhost/js_libs/vkbeautify.js">\x3C/script>');
|
53
|
+
document.write('<script type="text/javascript" src="https://localhost/js_libs/util.js">\x3C/script>');
|
54
|
+
document.write('<script type="text/javascript" src="https://localhost/js_libs/printf.js">\x3C/script>');
|
55
|
+
document.write('<script type="text/javascript" src="https://localhost/js_libs/strftime.min.js">\x3C/script>');
|
56
|
+
document.write('<script type="text/javascript" src="https://localhost/js_libs/parsequery.js">\x3C/script>');
|
57
|
+
document.write('<script type="text/javascript" src="https://localhost/js_libs/underscore.min.js">\x3C/script>');
|
58
|
+
document.write('<script type="text/javascript" src="https://localhost/js_libs/jquery.caret.min.js">\x3C/script>');
|
59
|
+
document.write('<script type="text/javascript" src="https://localhost/js_libs/jquery.cookie.js">\x3C/script>');
|
60
|
+
document.write('<script type="text/javascript" src="https://localhost/js_libs/relaxngui.js">\x3C/script>');
|
61
|
+
|
62
|
+
document.write('<script type="text/javascript" src="https://localhost/js_libs/ui.js">\x3C/script>');
|
63
|
+
document.write('<script type="text/javascript" src="https://localhost/js_libs/custommenu.js">\x3C/script>');
|
64
|
+
|
65
|
+
document.write('<link rel="stylesheet" href="https://localhost/js_libs/custommenu.css" type="text/css"/>');
|
66
|
+
document.write('<link rel="stylesheet" href="https://localhost/js_libs/ui.css" type="text/css"/>');
|
67
|
+
|
68
|
+
document.write('<link rel="stylesheet" href="https://localhost/js_libs/relaxngui.css" type="text/css"/>');
|
69
|
+
} else {
|
70
|
+
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/jquery.min.js">\x3C/script>');
|
71
|
+
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/jquery.browser.js">\x3C/script>');
|
72
|
+
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/jquery.svg.min.js">\x3C/script>');
|
73
|
+
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/jquery.svgdom.min.js">\x3C/script>');
|
74
|
+
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/vkbeautify.js">\x3C/script>');
|
75
|
+
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/util.js">\x3C/script>');
|
76
|
+
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/printf.js">\x3C/script>');
|
77
|
+
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/strftime.min.js">\x3C/script>');
|
78
|
+
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/parsequery.js">\x3C/script>');
|
79
|
+
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/underscore.min.js">\x3C/script>');
|
80
|
+
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/jquery.caret.min.js">\x3C/script>');
|
81
|
+
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/jquery.cookie.js">\x3C/script>');
|
82
|
+
|
83
|
+
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/relaxngui.js">\x3C/script>');
|
84
|
+
|
85
|
+
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/ui.js">\x3C/script>');
|
86
|
+
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/custommenu.js">\x3C/script>');
|
87
|
+
|
88
|
+
document.write('<link rel="stylesheet" href="http://gruppe.wst.univie.ac.at/js_libs/custommenu.css" type="text/css"/>');
|
89
|
+
document.write('<link rel="stylesheet" href="http://gruppe.wst.univie.ac.at/js_libs/ui.css" type="text/css"/>');
|
90
|
+
|
91
|
+
document.write('<link rel="stylesheet" href="http://gruppe.wst.univie.ac.at/js_libs/relaxngui.css" type="text/css"/>');
|
92
|
+
}
|
93
|
+
</script>
|
94
|
+
|
95
|
+
<!-- modelling ui -->
|
96
|
+
<script type="text/javascript" src="js/wfadaptor.js"></script>
|
97
|
+
<link rel="stylesheet" href="css/wfadaptor.css" type="text/css"/>
|
98
|
+
|
99
|
+
<!-- custom stuff, play arround -->
|
100
|
+
<script type="text/javascript" src="js/ui.js"></script>
|
101
|
+
<script type="text/javascript" src="js/instance.js"></script>
|
102
|
+
<script type="text/javascript" src="js/details.js"></script>
|
103
|
+
<script type="text/javascript" src="js/parameters.js"></script>
|
104
|
+
<link rel="stylesheet" href="css/ui.css" type="text/css"/>
|
105
|
+
</head>
|
106
|
+
<body data-defaultport="9298" data-theme-base="themes" is="x-ui">
|
107
|
+
<div class='hidden'>
|
108
|
+
<input name="base-url" type="text" value=""/>
|
109
|
+
<input name="instance-url" type="text" value=""/>
|
110
|
+
<a id='current-instance' href=''></a>
|
111
|
+
</div>
|
112
|
+
<div id='graphcolumn' style='overflow: auto'>
|
113
|
+
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:x="http://www.w3.org/1999/xlink" id='graphcanvas' width='1' height='1'></svg>
|
114
|
+
</div>
|
115
|
+
</body>
|
116
|
+
</html>
|
data/cockpit/index.html
CHANGED
@@ -22,50 +22,50 @@
|
|
22
22
|
|
23
23
|
<!-- libs, do not modify. When local than load local libs. -->
|
24
24
|
<script type="text/javascript">
|
25
|
-
if ((document.location.
|
26
|
-
document.write('<script type="text/javascript" src="http://
|
27
|
-
document.write('<script type="text/javascript" src="http://
|
28
|
-
document.write('<script type="text/javascript" src="http://
|
29
|
-
document.write('<script type="text/javascript" src="http://
|
30
|
-
document.write('<script type="text/javascript" src="http://
|
31
|
-
document.write('<script type="text/javascript" src="http://
|
32
|
-
document.write('<script type="text/javascript" src="http://
|
33
|
-
document.write('<script type="text/javascript" src="http://
|
34
|
-
document.write('<script type="text/javascript" src="http://
|
35
|
-
document.write('<script type="text/javascript" src="http://
|
36
|
-
document.write('<script type="text/javascript" src="http://
|
37
|
-
document.write('<script type="text/javascript" src="http://
|
38
|
-
document.write('<script type="text/javascript" src="http://
|
25
|
+
if ((document.location.hostname == 'localhost') && (document.location.protocol == 'http:')) {
|
26
|
+
document.write('<script type="text/javascript" src="http://' + document.location.host + '/js_libs/jquery.min.js">\x3C/script>');
|
27
|
+
document.write('<script type="text/javascript" src="http://' + document.location.host + '/js_libs/jquery.browser.js">\x3C/script>');
|
28
|
+
document.write('<script type="text/javascript" src="http://' + document.location.host + '/js_libs/jquery.svg.min.js">\x3C/script>');
|
29
|
+
document.write('<script type="text/javascript" src="http://' + document.location.host + '/js_libs/jquery.svgdom.min.js">\x3C/script>');
|
30
|
+
document.write('<script type="text/javascript" src="http://' + document.location.host + '/js_libs/vkbeautify.js">\x3C/script>');
|
31
|
+
document.write('<script type="text/javascript" src="http://' + document.location.host + '/js_libs/util.js">\x3C/script>');
|
32
|
+
document.write('<script type="text/javascript" src="http://' + document.location.host + '/js_libs/printf.js">\x3C/script>');
|
33
|
+
document.write('<script type="text/javascript" src="http://' + document.location.host + '/js_libs/strftime.min.js">\x3C/script>');
|
34
|
+
document.write('<script type="text/javascript" src="http://' + document.location.host + '/js_libs/parsequery.js">\x3C/script>');
|
35
|
+
document.write('<script type="text/javascript" src="http://' + document.location.host + '/js_libs/underscore.min.js">\x3C/script>');
|
36
|
+
document.write('<script type="text/javascript" src="http://' + document.location.host + '/js_libs/jquery.caret.min.js">\x3C/script>');
|
37
|
+
document.write('<script type="text/javascript" src="http://' + document.location.host + '/js_libs/jquery.cookie.js">\x3C/script>');
|
38
|
+
document.write('<script type="text/javascript" src="http://' + document.location.host + '/js_libs/relaxngui.js">\x3C/script>');
|
39
39
|
|
40
|
-
document.write('<script type="text/javascript" src="http://
|
41
|
-
document.write('<script type="text/javascript" src="http://
|
40
|
+
document.write('<script type="text/javascript" src="http://' + document.location.host + '/js_libs/ui.js">\x3C/script>');
|
41
|
+
document.write('<script type="text/javascript" src="http://' + document.location.host + '/js_libs/custommenu.js">\x3C/script>');
|
42
42
|
|
43
|
-
document.write('<link rel="stylesheet"
|
44
|
-
document.write('<link rel="stylesheet"
|
43
|
+
document.write('<link rel="stylesheet" href="http://' + document.location.host + '/js_libs/custommenu.css" type="text/css"/>');
|
44
|
+
document.write('<link rel="stylesheet" href="http://' + document.location.host + '/js_libs/ui.css" type="text/css"/>');
|
45
45
|
|
46
|
-
document.write('<link rel="stylesheet"
|
47
|
-
} else if ((document.location.
|
48
|
-
document.write('<script type="text/javascript" src="https://
|
49
|
-
document.write('<script type="text/javascript" src="https://
|
50
|
-
document.write('<script type="text/javascript" src="https://
|
51
|
-
document.write('<script type="text/javascript" src="https://
|
52
|
-
document.write('<script type="text/javascript" src="https://
|
53
|
-
document.write('<script type="text/javascript" src="https://
|
54
|
-
document.write('<script type="text/javascript" src="https://
|
55
|
-
document.write('<script type="text/javascript" src="https://
|
56
|
-
document.write('<script type="text/javascript" src="https://
|
57
|
-
document.write('<script type="text/javascript" src="https://
|
58
|
-
document.write('<script type="text/javascript" src="https://
|
59
|
-
document.write('<script type="text/javascript" src="https://
|
60
|
-
document.write('<script type="text/javascript" src="https://
|
46
|
+
document.write('<link rel="stylesheet" href="http://' + document.location.host + '/js_libs/relaxngui.css" type="text/css"/>');
|
47
|
+
} else if ((document.location.hostname == 'localhost') && (document.location.protocol == 'https:')) {
|
48
|
+
document.write('<script type="text/javascript" src="https://' + document.location.host + '/js_libs/jquery.min.js">\x3C/script>');
|
49
|
+
document.write('<script type="text/javascript" src="https://' + document.location.host + '/js_libs/jquery.browser.js">\x3C/script>');
|
50
|
+
document.write('<script type="text/javascript" src="https://' + document.location.host + '/js_libs/jquery.svg.min.js">\x3C/script>');
|
51
|
+
document.write('<script type="text/javascript" src="https://' + document.location.host + '/js_libs/jquery.svgdom.min.js">\x3C/script>');
|
52
|
+
document.write('<script type="text/javascript" src="https://' + document.location.host + '/js_libs/vkbeautify.js">\x3C/script>');
|
53
|
+
document.write('<script type="text/javascript" src="https://' + document.location.host + '/js_libs/util.js">\x3C/script>');
|
54
|
+
document.write('<script type="text/javascript" src="https://' + document.location.host + '/js_libs/printf.js">\x3C/script>');
|
55
|
+
document.write('<script type="text/javascript" src="https://' + document.location.host + '/js_libs/strftime.min.js">\x3C/script>');
|
56
|
+
document.write('<script type="text/javascript" src="https://' + document.location.host + '/js_libs/parsequery.js">\x3C/script>');
|
57
|
+
document.write('<script type="text/javascript" src="https://' + document.location.host + '/js_libs/underscore.min.js">\x3C/script>');
|
58
|
+
document.write('<script type="text/javascript" src="https://' + document.location.host + '/js_libs/jquery.caret.min.js">\x3C/script>');
|
59
|
+
document.write('<script type="text/javascript" src="https://' + document.location.host + '/js_libs/jquery.cookie.js">\x3C/script>');
|
60
|
+
document.write('<script type="text/javascript" src="https://' + document.location.host + '/js_libs/relaxngui.js">\x3C/script>');
|
61
61
|
|
62
|
-
document.write('<script type="text/javascript" src="https://
|
63
|
-
document.write('<script type="text/javascript" src="https://
|
62
|
+
document.write('<script type="text/javascript" src="https://' + document.location.host + '/js_libs/ui.js">\x3C/script>');
|
63
|
+
document.write('<script type="text/javascript" src="https://' + document.location.host + '/js_libs/custommenu.js">\x3C/script>');
|
64
64
|
|
65
|
-
document.write('<link rel="stylesheet"
|
66
|
-
document.write('<link rel="stylesheet"
|
65
|
+
document.write('<link rel="stylesheet" href="https://' + document.location.host + '/js_libs/custommenu.css" type="text/css"/>');
|
66
|
+
document.write('<link rel="stylesheet" href="https://' + document.location.host + '/js_libs/ui.css" type="text/css"/>');
|
67
67
|
|
68
|
-
document.write('<link rel="stylesheet"
|
68
|
+
document.write('<link rel="stylesheet" href="https://' + document.location.host + '/js_libs/relaxngui.css" type="text/css"/>');
|
69
69
|
} else {
|
70
70
|
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/jquery.min.js">\x3C/script>');
|
71
71
|
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/jquery.browser.js">\x3C/script>');
|
@@ -85,10 +85,10 @@
|
|
85
85
|
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/ui.js">\x3C/script>');
|
86
86
|
document.write('<script type="text/javascript" src="http://gruppe.wst.univie.ac.at/js_libs/custommenu.js">\x3C/script>');
|
87
87
|
|
88
|
-
document.write('<link
|
89
|
-
document.write('<link
|
88
|
+
document.write('<link rel="stylesheet" href="http://gruppe.wst.univie.ac.at/js_libs/custommenu.css" type="text/css"/>');
|
89
|
+
document.write('<link rel="stylesheet" href="http://gruppe.wst.univie.ac.at/js_libs/ui.css" type="text/css"/>');
|
90
90
|
|
91
|
-
document.write('<link
|
91
|
+
document.write('<link rel="stylesheet" href="http://gruppe.wst.univie.ac.at/js_libs/relaxngui.css" type="text/css"/>');
|
92
92
|
}
|
93
93
|
</script>
|
94
94
|
|
data/cockpit/js/instance.js
CHANGED
@@ -58,7 +58,7 @@ var sub_less = 'topic' + '=' + 'activity' + '&' +// {{{
|
|
58
58
|
'topic' + '=' + 'handlers' + '&' +
|
59
59
|
'events' + '=' + 'change';// }}}
|
60
60
|
|
61
|
-
|
61
|
+
function cockpit() {
|
62
62
|
if (location.protocol.match(/^file/)) {
|
63
63
|
$("input[name=base-url]").val("http://localhost:" + $('body').data('defaultport'));
|
64
64
|
} else {
|
@@ -125,7 +125,16 @@ $(document).ready(function() {// {{{
|
|
125
125
|
});
|
126
126
|
}
|
127
127
|
});
|
128
|
-
}
|
128
|
+
}
|
129
|
+
|
130
|
+
function sanitize_url() {
|
131
|
+
var url = $("input[name=instance-url]").val();
|
132
|
+
var lastChar = url.substr(url.length - 1)
|
133
|
+
if (lastChar != '/') {
|
134
|
+
$("input[name=instance-url]").val(url + '/');
|
135
|
+
}
|
136
|
+
return $("input[name=instance-url]").val();
|
137
|
+
}
|
129
138
|
|
130
139
|
function check_subscription() { // {{{
|
131
140
|
var url = $("#current-instance").text();
|
@@ -183,7 +192,7 @@ function create_instance(ask,exec) {// {{{
|
|
183
192
|
}// }}}
|
184
193
|
|
185
194
|
function monitor_instance(load,exec) {// {{{
|
186
|
-
var url =
|
195
|
+
var url = sanitize_url();
|
187
196
|
|
188
197
|
$('.tabbehind button').hide();
|
189
198
|
$('#dat_details').empty();
|
@@ -345,7 +354,7 @@ function monitor_graph_change(force) { //{{{
|
|
345
354
|
adaptor_init(url,$('value',res).text(),dslx);
|
346
355
|
},
|
347
356
|
error: function() {
|
348
|
-
adaptor_init(url,'
|
357
|
+
adaptor_init(url,'labels',dslx);
|
349
358
|
}
|
350
359
|
});
|
351
360
|
}
|
@@ -572,7 +581,8 @@ function save_testset() {// {{{
|
|
572
581
|
pars.append($(res.documentElement).children());
|
573
582
|
pars.find('uuid').remove();
|
574
583
|
testset.append(pars);
|
575
|
-
|
584
|
+
var ct = new Date();
|
585
|
+
$('#savetestset').attr('download',name + '_' + ct.strftime("%Y-%m-%dT%H%M%S%z") + '.xml');
|
576
586
|
$('#savetestset').attr('href','data:application/xml;charset=utf-8;base64,' + $B64(testset.serializePrettyXML()));
|
577
587
|
document.getElementById('savetestset').click();
|
578
588
|
},
|
data/cockpit/js/ui.js
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
$(document).ready(function() {
|
2
|
-
if (!($.cookie('cpee_iagree'))) {
|
3
|
-
|
4
|
-
|
5
|
-
$('body').children().each(function(key,c){
|
6
|
-
if (skip) {
|
7
|
-
$(c).remove();
|
8
|
-
} else {
|
9
|
-
$(c).removeClass('hidden');
|
10
|
-
}
|
11
|
-
skip = true;
|
12
|
-
});
|
2
|
+
if (!($.cookie('cpee_iagree')) && $("body > div[id='disclaimer']").length > 0) {
|
3
|
+
$("body > :not([id='disclaimer'])").remove();
|
4
|
+
$("body > [id='disclaimer']").removeClass('hidden');
|
13
5
|
|
14
6
|
$("#iagree").click(function(){
|
15
7
|
if($(this).is(':checked')){
|
@@ -22,5 +14,7 @@ $(document).ready(function() {
|
|
22
14
|
$.cookie('cpee_iagree','yes');
|
23
15
|
location.reload();
|
24
16
|
});
|
17
|
+
} else {
|
18
|
+
cockpit();
|
25
19
|
}
|
26
20
|
});
|
data/cockpit/js/wfadaptor.js
CHANGED
@@ -77,6 +77,19 @@ function WfAdaptor(theme_base,doit) { // Controller {{{
|
|
77
77
|
}
|
78
78
|
}
|
79
79
|
// doit
|
80
|
+
for(element in manifestation.resources) {
|
81
|
+
deferreds.push(
|
82
|
+
$.ajax({
|
83
|
+
type: "GET",
|
84
|
+
dataType: "xml",
|
85
|
+
url: manifestation.resources[element],
|
86
|
+
context: element,
|
87
|
+
success: function(res){
|
88
|
+
manifestation.resources[this] = $(res.documentElement);
|
89
|
+
}
|
90
|
+
})
|
91
|
+
);
|
92
|
+
}
|
80
93
|
for(element in manifestation.elements) {
|
81
94
|
if (manifestation.elements[element].illustrator) {
|
82
95
|
if (manifestation.elements[element].illustrator.svg) {
|
@@ -402,35 +415,35 @@ function WfDescription(wf_adaptor, wf_illustrator) { // Model {{{
|
|
402
415
|
} // }}}
|
403
416
|
// }}}
|
404
417
|
// Adaption functions {{{
|
405
|
-
this.insert_after = function(new_node, target) { // {{{
|
418
|
+
this.insert_after = function(new_node, target, source_opts) { // {{{
|
406
419
|
if ($.isArray(new_node)) {
|
407
420
|
$.each(new_node,function(k,v){
|
408
|
-
var nn = self.source(v);
|
421
|
+
var nn = self.source(v,source_opts);
|
409
422
|
target.after(nn);
|
410
423
|
nn.attr('new','true');
|
411
424
|
});
|
412
425
|
} else {
|
413
|
-
var nn = self.source(new_node);
|
426
|
+
var nn = self.source(new_node,source_opts);
|
414
427
|
target.after(nn);
|
415
428
|
nn.attr('new','true');
|
416
429
|
}
|
417
430
|
update();
|
418
431
|
} // }}}
|
419
|
-
this.insert_first_into = function(new_node, target,
|
432
|
+
this.insert_first_into = function(new_node, target, source_opts) { // {{{
|
420
433
|
if ($.isArray(new_node)) {
|
421
434
|
$.each(new_node,function(k,v){
|
422
|
-
var nn = self.source(v);
|
435
|
+
var nn = self.source(v,source_opts);
|
423
436
|
target.prepend(nn);
|
424
437
|
nn.attr('new','true');
|
425
438
|
});
|
426
439
|
} else {
|
427
|
-
var nn = self.source(new_node);
|
440
|
+
var nn = self.source(new_node,source_opts);
|
428
441
|
target.prepend(nn);
|
429
442
|
nn.attr('new','true');
|
430
443
|
}
|
431
444
|
update();
|
432
445
|
} // }}}
|
433
|
-
this.insert_last_into = function(new_node, target
|
446
|
+
this.insert_last_into = function(new_node, target) { // {{{
|
434
447
|
if ($.isArray(new_node)) {
|
435
448
|
$.each(new_node,function(k,v){
|
436
449
|
var nn = self.source(v);
|