fix: import chart lib from website bundle

This commit is contained in:
Jannat Patel
2022-10-17 19:47:11 +05:30
parent 7d029c5305
commit 3c1449c898
6 changed files with 9 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
frappe.ready(() => {
setup_vue_and_file_size();
setup_file_size();
$(".join-batch").click((e) => {
join_course(e);
@@ -21,12 +21,7 @@ frappe.ready(() => {
});
const setup_vue_and_file_size = () => {
frappe.require("/assets/frappe/node_modules/vue/dist/vue.js", () => {
Vue.prototype.__ = window.__;
Vue.prototype.frappe = window.frappe;
});
const setup_file_size = () => {
frappe.provide("frappe.form.formatters");
frappe.form.formatters.FileSize = file_size;
};

View File

@@ -1,2 +1,3 @@
import "./profile.js"
import "./common_functions.js"
import "../../../../frappe/frappe/public/js/frappe/ui/chart.js"