frappe.provide('erpnext.hub'); erpnext.hub.HubPage = class HubPage extends frappe.views.BaseList { setup_defaults() { super.setup_defaults(); this.page_title = __('Hub'); this.method = 'erpnext.hub_node.get_items'; const route = frappe.get_route(); this.page_name = route[1]; } setup_fields() { } set_breadcrumbs() { } setup_side_bar() { } setup_filter_area() { } setup_sort_selector() { } get_args() { return { start: this.start, limit: this.page_length, category: this.category || '', order_by: this.order_by, company: this.company || '', text: this.search_text || '' }; } update_data(r) { const data = r.message; if (this.start === 0) { this.data = data; } else { this.data = this.data.concat(data); } } render() { this.render_image_view(); } render_image_view() { var html = this.data.map(this.card_html.bind(this)).join(""); this.$result.html(`