refactor(dependencies): bundle Vue by default
This commit is contained in:
parent
14bdf84702
commit
9680573781
4 changed files with 13 additions and 17 deletions
|
|
@ -120,6 +120,7 @@
|
|||
"md5": true,
|
||||
"$": true,
|
||||
"jQuery": true,
|
||||
"Vue": true,
|
||||
"moment": true,
|
||||
"hljs": true,
|
||||
"Awesomplete": true,
|
||||
|
|
|
|||
|
|
@ -133,6 +133,7 @@
|
|||
"public/js/lib/Sortable.min.js",
|
||||
"public/js/lib/jquery/jquery.hotkeys.js",
|
||||
"public/js/lib/bootstrap.min.js",
|
||||
"public/js/lib/vue/dist/vue.js",
|
||||
"node_modules/moment/min/moment-with-locales.min.js",
|
||||
"node_modules/moment-timezone/builds/moment-timezone-with-data.min.js",
|
||||
"public/js/lib/socket.io.min.js",
|
||||
|
|
|
|||
|
|
@ -11,14 +11,11 @@ frappe.modules.Home = class {
|
|||
}
|
||||
make_body() {
|
||||
this.$modules_container = this.$parent.find('.layout-main');
|
||||
frappe.require('/assets/js/frappe-vue.min.js', () => {
|
||||
Vue.prototype.__ = window.__; // eslint-disable-line
|
||||
// eslint-disable-next-line
|
||||
Vue.prototype.__ = window.__;
|
||||
new Vue({
|
||||
el: this.$modules_container[0],
|
||||
render: h => h(Modules)
|
||||
});
|
||||
});
|
||||
}
|
||||
setup_header() {
|
||||
this.page.set_title(__('Modules'));
|
||||
|
|
|
|||
|
|
@ -49,14 +49,11 @@ frappe.views.pageview = {
|
|||
let container = $('<div class="container"></div>').appendTo(page);
|
||||
container = $('<div></div>').appendTo(container);
|
||||
|
||||
frappe.require('/assets/js/frappe-vue.min.js', () => {
|
||||
Vue.prototype.__ = window.__; // eslint-disable-line
|
||||
// eslint-disable-next-line
|
||||
Vue.prototype.__ = window.__;
|
||||
new Vue({
|
||||
el: container[0],
|
||||
render: h => h(Desktop)
|
||||
});
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue