cpee-model-management 1.2.9 → 1.2.11
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/LICENSE +668 -159
- data/README.md +1 -1
- data/cpee-model-management.gemspec +2 -2
- data/lib/cpee-model-management/implementation.rb +62 -8
- data/lib/cpee-model-management/implementation.xml +8 -0
- data/ui/css/moma.css +20 -2
- data/ui/css/stats.css +10 -1
- data/ui/index.html +49 -26
- data/ui/instances.html +1 -19
- data/ui/instances_view.html +1 -19
- data/ui/js/moma.js +96 -27
- data/ui/js/stats.js +4 -4
- data/ui/resources.html +1 -19
- metadata +2 -2
data/README.md
CHANGED
|
@@ -12,7 +12,7 @@ The service is running under port 9316. If this port has to be changed (or the
|
|
|
12
12
|
host, or local-only access, ...), modify the file moma.conf and change:
|
|
13
13
|
|
|
14
14
|
```yaml
|
|
15
|
-
:port:
|
|
15
|
+
:port: 9316
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
You may also change the directory where the models are saved:
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = "cpee-model-management"
|
|
3
|
-
s.version = "1.2.
|
|
3
|
+
s.version = "1.2.11"
|
|
4
4
|
s.platform = Gem::Platform::RUBY
|
|
5
|
-
s.license = "
|
|
5
|
+
s.license = "GPL-3.0-or-later"
|
|
6
6
|
s.summary = "(Lifecycle) manage your process models in a directory or git repo."
|
|
7
7
|
|
|
8
8
|
s.description = "see http://cpee.org"
|
|
@@ -27,6 +27,7 @@ require 'shellwords'
|
|
|
27
27
|
require 'securerandom'
|
|
28
28
|
require 'cpee/redis'
|
|
29
29
|
require 'digest/sha1'
|
|
30
|
+
require 'open3'
|
|
30
31
|
|
|
31
32
|
module CPEE
|
|
32
33
|
module ModelManagement
|
|
@@ -39,7 +40,7 @@ module CPEE
|
|
|
39
40
|
p1 = Pathname.new(File.dirname(old))
|
|
40
41
|
p2 = Pathname.new(File.dirname(new))
|
|
41
42
|
told = File.basename(old)
|
|
42
|
-
tnew = File.join(
|
|
43
|
+
tnew = File.join(p2.relative_path_from(p1).to_s,File.basename(new))
|
|
43
44
|
`git -c user.name='Christine Ashcreek' -c user.email=dev@null.com -c push.default=simple mv "#{told}" "#{tnew}" 2>/dev/null`
|
|
44
45
|
`git -c user.name='Christine Ashcreek' -c user.email=dev@null.com -c push.default=simple rm -rf "#{told + '.active'}" 2>/dev/null`
|
|
45
46
|
`git -c user.name='Christine Ashcreek' -c user.email=dev@null.com -c push.default=simple rm -rf "#{told + '.active-uuid'}" 2>/dev/null`
|
|
@@ -102,6 +103,15 @@ module CPEE
|
|
|
102
103
|
File.delete(fname + '.active-uuid') rescue nil
|
|
103
104
|
end
|
|
104
105
|
|
|
106
|
+
def self::git_init(models) #{{{
|
|
107
|
+
_, status = Open3.capture2e('git', 'rev-parse', '--is-inside-work-tree', chdir: models)
|
|
108
|
+
return if status.success?
|
|
109
|
+
Open3.capture2e('git', 'init', chdir: models)
|
|
110
|
+
Open3.capture2e('git', 'add', '-A', chdir: models)
|
|
111
|
+
Open3.capture2e('git', '-c', 'user.name=Christine Ashcreek', '-c', 'user.email=dev@null.com', 'commit', '-m', 'initial', chdir: models)
|
|
112
|
+
puts "➡ Models directory #{models} is now a git repository"
|
|
113
|
+
end #}}}
|
|
114
|
+
|
|
105
115
|
def self::git_dir(models,file)
|
|
106
116
|
return nil if file.nil?
|
|
107
117
|
cdir = Dir.pwd
|
|
@@ -225,6 +235,50 @@ module CPEE
|
|
|
225
235
|
Riddl::Parameter::Complex.new('list','application/json',JSON::pretty_generate(names))
|
|
226
236
|
end
|
|
227
237
|
end #}}}
|
|
238
|
+
class Search < Riddl::Implementation #{{{
|
|
239
|
+
def response
|
|
240
|
+
where = @a[0] == :main ? '' : @r.map{ |d| Riddl::Protocols::Utils::unescape(d) }.join('/')
|
|
241
|
+
views = @a[1]
|
|
242
|
+
models = @a[2]
|
|
243
|
+
templates = @a[3]
|
|
244
|
+
default_view = @a[4]
|
|
245
|
+
query = @p[0].value.strip
|
|
246
|
+
stage = templates.keys.include?(@p[1]&.value) ? [@p[1]&.value] : [default_view]
|
|
247
|
+
stage << views[stage[0]] if views && views[stage[0]]
|
|
248
|
+
|
|
249
|
+
return Riddl::Parameter::Complex.new('list','application/json','[]') if query == ''
|
|
250
|
+
|
|
251
|
+
base = File.join(models,where)
|
|
252
|
+
|
|
253
|
+
# (a) names of models and dirs in and below base
|
|
254
|
+
names = Dir.glob('**/*.{dir,xml}', base: base).select do |f|
|
|
255
|
+
File.basename(f).sub(/\.(dir|xml)$/,'').downcase.include?(query.downcase)
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# (b) contents of models in and below base, through git grep (--no-index if base is not inside a git)
|
|
259
|
+
_, status = Open3.capture2e('git', 'rev-parse', '--is-inside-work-tree', chdir: base)
|
|
260
|
+
out, _ = Open3.capture2('git', 'grep', '-I', '-i', '-F', '-o', '-z', status.success? ? '--untracked' : '--no-index', '-e', query, '--', '*.xml', chdir: base)
|
|
261
|
+
contents = out.split("\n").map{ |l| l.split("\0",2).first }.tally # -o yields one line per occurrence
|
|
262
|
+
|
|
263
|
+
res = (names | contents.keys).sort.map do |f|
|
|
264
|
+
full = File.join(base,f)
|
|
265
|
+
path = where == '' ? f : File.join(where,f)
|
|
266
|
+
attrs = JSON::load File.open(full + '.attrs') rescue {}
|
|
267
|
+
if f =~ /\.dir$/
|
|
268
|
+
{ :type => :dir, :name => File.basename(f), :path => path, :creator => attrs['creator'], :date => File.mtime(full).xmlschema, :name_match => true, :content_matches => 0 }
|
|
269
|
+
else
|
|
270
|
+
fstage = attrs['design_stage'] || default_view
|
|
271
|
+
name_match = names.include?(f)
|
|
272
|
+
# each model contains its name (info) and its dir (design_dir) once, these are no real content hits
|
|
273
|
+
self_matches = (name_match ? 1 : 0) + (File.dirname(path) != '.' && File.dirname(path).downcase.include?(query.downcase) ? 1 : 0)
|
|
274
|
+
content_matches = [contents[f].to_i - self_matches, 0].max
|
|
275
|
+
{ :type => :file, :name => File.basename(f), :path => path, :creator => attrs['creator'], :author => attrs['author'], :stage => fstage, :date => File.mtime(full).xmlschema, :name_match => name_match, :content_matches => content_matches } if stage.include?(fstage) && (name_match || content_matches > 0)
|
|
276
|
+
end
|
|
277
|
+
end.compact
|
|
278
|
+
|
|
279
|
+
Riddl::Parameter::Complex.new('list','application/json',JSON::pretty_generate(res))
|
|
280
|
+
end
|
|
281
|
+
end #}}}
|
|
228
282
|
class GetStages < Riddl::Implementation #{{{
|
|
229
283
|
def response
|
|
230
284
|
themes = @a[0]
|
|
@@ -350,7 +404,7 @@ module CPEE
|
|
|
350
404
|
File.write(f + '.attrs',JSON::pretty_generate(attrs))
|
|
351
405
|
end
|
|
352
406
|
|
|
353
|
-
CPEE::ModelManagement::op author, 'mv', models, File.basename(fnname), name + '.dir'
|
|
407
|
+
CPEE::ModelManagement::op author, 'mv', models, File.join('.', where, File.basename(fnname)), File.join('.', name + '.dir')
|
|
354
408
|
CPEE::ModelManagement::notify conns, 'rename', models, fnname, default_view, fname
|
|
355
409
|
nil
|
|
356
410
|
end
|
|
@@ -407,11 +461,8 @@ module CPEE
|
|
|
407
461
|
name = @r[-1].sub(/\.xml$/,'')
|
|
408
462
|
source = File.join(models,where,name + '.xml')
|
|
409
463
|
where = @p[0].value
|
|
410
|
-
if @p.length > 1
|
|
411
|
-
|
|
412
|
-
else
|
|
413
|
-
fname = File.join(models,where,name + '.xml')
|
|
414
|
-
end
|
|
464
|
+
name = @p[1].value if @p.length > 1
|
|
465
|
+
fname = File.join(models,where,name + '.xml')
|
|
415
466
|
end
|
|
416
467
|
|
|
417
468
|
attrs = JSON::load File.open(source + '.attrs') rescue {}
|
|
@@ -456,7 +507,7 @@ module CPEE
|
|
|
456
507
|
end
|
|
457
508
|
File.write(fname + '.attrs',JSON::pretty_generate(attrs))
|
|
458
509
|
|
|
459
|
-
CPEE::ModelManagement::op creator, 'add', models, File.join('.', where,
|
|
510
|
+
CPEE::ModelManagement::op creator, 'add', models, File.join('.', where, File.basename(fname))
|
|
460
511
|
CPEE::ModelManagement::notify conns, 'create', models, fname, default_view
|
|
461
512
|
nil
|
|
462
513
|
end
|
|
@@ -939,6 +990,7 @@ module CPEE
|
|
|
939
990
|
end
|
|
940
991
|
|
|
941
992
|
startup do
|
|
993
|
+
CPEE::ModelManagement::git_init(opts[:models])
|
|
942
994
|
CPEE::ModelManagement::service_handler(opts,'restart','started')
|
|
943
995
|
end
|
|
944
996
|
cleanup do
|
|
@@ -949,6 +1001,7 @@ module CPEE
|
|
|
949
1001
|
run GetList, :main, opts[:views], opts[:models], opts[:templates], opts[:default_view] if get 'stage'
|
|
950
1002
|
run GetListFull, opts[:views], opts[:models], opts[:templates], opts[:default_view] if get 'full'
|
|
951
1003
|
run GetStages, opts[:themes], opts[:default_view] if get 'stages'
|
|
1004
|
+
run Search, :main, opts[:views], opts[:models], opts[:templates], opts[:default_view] if get 'search'
|
|
952
1005
|
run Create, :main, opts[:views], opts[:management_receivers], opts[:templates], opts[:models], opts[:default_view] if post 'item'
|
|
953
1006
|
run CreateDir, :main, opts[:management_receivers], opts[:models], opts[:default_view] if post 'dir'
|
|
954
1007
|
on resource 'management' do
|
|
@@ -956,6 +1009,7 @@ module CPEE
|
|
|
956
1009
|
end
|
|
957
1010
|
on resource '[a-zA-Z0-9öäüÖÄÜ _-]+\.dir' do
|
|
958
1011
|
run GetList, :sub, opts[:views], opts[:models], opts[:templates], opts[:default_view] if get 'stage'
|
|
1012
|
+
run Search, :sub, opts[:views], opts[:models], opts[:templates], opts[:default_view] if get 'search'
|
|
959
1013
|
run Create, :sub, opts[:views], opts[:management_receivers], opts[:templates], opts[:models], opts[:default_view] if post 'item'
|
|
960
1014
|
run DeleteDir, opts[:management_receivers], opts[:models], opts[:default_view] if delete
|
|
961
1015
|
run RenameDir, opts[:management_receivers], opts[:models], opts[:default_view] if put 'name'
|
|
@@ -67,6 +67,12 @@
|
|
|
67
67
|
<parameter name="stage" type="string"/>
|
|
68
68
|
</optional>
|
|
69
69
|
</message>
|
|
70
|
+
<message name="search">
|
|
71
|
+
<parameter name="search" type="string"/>
|
|
72
|
+
<optional>
|
|
73
|
+
<parameter name="stage" type="string"/>
|
|
74
|
+
</optional>
|
|
75
|
+
</message>
|
|
70
76
|
<message name="list">
|
|
71
77
|
<parameter name="list" mimetype="application/json"/>
|
|
72
78
|
</message>
|
|
@@ -79,6 +85,7 @@
|
|
|
79
85
|
<get in="stage" out="list"/>
|
|
80
86
|
<get in="full" out="list"/>
|
|
81
87
|
<get in="stages" out="list"/>
|
|
88
|
+
<get in="search" out="list"/>
|
|
82
89
|
<resource relative="management">
|
|
83
90
|
<sse/>
|
|
84
91
|
</resource>
|
|
@@ -86,6 +93,7 @@
|
|
|
86
93
|
<post in="item"/>
|
|
87
94
|
<post in="dir"/>
|
|
88
95
|
<get in="stage" out="list"/>
|
|
96
|
+
<get in="search" out="list"/>
|
|
89
97
|
<delete/>
|
|
90
98
|
<put in="name"/> <!-- rename -->
|
|
91
99
|
<resource relative="[a-zA-Z0-9öäüÖÄÜ _-]+\.xml">
|
data/ui/css/moma.css
CHANGED
|
@@ -39,6 +39,9 @@
|
|
|
39
39
|
td.selected {
|
|
40
40
|
background-color: var(--x-ui-selection-background) !important;
|
|
41
41
|
}
|
|
42
|
+
td.selected i.uidash-icon-checkox:before {
|
|
43
|
+
content: "\f11d"; /* uidash-icon-checkox-checked */
|
|
44
|
+
}
|
|
42
45
|
|
|
43
46
|
div.fixed {
|
|
44
47
|
position: sticky;
|
|
@@ -92,16 +95,19 @@ ui-behind span {
|
|
|
92
95
|
[is="x-ui-"] table.ui-table tbody tr:nth-child(odd) td {
|
|
93
96
|
background-color: var(--x-ui-content-light-background);
|
|
94
97
|
}
|
|
95
|
-
[is="x-ui-"] table.ui-table tbody tr:hover td
|
|
98
|
+
[is="x-ui-"] table.ui-table tbody tr:hover td,
|
|
99
|
+
[is="x-ui-"] table.ui-table tbody tr.active td {
|
|
96
100
|
background-color: var(--x-ui-content-hover-background);
|
|
97
101
|
}
|
|
98
102
|
[is="x-ui-"] table.ui-table tbody td[data-class=ops] {
|
|
103
|
+
font-size: 1.4em;
|
|
99
104
|
text-align: center;
|
|
100
105
|
}
|
|
101
106
|
[is="x-ui-"] table.ui-table tbody tr:nth-child(odd) td[data-class=ops] {
|
|
102
107
|
background-color: #d0d0d0;
|
|
103
108
|
}
|
|
104
|
-
[is="x-ui-"] table.ui-table tbody tr:hover td[data-class=ops]
|
|
109
|
+
[is="x-ui-"] table.ui-table tbody tr:hover td[data-class=ops],
|
|
110
|
+
[is="x-ui-"] table.ui-table tbody tr.active td[data-class=ops] {
|
|
105
111
|
background-color: #99cee6b0;
|
|
106
112
|
}
|
|
107
113
|
|
|
@@ -112,3 +118,15 @@ ui-behind span {
|
|
|
112
118
|
tr.contextmenuitem .capitalized {
|
|
113
119
|
text-transform: capitalize;
|
|
114
120
|
}
|
|
121
|
+
tr.contextmenuitem > .contextmenuicon {
|
|
122
|
+
vertical-align: middle;
|
|
123
|
+
}
|
|
124
|
+
tr.contextmenuitem > .contextmenuicon div {
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
justify-content: center;
|
|
128
|
+
height: auto;
|
|
129
|
+
}
|
|
130
|
+
tr.contextmenuitem > .contextmenuicon i.uidash-icon {
|
|
131
|
+
font-size: 1.2em;
|
|
132
|
+
}
|
data/ui/css/stats.css
CHANGED
|
@@ -46,7 +46,16 @@
|
|
|
46
46
|
margin-left: 0.8em;
|
|
47
47
|
}
|
|
48
48
|
.instances .sub table > tr.text > td:first-child::before {
|
|
49
|
-
|
|
49
|
+
font-family: uidash-icons !important;
|
|
50
|
+
font-style: normal;
|
|
51
|
+
font-weight: normal !important;
|
|
52
|
+
font-variant: normal;
|
|
53
|
+
text-transform: none;
|
|
54
|
+
line-height: 1;
|
|
55
|
+
-webkit-font-smoothing: antialiased;
|
|
56
|
+
-moz-osx-font-smoothing: grayscale;
|
|
57
|
+
|
|
58
|
+
content: "\f12d";
|
|
50
59
|
margin-right: 0.5em;
|
|
51
60
|
}
|
|
52
61
|
|
data/ui/index.html
CHANGED
|
@@ -25,33 +25,18 @@
|
|
|
25
25
|
|
|
26
26
|
<!-- libs, do not modify. When local than load local libs. -->
|
|
27
27
|
<script type="text/javascript" src="/js_libs/jquery.min.js"></script>
|
|
28
|
-
<script type="text/javascript" src="/js_libs/
|
|
29
|
-
<script type="text/javascript" src="/js_libs/jquery.svg.min.js"></script>
|
|
30
|
-
<script type="text/javascript" src="/js_libs/jquery.svgdom.min.js"></script>
|
|
31
|
-
<script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
|
|
32
|
-
<script type="text/javascript" src="/js_libs/util.js"></script>
|
|
33
|
-
<script type="text/javascript" src="/js_libs/printf.js"></script>
|
|
28
|
+
<script type="text/javascript" src="/js_libs/uidash_util.js"></script>
|
|
34
29
|
<script type="text/javascript" src="/js_libs/strftime.min.js"></script>
|
|
35
|
-
<script type="text/javascript" src="/js_libs/parsequery.js"></script>
|
|
36
|
-
<script type="text/javascript" src="/js_libs/underscore.min.js"></script>
|
|
37
|
-
<script type="text/javascript" src="/js_libs/jquery.caret.min.js"></script>
|
|
38
|
-
<script type="text/javascript" src="/js_libs/jquery.cookie.js"></script>
|
|
39
30
|
<script type="text/javascript" src="/js_libs/plotly.min.js"></script>
|
|
40
31
|
|
|
41
|
-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
|
|
42
|
-
|
|
43
|
-
<script type="text/javascript" src="/js_libs/relaxngui.js"></script>
|
|
44
|
-
|
|
45
32
|
<script type="text/javascript" src="/js_libs/uidash.js"></script>
|
|
46
|
-
<script type="text/javascript" src="/js_libs/
|
|
33
|
+
<script type="text/javascript" src="/js_libs/uidash_custommenu.js"></script>
|
|
47
34
|
|
|
48
|
-
<link rel="stylesheet" href="/js_libs/
|
|
35
|
+
<link rel="stylesheet" href="/js_libs/uidash_custommenu.css" type="text/css"/>
|
|
49
36
|
<link rel="stylesheet" href="/js_libs/uidash.css" type="text/css"/>
|
|
50
37
|
|
|
51
38
|
<link rel="stylesheet" href="/global_ui/ui.css" type="text/css"/>
|
|
52
39
|
|
|
53
|
-
<link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
|
|
54
|
-
|
|
55
40
|
<!-- custom stuff, play arround -->
|
|
56
41
|
<link rel="stylesheet" href="css/moma.css" type="text/css"/>
|
|
57
42
|
<link rel="stylesheet" href="css/stats.css" type="text/css"/>
|
|
@@ -63,6 +48,7 @@
|
|
|
63
48
|
<ui-tabbar>
|
|
64
49
|
<ui-before ></ui-before>
|
|
65
50
|
<ui-tab class="" data-tab="models" >Models</ui-tab>
|
|
51
|
+
<ui-tab class="inactive" data-tab="search" >Search</ui-tab>
|
|
66
52
|
<ui-tab class="inactive" data-tab="newmodel" >New Model</ui-tab>
|
|
67
53
|
<ui-tab class="inactive" data-tab="newdir" >New Dir</ui-tab>
|
|
68
54
|
<ui-space ></ui-space>
|
|
@@ -75,11 +61,11 @@
|
|
|
75
61
|
<ui-area data-belongs-to-tab="models">
|
|
76
62
|
<div class="fixed">
|
|
77
63
|
<div class="text">Your Models are saved/versioned in <a target='_blank' href='https://git-scm.com/'>GIT</a>. So fret not. Just send an email to <a href="mail:helpdesk@cpee.org">helpdesk@cpee.org</a> if you are lost. Click on <strong>Icons</strong> of directory entries, to mark them. Then change to a different directory and move/copy them there. And as always: <a target='_blank' href='https://www.youtube.com/watch?v=kkxj5xVLyj0&feature=youtu.be&t=56'>get dressed for success</a>.</div>
|
|
78
|
-
<div class="breadcrumb"><span class="crumb" onclick=""
|
|
64
|
+
<div class="breadcrumb"><span class="crumb" onclick=""><i class="uidash-icon uidash-text uidash-icon-home"></i> Home</span></div>
|
|
79
65
|
</div>
|
|
80
66
|
<table id="models" class='ui-table'>
|
|
81
67
|
<thead>
|
|
82
|
-
<th data-class='special' class='invisible' title='click for operations'
|
|
68
|
+
<th data-class='special' class='invisible' title='click for operations'><i class="uidash-icon uidash-icon-operations"></i></th>
|
|
83
69
|
<th>Name</th>
|
|
84
70
|
<th><abbr title='force new instance'>F</abbr></th>
|
|
85
71
|
<th><abbr title='link to model source'>M</abbr></th>
|
|
@@ -91,7 +77,7 @@
|
|
|
91
77
|
</thead>
|
|
92
78
|
<template id="folder">
|
|
93
79
|
<tr>
|
|
94
|
-
<td data-class='folder' class="noselect" title='click to mark'
|
|
80
|
+
<td data-class='folder' class="noselect" title='click to mark'><i class="uidash-icon uidash-icon-folder"></i></td>
|
|
95
81
|
<td data-class='name' data-full-name=''><a href=''></a></td>
|
|
96
82
|
<td></td>
|
|
97
83
|
<td></td>
|
|
@@ -99,12 +85,12 @@
|
|
|
99
85
|
<td></td>
|
|
100
86
|
<td></td>
|
|
101
87
|
<td data-class='date'></td>
|
|
102
|
-
<td data-class='ops' class="noselect" title='click for operations'><span
|
|
88
|
+
<td data-class='ops' class="noselect" title='click for operations'><span><i class="uidash-icon uidash-icon-operations"></i></span></td>
|
|
103
89
|
</tr>
|
|
104
90
|
</template>
|
|
105
91
|
<template id="model">
|
|
106
92
|
<tr>
|
|
107
|
-
<td data-class='model' class="noselect" title='click to mark'
|
|
93
|
+
<td data-class='model' class="noselect" title='click to mark'><i class="uidash-icon uidash-icon-checkox"></i></td>
|
|
108
94
|
<td data-class='name' data-full-name=''><a target='_blank' href=''></a></td>
|
|
109
95
|
<td data-class='force'>[<a target='_blank' href='' title='force new instance'>F</a>]</td>
|
|
110
96
|
<td data-class='raw'>[<a target='_blank' href='' title='link to model source'>M</a>]</td>
|
|
@@ -112,7 +98,7 @@
|
|
|
112
98
|
<td data-class='guarded'><abbr title=''></abbr></td>
|
|
113
99
|
<td data-class='resource'></td>
|
|
114
100
|
<td data-class='date'></td>
|
|
115
|
-
<td data-class='ops' class="noselect" title='click for operations'><span
|
|
101
|
+
<td data-class='ops' class="noselect" title='click for operations'><span><i class="uidash-icon uidash-icon-operations"></i></span></td>
|
|
116
102
|
</tr>
|
|
117
103
|
</template>
|
|
118
104
|
<tbody>
|
|
@@ -127,7 +113,7 @@
|
|
|
127
113
|
getting confused and shooting yourself in the foot in your little
|
|
128
114
|
modelling world we allow only unique names. Better safe than sorry.
|
|
129
115
|
</div>
|
|
130
|
-
<div class="breadcrumb"><span class="crumb" onclick=""
|
|
116
|
+
<div class="breadcrumb"><span class="crumb" onclick=""><i class="uidash-icon uidash-text uidash-icon-home"></i> Home</span></div>
|
|
131
117
|
<form id="newmod">
|
|
132
118
|
<p>
|
|
133
119
|
<input type="text" name="new" required pattern="^[a-zA-Z0-9öäüÖÄÜ _\-]+" placeholder="Filename (no extension necessary). Only use characters, spaces, underlines and dashes."/>
|
|
@@ -142,7 +128,7 @@
|
|
|
142
128
|
Create an empty directory. Beware, if a directory of the same name
|
|
143
129
|
already exists it can not be created.
|
|
144
130
|
</div>
|
|
145
|
-
<div class="breadcrumb"><span class="crumb" onclick=""
|
|
131
|
+
<div class="breadcrumb"><span class="crumb" onclick=""><i class="uidash-icon uidash-text uidash-icon-home"></i> Home</span></div>
|
|
146
132
|
<form id="newdir">
|
|
147
133
|
<p>
|
|
148
134
|
<input type="text" name="newdir" required pattern="^[a-zA-Z0-9öäüÖÄÜ _\-]+" placeholder="Directory name. Only use characters, spaces, underlines and dashes."/>
|
|
@@ -152,6 +138,43 @@
|
|
|
152
138
|
</p>
|
|
153
139
|
</form>
|
|
154
140
|
</ui-area>
|
|
141
|
+
<ui-area data-belongs-to-tab="search" class="inactive">
|
|
142
|
+
<div class="text">
|
|
143
|
+
Finds models and directories whose name contains what you are
|
|
144
|
+
looking for, as well as models that contain it somewhere inside
|
|
145
|
+
(case insensitive). Your search has to consist of more than 3
|
|
146
|
+
characters.
|
|
147
|
+
</div>
|
|
148
|
+
<div class="breadcrumb"><span class="crumb" onclick=""><i class="uidash-icon uidash-text uidash-icon-home"></i> Home</span></div>
|
|
149
|
+
<form id="search">
|
|
150
|
+
<p>
|
|
151
|
+
<input type="text" name="search" required minlength="4" placeholder="Search for model names and terms inside models (more than 3 chars)."/>
|
|
152
|
+
</p>
|
|
153
|
+
<p>
|
|
154
|
+
<button>Search</button>
|
|
155
|
+
</p>
|
|
156
|
+
</form>
|
|
157
|
+
<table id="searchresults" class='ui-table'>
|
|
158
|
+
<thead>
|
|
159
|
+
<th>Name</th>
|
|
160
|
+
<th>Directory</th>
|
|
161
|
+
<th>Found In</th>
|
|
162
|
+
<th>Changed By</th>
|
|
163
|
+
<th>Changed At</th>
|
|
164
|
+
</thead>
|
|
165
|
+
<template id="searchresult">
|
|
166
|
+
<tr>
|
|
167
|
+
<td data-class='name'><a href=''></a></td>
|
|
168
|
+
<td data-class='dir'><a href=''></a></td>
|
|
169
|
+
<td data-class='found'></td>
|
|
170
|
+
<td data-class='author'></td>
|
|
171
|
+
<td data-class='date'></td>
|
|
172
|
+
</tr>
|
|
173
|
+
</template>
|
|
174
|
+
<tbody>
|
|
175
|
+
</tbody>
|
|
176
|
+
</table>
|
|
177
|
+
</ui-area>
|
|
155
178
|
<ui-area data-belongs-to-tab="instances" class="inactive">
|
|
156
179
|
<p>
|
|
157
180
|
Show ready, running and stopped instances.
|
data/ui/instances.html
CHANGED
|
@@ -25,33 +25,15 @@
|
|
|
25
25
|
|
|
26
26
|
<!-- libs, do not modify. When local than load local libs. -->
|
|
27
27
|
<script type="text/javascript" src="/js_libs/jquery.min.js"></script>
|
|
28
|
-
<script type="text/javascript" src="/js_libs/
|
|
29
|
-
<script type="text/javascript" src="/js_libs/jquery.svg.min.js"></script>
|
|
30
|
-
<script type="text/javascript" src="/js_libs/jquery.svgdom.min.js"></script>
|
|
31
|
-
<script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
|
|
32
|
-
<script type="text/javascript" src="/js_libs/util.js"></script>
|
|
33
|
-
<script type="text/javascript" src="/js_libs/printf.js"></script>
|
|
28
|
+
<script type="text/javascript" src="/js_libs/uidash_util.js"></script>
|
|
34
29
|
<script type="text/javascript" src="/js_libs/strftime.min.js"></script>
|
|
35
|
-
<script type="text/javascript" src="/js_libs/parsequery.js"></script>
|
|
36
|
-
<script type="text/javascript" src="/js_libs/underscore.min.js"></script>
|
|
37
|
-
<script type="text/javascript" src="/js_libs/jquery.caret.min.js"></script>
|
|
38
|
-
<script type="text/javascript" src="/js_libs/jquery.cookie.js"></script>
|
|
39
|
-
<script type="text/javascript" src="/js_libs/plotly.min.js"></script>
|
|
40
|
-
|
|
41
|
-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
|
|
42
|
-
|
|
43
|
-
<script type="text/javascript" src="/js_libs/relaxngui.js"></script>
|
|
44
30
|
|
|
45
31
|
<script type="text/javascript" src="/js_libs/uidash.js"></script>
|
|
46
|
-
<script type="text/javascript" src="/js_libs/custommenu.js"></script>
|
|
47
32
|
|
|
48
|
-
<link rel="stylesheet" href="/js_libs/custommenu.css" type="text/css"/>
|
|
49
33
|
<link rel="stylesheet" href="/js_libs/uidash.css" type="text/css"/>
|
|
50
34
|
|
|
51
35
|
<link rel="stylesheet" href="/global_ui/ui.css" type="text/css"/>
|
|
52
36
|
|
|
53
|
-
<link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
|
|
54
|
-
|
|
55
37
|
<!-- custom stuff, play arround -->
|
|
56
38
|
<link rel="stylesheet" href="css/moma.css" type="text/css"/>
|
|
57
39
|
<link rel="stylesheet" href="css/stats.css" type="text/css"/>
|
data/ui/instances_view.html
CHANGED
|
@@ -25,33 +25,15 @@
|
|
|
25
25
|
|
|
26
26
|
<!-- libs, do not modify. When local than load local libs. -->
|
|
27
27
|
<script type="text/javascript" src="/js_libs/jquery.min.js"></script>
|
|
28
|
-
<script type="text/javascript" src="/js_libs/
|
|
29
|
-
<script type="text/javascript" src="/js_libs/jquery.svg.min.js"></script>
|
|
30
|
-
<script type="text/javascript" src="/js_libs/jquery.svgdom.min.js"></script>
|
|
31
|
-
<script type="text/javascript" src="/js_libs/vkbeautify.js"></script>
|
|
32
|
-
<script type="text/javascript" src="/js_libs/util.js"></script>
|
|
33
|
-
<script type="text/javascript" src="/js_libs/printf.js"></script>
|
|
28
|
+
<script type="text/javascript" src="/js_libs/uidash_util.js"></script>
|
|
34
29
|
<script type="text/javascript" src="/js_libs/strftime.min.js"></script>
|
|
35
|
-
<script type="text/javascript" src="/js_libs/parsequery.js"></script>
|
|
36
|
-
<script type="text/javascript" src="/js_libs/underscore.min.js"></script>
|
|
37
|
-
<script type="text/javascript" src="/js_libs/jquery.caret.min.js"></script>
|
|
38
|
-
<script type="text/javascript" src="/js_libs/jquery.cookie.js"></script>
|
|
39
|
-
<script type="text/javascript" src="/js_libs/plotly.min.js"></script>
|
|
40
|
-
|
|
41
|
-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
|
|
42
|
-
|
|
43
|
-
<script type="text/javascript" src="/js_libs/relaxngui.js"></script>
|
|
44
30
|
|
|
45
31
|
<script type="text/javascript" src="/js_libs/uidash.js"></script>
|
|
46
|
-
<script type="text/javascript" src="/js_libs/custommenu.js"></script>
|
|
47
32
|
|
|
48
|
-
<link rel="stylesheet" href="/js_libs/custommenu.css" type="text/css"/>
|
|
49
33
|
<link rel="stylesheet" href="/js_libs/uidash.css" type="text/css"/>
|
|
50
34
|
|
|
51
35
|
<link rel="stylesheet" href="/global_ui/ui.css" type="text/css"/>
|
|
52
36
|
|
|
53
|
-
<link rel="stylesheet" href="/js_libs/relaxngui.css" type="text/css"/>
|
|
54
|
-
|
|
55
37
|
<!-- custom stuff, play arround -->
|
|
56
38
|
<link rel="stylesheet" href="css/moma.css" type="text/css"/>
|
|
57
39
|
<link rel="stylesheet" href="css/stats.css" type="text/css"/>
|