@ -1638,7 +1638,7 @@ class PostEditor {
//--------------------------
//--------------------------
constructor ( ) {
constructor ( ) {
this . processing = false ;
this . processing = false ;
let self = 'this' ;
let self = "this" ;
this . admin = new _fipamoAdminAPIDefault . default ( null , document . getElementById ( 'notify-progress' ) ) ;
this . admin = new _fipamoAdminAPIDefault . default ( null , document . getElementById ( 'notify-progress' ) ) ;
this . mm = new _maintenanceManagerDefault . default ( null , null , document . getElementById ( 'notify-progress' ) ) ;
this . mm = new _maintenanceManagerDefault . default ( null , null , document . getElementById ( 'notify-progress' ) ) ;
this . urlPieces = document . URL . split ( '/' ) ;
this . urlPieces = document . URL . split ( '/' ) ;
@ -1663,7 +1663,7 @@ class PostEditor {
this . editor . addListener ( _editorEvent . EDITOR _SAVE , ( ) => this . handleEditorOptions ( _editorEvent . EDITOR _SAVE )
this . editor . addListener ( _editorEvent . EDITOR _SAVE , ( ) => this . handleEditorOptions ( _editorEvent . EDITOR _SAVE )
, false ) ;
, false ) ;
document . getElementById ( 'post-image-upload' ) . addEventListener ( 'change' , ( e ) => {
document . getElementById ( 'post-image-upload' ) . addEventListener ( 'change' , ( e ) => {
this . handleImageUpload ( e . target . id , e . target . files ) ;
self . handleImageUpload ( e . target . id , e . target . files ) ;
} , false ) ;
} , false ) ;
/ *
/ *
TinyDatePicker ( document . getElementById ( 'post-date' ) , {
TinyDatePicker ( document . getElementById ( 'post-date' ) , {
@ -4012,14 +4012,14 @@ var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
parcelHelpers . defineInteropFlag ( exports ) ;
parcelHelpers . defineInteropFlag ( exports ) ;
var _animeEsJs = require ( "animejs/lib/anime.es.js" ) ;
var _animeEsJs = require ( "animejs/lib/anime.es.js" ) ;
var _animeEsJsDefault = parcelHelpers . interopDefault ( _animeEsJs ) ;
var _animeEsJsDefault = parcelHelpers . interopDefault ( _animeEsJs ) ;
const notifcation = document . getElementById ( "notifications" ) ;
const notifcation = document . getElementById ( 'notifications' ) ;
const notify = document . getElementById ( "notifyMessage" ) ;
const notify = document . getElementById ( 'notify-message' ) ;
const messageText = document . getElementById ( "message-text" ) ;
const messageText = document . getElementById ( 'message-text' ) ;
const notifyText = document . getElementById ( "notify-text" ) ;
const notifyText = document . getElementById ( 'notify-text' ) ;
const notifyProgress = document . getElementById ( "notify-progress" ) ;
const notifyProgress = document . getElementById ( 'notify-progress' ) ;
const iconGood = document . getElementById ( "notify-good" ) ;
const iconGood = document . getElementById ( 'notify-good' ) ;
const iconLame = document . getElementById ( "notify-lame" ) ;
const iconLame = document . getElementById ( 'notify-lame' ) ;
const iconWorking = document . getElementById ( "notify-working" ) ;
const iconWorking = document . getElementById ( 'notify-working' ) ;
class Notfications {
class Notfications {
//--------------------------
//--------------------------
// constructor
// constructor
@ -4029,66 +4029,66 @@ class Notfications {
// methods
// methods
//--------------------------
//--------------------------
alert ( text , status ) {
alert ( text , status ) {
iconWorking . style . display = "none" ;
iconWorking . style . display = 'none' ;
iconGood . style . display = "none" ;
iconGood . style . display = 'none' ;
iconLame . style . display = "none" ;
iconLame . style . display = 'none' ;
var color = "" ;
var color = '' ;
if ( status !== null ) {
if ( status !== null ) {
_animeEsJsDefault . default ( {
_animeEsJsDefault . default ( {
targets : notifyProgress ,
targets : notifyProgress ,
opacity : 0 ,
opacity : 0 ,
easing : "easeInOutQuint" ,
easing : 'easeInOutQuint' ,
duration : 500
duration : 500
} ) ;
} ) ;
if ( status ) {
if ( status ) {
color = "#32cd32" ;
color = '#32cd32' ;
iconWorking . style . display = "none" ;
iconWorking . style . display = 'none' ;
iconGood . style . display = "block" ;
iconGood . style . display = 'block' ;
} else {
} else {
color = "#F64747" ;
color = '#F64747' ;
iconWorking . style . display = "none" ;
iconWorking . style . display = 'none' ;
iconLame . style . display = "block" ;
iconLame . style . display = 'block' ;
}
}
} else {
} else {
color = "#200317" ;
color = '#200317' ;
iconWorking . style . display = "block" ;
iconWorking . style . display = 'block' ;
_animeEsJsDefault . default ( {
_animeEsJsDefault . default ( {
targets : notifyProgress ,
targets : notifyProgress ,
opacity : 1 ,
opacity : 1 ,
easing : "easeInOutQuint" ,
easing : 'easeInOutQuint' ,
duration : 500
duration : 500
} ) ;
} ) ;
}
}
messageText . innerHTML = text ;
messageText . innerHTML = text ;
_animeEsJsDefault . default ( {
_animeEsJsDefault . default ( {
targets : notifcation ,
targets : notifcation ,
marginTop : "-10" ,
marginTop : '-10' ,
easing : "easeInOutQuint" ,
easing : 'easeInOutQuint' ,
duration : 10 ,
duration : 10 ,
complete : ( ) => {
complete : ( ) => {
_animeEsJsDefault . default ( {
_animeEsJsDefault . default ( {
targets : notify ,
targets : notify ,
rotateX : "0" ,
rotateX : '0' ,
easing : "easeInOutQuint" ,
easing : 'easeInOutQuint' ,
duration : 700
duration : 700
} ) ;
} ) ;
_animeEsJsDefault . default ( {
_animeEsJsDefault . default ( {
targets : notifyText ,
targets : notifyText ,
backgroundColor : color ,
backgroundColor : color ,
easing : "easeInOutQuint" ,
easing : 'easeInOutQuint' ,
duration : 700 ,
duration : 700 ,
complete : ( ) => {
complete : ( ) => {
setTimeout ( ( ) => {
setTimeout ( ( ) => {
if ( status !== null ) _animeEsJsDefault . default ( {
if ( status !== null ) _animeEsJsDefault . default ( {
targets : notify ,
targets : notify ,
rotateX : "-120" ,
rotateX : '-120' ,
easing : "easeInOutQuint" ,
easing : 'easeInOutQuint' ,
duration : 700 ,
duration : 700 ,
complete : ( ) => {
complete : ( ) => {
_animeEsJsDefault . default ( {
_animeEsJsDefault . default ( {
targets : notifcation ,
targets : notifcation ,
marginTop : "-55" ,
marginTop : '-55' ,
easing : "easeInOutQuint" ,
easing : 'easeInOutQuint' ,
delay : 700 ,
delay : 700 ,
duration : 50
duration : 50
} ) ; //notifcation.style.display = 'none';
} ) ; //notifcation.style.display = 'none';