All demos added
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user