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
|
============
Architecture
============
Overview
========
MVC YUI
~~~~~~~
Juju-gui is based on yui's backbone style app framework. The official docs
for this are highly recommended for developers:
http://yuilibrary.com/yui/docs/app/
An overview of the individual pieces.
- Router - Route dispatch by url, saves and restores url state.
http://yuilibrary.com/yui/docs/router/
- Views - Rendering of a view
http://yuilibrary.com/yui/docs/view/index.html
- Model - Domain objects with change events
http://yuilibrary.com/yui/docs/model/
http://yuilibrary.com/yui/docs/model-list/
Environment Integration
~~~~~~~~~~~~~~~~~~~~~~~
The gui connects and communicates to the environment over a web socket
connection.
RPC Calls
~~~~~~~~~
Completion callbacks can be used with any of the methods on the environment.
Multiple calls are done in parallel.
RPC Events
~~~~~~~~~~
Messages from the backend for known rpc operation results are messaged out as
Environment events.
Delta Stream
~~~~~~~~~~~~
A stream of object changes, used to update models.
Scenarios
---------
- new client
- existing client disconnects and reconnects
Requirements
------------
::
connect sync disconnect
| | |
api
-- sync (ids+hashes)
-- subscribe()
-- delta
Questions
~~~~~~~~~
Model Composition and relations.
relations by id
We have multiple object states for a given.
Inline combo handler for yui: https://github.com/rgrove/combohandler
More complicated but similiar: https://github.com/jafl/YUI-3-Stockpile
|