-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
110 lines (102 loc) · 3.1 KB
/
config.json
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
{
"id": "simple-todo-app",
"name": "Simple ToDo App",
"description": "This is a Simple ToDo application which could be a first step to creating the dojo-todo-app based on the Dojo Toolkit and provided under Dojo license.",
"splash": "splash",
"loaderConfig": {
"paths": {
"simple-todo-app": "../demos/simple-todo-app"
}
},
"dependencies": [
"dojox/mobile/_base",
"dojox/mobile/_compat",
"dojox/mobile/TabBar",
"dojox/mobile/RoundRect",
"dojox/mobile/TabBarButton",
"dojox/mobile/TextBox",
"dojox/mobile/TextArea",
"dojox/mobile/CheckBox",
"dojox/mobile/ExpandingTextArea",
"dojox/mobile/Button",
"dojox/mobile/RoundRect",
"dojox/mobile/Heading",
"dojox/mobile/ListItem",
"dojox/mobile/RoundRectList",
"dojox/mobile/RoundRectCategory",
"dojox/mobile/Switch",
"dojox/mobile/SimpleDialog",
"dojox/app/widgets/Container",
"dojo/store/Memory",
"dojo/data/ItemFileWriteStore",
"dojo/store/DataStore",
"dojox/app/utils/mvcModel",
"dojox/mvc/EditStoreRefListController",
"dojox/mvc/WidgetList",
"dojox/mvc/Group",
"dojox/mvc/Output",
"dojox/mvc/at"
],
// Modules for the application. They are basically used as the second
// array of mixins in a dojo.declare(). Modify the top level behavior
// of the application, how it processes the config or any other life cycle
// by creating and including one or more of these
"modules": [
"simple-todo-app/simple-todo-app"
],
"controllers": [
"dojox/app/controllers/History"
],
//stores we are using
"stores": {
"allitemlistStore":{
"type": "dojo/data/ItemFileWriteStore",
"params": {
"url": "./resources/data/all-items.json"
}
}
},
//models and instantiation parameters for the models. Including 'type' as a property allows
//one to overide the class that will be used for the model. By default it is dojox/mvc/model
"models": {
"allitemlistmodel": {
"modelLoader": "dojox/app/utils/mvcModel",
"type": "dojox/mvc/EditStoreRefListController",
"params":{
"datastore": {"$ref":"#stores.allitemlistStore"}
}
}
},
//the name of the scene to load when the app is initialized.
"defaultView": "items,TodoItemsListController",
"defaultTransition": "slide",
//scenes are groups of views and models loaded at once
"views": {
//items scene, include TodoItemsListController view and TodoItemsListDeclarativeController view
"items": {
"defaultView": "TodoItemsListController",
"defaultTransition": "slide",
"definition": "none",
//the views available to this scene
"views": {
"TodoItemsListController":{
"template": "simple-todo-app/templates/items/TodoItemsListView.html"
},
"TodoItemsListDeclarativeController":{
"template": "simple-todo-app/templates/items/TodoItemsListDeclarativeView.html"
}
}
},
//details scene, include list view and date view
"details": {
"defaultView": "TodoItemDetailsController",
"defaultTransition": "slide",
"definition": "none",
"views": {
"TodoItemDetailsController":{
"template": "simple-todo-app/templates/details/TodoItemDetailsView.html"
}
}
}
}
}