This commit is contained in:
@@ -34,14 +34,31 @@ import "@/assets/css/main.css";
|
||||
import dateTimeControl from "./components/date-time-control.vue";
|
||||
import tagPicker from "./components/tag-picker.vue";
|
||||
import customFieldsControl from "./components/custom-fields-control.vue";
|
||||
import errorhandler from "./api/errorhandler";
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// LIBS AND GLOBAL ITEMS
|
||||
// (https://medium.com/js-dojo/use-any-javascript-library-with-vue-js-3f7e2a4974a8)
|
||||
//
|
||||
todo: move all this shit to Window.$gz as subkeys on it and then modify all the caller code that used to use vm vue property version
|
||||
//then modify the inventory-widget-edit form initialization shit so that the stuff needed after form loads still happens but the before is moved to route before enter and that it's all called
|
||||
//todo: move all this shit to Window.$gz as subkeys on it and then modify all the caller code that used to use vm vue property version
|
||||
//then modify the inventory-widget-edit form initialization shit so that the stuff needed after form loads still happens but the before is moved to route before enter and that it's all called
|
||||
//with two separate methods: One standard one for init form before it is loaded and one for init form stuff for after it's loaded. BeforeLoadInit, AfterLoadInit or something
|
||||
window.$gz = {
|
||||
locale: locale,
|
||||
formCustomTemplate: gzformcustomtemplate,
|
||||
type: gztype,
|
||||
role: roles,
|
||||
eventbus: gzeventbus,
|
||||
menu: gzmenu,
|
||||
dialog: gzdialog,
|
||||
util: gzutil,
|
||||
dayjs: dayjs,
|
||||
_: lodash,
|
||||
api: gzapi,
|
||||
form: gzform,
|
||||
report: gzreport,
|
||||
errorHandler: errorhandler
|
||||
};
|
||||
window.$gzlocale = locale;
|
||||
window.$gzformcustomtemplate = gzformcustomtemplate;
|
||||
Object.defineProperty(Vue.prototype, "$gztype", { value: gztype });
|
||||
|
||||
Reference in New Issue
Block a user