Images and Some demos fixed
This commit is contained in:
@@ -1,25 +1,32 @@
|
||||
export default class CustomerService {
|
||||
getCustomersSmall () {
|
||||
return fetch('/data/customers-small.json')
|
||||
.then(res => res.json())
|
||||
.then(d => d.data);
|
||||
}
|
||||
|
||||
getCustomersSmall() {
|
||||
return fetch('data/customers-small.json').then(res => res.json()).then(d => d.data);
|
||||
getCustomersMedium () {
|
||||
return fetch('/data/customers-medium.json')
|
||||
.then(res => res.json())
|
||||
.then(d => d.data);
|
||||
}
|
||||
|
||||
getCustomersMedium() {
|
||||
return fetch('data/customers-medium.json').then(res => res.json()).then(d => d.data);
|
||||
|
||||
getCustomersLarge () {
|
||||
return fetch('/data/customers-large.json')
|
||||
.then(res => res.json())
|
||||
.then(d => d.data);
|
||||
}
|
||||
|
||||
getCustomersLarge() {
|
||||
return fetch('data/customers-large.json').then(res => res.json()).then(d => d.data);
|
||||
|
||||
getCustomersXLarge () {
|
||||
return fetch('/data/customers-xlarge.json')
|
||||
.then(res => res.json())
|
||||
.then(d => d.data);
|
||||
}
|
||||
|
||||
getCustomersXLarge() {
|
||||
return fetch('data/customers-xlarge.json').then(res => res.json()).then(d => d.data);
|
||||
|
||||
getCustomers (params) {
|
||||
const queryParams = Object.keys(params)
|
||||
.map(k => encodeURIComponent(k) + '=' + encodeURIComponent(params[k]))
|
||||
.join('&');
|
||||
return fetch('https://www.primefaces.org//data/customers?' + queryParams).then(res => res.json());
|
||||
}
|
||||
|
||||
getCustomers(params) {
|
||||
const queryParams = Object.keys(params).map(k => encodeURIComponent(k) + '=' + encodeURIComponent(params[k])).join('&');
|
||||
return fetch('https://www.primefaces.org/data/customers?' + queryParams).then(res => res.json())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user