Public folder changes

This commit is contained in:
Bahadır Sofuoğlu
2022-11-16 11:23:35 +03:00
parent 0731a2b548
commit 68b0f0cf64
212 changed files with 4486 additions and 13384 deletions

View File

@@ -1,7 +1,7 @@
export default class CountryService {
getCountries() {
return fetch('/data/countries.json')
.then((res) => res.json())
.then((d) => d.data);
getCountries () {
return fetch('/demo/data/countries.json')
.then(res => res.json())
.then(d => d.data);
}
}

View File

@@ -1,32 +1,32 @@
export default class CustomerService {
getCustomersSmall() {
return fetch('/data/customers-small.json')
.then((res) => res.json())
.then((d) => d.data);
getCustomersSmall () {
return fetch('/demo/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('/demo/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('/demo/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('/demo/data/customers-xlarge.json')
.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//demo/data/customers?' + queryParams).then(res => res.json());
}
}

View File

@@ -1,13 +1,13 @@
export default class NodeService {
getTreeTableNodes() {
return fetch('/data/treetablenodes.json')
.then((res) => res.json())
.then((d) => d.root);
getTreeTableNodes () {
return fetch('/demo/data/treetablenodes.json')
.then(res => res.json())
.then(d => d.root);
}
getTreeNodes() {
return fetch('/data/treenodes.json')
.then((res) => res.json())
.then((d) => d.root);
getTreeNodes () {
return fetch('/demo/data/treenodes.json')
.then(res => res.json())
.then(d => d.root);
}
}

View File

@@ -1,7 +1,7 @@
export default class PhotoService {
getImages() {
return fetch('/data/photos.json')
.then((res) => res.json())
.then((d) => d.data);
getImages () {
return fetch('/demo/data/photos.json')
.then(res => res.json())
.then(d => d.data);
}
}

View File

@@ -1,19 +1,19 @@
export default class ProductService {
getProductsSmall() {
return fetch('/data/products-small.json')
.then((res) => res.json())
.then((d) => d.data);
getProductsSmall () {
return fetch('/demo/data/products-small.json')
.then(res => res.json())
.then(d => d.data);
}
getProducts() {
return fetch('/data/products.json')
.then((res) => res.json())
.then((d) => d.data);
getProducts () {
return fetch('/demo/data/products.json')
.then(res => res.json())
.then(d => d.data);
}
getProductsWithOrdersSmall() {
return fetch('/data/products-orders-small.json')
.then((res) => res.json())
.then((d) => d.data);
getProductsWithOrdersSmall () {
return fetch('/demo/data/products-orders-small.json')
.then(res => res.json())
.then(d => d.data);
}
}