All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertigo.ui.static.js.vertigo-ui-mpa-ssr.js Maven / Gradle / Ivy

There is a newer version: 4.2.0
Show newest version
var VUiExtensions = VUiExtensions || {};
Vue.use(VertigoUi, {axios : axios});

VertigoUi.initData(VertigoUi, JSON.parse(window.document.getElementById('vui-init-data').innerHTML));
Quasar.lang.set(Quasar.lang[VertigoUi.vuiLang]);
var VUiPage = new Vue({
  data: {
		  vueData : VertigoUi.vueData,
		  componentStates : VertigoUi.componentStates,
		  uiMessageStack: VertigoUi.uiMessageStack,
		  dataX : VUiExtensions.dataX,
		  vuiLang : VertigoUi.vuiLang
  },
  methods: Vue.util.extend(VertigoUi.methods, VUiExtensions.methods ||  {}),
  created : function() {
	  this.$http.interceptors.response.use(function(response) {
	        return response;
	     }, function(error) {
	          this.onAjaxError(error.response);
	    }.bind(this))
  },
  render : VertigoSsr.render,
  staticRenderFns : VertigoSsr.staticRenderFns
  
});
VUiPage.$mount('#page')

// fixes wrong components states due to firefox bfcache (back-forward cache)
//https://developer.mozilla.org/en-US/docs/Archive/Misc_top_level/Working_with_BFCache
window.addEventListener('pageshow', function(event) {
	VUiPage.$forceUpdate();
});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy