Update LiveEditor

pull/756/head
Tuğçe Küçükoğlu 2021-01-08 14:05:30 +03:00
parent e651adb9c6
commit 895cd5a92b
2 changed files with 9 additions and 5 deletions

View File

@ -453,9 +453,13 @@ img.flag {
extDependencies['@fullcalendar/timegrid'] = "5.4.0";
}
if(this.name === 'OrganizationChartDemo') {
extDependencies['mitt'] = "^2.1.0";
}
let mittComponents = ['OrganizationChartDemo', 'ConfirmDialogDemo', 'ConfirmPopupDemo'];
mittComponents.forEach(cmp => {
if(this.name === cmp) {
extDependencies['mitt'] = "^2.1.0";
}
});
return this.createSandboxParameters(`${name}${extension}`, _files, extDependencies);
}

View File

@ -78,7 +78,7 @@ export default class PhotoService {
'ProductService': `
import axios from 'axios';
import productsSmallData from '../../public/data/products-small.json';
import productsData from '../../public/data/productsjson';
import productsData from '../../public/data/products.json';
import productsWithOrdersSmallData from '../../public/data/products-orders-small.json';
export default class ProductService {
@ -92,7 +92,7 @@ export default class ProductService {
}
getProductsWithOrdersSmall() {
return axios.get(productsWwithOrdersSmallData).then(res => res.config.url.data);
return axios.get(productsWithOrdersSmallData).then(res => res.config.url.data);
}
}
`