58 lines
1.9 KiB
JavaScript
58 lines
1.9 KiB
JavaScript
import DataUtils, {
|
|
REQUEST_TYPE_GET,
|
|
REQUEST_TYPE_PUT,
|
|
REQUEST_TYPE_POST,
|
|
REQUEST_TYPE_DELETE,
|
|
CONTENT_TYPE_JSON,
|
|
CONTENT_TYPE_FORM
|
|
} from '../tools/utilities/DataUtils';
|
|
import * as DataEvent from '../tools/events/DataEvent';
|
|
import ProjectFolio from '../tasks/ProjectFolio';
|
|
import TextEffects from '../tools/effects/TextEffects';
|
|
import Animate from '../tools/effects/Animate';
|
|
import * as Ease from '../tools/effects/Animate';
|
|
import DisplayAdminBlog from './DashEntry'
|
|
import DisplayAdminFipamo from './DisplayAdminFipamo';
|
|
|
|
export default class DisplayAdmin {
|
|
//--------------------------
|
|
// constructor
|
|
//--------------------------
|
|
constructor(section, page) {
|
|
this.section = section;
|
|
this.page = page;
|
|
this.current = null;
|
|
this.start();
|
|
}
|
|
//--------------------------
|
|
// methods
|
|
//--------------------------
|
|
start() {
|
|
let self = this;
|
|
new Animate().object({
|
|
targets: document.getElementById('loader'),
|
|
duration: 300,
|
|
opacity: 0,
|
|
easing: 'easeInOutQuad',
|
|
complete: function () {
|
|
document.getElementById('loader').style.display = 'none';
|
|
document.getElementById('loader').style.visibility = 'hidden';
|
|
new Animate().object({
|
|
targets: document.getElementById('header'),
|
|
duration: 10,
|
|
opacity: 1,
|
|
easing: 'easeInOutQuad',
|
|
complete: function () {
|
|
document.getElementById('loader').style.display = 'none';
|
|
document.getElementById('loader').style.visibility = 'hidden';
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
//--------------------------
|
|
// event handlers
|
|
//--------------------------
|
|
|
|
}
|
|
DisplayAdmin.uploadFiles = [];
|