components tag order added

This commit is contained in:
Bahadır Sofuoğlu
2022-11-07 15:13:51 +03:00
parent 98f567478e
commit 001de2be44
41 changed files with 1677 additions and 1695 deletions

View File

@@ -1,32 +1,32 @@
export default class CustomerService {
getCustomersSmall () {
getCustomersSmall() {
return fetch('/data/customers-small.json')
.then(res => res.json())
.then(d => d.data);
.then((res) => res.json())
.then((d) => d.data);
}
getCustomersMedium () {
getCustomersMedium() {
return fetch('/data/customers-medium.json')
.then(res => res.json())
.then(d => d.data);
.then((res) => res.json())
.then((d) => d.data);
}
getCustomersLarge () {
getCustomersLarge() {
return fetch('/data/customers-large.json')
.then(res => res.json())
.then(d => d.data);
.then((res) => res.json())
.then((d) => d.data);
}
getCustomersXLarge () {
getCustomersXLarge() {
return fetch('/data/customers-xlarge.json')
.then(res => res.json())
.then(d => d.data);
.then((res) => res.json())
.then((d) => d.data);
}
getCustomers (params) {
getCustomers(params) {
const queryParams = Object.keys(params)
.map(k => encodeURIComponent(k) + '=' + encodeURIComponent(params[k]))
.map((k) => encodeURIComponent(k) + '=' + encodeURIComponent(params[k]))
.join('&');
return fetch('https://www.primefaces.org//data/customers?' + queryParams).then(res => res.json());
return fetch('https://www.primefaces.org//data/customers?' + queryParams).then((res) => res.json());
}
}