| 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 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
"modules": [], |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
"controllers": [ |
| 37 |
"dojox/app/controllers/Load", |
| 38 |
"dojox/app/controllers/Transition", |
| 39 |
"dojox/app/controllers/Layout" |
| 40 |
], |
| 41 |
|
| 42 |
|
| 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 |
"nameItemStore":{ |
| 63 |
"type": "dojo/data/ItemFileWriteStore", |
| 64 |
"params": { |
| 65 |
"url": "./resources/data/names2.json" |
| 66 |
} |
| 67 |
}, |
| 68 |
|
| 69 |
"jsonStore":{ |
| 70 |
"type": "dojo/store/JsonRest", |
| 71 |
"params": { |
| 72 |
"target": "./resources/data/jsonRestRepeatData.json" |
| 73 |
} |
| 74 |
}, |
| 75 |
|
| 76 |
"jsonNameStore":{ |
| 77 |
"type": "dojo/store/JsonRest", |
| 78 |
"params": { |
| 79 |
"target": "./resources/data/jsonRestNamesData.json" |
| 80 |
} |
| 81 |
} |
| 82 |
}, |
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
"models": { |
| 87 |
"namesXUnused": { |
| 88 |
"modelLoader": "dojox/app/utils/mvcModel", |
| 89 |
"type": "dojox/mvc/EditStoreRefListController", |
| 90 |
"params":{ |
| 91 |
"store": {"$ref":"#stores.namesStore"} |
| 92 |
} |
| 93 |
}, |
| 94 |
"repeatmodels3": { |
| 95 |
"modelLoader": "dojox/app/utils/mvcModel", |
| 96 |
"type": "dojox/mvc/EditStoreRefListController", |
| 97 |
"params":{ |
| 98 |
"datastore": {"$ref":"#stores.repeatItemStore"} |
| 99 |
} |
| 100 |
}, |
| 101 |
"jsonRestModel": { |
| 102 |
"modelLoader": "dojox/app/utils/mvcModel", |
| 103 |
"type": "dojox/mvc/EditStoreRefListController", |
| 104 |
"params":{ |
| 105 |
"store": {"$ref":"#stores.jsonStore"}, |
| 106 |
"query": {"Location": "NY"} |
| 107 |
} |
| 108 |
} |
| 109 |
}, |
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
"has" : { |
| 114 |
"ie9orLess" : { |
| 115 |
"controllers": [ |
| 116 |
"dojox/app/controllers/HistoryHash" |
| 117 |
] |
| 118 |
}, |
| 119 |
"!ie9orLess" : { |
| 120 |
"controllers": [ |
| 121 |
"dojox/app/controllers/History" |
| 122 |
] |
| 123 |
} |
| 124 |
}, |
| 125 |
|
| 126 |
|
| 127 |
"defaultView": "home", |
| 128 |
|
| 129 |
"defaultTransition": "slide", |
| 130 |
|
| 131 |
"views": { |
| 132 |
|
| 133 |
"home": { |
| 134 |
"dependencies":["dojox/mobile/ListItem","dojox/mobile/RoundRectList","dojox/mobile/RoundRectCategory","dojox/mobile/Heading"], |
| 135 |
"template": "./main/main.html" |
| 136 |
}, |
| 137 |
|
| 138 |
"simple":{ |
| 139 |
"models": { |
| 140 |
"names": { |
| 141 |
"modelLoader": "dojox/app/utils/mvcModel", |
| 142 |
"type": "dojox/mvc/ModelRefController", |
| 143 |
"params":{ |
| 144 |
"data": "modelApp.names" |
| 145 |
} |
| 146 |
} |
| 147 |
}, |
| 148 |
"controller" : "./simple/simple.js", |
| 149 |
"template": "./simple/simple.html", |
| 150 |
"dependencies":["dojox/mobile/TextBox","dojox/mvc/Group","dojox/mvc/Repeat","dojox/mvc/Output"] |
| 151 |
}, |
| 152 |
|
| 153 |
"simple2":{ |
| 154 |
"models": { |
| 155 |
"names": { |
| 156 |
"modelLoader": "dojox/app/utils/mvcModel", |
| 157 |
"type": "dojox/mvc/EditModelRefController", |
| 158 |
"params":{ |
| 159 |
"data": "modelApp.names" |
| 160 |
} |
| 161 |
}, |
| 162 |
"repeatmodelsXUnused": { |
| 163 |
"modelLoader": "dojox/app/utils/mvcModel", |
| 164 |
"type": "dojox/mvc/EditStoreRefListController", |
| 165 |
"params":{ |
| 166 |
"datastore": {"$ref":"#stores.repeatItemStore"} |
| 167 |
} |
| 168 |
} |
| 169 |
}, |
| 170 |
"controller" : "./simple/simple2.js", |
| 171 |
"template": "./simple/simple2.html", |
| 172 |
"dependencies":["dojox/mobile/TextBox","dojox/mvc/Group","dojox/mvc/Repeat","dojox/mvc/Output"] |
| 173 |
}, |
| 174 |
|
| 175 |
"simple3":{ |
| 176 |
"models": { |
| 177 |
"names3": { |
| 178 |
"modelLoader": "dojox/app/utils/simpleModel", |
| 179 |
"params":{ |
| 180 |
"store": {"$ref":"#stores.namesStore"} |
| 181 |
|
| 182 |
} |
| 183 |
}, |
| 184 |
"names3JsonStoreUnused": { |
| 185 |
"modelLoader": "dojox/app/utils/simpleModel", |
| 186 |
"params":{ |
| 187 |
"store": {"$ref":"#stores.jsonNameStore"}, |
| 188 |
"query": {"id": "1"} |
| 189 |
} |
| 190 |
}, |
| 191 |
"names3dataStoreUnused": { |
| 192 |
"modelLoader": "dojox/app/utils/simpleModel", |
| 193 |
"params":{ |
| 194 |
"datastore": {"$ref":"#stores.nameItemStore"} |
| 195 |
|
| 196 |
} |
| 197 |
}, |
| 198 |
"namesXUnused": { |
| 199 |
"modelLoader": "dojox/app/utils/simpleModel", |
| 200 |
"params":{ |
| 201 |
"store": {"$ref":"#stores.namesStore"} |
| 202 |
} |
| 203 |
} |
| 204 |
}, |
| 205 |
"controller" : "./simple/simple3.js", |
| 206 |
"template": "./simple/simple3.html", |
| 207 |
"dependencies":["dojox/mobile/TextBox"] |
| 208 |
}, |
| 209 |
|
| 210 |
"repeat": { |
| 211 |
"models": { |
| 212 |
"repeatmodels": { |
| 213 |
"modelLoader": "dojox/app/utils/mvcModel", |
| 214 |
"type": "dojox/mvc/EditStoreRefListController", |
| 215 |
"params":{ |
| 216 |
"store": {"$ref":"#stores.repeatStore"} |
| 217 |
} |
| 218 |
}, |
| 219 |
"repeatmodelsXUnused": { |
| 220 |
"modelLoader": "dojox/app/utils/mvcModel", |
| 221 |
"type": "dojox/mvc/EditStoreRefListController", |
| 222 |
"params":{ |
| 223 |
"datastore": {"$ref":"#stores.repeatItemStore"} |
| 224 |
} |
| 225 |
} |
| 226 |
}, |
| 227 |
"controller": "./repeat/repeat.js", |
| 228 |
"template": "./repeat/repeat.html", |
| 229 |
"dependencies":["dojox/mobile/TextBox","dojox/mvc/Group","dojox/mvc/Repeat","dojox/mvc/Output"] |
| 230 |
}, |
| 231 |
|
| 232 |
"repeat2": { |
| 233 |
"models": { |
| 234 |
"repeatmodels2": { |
| 235 |
"modelLoader": "dojox/app/utils/mvcModel", |
| 236 |
"type": "dojox/mvc/EditStoreRefListController", |
| 237 |
"params":{ |
| 238 |
"datastore": {"$ref":"#stores.repeatItemStore"}, |
| 239 |
"query": {"Location": "NY"} |
| 240 |
} |
| 241 |
} |
| 242 |
}, |
| 243 |
"controller": "./repeat/repeat2.js", |
| 244 |
"template": "./repeat/repeat2.html", |
| 245 |
"dependencies":["dojox/mobile/TextBox","dojox/mvc/Group","dojox/mvc/Repeat","dojox/mvc/Output"] |
| 246 |
}, |
| 247 |
|
| 248 |
"repeat3": { |
| 249 |
"controller": "./repeat/repeat3.js", |
| 250 |
"template": "./repeat/repeat3.html", |
| 251 |
"dependencies":["dojox/mobile/TextBox","dojox/mvc/Group","dojox/mvc/Repeat","dojox/mvc/Output"] |
| 252 |
}, |
| 253 |
|
| 254 |
"generate": { |
| 255 |
"controller": "./generate/generate.js", |
| 256 |
"template": "./generate/generate.html", |
| 257 |
"dependencies":["dojox/mobile/TextBox", "dojox/mobile/TextArea", "dojox/mvc/Generate"] |
| 258 |
} |
| 259 |
} |
| 260 |
} |