cpee 2.1.10 → 2.1.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 621ce6c077d9353a451b76d21994fa8bb15db1c44cb196e2925754850f8cf69c
4
- data.tar.gz: e714da8117190a7e56c57140939c841b6ff03a5da9aa6b5e0f5f4ad64534a20c
3
+ metadata.gz: efeba53ef2a09db39df28177cc7238d5df7c14277815e0a3f79ada2f7860222d
4
+ data.tar.gz: 8dd7c732a2067bc8e98ca9c71282baeb76d1e429f66b232cf6f24eccddf188ea
5
5
  SHA512:
6
- metadata.gz: 74713f528cb6111bbd7db9b353c1a14c0f526ebf109e136586e16892b05d1aaa0aeff6afc7464f4bbefa5939bafbce170cd253768c26f6aeb38b58362c8ceb8f
7
- data.tar.gz: 823a965814df7fb7e68119457d6a0f244179e91f3ca9b245dd1ea861a5a92a07e6de5f08339973640e620032a756f60f5c32f79a3346ca40f930cbc2818d7e31
6
+ metadata.gz: e04e0dc7f1c15874fafb119045594a564c5f956a3609800d7c18717a9e8da5365d86db978c72404c231b2a32421da5f1f8d03a6ae5a516aea7fcb8ba06ee619c
7
+ data.tar.gz: 5d629666c2a58c1f1545b8222b243ab5f05ca9cc30629979daaa1a286188270d3699ea195176e943fc2cb45ca2a9fd28f350b9ca663fbdfa924f335a539a59f1
data/cockpit/css/ui.css CHANGED
@@ -135,7 +135,7 @@ ui-tabbed ui-tabbar ui-behind button {
135
135
  #areainstance div.section { vertical-align: middle; height: 100%; }
136
136
  #areainstance div.section:nth-child(1) { flex: 0 0 auto; padding: 0 0.5em 0 0; white-space: nowrap; }
137
137
  #areainstance div.section:nth-child(2) { flex: 0 0 auto; border-left: 1px solid var(--x-ui-border-color); padding: 0 0.5em; white-space: nowrap; }
138
- #areainstance div.section:nth-child(3) { flex: 1 1 auto; border-left: 1px solid var(--x-ui-border-color); padding: 0 0 0 0.5em; white-space: nowrap; }
138
+ #areainstance div.section:nth-child(3) { flex: 1 1 auto; border-left: 1px solid var(--x-ui-border-color); padding: 0 0 0 0.5em; }
139
139
 
140
140
  #areainstance div.section:nth-child(1) > div:nth-child(2) { white-space: normal; text-align: right; }
141
141
 
@@ -148,10 +148,9 @@ ui-tabbed ui-tabbar ui-behind button {
148
148
 
149
149
  #areainstance div.section:nth-child(2) button { white-space: normal; width: 6em; height: 5.7em; vertical-align: middle; margin: 0; padding: 0; }
150
150
 
151
- #areainstance div.section:nth-child(3) { overflow-y: scroll; }
151
+ #areainstance div.section:nth-child(3) { overflow-y: scroll; overflow-x: hidden; display: flex; flex-direction: column; flex-wrap: wrap; justify-content: flex-start; align-content: flex-start; }
152
152
  #areainstance div.section:nth-child(3) strong { margin:0; padding:0; white-space: normal; font-size: 0.7em; }
153
- #areainstance div.section:nth-child(3) > div:not(:first-child) { padding-top: 0.2em; }
154
- #areainstance div.section:nth-child(3) > div { padding-bottom: 0em; }
153
+ #areainstance div.section:nth-child(3) > div { padding-bottom: 0.2em; flex: 0 0 auto; padding-right: 1em; }
155
154
  #areainstance div.section:nth-child(3) select { margin-left: 1em; }
156
155
  #areainstance div.section:nth-child(3) div.additional { margin: 0 1em; font-size: 0.9em; }
157
156
 
@@ -243,4 +242,4 @@ span.vote {
243
242
  overflow: auto;
244
243
  }
245
244
  #disclaimer p { max-width: 80ex; text-align: justify; }
246
- #disclaimer input { margin:0; padding:0; vertical-align:baseline; margin-right: 0.5em; }
245
+ #disclaimer input { margin:0; padding:0; vertical-align:bottom; margin-right: 0.5em; }
@@ -1,5 +1,5 @@
1
1
  var es;
2
- var suspended_monitoring = false;
2
+ var suspended_redrawing = false;
3
3
  var myid = ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16));
4
4
  var paths = '#dat_details input, #dat_details textarea, #dat_details select, #dat_details button, #dat_details [contenteditable], #dat_dataelements input, #dat_dataelements textarea, #dat_dataelements select, #dat_dataelements button, #dat_dataelements [contenteditable], #dat_endpoints input, #dat_endpoints textarea, #dat_endpoints select, #dat_endpoints button, #dat_endpoints [contenteditable], #dat_attributes input, #dat_attributes textarea, #dat_attributes select, #dat_attributes button, #dat_attributes [contenteditable]';
5
5
  var loading = false;
@@ -13,7 +13,7 @@ var save = {};
13
13
  var node_state = {};
14
14
 
