This commit is contained in:
2026-04-26 23:47:49 +02:00
parent 1b95f03d1e
commit b073e009d8
5288 changed files with 1112699 additions and 55536 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,105 @@
/**
* Confirm Dialog Box Popup
*
* @since 2.0
*/
Vue.component('sb-confirm-dialog-component', {
name: 'sb-confirm-dialog-component',
template: '#sb-confirm-dialog-component',
props: [
'dialogBox',
'sourceToDelete',
'genericText',
'genericLink',
'svgIcons',
'parentType',
'parent'
],
computed : {
dialogBoxElement :function(){
return this.dialogBox;
}
},
methods : {
/**
* Confirm Dialog Button text
*
* @since 2.0
*/
getButtonText : function(type, dialogBoxElement){
if(type == 'confirm'){
if(dialogBoxElement.customButtons != undefined){
return dialogBoxElement.customButtons.confirm.text;
}
return this.genericText.confirm;
}
if(type == 'cancel'){
if(dialogBoxElement.customButtons != undefined){
return dialogBoxElement.customButtons.cancel.text;
}
return this.genericText.cancel;
}
},
/**
* Confirm Dialog Box Button Background
*
* @since 2.0
*/
getButtonBackground : function(type, dialogBoxElement){
var color = '';
if(type == 'confirm'){
if(dialogBoxElement.customButtons != undefined){
color = dialogBoxElement.customButtons.confirm.color;
}else{
color = 'red';
}
}
if(type == 'cancel'){
if(dialogBoxElement.customButtons != undefined){
color = dialogBoxElement.customButtons.cancel.color;
}else{
color = 'grey';
}
}
return 'sb-btn-' + color;
},
/**
* Confirm Dialog Box
*
* @since 2.0
*/
confirmDialogAction : function(){
var self = this;
self.$parent.confirmDialogAction();
self.closeConfirmDialog();
},
/**
* Close Dialog Box
*
* @since 2.0
*/
closeConfirmDialog : function(){
var self = this;
if( self.parentType == 'builder' ){
self.$parent.sourceToDelete = {};
self.$parent.feedToDelete = {};
}
if(self.dialogBoxElement.type == 'unsavedFeedSources'){
self.$parent.viewsActive.feedtypesCustomizerPopup = false;
}
var dialogBox = {
active : false,
type : null,
heading : null,
description : null,
customButtons : undefined
};
self.$emit('update:dialogBox', dialogBox)
},
}
});

View File

@@ -0,0 +1,8 @@
import {createHooks} from "@wordpress/hooks";
window.SB_Customizer = {
extraMethods: {},
extraData: {}
};
SB_Customizer.hooks = createHooks();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long