| author | ymh <ymh.work@gmail.com> |
| Tue, 22 Nov 2016 18:50:50 +0100 | |
| changeset 435 | c53b87b00ea3 |
| parent 424 | feb0d3e0fef9 |
| child 532 | 1190ea937f2d |
| permissions | -rw-r--r-- |
|
424
feb0d3e0fef9
add dynamic date range calculation for dates, and add color gradient component, add color gradient for language and chrono
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
import { JSONAPISerializer } from 'ember-cli-mirage'; |
|
feb0d3e0fef9
add dynamic date range calculation for dates, and add color gradient component, add color gradient for language and chrono
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
|
|
feb0d3e0fef9
add dynamic date range calculation for dates, and add color gradient component, add color gradient for language and chrono
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
import _ from 'lodash/lodash'; |
|
feb0d3e0fef9
add dynamic date range calculation for dates, and add color gradient component, add color gradient for language and chrono
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
|
|
feb0d3e0fef9
add dynamic date range calculation for dates, and add color gradient component, add color gradient for language and chrono
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
export default JSONAPISerializer.extend({ |
|
feb0d3e0fef9
add dynamic date range calculation for dates, and add color gradient component, add color gradient for language and chrono
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
serialize(response) { |
|
feb0d3e0fef9
add dynamic date range calculation for dates, and add color gradient component, add color gradient for language and chrono
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
return {'dateminmax': _(response.models).map((dateinfo) => { return parseInt(dateinfo.id);}).value()}; |
|
feb0d3e0fef9
add dynamic date range calculation for dates, and add color gradient component, add color gradient for language and chrono
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
} |
|
feb0d3e0fef9
add dynamic date range calculation for dates, and add color gradient component, add color gradient for language and chrono
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
}); |