Debian Codegraph @

dojox/app/tests/doh/simpleModelApp/config.json

raw symbols SCIP
1 {
2 "id": "simpleModelApp",
3 "name": "Simple Model App",
4 "description": "A simple app to show how to use different types of Stores and Models",
5 "splash": "splash",
6
7 "dependencies": [
8 "dojox/mobile/_base",
9 "dojox/app/widgets/Container",
10 "dojox/mobile/compat",
11 "dojox/mobile/TabBar",
12 "dojox/mobile/RoundRect",
13 "dojox/mobile/TabBarButton",
14 "dojox/mobile/Button",
15 "dojox/mobile/RoundRect",
16 "dojox/mobile/Heading",
17 "dojo/store/Memory",
18 "dojo/store/JsonRest",
19 "dojo/store/Memory",
20 "dojo/data/ItemFileWriteStore",
21 "dojo/store/DataStore",
22 "dojox/app/utils/simpleModel",
23 "dojox/app/utils/mvcModel",
24 "dojox/mvc/EditStoreRefListController",
25 "dojox/mvc/EditModelRefController",
26 "dojox/mobile/deviceTheme"
27 ],
28 // Modules for the application. The are basically used as the second
29 // array of mixins in a dojo.declare(). Modify the top level behavior
30 // of the application, how it processes the config or any other life cycle
31 // by creating and including one or more of these
32 "modules": [],
33
34 // Array of AMD modules identifiers. Controllers for the application. All the controllers defined here will be
35 // loaded during application startup to respond to application events and controller the application logic.
36 "controllers": [
37 "dojox/app/controllers/Load",
38 "dojox/app/controllers/Transition",
39 "dojox/app/controllers/Layout"
40 ],
41
42 //stores we are using
43 "stores": {
44 "namesStore":{
45 "type": "dojo/store/Memory",
46 "params": {
47 "data": "modelApp.names"
48 }
49 },
50 "repeatStore":{
51 "type": "dojo/store/Memory",
52 "params": {
53 "data": "modelApp.repeatData"
54 }
55 },
56 "repeatItemStore":{
57 "type": "dojo/data/ItemFileWriteStore",
58 "params": {
59 "url": "./resources/data/repeat.json"
60 }
61 },
62 // note that a jsonRest store requires the data be in a different format...
63 "jsonStore":{
64 "type": "dojo/store/JsonRest",
65 "params": {
66 "target": "./resources/data/jsonRestRepeatData.json"
67 }
68 }
69 },
70
71 //models and instantiation parameters for the models. Including 'type' as a property allows
72 //one to override the class that will be used for the model. By default it is dojox/mvc/mvcModel
73 "models": {
74 "namesXUnused": {
75 "modelLoader": "dojox/app/utils/mvcModel",
76 "type": "dojox/mvc/EditStoreRefListController",
77 "params":{
78 "store": {"$ref":"#stores.namesStore"}
79 }
80 },
81 "repeatmodels3": {
82 "modelLoader": "dojox/app/utils/mvcModel",
83 "type": "dojox/mvc/EditStoreRefListController",
84 "params":{
85 "datastore": {"$ref":"#stores.repeatItemStore"}
86 }
87 },
88 // The query param will not work with a file, but you should be able to see it passed to the service.
89 "jsonRestModel": {
90 "modelLoader": "dojox/app/utils/mvcModel",
91 "type": "dojox/mvc/EditStoreRefListController",
92 "params":{
93 "store": {"$ref":"#stores.jsonStore"},
94 "query": {"Location": "NY"}
95 }
96 }
97 },
98
99 // The has section will include the sections for which the has checks are true.
100 // For the sections with ! it will include the section if the has check is not true.
101 "has" : {
102 "ie9orLess" : {
103 "controllers": [
104 "dojox/app/controllers/HistoryHash"
105 ]
106 },
107 "!ie9orLess" : {
108 "controllers": [
109 "dojox/app/controllers/History"
110 ]
111 }
112 },
113
114 //the name of the scene to load when the app is initialized.
115 "defaultView": "home",
116
117 "defaultTransition": "slide",
118 //scenes are groups of views and models loaded at once
119 "views": {
120
121 "home": {
122 "dependencies":["dojox/mobile/ListItem","dojox/mobile/RoundRectList","dojox/mobile/RoundRectCategory","dojox/mobile/Heading"],
123 "template": "../app/tests/simpleModelApp/main/main.html"
124 },
125
126 "simple":{
127 "models": {
128 "names": {
129 "modelLoader": "dojox/app/utils/mvcModel",
130 "type": "dojox/mvc/ModelRefController",
131 "params":{
132 "data": "modelApp.names"
133 }
134 }
135 },
136 "controller" : "../app/tests/simpleModelApp/simple/simple.js",
137 "template": "../app/tests/simpleModelApp/simple/simple.html",
138 "dependencies":["dojox/mobile/TextBox","dojox/mvc/Group","dojox/mvc/Repeat","dojox/mvc/Output"]
139 },
140
141 "simple2":{
142 "models": {
143 "names": {
144 "modelLoader": "dojox/app/utils/mvcModel",
145 "type": "dojox/mvc/EditModelRefController",
146 "params":{
147 "data": "modelApp.names"
148 }
149 },
150 "repeatmodelsXUnused": {
151 "modelLoader": "dojox/app/utils/mvcModel",
152 "type": "dojox/mvc/EditStoreRefListController",
153 "params":{
154 "datastore": {"$ref":"#stores.repeatItemStore"}
155 }
156 }
157 },
158 "controller" : "../app/tests/simpleModelApp/simple/simple2.js",
159 "template": "../app/tests/simpleModelApp/simple/simple2.html",
160 "dependencies":["dojox/mobile/TextBox","dojox/mvc/Group","dojox/mvc/Repeat","dojox/mvc/Output"]
161 },
162
163 "simple3":{
164 "models": {
165 "namesXUnused": {
166 "modelLoader": "dojox/app/utils/simpleModel",
167 "params":{
168 "store": {"$ref":"#stores.namesStore"}
169 }
170 },
171 "names3": {
172 "modelLoader": "dojox/app/utils/simpleModel",
173 "params":{
174 "store": {"$ref":"#stores.namesStore"}
175 }
176 }
177 },
178 "controller" : "../app/tests/simpleModelApp/simple/simple3.js",
179 "template": "../app/tests/simpleModelApp/simple/simple3.html",
180 "dependencies":["dojox/mobile/TextBox"]
181 },
182
183 "repeat": {
184 "models": {
185 "repeatmodels": {
186 "modelLoader": "dojox/app/utils/mvcModel",
187 "type": "dojox/mvc/EditStoreRefListController",
188 "params":{
189 "store": {"$ref":"#stores.repeatStore"}
190 }
191 },
192 "repeatmodelsXUnused": {
193 "modelLoader": "dojox/app/utils/mvcModel",
194 "type": "dojox/mvc/EditStoreRefListController",
195 "params":{
196 "datastore": {"$ref":"#stores.repeatItemStore"}
197 }
198 }
199 },
200 "template": "../app/tests/simpleModelApp/repeat/repeat.html",
201 "controller" : "../app/tests/simpleModelApp/repeat/repeat.js",
202 "dependencies":["dojox/mobile/TextBox","dojox/mvc/Group","dojox/mvc/Repeat","dojox/mvc/Output"]
203 },
204
205 "repeat2": {
206 "models": {
207 "repeatmodels2": {
208 "modelLoader": "dojox/app/utils/mvcModel",
209 "type": "dojox/mvc/EditStoreRefListController",
210 "params":{
211 "datastore": {"$ref":"#stores.repeatItemStore"},
212 "query": {"Location": "NY"}
213 }
214 }
215 },
216 "template": "../app/tests/simpleModelApp/repeat/repeat2.html",
217 "controller" : "../app/tests/simpleModelApp/repeat/repeat2.js",
218 "dependencies":["dojox/mobile/TextBox","dojox/mvc/Group","dojox/mvc/Repeat","dojox/mvc/Output"]
219 },
220
221 "repeat3": {
222 "template": "../app/tests/simpleModelApp/repeat/repeat3.html",
223 "controller" : "../app/tests/simpleModelApp/repeat/repeat3.js",
224 "dependencies":["dojox/mobile/TextBox","dojox/mvc/Group","dojox/mvc/Repeat","dojox/mvc/Output"]
225 },
226
227 "generate": {
228 "template": "../app/tests/simpleModelApp/generate/generate.html",
229 "controller" : "../app/tests/simpleModelApp/generate/generate.js",
230 "dependencies":["dojox/mobile/TextBox", "dojox/mobile/TextArea", "dojox/mvc/Generate"]
231 }
232 }
233 }