cpee-frames 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile ADDED
@@ -0,0 +1,21 @@
1
+ require 'rake'
2
+ require 'rubygems/package_task'
3
+
4
+ spec = eval(File.read('cpee-frames.gemspec'))
5
+ Gem::PackageTask.new(spec) do |pkg|
6
+ pkg.need_zip = true
7
+ pkg.need_tar = true
8
+ FileUtils.mkdir 'pkg' rescue nil
9
+ FileUtils.rm_rf Dir.glob('pkg/*')
10
+ FileUtils.ln_sf "#{pkg.name}.gem", "pkg/#{spec.name}.gem"
11
+ end
12
+
13
+ task :default => [:gem]
14
+
15
+ task :push => :gem do |r|
16
+ `gem push pkg/cpee-frames.gem`
17
+ end
18
+
19
+ task :install => :gem do |r|
20
+ `gem install pkg/cpee-frames.gem`
21
+ end
@@ -0,0 +1,25 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = "cpee-frames"
3
+ s.version = "1.0.0"
4
+ s.platform = Gem::Platform::RUBY
5
+ s.license = "GPL-3.0"
6
+ s.summary = "Dashboard management service with UI and backend for the cpee.org family of workflow management tools"
7
+
8
+ s.description = "Flexibly arrange and display user interface components in a grid from executable process models. Very useful if you want to build dashboards."
9
+
10
+ s.files = Dir['{server/*,ui/**/*,tools/**/*,lib/**/*}'] + %w(LICENSE Rakefile cpee-frames.gemspec README.md AUTHORS)
11
+ s.require_path = 'lib'
12
+ s.extra_rdoc_files = ['README.md']
13
+ s.bindir = 'tools'
14
+ s.executables = ['cpee-frames']
15
+
16
+ s.required_ruby_version = '>=3.0'
17
+
18
+ s.authors = ['Manuell Gall', "Juergen 'eTM' Mangler"]
19
+
20
+ s.email = 'gall.manuel.89@gmail.com'
21
+ s.homepage = 'https://github.com/ManuelGall/cpee-frames'
22
+
23
+ s.add_runtime_dependency 'riddl', '~> 0.99'
24
+ s.add_runtime_dependency 'json', '~> 2.1'
25
+ end
@@ -0,0 +1,141 @@
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
+ <description xmlns="http://riddl.org/ns/description/1.0" xmlns:ann="http://riddl.org/ns/annotation/1.0" xmlns:xi="http://www.w3.org/2001/XInclude" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
20
+ <message name="input">
21
+ <parameter name="style_url" type="string"/>
22
+ <parameter name="document_url" type="string"/>
23
+ <parameter name="x_amount" type="string"/>
24
+ <parameter name="y_amount" type="string"/>
25
+ <parameter name="lang" type="string"/>
26
+ <parameter name="document_name" type="string"/>
27
+ </message>
28
+ <message name="sframe">
29
+ <parameter name="type" fixed="set"/>
30
+ <parameter name="lx" type="string"/>
31
+ <parameter name="ly" type="nonNegativeInteger"/>
32
+ <parameter name="x_amount" type="nonNegativeInteger"/>
33
+ <parameter name="y_amount" type="nonNegativeInteger"/>
34
+ <parameter name="button" type="string"/>
35
+ <parameter name="style" type="string"/>
36
+ <parameter name="urls" type="string"/>
37
+ <parameter name="default" type="string"/>
38
+ </message>
39
+ <message name="wframe">
40
+ <parameter name="type" fixed="wait"/>
41
+ <parameter name="lx" type="nonNegativeInteger"/>
42
+ <parameter name="ly" type="nonNegativeInteger"/>
43
+ <parameter name="x_amount" type="nonNegativeInteger"/>
44
+ <parameter name="y_amount" type="nonNegativeInteger"/>
45
+ <parameter name="button" type="string"/>
46
+ <parameter name="style" type="string"/>
47
+ <parameter name="urls" type="string"/>
48
+ <parameter name="default" type="string"/>
49
+ </message>
50
+ <message name="deleteframe">
51
+ <parameter name="lx" type="string"/>
52
+ <parameter name="ly" type="string"/>
53
+ </message>
54
+ <message name="ui">
55
+ <parameter name="ui" mimetype="text/html"/>
56
+ </message>
57
+ <message name="callback">
58
+ <header name="CPEE-CALLBACK" type="boolean"/>
59
+ </message>
60
+ <message name="url">
61
+ <parameter name="url" mimetype="text/plain"/>
62
+ </message>
63
+ <message name="lang">
64
+ <parameter name="lang" type="string"/>
65
+ </message>
66
+ <message name="opa">
67
+ <parameter name="op" fixed="error"/>
68
+ <parameter name="reason" type="string"/>
69
+ </message>
70
+ <message name="opb">
71
+ <parameter name="op" fixed="result"/>
72
+ <parameter name="value" mimetype="application/json"/>
73
+ </message>
74
+ <message name="opc">
75
+ <parameter name="op" type="string"/>
76
+ </message>
77
+ <message name="json">
78
+ <parameter name="value" mimetype="application/json"/>
79
+ </message>
80
+ <message name="string">
81
+ <parameter name="value" type="string"/>
82
+ </message>
83
+
84
+ <resource>
85
+ <get out="ui"/>
86
+
87
+ <resource relative="getConfigs">
88
+ <get out="ui"/>
89
+ </resource>
90
+
91
+ <resource>
92
+ <get out="ui"/>
93
+ <!-- create new Frame -->
94
+ <post in='input'/>
95
+ <!-- Set Frame Data with callback -->
96
+ <put in='wframe' out="callback"/>
97
+ <!-- Set Frame Data without callback -->
98
+ <put in='sframe'/>
99
+
100
+ <post in='deleteframe'/>
101
+
102
+ <delete in='opa'/>
103
+ <delete in='opb'/>
104
+ <delete in='opc'/>
105
+ <resource relative='sse'>
106
+ <sse/>
107
+ </resource>
108
+ <resource relative="languages">
109
+ <get out="json"/>
110
+ <post in='lang'/>
111
+ </resource>
112
+ <resource relative="style.url">
113
+ <get out="url"/>
114
+ </resource>
115
+ <resource relative="cpeeinstance.url">
116
+ <get out="url"/>
117
+ </resource>
118
+ <resource relative="info.json">
119
+ <get out="json"/>
120
+ </resource>
121
+ <resource relative="frames.json">
122
+ <get out="json"/>
123
+ </resource>
124
+ <resource relative="dataelements.json">
125
+ <get out="json"/>
126
+ <post />
127
+ </resource>
128
+
129
+ <resource relative="test">
130
+ <put in="string"/>
131
+ </resource>
132
+
133
+ <resource relative='handler'>
134
+ <post />
135
+ <resource relative='sse'>
136
+ <sse/>
137
+ </resource>
138
+ </resource>
139
+ </resource>
140
+ </resource>
141
+ </description>