mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +02:00
Improving the get restream credentials
This commit is contained in:
parent
654dda115a
commit
56cb1fd5cb
6058 changed files with 1166166 additions and 1430809 deletions
12
node_modules/tinymce/plugins/save/index.js
generated
vendored
12
node_modules/tinymce/plugins/save/index.js
generated
vendored
|
@ -1,7 +1,7 @@
|
|||
// Exports the "save" plugin for usage with module loaders
|
||||
// Usage:
|
||||
// CommonJS:
|
||||
// require('tinymce/plugins/save')
|
||||
// ES2015:
|
||||
// import 'tinymce/plugins/save'
|
||||
// Exports the "save" plugin for usage with module loaders
|
||||
// Usage:
|
||||
// CommonJS:
|
||||
// require('tinymce/plugins/save')
|
||||
// ES2015:
|
||||
// import 'tinymce/plugins/save'
|
||||
require('./plugin.js');
|
238
node_modules/tinymce/plugins/save/plugin.js
generated
vendored
238
node_modules/tinymce/plugins/save/plugin.js
generated
vendored
|
@ -1,120 +1,118 @@
|
|||
/**
|
||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
||||
* Licensed under the LGPL or a commercial license.
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
var global$2 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
|
||||
var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
|
||||
|
||||
var global = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
||||
|
||||
var enableWhenDirty = function (editor) {
|
||||
return editor.getParam('save_enablewhendirty', true);
|
||||
};
|
||||
var hasOnSaveCallback = function (editor) {
|
||||
return !!editor.getParam('save_onsavecallback');
|
||||
};
|
||||
var hasOnCancelCallback = function (editor) {
|
||||
return !!editor.getParam('save_oncancelcallback');
|
||||
};
|
||||
|
||||
var displayErrorMessage = function (editor, message) {
|
||||
editor.notificationManager.open({
|
||||
text: message,
|
||||
type: 'error'
|
||||
});
|
||||
};
|
||||
var save = function (editor) {
|
||||
var formObj = global$1.DOM.getParent(editor.id, 'form');
|
||||
if (enableWhenDirty(editor) && !editor.isDirty()) {
|
||||
return;
|
||||
}
|
||||
editor.save();
|
||||
if (hasOnSaveCallback(editor)) {
|
||||
editor.execCallback('save_onsavecallback', editor);
|
||||
editor.nodeChanged();
|
||||
return;
|
||||
}
|
||||
if (formObj) {
|
||||
editor.setDirty(false);
|
||||
if (!formObj.onsubmit || formObj.onsubmit()) {
|
||||
if (typeof formObj.submit === 'function') {
|
||||
formObj.submit();
|
||||
} else {
|
||||
displayErrorMessage(editor, 'Error: Form submit field collision.');
|
||||
}
|
||||
}
|
||||
editor.nodeChanged();
|
||||
} else {
|
||||
displayErrorMessage(editor, 'Error: No form element found.');
|
||||
}
|
||||
};
|
||||
var cancel = function (editor) {
|
||||
var h = global.trim(editor.startContent);
|
||||
if (hasOnCancelCallback(editor)) {
|
||||
editor.execCallback('save_oncancelcallback', editor);
|
||||
return;
|
||||
}
|
||||
editor.resetContent(h);
|
||||
};
|
||||
|
||||
var register$1 = function (editor) {
|
||||
editor.addCommand('mceSave', function () {
|
||||
save(editor);
|
||||
});
|
||||
editor.addCommand('mceCancel', function () {
|
||||
cancel(editor);
|
||||
});
|
||||
};
|
||||
|
||||
var stateToggle = function (editor) {
|
||||
return function (api) {
|
||||
var handler = function () {
|
||||
api.setDisabled(enableWhenDirty(editor) && !editor.isDirty());
|
||||
};
|
||||
handler();
|
||||
editor.on('NodeChange dirty', handler);
|
||||
return function () {
|
||||
return editor.off('NodeChange dirty', handler);
|
||||
};
|
||||
};
|
||||
};
|
||||
var register = function (editor) {
|
||||
editor.ui.registry.addButton('save', {
|
||||
icon: 'save',
|
||||
tooltip: 'Save',
|
||||
disabled: true,
|
||||
onAction: function () {
|
||||
return editor.execCommand('mceSave');
|
||||
},
|
||||
onSetup: stateToggle(editor)
|
||||
});
|
||||
editor.ui.registry.addButton('cancel', {
|
||||
icon: 'cancel',
|
||||
tooltip: 'Cancel',
|
||||
disabled: true,
|
||||
onAction: function () {
|
||||
return editor.execCommand('mceCancel');
|
||||
},
|
||||
onSetup: stateToggle(editor)
|
||||
});
|
||||
editor.addShortcut('Meta+S', '', 'mceSave');
|
||||
};
|
||||
|
||||
function Plugin () {
|
||||
global$2.add('save', function (editor) {
|
||||
register(editor);
|
||||
register$1(editor);
|
||||
});
|
||||
}
|
||||
|
||||
Plugin();
|
||||
|
||||
}());
|
||||
/**
|
||||
* TinyMCE version 6.0.2 (2022-04-27)
|
||||
*/
|
||||
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
var global$2 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
|
||||
const isSimpleType = type => value => typeof value === type;
|
||||
const isFunction = isSimpleType('function');
|
||||
|
||||
var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
|
||||
|
||||
var global = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
||||
|
||||
const option = name => editor => editor.options.get(name);
|
||||
const register$2 = editor => {
|
||||
const registerOption = editor.options.register;
|
||||
registerOption('save_enablewhendirty', {
|
||||
processor: 'boolean',
|
||||
default: true
|
||||
});
|
||||
registerOption('save_onsavecallback', { processor: 'function' });
|
||||
registerOption('save_oncancelcallback', { processor: 'function' });
|
||||
};
|
||||
const enableWhenDirty = option('save_enablewhendirty');
|
||||
const getOnSaveCallback = option('save_onsavecallback');
|
||||
const getOnCancelCallback = option('save_oncancelcallback');
|
||||
|
||||
const displayErrorMessage = (editor, message) => {
|
||||
editor.notificationManager.open({
|
||||
text: message,
|
||||
type: 'error'
|
||||
});
|
||||
};
|
||||
const save = editor => {
|
||||
const formObj = global$1.DOM.getParent(editor.id, 'form');
|
||||
if (enableWhenDirty(editor) && !editor.isDirty()) {
|
||||
return;
|
||||
}
|
||||
editor.save();
|
||||
const onSaveCallback = getOnSaveCallback(editor);
|
||||
if (isFunction(onSaveCallback)) {
|
||||
onSaveCallback.call(editor, editor);
|
||||
editor.nodeChanged();
|
||||
return;
|
||||
}
|
||||
if (formObj) {
|
||||
editor.setDirty(false);
|
||||
if (!formObj.onsubmit || formObj.onsubmit()) {
|
||||
if (typeof formObj.submit === 'function') {
|
||||
formObj.submit();
|
||||
} else {
|
||||
displayErrorMessage(editor, 'Error: Form submit field collision.');
|
||||
}
|
||||
}
|
||||
editor.nodeChanged();
|
||||
} else {
|
||||
displayErrorMessage(editor, 'Error: No form element found.');
|
||||
}
|
||||
};
|
||||
const cancel = editor => {
|
||||
const h = global.trim(editor.startContent);
|
||||
const onCancelCallback = getOnCancelCallback(editor);
|
||||
if (isFunction(onCancelCallback)) {
|
||||
onCancelCallback.call(editor, editor);
|
||||
return;
|
||||
}
|
||||
editor.resetContent(h);
|
||||
};
|
||||
|
||||
const register$1 = editor => {
|
||||
editor.addCommand('mceSave', () => {
|
||||
save(editor);
|
||||
});
|
||||
editor.addCommand('mceCancel', () => {
|
||||
cancel(editor);
|
||||
});
|
||||
};
|
||||
|
||||
const stateToggle = editor => api => {
|
||||
const handler = () => {
|
||||
api.setEnabled(!enableWhenDirty(editor) || editor.isDirty());
|
||||
};
|
||||
handler();
|
||||
editor.on('NodeChange dirty', handler);
|
||||
return () => editor.off('NodeChange dirty', handler);
|
||||
};
|
||||
const register = editor => {
|
||||
editor.ui.registry.addButton('save', {
|
||||
icon: 'save',
|
||||
tooltip: 'Save',
|
||||
enabled: false,
|
||||
onAction: () => editor.execCommand('mceSave'),
|
||||
onSetup: stateToggle(editor)
|
||||
});
|
||||
editor.ui.registry.addButton('cancel', {
|
||||
icon: 'cancel',
|
||||
tooltip: 'Cancel',
|
||||
enabled: false,
|
||||
onAction: () => editor.execCommand('mceCancel'),
|
||||
onSetup: stateToggle(editor)
|
||||
});
|
||||
editor.addShortcut('Meta+S', '', 'mceSave');
|
||||
};
|
||||
|
||||
var Plugin = () => {
|
||||
global$2.add('save', editor => {
|
||||
register$2(editor);
|
||||
register(editor);
|
||||
register$1(editor);
|
||||
});
|
||||
};
|
||||
|
||||
Plugin();
|
||||
|
||||
})();
|
||||
|
|
13
node_modules/tinymce/plugins/save/plugin.min.js
generated
vendored
13
node_modules/tinymce/plugins/save/plugin.min.js
generated
vendored
|
@ -1,9 +1,4 @@
|
|||
/**
|
||||
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
||||
* Licensed under the LGPL or a commercial license.
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function o(e){return e.getParam("save_enablewhendirty",!0)}function a(e,n){e.notificationManager.open({text:n,type:"error"})}function t(t){t.addCommand("mceSave",function(){!function(e){var n=c.DOM.getParent(e.id,"form");if(!o(e)||e.isDirty()){if(e.save(),e.getParam("save_onsavecallback"))return e.execCallback("save_onsavecallback",e),e.nodeChanged();n?(e.setDirty(!1),n.onsubmit&&!n.onsubmit()||("function"==typeof n.submit?n.submit():a(e,"Error: Form submit field collision.")),e.nodeChanged()):a(e,"Error: No form element found.")}}(t)}),t.addCommand("mceCancel",function(){var e=t,n=r.trim(e.startContent);e.getParam("save_oncancelcallback")?e.execCallback("save_oncancelcallback",e):e.resetContent(n)})}function i(t){return function(e){function n(){e.setDisabled(o(t)&&!t.isDirty())}return n(),t.on("NodeChange dirty",n),function(){return t.off("NodeChange dirty",n)}}}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),c=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),r=tinymce.util.Tools.resolve("tinymce.util.Tools");e.add("save",function(e){var n;(n=e).ui.registry.addButton("save",{icon:"save",tooltip:"Save",disabled:!0,onAction:function(){return n.execCommand("mceSave")},onSetup:i(n)}),n.ui.registry.addButton("cancel",{icon:"cancel",tooltip:"Cancel",disabled:!0,onAction:function(){return n.execCommand("mceCancel")},onSetup:i(n)}),n.addShortcut("Meta+S","","mceSave"),t(e)})}();
|
||||
/**
|
||||
* TinyMCE version 6.0.2 (2022-04-27)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const n=("function",e=>"function"==typeof e);var o=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),t=tinymce.util.Tools.resolve("tinymce.util.Tools");const a=e=>n=>n.options.get(e),c=a("save_enablewhendirty"),i=a("save_onsavecallback"),s=a("save_oncancelcallback"),r=(e,n)=>{e.notificationManager.open({text:n,type:"error"})},l=e=>n=>{const o=()=>{n.setEnabled(!c(e)||e.isDirty())};return o(),e.on("NodeChange dirty",o),()=>e.off("NodeChange dirty",o)};e.add("save",(e=>{(e=>{const n=e.options.register;n("save_enablewhendirty",{processor:"boolean",default:!0}),n("save_onsavecallback",{processor:"function"}),n("save_oncancelcallback",{processor:"function"})})(e),(e=>{e.ui.registry.addButton("save",{icon:"save",tooltip:"Save",enabled:!1,onAction:()=>e.execCommand("mceSave"),onSetup:l(e)}),e.ui.registry.addButton("cancel",{icon:"cancel",tooltip:"Cancel",enabled:!1,onAction:()=>e.execCommand("mceCancel"),onSetup:l(e)}),e.addShortcut("Meta+S","","mceSave")})(e),(e=>{e.addCommand("mceSave",(()=>{(e=>{const t=o.DOM.getParent(e.id,"form");if(c(e)&&!e.isDirty())return;e.save();const a=i(e);if(n(a))return a.call(e,e),void e.nodeChanged();t?(e.setDirty(!1),t.onsubmit&&!t.onsubmit()||("function"==typeof t.submit?t.submit():r(e,"Error: Form submit field collision.")),e.nodeChanged()):r(e,"Error: No form element found.")})(e)})),e.addCommand("mceCancel",(()=>{(e=>{const o=t.trim(e.startContent),a=s(e);n(a)?a.call(e,e):e.resetContent(o)})(e)}))})(e)}))}();
|
Loading…
Add table
Add a link
Reference in a new issue