44 lines
729 B
JavaScript
44 lines
729 B
JavaScript
/* (1) Imports
|
|
---------------------------------------------------------*/
|
|
/* (1) NPM libs */
|
|
import Vue from 'vue'
|
|
|
|
/* (2) Vues */
|
|
import login_wrapper_vue from '../vue/login_wrapper.vue'
|
|
|
|
/* (3) Data */
|
|
require('../data/common');
|
|
require('../data/login');
|
|
|
|
|
|
|
|
|
|
/* (2) Initialisation
|
|
---------------------------------------------------------*/
|
|
/* (1) Render view */
|
|
new Vue({
|
|
el: '#main-vue',
|
|
render: h => h(login_wrapper_vue)
|
|
});
|
|
|
|
|
|
|
|
/* (1) Initialize CAS pop-up mechanism */
|
|
window.pop = { closed: false };
|
|
|
|
window.cas_callback = function(cas_login){
|
|
|
|
setTimeout( function(){ if( window.pop.closed ){
|
|
|
|
if( cas_login === null ){
|
|
|
|
// TODO: notify FAILURE
|
|
|
|
}else
|
|
document.location = '/';
|
|
|
|
|
|
} }, 1);
|
|
|
|
};
|