cpee-frames 2.0.2 → 2.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbcc6ab7613127223f4cfd184b77101c3d7eb5dd98441616c92b37bcd732509d
4
- data.tar.gz: 249be508581dda213ffe228cb1c70f7820f0470d2de4e0ad16817029b6a532ef
3
+ metadata.gz: c8e402550232c32b47b47c25a43b088789bf27580fe6a21af42a058ef8569d9a
4
+ data.tar.gz: 2bccb916a6067ca456b7e97b03561f936e47bf7d971271d73b2fc1e36c7b5d25
5
5
  SHA512:
6
- metadata.gz: dd79c5ddabc1d6820c217828055ce28c2b3fa0d15929de370efe85dab805e08dbb635ca582d849732473e29fe95eaef0ee34d9cfab6c9df470b04bdfd7efe0ba
7
- data.tar.gz: 07a6bf8aa76babfe444b4ed6408b2cb2746af3320ffdae77073084b432d2a2c45ba9c88c3e36edf9361ebd5bd5c9c8a6a1762f4e6887ef84b64262cb95ae0025
6
+ metadata.gz: c38cae8c29625e53d0325a6f375bdfba56e1f54396fa3f21af7b15b4591eceff76c7d5cff613b8612c8243a9fef7057b8d715efeea28c573127489d7b1c23944
7
+ data.tar.gz: 911362ca4e03d0859d1a1e48b1c31d6e1506b6eb554030a536e4d2247d3dc1afefc71b2dd15ad08e913bba2b771476b00496bf0f1e5d432f83ad8de1f024f8f3
data/cpee-frames.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee-frames"
3
- s.version = "2.0.2"
3
+ s.version = "2.0.4"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "GPL-3.0-or-later"
6
6
  s.summary = "Dashboard management service with UI and backend for the cpee.org family of workflow management tools"
@@ -22,4 +22,5 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.add_runtime_dependency 'riddl', '~> 0.99'
24
24
  s.add_runtime_dependency 'json', '~> 2.1'
25
+ s.add_runtime_dependency 'typhoeus', '~> 1.4'
25
26
  end
@@ -18,9 +18,7 @@
18
18
 
19
19
  require 'rubygems'
20
20
  require 'json'
21
- require 'xml/smart'
22
21
  require 'riddl/server'
23
- require 'fileutils'
24
22
  require 'typhoeus'
25
23
 
26
24
  module CPEE
@@ -24,17 +24,6 @@
24
24
 
25
25
  <!-- libs, do not modify. When local than load local libs. -->
26
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
27
 
39
28
  <!-- custom stuff, play arround -->
40
29
  <script type="text/javascript" src="../js/ui.js"></script>
@@ -22,20 +22,6 @@
22
22
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
23
23
  <title>Frames - Tutorial</title>
24
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
25
  <!-- custom stuff, play arround -->
40
26
  <link class='custom' rel="stylesheet" href="" type="text/css"/>
41
27
  <script>
data/tools/cpee-frames CHANGED
@@ -3,16 +3,16 @@
3
3
  # This file is part of CPEE-FRAMES.
4
4
  #
5
5
  # CPEE-FRAMES is free software: you can redistribute it and/or modify it under
6
- # the terms of the GNU Lesser General Public License as published by the Free
6
+ # the terms of the GNU General Public License as published by the Free
7
7
  # Software Foundation, either version 3 of the License, or (at your option) any
8
8
  # later version.
9
9
  #
10
10
  # CPEE-FRAMES is distributed in the hope that it will be useful, but WITHOUT
11
11
  # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
- # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12
+ # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13
13
  # details.
14
14
  #
15
- # You should have received a copy of the GNU Lesser General Public License
15
+ # You should have received a copy of the GNU General Public License
16
16
  # along with CPEE-FRAMES (file LICENSE in the main directory). If not, see
17
17
  # <http://www.gnu.org/licenses/>.
18
18
 
@@ -20,10 +20,6 @@ curpath = __dir__
20
20
  require 'rubygems'
21
21
  require 'optparse'
22
22
  require 'fileutils'
23
- require 'xml/smart'
24
- require 'yaml'
25
- require 'typhoeus'
26
- require 'stringio'
27
23
 
28
24
  def wrap(s, width=78, indent=18, extra_indent=4) #{{{
29
25
  lines = []
data/ui/js/ui.js CHANGED
@@ -39,11 +39,6 @@ function makeFrame(lx, ly, rx, ry, content = "", id = "", defaultpara = "", show
39
39
  spanrow = " / span " + (ry-ly+1);
40
40
  }
41
41
 
42
- jQuery.cssNumber.gridColumnStart = true;
43
- jQuery.cssNumber.gridColumnEnd = true;
44
- jQuery.cssNumber.gridRowStart = true;
45
- jQuery.cssNumber.gridRowEnd = true;
46
-
47
42
  $(cell).css({"grid-column": (lx+1) + spancol, "grid-row": ly+1 + spanrow});
48
43
 
49
44
  container.appendChild(cell);
@@ -114,6 +109,7 @@ function init() {
114
109
  try {
115
110
  notification = JSON.parse(e.data);
116
111
  } catch (err) {
112
+ console.log(err);
117
113
  return;
118
114
  }
119
115
  if (notification.message == 'new' || notification.message == 'reset') {
@@ -125,7 +121,7 @@ function init() {
125
121
  } else if (notification.message == 'update') {
126
122
  var frd = notification.content;
127
123
  iframe = $('iframe[id="' + frd.callback + '"]').get(0);
128
- iframe.contentWindow.postMessage({ data: frd.data });
124
+ iframe.contentWindow.postMessage({ data: frd.data },'*');
129
125
  }
130
126
  };
131
127
  es.onerror = function() {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee-frames
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuell Gall
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: typhoeus
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.4'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.4'
41
55
  description: Flexibly arrange and display user interface components in a grid from
42
56
  executable process models. Very useful if you want to build dashboards.
43
57
  email: gall.manuel.89@gmail.com