-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathindex.js
57 lines (56 loc) · 1.65 KB
/
index.js
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
define(['durandal/viewModel', 'samples/global'],
function( viewModel, global ) {
return {
activeSample: viewModel.activator(),
isDFiddle: ko.observable(false),
dFiddleRepoUrl: ko.observable(''),
notAvailable: global.notAvailable,
sampleGroups: [
{
name: 'Basic examples',
samples: [
{
name: 'View composition',
hash: '#/view-composition/default',
moduleId: 'samples/viewComposition/default/index'
}
]
},
{
name: 'Detailed Examples',
samples: [{
name: 'Wizard',
hash: '#/view-composition/wizard',
moduleId: 'samples/viewComposition/wizard/index'
}]
},
{
name: 'Fiddles',
samples: [
{
name: 'View composition',
hash: '#/view-composition/dFiddle',
moduleId: 'samples/viewComposition/dFiddle/index',
showCodeUrl: true
},
{
name: 'ViewUrl',
hash: '#/view-composition/SO16483013',
moduleId: 'samples/viewComposition/SO16483013/index',
showCodeUrl: true
},
{
name: 'GetView()',
hash: '#/view-composition/getView',
moduleId: 'samples/viewComposition/getView/index',
showCodeUrl: true
}
]
}
],
activate: function( args ) {
var that = this;
return global.activateIndex(args, that);
}
};
});