cms/app-client/app/models/sound.js
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--
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
40
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
     1
import DS from 'ember-data';
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
     2
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
     3
var Sound = DS.Model.extend({
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
     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
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
     8
  audio: DS.attr('url')
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
     9
});
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    10
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    11
Sound.reopenClass({
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    12
  FIXTURES: [
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    13
    {
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    14
          id: 1,
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    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
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    18
          datetime: 1990,
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    19
          audio: "http://sound1.mp3"
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    20
      },
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    21
      {
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    22
          id: 2,
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    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
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    26
          datetime: 1965,
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    27
          audio: "http://sound2.mp3"
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    28
      },
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    29
      {
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    30
          id: 3,
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    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
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    42
          datetime: 2002,
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    43
          audio: "http://sound3.mp3"
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    44
      }
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    45
  ]
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    46
});
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    47
9887379e627f add sound model
nowmad@nowmads-macbook-pro.local
parents:
diff changeset
    48
export default Sound;