15
15
  function global_init() {
16
- suspended_monitoring = false;
16
+ suspended_redrawing = false;
17
17
  loading = false;
18
18
  subscription = undefined;
19
19
  subscription_state = 'less';
@@ -280,10 +280,8 @@ function sse() { //{{{
280
280
  break;
281
281
  case 'attributes':
282
282
  monitor_instance_values("attributes");
283
- if (!suspended_monitoring) { // or else it would load twice, because dsl changes also trigger
284
- if (save['graph_theme'] != data.content.values.theme) {
285
- monitor_graph_change(true);
286
- }
283
+ if (save['graph_theme'] != data.content.values.theme) {
284
+ monitor_graph_change(true);
287
285
  }
288
286
  break;
289
287
  case 'task':
@@ -482,7 +480,11 @@ function adaptor_update() { //{{{
482
480
  });
483
481
  } //}}}
484
482
  function adaptor_init(url,theme,dslx) { //{{{
483
+ // while inside and svgs are reloaded, do nothing here
484
+ if (suspended_redrawing) { return; }
485
485
  if (save['graph_theme'] != theme) {
486
+ // while inside and svgs are reloaded, do nothing here
487
+ suspended_redrawing = true;
486
488
  save['graph_theme'] = theme;
487
489
  save['graph_adaptor'] = new WfAdaptor($('body').data('theme-base') + '/' + theme + '/theme.js',function(graphrealization){
488
490
  manifestation.endpoints = save.endpoints_list;
@@ -570,6 +572,9 @@ function adaptor_init(url,theme,dslx) { //{{{
570
572
  adaptor_update();
571
573
  monitor_instance_pos();
572
574
  $('#dat_details').empty();
575
+
576
+ // while inside and svgs are reloaded, do nothing here
577
+ suspended_redrawing = false;
573
578
  });
574
579
  } else {
575
580
  save['graph_adaptor'].update(function(graphrealization){
@@ -580,7 +585,6 @@ function adaptor_init(url,theme,dslx) { //{{{
580
585
  format_instance_pos();
581
586
  });
582
587
  }
583
- suspended_monitoring = false;
584
588
  } //}}}
585
589
 
586
590
  function monitor_graph_change(force) { //{{{
@@ -921,7 +925,6 @@ function save_svgfile() {// {{{
921
925
  }// }}}
922
926
  async function set_testset(testset,exec) {// {{{
923
927
  var url = $('body').attr('current-instance');
924
- suspended_monitoring = true;
925
928
 
926
929
  var promises = [];
927
930
 
@@ -42,7 +42,7 @@ function do_mod_save(target) {
42
42
  let top = div.attr('data-resource');
43
43
  let doc = save['modifiers_additional'][top].save();
44
44
  let rep = $('body').attr('current-resources');
45
- let now = encodeURIComponent($('div.select select',div).val());
45
+ let now = $('div.select select',div).val();
46
46
 
47
47
  var tset = $X('<testset xmlns="http://cpee.org/ns/properties/2.0"/>');
48
48
  tset.append(doc.documentElement);
@@ -69,12 +69,13 @@ async function modifiers_display() {
69
69
  let clone = document.importNode(document.querySelector('#modifiers template').content,true);
70
70
  let t = $(r).text();
71
71
  $('> div',clone).attr('data-resource',t);
72
- $('div.title *',clone).text(decodeURIComponent(t));
72
+ $('div.title *',clone).text(decodeURIComponent(t).replace(/^\d*_?/,''));
73
73
 
74
74
  let cpromises = [];
75
75
  $('resource',ses).each(function(_,s) {
76
- let opt = $('<option/>');
77
- opt.text(decodeURIComponent($(s).text()));
76
+ let opt = $('<option value=""/>');
77
+ opt.text(decodeURIComponent($(s).text()).replace(/^\d*_?/,''));
78
+ opt.attr('value',$(s).text());
78
79
  $('div.select select',clone).append(opt);
79
80
 
80
81
  cpromises.push(
@@ -120,7 +121,8 @@ function modifiers_display_ui(url,top,it,notchanged) {
120
121
  save['modifiers_additional'][top].content(attr);
121
122
  }
122
123
  });
123
- }
124
+ },
125
+ error: function() {}
124
126
  });
125
127
  }
126
128
  }
@@ -134,7 +136,7 @@ function modifiers_select() {
134
136
  });
135
137
  $('#modifiers div[data-resource]').each(function(_,r){
136
138
  $('select option',r).each(function(_,s){
137
- let where = $(r).attr('data-resource') + '/' + encodeURIComponent($(s).text());
139
+ let where = $(r).attr('data-resource') + '/' + $(s).attr('value');
138
140
  let cond = save['modifiers'][where];
139
141
  let success = true;
140
142
  for (x in cond) {
@@ -142,8 +144,8 @@ function modifiers_select() {
142
144
  }
143
145
  if (success) {
144
146
  let top = $(r).attr('data-resource');
145
- let it = encodeURIComponent($(s).text());
146
- $('select',r).val($(s).text());
147
+ let it = $(s).attr('value');
148
+ $('select',r).val(it);
147
149
  modifiers_display_ui(rep + 'modifiers/',top,it,save['modifiers_active'][top] == it);
148
150
  save['modifiers_active'][top] = it;
149
151
  }
data/cpee.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "2.1.10"
3
+ s.version = "2.1.11"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Preliminary release of cloud process execution engine (cpee.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.10
4
+ version: 2.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler