All demos added

This commit is contained in:
Bahadır Sofuoğlu
2022-11-04 02:27:06 +03:00
parent 1ee46af467
commit 3e45c1cf61
11 changed files with 1323 additions and 973 deletions
+8 -6
View File
@@ -1,11 +1,13 @@
export default class NodeService {
getTreeTableNodes() {
return fetch('data/treetablenodes.json').then(res => res.json()).then(d => d.root);
getTreeTableNodes () {
return fetch('/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('/data/treenodes.json')
.then(res => res.json())
.then(d => d.root);
}
}
+4 -4
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('/data/photos.json')
.then(res => res.json())
.then(d => d.data);
}
}
+16 -12
View File
@@ -1,15 +1,19 @@
export default class ProductService {
getProductsSmall() {
return fetch('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);
getProductsSmall () {
return fetch('/data/products-small.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);
}
}
getProducts () {
return fetch('/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);
}
}