author | nowmad@nowmads-macbook-pro.local |
Fri, 11 Dec 2015 13:13:47 +0100 | |
changeset 51 | 70dff07a76ff |
parent 40 | 9887379e627f |
child 56 | c4a022ba3fc3 |
permissions | -rw-r--r-- |
40 | 1 |
import DS from 'ember-data'; |
2 |
||
3 |
var Sound = DS.Model.extend({ |
|
4 |
name: DS.attr('string'), |
|
51
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
5 |
location: DS.attr('string'), |
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
6 |
language: DS.attr('string'), |
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
7 |
datetime: DS.attr('integer'), |
40 | 8 |
audio: DS.attr('url') |
9 |
}); |
|
10 |
||
11 |
Sound.reopenClass({ |
|
12 |
FIXTURES: [ |
|
13 |
{ |
|
14 |
id: 1, |
|
15 |
name: "Sound 1", |
|
51
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
16 |
location: "France", |
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
17 |
language: "Alsacien", |
40 | 18 |
datetime: 1990, |
19 |
audio: "http://sound1.mp3" |
|
20 |
}, |
|
21 |
{ |
|
22 |
id: 2, |
|
23 |
name: "Sound 2", |
|
51
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
24 |
location: "France", |
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
25 |
language: "Breton", |
40 | 26 |
datetime: 1965, |
27 |
audio: "http://sound2.mp3" |
|
28 |
}, |
|
29 |
{ |
|
30 |
id: 3, |
|
31 |
name: "Sound 3", |
|
51
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
32 |
location: "Germany", |
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
33 |
language: "Breton", |
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
34 |
datetime: 1965, |
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
35 |
audio: "http://sound2.mp3" |
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
36 |
}, |
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
37 |
{ |
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
38 |
id: 4, |
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
39 |
name: "Sound 4", |
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
40 |
location: "Spain", |
70dff07a76ff
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
nowmad@nowmads-macbook-pro.local
parents:
40
diff
changeset
|
41 |
language: "Judéo-espagnol", |
40 | 42 |
datetime: 2002, |
43 |
audio: "http://sound3.mp3" |
|
44 |
} |
|
45 |
] |
|
46 |
}); |
|
47 |
||
48 |
export default Sound; |