main.js 859 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import Vue from 'vue'
  2. import store from 'vuejs/store'
  3. import VUserBlock from 'vuejs/components/User/UserBlock'
  4. // require('theme/assets/styles/main.scss');
  5. import 'theme/assets/styles/main.scss'
  6. (function(Drupal, drupalSettings) {
  7. var v_user_block = new Vue({
  8. store,
  9. render: h => h(VUserBlock)
  10. }).$mount('#block-userlogin')
  11. var MaterioTheme = function(){
  12. // var _is_front = drupalSettings.path.isFront;
  13. // ___ _ _
  14. // |_ _|_ _ (_) |_
  15. // | || ' \| | _|
  16. // |___|_||_|_|\__|
  17. function init(){
  18. console.log("MaterioTheme init()");
  19. };
  20. init();
  21. } // end MaterioTheme()
  22. // $(document).ready(function($) {
  23. // if(drupalSettings.path.isFront){
  24. var materiotheme = new MaterioTheme();
  25. // }else{
  26. // $('body').attr('booted', 'booted');
  27. // }
  28. // });
  29. })(Drupal, drupalSettings);