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

41 lines
837 B
JavaScript

import Vue from 'vue'
import store from 'vuejs/store'
import VLogin from 'vuejs/components/Login'
// require('theme/assets/styles/main.scss');
import 'theme/assets/styles/main.scss'
(function(Drupal, drupalSettings) {
var v_login = new Vue({
store,
render: h => h(VLogin)
}).$mount('#block-userlogin')
var MaterioTheme = function(){
// var _is_front = drupalSettings.path.isFront;
// ___ _ _
// |_ _|_ _ (_) |_
// | || ' \| | _|
// |___|_||_|_|\__|
function init(){
console.log("MaterioTheme init()");
};
init();
} // end MaterioTheme()
// $(document).ready(function($) {
// if(drupalSettings.path.isFront){
var materiotheme = new MaterioTheme();
// }else{
// $('body').attr('booted', 'booted');
// }
// });
})(Drupal, drupalSettings);