forked from evoluteur/evolutility-ui-jquery
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·210 lines (165 loc) · 8.27 KB
/
Copy pathindex.html
File metadata and controls
executable file
·210 lines (165 loc) · 8.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="icon" type="image/png" href="favicon.png">
<title>Evolutility.js</title>
<meta name="description" content="Evolutility :: Views which adapt to your data by changing form, volume and structure." /></head>
<meta name="keywords" content="UI Backbone model view open source metadata driven SPA single page app application generic MDDA MDA CRUD framework Bootstrap" />
<link id="bwCSS" href="dist/css/dependencies.min.css" rel="stylesheet" />
<link href="dist/css/demo.css" rel="stylesheet" />
<link href="dist/css/evolutility.min.css" rel="stylesheet" />
<script src="demo/demo.js" type="text/javascript"></script>
<script src="demo/demo-data.min.js" type="text/javascript"></script>
<script src="ui-models/contacts.js" type="text/javascript"></script>
<script src="ui-models/todo.js" type="text/javascript"></script>
<script src="ui-models/winecellar.js" type="text/javascript"></script>
<script src="ui-models/comics.js" type="text/javascript"></script>
<script src="dist/dependencies.min.js" type="text/javascript"></script>
<script src="dist/evolutility.min.js" type="text/javascript"></script>
</head>
<body>
<div class="evo-page">
<div class="evo-header">
<div class="evo-logo"><a href="index.html"><span>evol</span>utility<span>.js</span></a></div>
<ul class="evo-head-links">
<li><a href="demo/index.html">demos</a></li>
<li><a href="doc/index.html">doc</a></li>
<li class="spaced"><a href="https://github.com/evoluteur/evolutility" target="_new">GitHub</a></li>
</ul>
<div class="clearfix"></div>
</div>
<div class="evo-content page-index">
<section id="s-splash">
<h1 class="titleindex">Evolutility <span class="version">1.1</span></h1>
<h1 style="color:#BBDEFB;">Views which change form, volume and structure to adapt to your data.</h1>
</section>
<section id="s-intro">
<p>Evolutility provides a set of generic Views ("V" as in "MVC") to
browse, edit, filter, export and chart
data of different structures and volumes.
</p>
<p>With Evolutility, views are not defined in Javascript, templates and CSS but configured with ui-models (metadata about the UI).</p>
<p> </p>
<h3 class="mt20">Sample views</h3>
<div id="evol-views-params" class="demo-controls">
<div><span class="hideIfSmall">See the </span>
<select id="evolView" class="form-control" style="width:auto">
<optgroup label="One = model">
<option value="browse" selected>Browse</option>
<option value="edit">Edit</option>
<option value="mini">Mini</option>
<option value="json">JSON</option>
</optgroup>
<optgroup label="Many = collection">
<option value="list">List</option>
<option value="cards">Cards</option>
<option value="bubbles">Bubbles</option>
<option value="charts">Charts</option>
</optgroup>
<optgroup label="Action">
<option value="export">Export</option>
<option value="filter">Filter</option>
</optgroup>
</select>
view for a
<select id="evolModel" class="form-control" style="width:auto">
<option value="todo">To Do</option>
<option value="contact">AddressBook</option>
<option value="winecellar">Wine Cellar</option>
<option value="comics">Graphic Novels</option>
</select>
app.
</div>
<div id="viewInfo" class="hideIfSmall"></div>
<div style="clear:both;"></div>
</div>
<div id="evol1"></div>
<p><br>If you are wondering, No, I didn't write 40 templates (10 views for 4 entities = 40 views) for the demo above. I only wrote 4 ui-models, Evolutility is doing the rest.</p>
</section>
<section>
<h3 class="mt20">From a set of views to a single page app</h3>
<p>Together the views "browse", "edit", "list" and "filter" provide CRUD (Create, Read, Update, Delete) functionality.
The other views "cards", "bubbles", "charts" and "mini" make the app more user-friendly and powerful.</p>
<p>Demo applications (using your browser's local storage):
<div class="demo-links links-bih">
<div><a href="demo/index.html#todo" data-id="todo"><img src="demo/pix/todo.gif" class="evo-icon-16">To Do</a></div>
<div><a href="demo/index.html#contact" data-id="contact"><img src="demo/pix/contact.gif" class="evo-icon-16">AddressBook</a></div>
<div><a href="demo/index.html#winecellar" data-id="wine"><img src="demo/pix/wine.gif" class="evo-icon-16">Wine cellar</a></div>
<div><a href="demo/index.html#comics/cards" data-id="comics"><img src="demo/pix/comics.png" class="evo-icon-16">Graphic novels</a></div>
</div>
</p>
</section>
<section>
<h3 class="mt20">UI model to configure the views</h3>
<p>Views are configured with a UI-model. Each UI-model is the single source of truth for all UI elements in all views of a specific entity.
It contains a DRY (Don't Repeat Yourself) description of the UI elements on screen and how they map to the model.
From a single UI-model, many views of an entity can be generated at run-time to browse, edit, filter, export, chart the data (for CRUD and more).</p>
<p>The "vocabulary" of UI-models is abstracted from the DOM and uses words like
"<a href="doc/ui-model.html#tab">tab</a>", "<a href="doc/ui-model.html#panel">panel</a>" or
"<a href="doc/ui-model.html#field">field</a>"
rather than "div", "span", "input"...
</p>
<p>Example of UI-Models used in the demos:
<a href="javascript:showUIModel('todo')">To Do</a>,
<a href="javascript:showUIModel('contact')">Addressbook</a>,
<a href="javascript:showUIModel('winecellar')">Wine Cellar</a>,
<a href="javascript:showUIModel('comics')">Graphic Novels</a>.
<small id="hide_def" style="display:none;"><a href="javascript:hideUIModel()">[Hide]</a></small>
</p>
<div style="display:none;" id="uimodel"></div>
</section>
<section>
<h3 class="mt20">Documentation</h3>
<p>Learn more about <a href="doc/ui-model.html">Evolutility UI-models</a> and <a href="doc/views.html">generic Views</a>.</p>
</section>
<section>
<h3 class="mt20">Download & Code</h3>
<p>Evolutility.js source code is available at <a href="https://github.com/evoluteur/evolutility" target="gh">GitHub</a>
under the GNU AGPLv3 license.</p>
</section>
<section>
<h3 class="mt20">The meaning of Evolutility</h3>
<p>In biology, Evolutility means "The faculty possessed by all substances capable of self-nourishment of manifesting the nutritive acts by changes of form, of volume, or of structure."</p>
<p>This open source project is a UI which changes form, volume and structure. It's DNA is metadata.</p>
</section>
<div class="clearfix"></div>
</div>
</div>
<div class="footer">© 2015 Olivier Giulieri</div>
<script>
$(document).ready(function(){
var curView=null;
function showView(){
var modelName=$('#evolModel').val(),
viewName=$('#evolView').val(),
uiModel=uiModels[modelName];
var $e = $('<div data-eid="'+uiModel.id+'"></div>'),
collec = new Backbone.Collection(uiModels[modelName+'_data']),
config = {
style: 'panel-primary',
collection: collec,
model: collec.at(0),
uiModel: uiModel,
title:'',
el: $e,
iconsPath:'demo/pix/'
};
$('#evol1').append($e);
if(curView){
curView.remove();
}
curView = new Evol.viewClasses[viewName](config)
.render();
var vwInfo = ViewDescriptions[viewName];
$('#viewInfo').html(vwInfo.desc);
}
$('#evolModel,#evolView').on('change', function(){
showView();
});
showView();
});
</script>
</body>
</html>