materio-d9/web/themes/custom/materiotheme/assets/scripts/main.js

41 lines
859 B
JavaScript
Raw Normal View History

import Vue from 'vue'
import store from 'vuejs/store'
2019-04-10 10:47:45 +02:00
import VUserBlock from 'vuejs/components/User/UserBlock'
2019-03-25 18:27:56 +01:00
// require('theme/assets/styles/main.scss');
import 'theme/assets/styles/main.scss'
(function(Drupal, drupalSettings) {
2019-04-10 10:47:45 +02:00
var v_user_block = new Vue({
store,
2019-04-10 10:47:45 +02:00
render: h => h(VUserBlock)
}).$mount('#block-userlogin')
var MaterioTheme = function(){
2019-03-25 18:27:56 +01:00
// var _is_front = drupalSettings.path.isFront;
// ___ _ _
// |_ _|_ _ (_) |_
// | || ' \| | _|
// |___|_||_|_|\__|
function init(){
console.log("MaterioTheme init()");
};
init();
} // end MaterioTheme()
// $(document).ready(function($) {
// if(drupalSettings.path.isFront){
2019-03-25 18:27:56 +01:00
var materiotheme = new MaterioTheme();
// }else{
// $('body').attr('booted', 'booted');
// }
// });
2019-03-25 18:27:56 +01:00
})(Drupal, drupalSettings);