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
+3 -3
View File
@@ -1,7 +1,7 @@
export default class CountryService {
getCountries () {
getCountries() {
return fetch('/data/countries.json')
.then(res => res.json())
.then(d => d.data);
.then((res) => res.json())
.then((d) => d.data);
}
}
+15 -15
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());
}
}
+6 -6
View File
@@ -1,13 +1,13 @@
export default class NodeService {
getTreeTableNodes () {
getTreeTableNodes() {
return fetch('/data/treetablenodes.json')
.then(res => res.json())
.then(d => d.root);
.then((res) => res.json())
.then((d) => d.root);
}
getTreeNodes () {
getTreeNodes() {
return fetch('/data/treenodes.json')
.then(res => res.json())
.then(d => d.root);
.then((res) => res.json())
.then((d) => d.root);
}
}
+3 -3
View File
@@ -1,7 +1,7 @@
export default class PhotoService {
getImages () {
getImages() {
return fetch('/data/photos.json')
.then(res => res.json())
.then(d => d.data);
.then((res) => res.json())
.then((d) => d.data);
}
}
+9 -9
View File
@@ -1,19 +1,19 @@
export default class ProductService {
getProductsSmall () {
getProductsSmall() {
return fetch('/data/products-small.json')
.then(res => res.json())
.then(d => d.data);
.then((res) => res.json())
.then((d) => d.data);
}
getProducts () {
getProducts() {
return fetch('/data/products.json')
.then(res => res.json())
.then(d => d.data);
.then((res) => res.json())
.then((d) => d.data);
}
getProductsWithOrdersSmall () {
getProductsWithOrdersSmall() {
return fetch('/data/products-orders-small.json')
.then(res => res.json())
.then(d => d.data);
.then((res) => res.json())
.then((d) => d.data);
}
}