Contextpaths removed - version updates

This commit is contained in:
Bahadır Sofuoğlu
2023-04-06 12:22:35 +03:00
parent 2f149147d1
commit 2b4b8b33ec
23 changed files with 625 additions and 648 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
const contextPath = import.meta.env.BASE_URL;
export default class CountryService {
getCountries() {
return fetch(contextPath + 'demo/data/countries.json')
return fetch('demo/data/countries.json')
.then((res) => res.json())
.then((d) => d.data);
}
+4 -5
View File
@@ -1,25 +1,24 @@
const contextPath = import.meta.env.BASE_URL;
export default class CustomerService {
getCustomersSmall() {
return fetch(contextPath + 'demo/data/customers-small.json')
return fetch('demo/data/customers-small.json')
.then((res) => res.json())
.then((d) => d.data);
}
getCustomersMedium() {
return fetch(contextPath + 'demo/data/customers-medium.json')
return fetch('demo/data/customers-medium.json')
.then((res) => res.json())
.then((d) => d.data);
}
getCustomersLarge() {
return fetch(contextPath + 'demo/data/customers-large.json')
return fetch('demo/data/customers-large.json')
.then((res) => res.json())
.then((d) => d.data);
}
getCustomersXLarge() {
return fetch(contextPath + 'demo/data/customers-xlarge.json')
return fetch('demo/data/customers-xlarge.json')
.then((res) => res.json())
.then((d) => d.data);
}
+2 -3
View File
@@ -1,13 +1,12 @@
const contextPath = import.meta.env.BASE_URL;
export default class NodeService {
getTreeTableNodes() {
return fetch(contextPath + 'demo/data/treetablenodes.json')
return fetch('demo/data/treetablenodes.json')
.then((res) => res.json())
.then((d) => d.root);
}
getTreeNodes() {
return fetch(contextPath + 'demo/data/treenodes.json')
return fetch('demo/data/treenodes.json')
.then((res) => res.json())
.then((d) => d.root);
}
+1 -2
View File
@@ -1,7 +1,6 @@
const contextPath = import.meta.env.BASE_URL;
export default class PhotoService {
getImages() {
return fetch(contextPath + 'demo/data/photos.json')
return fetch('demo/data/photos.json')
.then((res) => res.json())
.then((d) => d.data);
}
+3 -5
View File
@@ -1,20 +1,18 @@
const contextPath = import.meta.env.BASE_URL;
export default class ProductService {
getProductsSmall() {
return fetch(contextPath + 'demo/data/products-small.json')
return fetch('demo/data/products-small.json')
.then((res) => res.json())
.then((d) => d.data);
}
getProducts() {
return fetch(contextPath + 'demo/data/products.json')
return fetch('demo/data/products.json')
.then((res) => res.json())
.then((d) => d.data);
}
getProductsWithOrdersSmall() {
return fetch(contextPath + 'demo/data/products-orders-small.json')
return fetch('demo/data/products-orders-small.json')
.then((res) => res.json())
.then((d) => d.data);
}