Skip to content

Commit 7d7bf09

Browse files
committed
Better sample data.
1 parent 1039046 commit 7d7bf09

File tree

4 files changed

+140
-140
lines changed

4 files changed

+140
-140
lines changed

models/comics.data.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ uiModels.comics_data = [{
1717
"authors": "Brian K. Vaughan and Fiona Staples",
1818
"complete": false,
1919
"finished": false,
20-
"have": "1-3",
21-
"have_nb": 3,
22-
"serie_nb": 4,
20+
"have": "1-5",
21+
"have_nb": 5,
22+
"serie_nb": 6,
2323
"language": 1,
2424
"pix": "comics/saga1.jpeg"
2525
},

models/todo.data.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
var uiModels = uiModels || {};
22
uiModels.todo_data = [
33
{id: '1', title: 'Release Evolutility v1', priority: '3', category: 'others', complete: false, project:['1','2','3'], description: '10 generic views + a ui-modeling language.', notes:''},
4-
{id: '2', title: 'Fix open bugs', duedate: '2014-07-25', priority: '3', category: 'work', project:['1','2'], complete: false, description: 'bla bla'},
5-
{id: '3', title: 'Testing App', duedate: '2014-06-11', priority: '3', category: 'work', complete: false, project:['1', '2','3'], description: 'test'},
6-
{id: '4', title: 'Prepare demo', duedate: '2014-05-12', priority: '1', category: 'work', complete: false, project:['4'], description: 'Check this out'},
4+
{id: '2', title: 'Fix open bugs', duedate: '2016-07-25', priority: '3', category: 'work', project:['1','2'], complete: false, description: 'Not much left.'},
5+
{id: '3', title: 'Testing App', duedate: '2016-06-11', priority: '3', category: 'work', complete: false, project:['1', '2','3'], description: 'test'},
6+
{id: '4', title: 'Prepare demo', duedate: '2016-05-12', priority: '1', category: 'work', complete: false, project:['4'], description: 'Check this out'},
77
{id: '5', title: 'Test latest code', priority: '5', category: 'misc', complete: true, project:['1','2','3'], description: 'notes for my test todo task.'},
88
{id: '6', title: 'Car wash', priority: '4', category: 'work', project:['10'], complete: false},
9-
{id: '7', title: 'Watch Inception', duedate: '2014-01-10', priority: '5', category: 'fun', project:['10'], complete: true},
10-
{id: '8', title: 'Test TODO', duedate: '2015-01-01', priority: '1', category: 'work', project:['2','3'], complete: true, description: 'Test TODO '},
9+
{id: '7', title: 'Watch Inception', duedate: '2016-01-10', priority: '5', category: 'fun', project:['10'], complete: true},
10+
{id: '8', title: 'Test TODO', duedate: '2017-01-01', priority: '1', category: 'work', project:['2','3'], complete: true, description: 'Test TODO '},
1111
{id: '9', title: 'Dentist', priority: '3', category: 'home', complete: true},
12-
{id: '10', title: 'French translation', priority: '4', category: 'work', project:['5'], complete: true},
12+
{id: '10', title: 'French translation', priority: '3', category: 'work', project:['5'], complete: true},
1313
{id: '11', title: 'Italian translation', priority: '4', category: 'work', project:['5']},
14-
{id: '12', title: 'Chinese translation', priority: '4', category: 'work', project:['5']},
14+
{id: '12', title: 'Chinese translation', priority: '3', category: 'work', project:['5']},
1515
{id: '13', title: 'Japanese translation', priority: '4', category: 'work', project:['5']},
1616
{id: '14', title: 'German translation', priority: '4', category: 'work', project:['5']},
1717
{id: '15', title: 'Russian translation', priority: '4', category: 'work', project:['5']},
1818
{id: '16', title: 'Polish translation', priority: '4', category: 'work', project:['5']},
1919
{id: '17', title: 'Klingon translation', priority: '4', category: 'work', project:['5']},
20-
{id: '18', title: 'Code optimization', duedate: '2015-01-01', priority: '4', category: 'work', project:['1','2','4'], complete: false},
20+
{id: '18', title: 'Code optimization', duedate: '2017-01-01', priority: '4', category: 'work', project:['1','2','4'], complete: false},
2121
{id: '19', title: 'Setup demo server', priority: '2', category: 'work', complete: false, project:['4']},
22-
{id: '20', title: 'Add sample data', duedate: '2014-04-23', priority: '3', category: 'work', project:['1','2','3'], complete: true},
22+
{id: '20', title: 'Add sample data', duedate: '2016-04-23', priority: '3', category: 'work', project:['1','2','3'], complete: true},
2323
{id: '21', title: 'Make proposal', priority: '2', category: 'misc', project:['4'], complete: false},
2424
{id: '22', title: 'Checkout cool restaurant', priority: '3', category: 'fun', project: ['4','10'], complete: false},
2525
{id: '23', title: 'Kill the vampires', priority: '3', project:['10'], category: 'others'}

models/winecellar.data.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ uiModels.winecellar_data = [
55
label_img: "wine/macrostie.gif",
66
vintage: 2008,
77
winery: "Mc Williams",
8-
bsize: "750",
9-
type: "red",
8+
bsize: 1,
9+
type: 1,
1010
price: 20,
11-
grape: "chard",
12-
country: "US",
11+
grape: 1,
12+
country: 18,
1313
region: "Sonoma",
1414
buying_date: "2008-05-12",
1515
value: 24,
@@ -48,17 +48,17 @@ uiModels.winecellar_data = [
4848
label_img: 'wine/yquem.gif',
4949
vintage: 2012,
5050
winery:'Lur Saluces',
51-
bsize: '750',
52-
type: 'white',
53-
grape: "sem",
51+
bsize: 1,
52+
type: 2,
53+
grape: 59,
5454
buying_date: "2012-12-12",
5555
price: 399,
5656
value: 460,
5757
drink_from: 2012,
5858
drink_to: 2017,
5959
purchased: 3,
6060
remaining: 1,
61-
country: 'FR',
61+
country: 7,
6262
region: "Bordeaux",
6363
area:'Sauternes and Barsac',
6464
score_parker: 92,
@@ -83,15 +83,15 @@ uiModels.winecellar_data = [
8383
label_img: 'wine/stjean.gif',
8484
vintage: 2008,
8585
winery:'Ch St Jean',
86-
bsize: '750',
87-
type: 'red',
86+
bsize: 1,
87+
type: 1,
8888
price: 34,
8989
value: 32,
9090
purchased: 12,
9191
remaining: 5,
9292
drink_from: 2009,
9393
grape: 'shiraz',
94-
country: 'FR',
94+
country: 7,
9595
score_parker: 68,
9696
score_winespectator: 72,
9797
degustations: [
@@ -109,13 +109,13 @@ uiModels.winecellar_data = [
109109
label_img: 'wine/vinecliff.gif',
110110
vintage: 2013,
111111
winery:'Vine Cliff',
112-
bsize: '750',
113-
type: 'red',
112+
bsize: 1,
113+
type: 1,
114114
buying_date: "2013-05-05",
115115
price: 28,
116116
drink_from: 2014,
117-
grape: 'merlo',
118-
country: 'US',
117+
grape: 3,
118+
country: 18,
119119
score_parker: 67,
120120
score_winespectator: 62,
121121
degustations: [
@@ -144,16 +144,16 @@ uiModels.winecellar_data = [
144144
label_img: 'wine/montelena.gif',
145145
vintage: 2005,
146146
winery:'Château Montelena',
147-
bsize: '1500',
148-
grape: 'merlo',
149-
type: 'red',
147+
bsize: 4,
148+
grape: 3,
149+
type: 1,
150150
drink_from: 2005,
151151
region:'California',
152152
price: 62,
153153
value: 32,
154154
purchased: 12,
155155
remaining: 8,
156-
country: 'US',
156+
country: 18,
157157
score_parker: 64,
158158
score_winespectator: 64,
159159
degustations: [

models/winecellar.js

Lines changed: 109 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,107 @@
11
var winecellar_lovs = {
22

33
bottleSize: [
4-
{id:750, text:'750 ml'},
5-
{id:500, text:'500 ml'},
6-
{id:375, text:'375 cl'},
7-
{id:1500, text:'1.5 L'},
8-
{id:3000, text:'3.0 L'},
9-
{id:6000, text:'6.0 L'},
10-
{id:8000, text:'8.0 L'}
4+
{ id: 1, text: "750 ml"},
5+
{ id: 2, text: "500 ml"},
6+
{ id: 3, text: "375 cl"},
7+
{ id: 4, text: "1.5 L"},
8+
{ id: 5, text: "3.0 L"},
9+
{ id: 6, text: "6.0 L"},
10+
{ id: 7, text: "8.0 L"}
1111
],
1212

1313
grape: [
14-
{id:'chard', text:'Chardonnay'},
15-
{id:'shiraz', text:'Shiraz'},
16-
{id:'merlo', text:'Merlot'},
17-
{id:'pino', text:'Pinot Noir'},
18-
{id:'cab', text:'Cabernet'},
19-
{id:'zin', text:'Zinfandel'},
20-
{id:'sauv', text:'Sauvignon'},
21-
{id:'cabsau', text:'Cabernet Sauvignon'},
22-
{id:'aligo', text:'Aligoté'},
23-
{id:'alva', text:'Alvarinho'},
24-
{id:'bf', text:'Blanc Fumé'},
25-
{id:'bual', text:'Bual'},
26-
{id:'carg', text:'Carignan'},
27-
{id:'chass', text:'Chasselas'},
28-
{id:'cb', text:'Chemin Blanc'},
29-
{id:'cin', text:'Cinsault'},
30-
{id:'clair', text:'Clairette'},
31-
{id:'colomb', text:'Colombard'},
32-
{id:'counoi', text:'Counoise'},
33-
{id:'fdt', text:'Fendant'},
34-
{id:'fb', text:'Folle Blanche'},
35-
{id:'f', text:'Fürmint'},
36-
{id:'gamay', text:'Gamay'},
37-
{id:'gewurz', text:'Gewürztraminer'},
38-
{id:'graub', text:'Grauburgunder'},
39-
{id:'grct', text:'Grechetto'},
40-
{id:'gb', text:'Grenache Blanc'},
41-
{id:'gn', text:'Grenache Noir'},
42-
{id:'gp', text:'Gros Plan'},
43-
{id:'gv', text:'Grüner Veltliner'},
44-
{id:'ir', text:'Italienischer Riestling'},
45-
{id:'ka', text:'Kadarka'},
46-
{id:'ker', text:'Kerner'},
47-
{id:'mcb', text:'Macabeo'},
48-
{id:'malm', text:'Malmsey'},
49-
{id:'malv', text:'Malvasier'},
50-
{id:'mars', text:'Marsanne'},
51-
{id:'mdb', text:'Melon de Bourgogne'},
52-
{id:'mourv', text:'Mourvèdre'},
53-
{id:'mt', text:'Müller-Thurgau'},
54-
{id:'mu1', text:'Muscadelle'},
55-
{id:'mu2', text:'Muscadet'},
56-
{id:'mu3', text:'Musca'},
57-
{id:'mu4', text:'Musca d\'Alsace'},
58-
{id:'mu5', text:'Muskateller'},
59-
{id:'neb', text:'Nebbiolo'},
60-
{id:'pal', text:'Palomino'},
61-
{id:'px', text:'Pedro Ximérez'},
62-
{id:'pv', text:'Petit Verdot'},
63-
{id:'pb', text:'Pinot Blanc'},
64-
{id:'pg', text:'Pinot Gris'},
65-
{id:'pn', text:'Pinot Noir'},
66-
{id:'pi', text:'Pinotage'},
67-
{id:'riesling', text:'Riesling'},
68-
{id:'rul', text:'Ruländer'},
69-
{id:'sang', text:'Sangiovese'},
70-
{id:'sb', text:'Sauvignon Blanc'},
71-
{id:'sc', text:'Scheurebe'},
72-
{id:'sem', text:'Sémilion'},
73-
{id:'ser', text:'Sercial'},
74-
{id:'sb2', text:'Seyval Blanc'},
75-
{id:'sieg', text:'Siegerrebe'},
76-
{id:'silv', text:'Silvaner'},
77-
{id:'spa', text:'Spätburgunder'},
78-
{id:'steen', text:'Steen'},
79-
{id:'syrah', text:'Syrah'},
80-
{id:'temp', text:'Tempranillo'},
81-
{id:'tokay', text:'Tokay'},
82-
{id:'tram', text:'Traminer'},
83-
{id:'treb', text:'Trebbiano'},
84-
{id:'ub', text:'Ugni Blanc'},
85-
{id:'verd', text:'Verdejo'},
86-
{id:'verdh', text:'Verdelho'},
87-
{id:'verm', text:'Vermentino'},
88-
{id:'vern', text:'Vernaccia'},
89-
{id:'vio', text:'Viognier'},
90-
{id:'viu', text:'Viura'},
91-
{id:'w', text:'Weißburgunder'}
14+
{ id: 1, text: "Chardonnay"},
15+
{ id: 2, text: "Shiraz"},
16+
{ id: 3, text: "Merlot"},
17+
{ id: 4, text: "Pinot Noir"},
18+
{ id: 5, text: "Cabernet"},
19+
{ id: 6, text: "Zinfandel"},
20+
{ id: 7, text: "Sauvignon"},
21+
{ id: 8, text: "Cabernet Sauvignon"},
22+
{ id: 9, text: "Aligoté"},
23+
{ id: 10, text: "Alvarinho"},
24+
{ id: 11, text: "Blanc Fumé"},
25+
{ id: 12, text: "Bual"},
26+
{ id: 13, text: "Carignan"},
27+
{ id: 14, text: "Chasselas"},
28+
{ id: 15, text: "Chemin Blanc"},
29+
{ id: 16, text: "Cinsault"},
30+
{ id: 17, text: "Clairette"},
31+
{ id: 18, text: "Colombard"},
32+
{ id: 19, text: "Counoise"},
33+
{ id: 20, text: "Fendant"},
34+
{ id: 21, text: "Folle Blanche"},
35+
{ id: 22, text: "Fürmint"},
36+
{ id: 23, text: "Gamay"},
37+
{ id: 24, text: "Gewürztraminer"},
38+
{ id: 25, text: "Grauburgunder"},
39+
{ id: 26, text: "Grechetto"},
40+
{ id: 27, text: "Grenache Blanc"},
41+
{ id: 28, text: "Grenache Noir"},
42+
{ id: 29, text: "Gros Plan"},
43+
{ id: 30, text: "Grüner Veltliner"},
44+
{ id: 31, text: "Italienischer Riestling"},
45+
{ id: 32, text: "Kadarka"},
46+
{ id: 33, text: "Kerner"},
47+
{ id: 34, text: "Macabeo"},
48+
{ id: 35, text: "Malmsey"},
49+
{ id: 36, text: "Malvasier"},
50+
{ id: 37, text: "Marsanne"},
51+
{ id: 38, text: "Melon de Bourgogne"},
52+
{ id: 39, text: "Mourvèdre"},
53+
{ id: 40, text: "Müller-Thurgau"},
54+
{ id: 41, text: "Muscadelle"},
55+
{ id: 42, text: "Muscadet"},
56+
{ id: 43, text: "Musca"},
57+
{ id: 44, text: "Musca d'Alsace"},
58+
{ id: 45, text: "Muskateller"},
59+
{ id: 46, text: "Nebbiolo"},
60+
{ id: 47, text: "Palomino"},
61+
{ id: 48, text: "Pedro Ximérez"},
62+
{ id: 49, text: "Petit Verdot"},
63+
{ id: 50, text: "Pinot Blanc"},
64+
{ id: 51, text: "Pinot Gris"},
65+
{ id: 52, text: "Pinot Noir"},
66+
{ id: 53, text: "Pinotage"},
67+
{ id: 54, text: "Riesling"},
68+
{ id: 55, text: "Ruländer"},
69+
{ id: 56, text: "Sangiovese"},
70+
{ id: 57, text: "Sauvignon Blanc"},
71+
{ id: 58, text: "Scheurebe"},
72+
{ id: 59, text: "Sémilion"},
73+
{ id: 60, text: "Sercial"},
74+
{ id: 61, text: "Seyval Blanc"},
75+
{ id: 62, text: "Siegerrebe"},
76+
{ id: 63, text: "Silvaner"},
77+
{ id: 64, text: "Spätburgunder"},
78+
{ id: 65, text: "Steen"},
79+
{ id: 66, text: "Syrah"},
80+
{ id: 67, text: "Tempranillo"},
81+
{ id: 68, text: "Tokay"},
82+
{ id: 69, text: "Traminer"},
83+
{ id: 70, text: "Trebbiano"},
84+
{ id: 71, text: "Ugni Blanc"},
85+
{ id: 72, text: "Verdejo"},
86+
{ id: 73, text: "Verdelho"},
87+
{ id: 74, text: "Vermentino"},
88+
{ id: 75, text: "Vernaccia"},
89+
{ id: 76, text: "Viognier"},
90+
{ id: 77, text: "Viura"},
91+
{ id: 78, text: "Weißburgunder"}
9292
],
9393

9494
type: [
95-
{id:'red',text:'Red', icon:'wine/winered.gif'},
96-
{id:'white',text:'White', icon:'wine/winewhite.gif'},
97-
{id:'sweet',text:'Sweet', icon:'wine/winesweet.gif'},
98-
{id:'spark',text:'Sparkling', icon:'wine/winespark.gif'},
99-
{id:'rose',text:'Rose', icon:'wine/winerose.gif'}
95+
{ id:1, text:'Red', icon:'wine/winered.gif'},
96+
{ id:2, text:'White', icon:'wine/winewhite.gif'},
97+
{ id:3, text:'Sweet', icon:'wine/winesweet.gif'},
98+
{ id:4, text:'Sparkling', icon:'wine/winespark.gif'},
99+
{ id:5, text:'Rose', icon:'wine/winerose.gif'}
100100
],
101101

102102
score: [
103103
//{id:'', text:'NR', icon:'s00.gif'},
104-
{id:0, text:''},
104+
//{id:0, text:''},
105105
{id:1, text:'*'},
106106
{id:2, text:'**'},
107107
{id:3, text:'***'},
@@ -110,24 +110,24 @@ var winecellar_lovs = {
110110
],
111111

112112
country: [
113-
{id: 'AR', text: 'Argentina'},
114-
{id: 'AT', text: 'Austria'},
115-
{id: 'BG', text: 'Bulgaria'},
116-
{id: 'CA', text: 'Canada'},
117-
{id: 'CL', text:'Chile'},
118-
{id: 'CY', text:'Cyprus'},
119-
{id: 'FR', text:'France'},
120-
{id: 'DE', text:'Germany'},
121-
{id: 'GR', text:'Greece'},
122-
{id: 'HU', text:'Hungary'},
123-
{id: 'IT', text:'Italy'},
124-
{id: 'LU', text:'Luxembourg'},
125-
{id: 'NZ', text:'New Zealand'},
126-
{id: 'PT', text:'Portugal'},
127-
{id: 'ZA', text:'South Africa'},
128-
{id: 'ES', text:'Spain'},
129-
{id: 'CH', text:'Switzerland'},
130-
{id: 'US', text:'United States'}
113+
{ id: 1, text: "Argentina"},
114+
{ id: 2, text: "Austria"},
115+
{ id: 3, text: "Bulgaria"},
116+
{ id: 4, text: "Canada"},
117+
{ id: 5, text: "Chile"},
118+
{ id: 6, text: "Cyprus"},
119+
{ id: 7, text: "France"},
120+
{ id: 8, text: "Germany"},
121+
{ id: 9, text: "Greece"},
122+
{ id: 10, text: "Hungary"},
123+
{ id: 11, text: "Italy"},
124+
{ id: 12, text: "Luxembourg"},
125+
{ id: 13, text: "New Zealand"},
126+
{ id: 14, text: "Portugal"},
127+
{ id: 15, text: "South Africa"},
128+
{ id: 16, text: "Spain"},
129+
{ id: 17, text: "Switzerland"},
130+
{ id: 18, text: "United States"}
131131
]
132132

133133
};

0 commit comments

Comments
 (0)