mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +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
211
node_modules/tinymce/plugins/nonbreaking/plugin.js
generated
vendored
211
node_modules/tinymce/plugins/nonbreaking/plugin.js
generated
vendored
|
@ -1,100 +1,111 @@
|
|||
/**
|
||||
* 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$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
|
||||
var getKeyboardSpaces = function (editor) {
|
||||
var spaces = editor.getParam('nonbreaking_force_tab', 0);
|
||||
if (typeof spaces === 'boolean') {
|
||||
return spaces === true ? 3 : 0;
|
||||
} else {
|
||||
return spaces;
|
||||
}
|
||||
};
|
||||
var wrapNbsps = function (editor) {
|
||||
return editor.getParam('nonbreaking_wrap', true, 'boolean');
|
||||
};
|
||||
|
||||
var stringRepeat = function (string, repeats) {
|
||||
var str = '';
|
||||
for (var index = 0; index < repeats; index++) {
|
||||
str += string;
|
||||
}
|
||||
return str;
|
||||
};
|
||||
var isVisualCharsEnabled = function (editor) {
|
||||
return editor.plugins.visualchars ? editor.plugins.visualchars.isEnabled() : false;
|
||||
};
|
||||
var insertNbsp = function (editor, times) {
|
||||
var classes = function () {
|
||||
return isVisualCharsEnabled(editor) ? 'mce-nbsp-wrap mce-nbsp' : 'mce-nbsp-wrap';
|
||||
};
|
||||
var nbspSpan = function () {
|
||||
return '<span class="' + classes() + '" contenteditable="false">' + stringRepeat(' ', times) + '</span>';
|
||||
};
|
||||
var shouldWrap = wrapNbsps(editor);
|
||||
var html = shouldWrap || editor.plugins.visualchars ? nbspSpan() : stringRepeat(' ', times);
|
||||
editor.undoManager.transact(function () {
|
||||
return editor.insertContent(html);
|
||||
});
|
||||
};
|
||||
|
||||
var register$1 = function (editor) {
|
||||
editor.addCommand('mceNonBreaking', function () {
|
||||
insertNbsp(editor, 1);
|
||||
});
|
||||
};
|
||||
|
||||
var global = tinymce.util.Tools.resolve('tinymce.util.VK');
|
||||
|
||||
var setup = function (editor) {
|
||||
var spaces = getKeyboardSpaces(editor);
|
||||
if (spaces > 0) {
|
||||
editor.on('keydown', function (e) {
|
||||
if (e.keyCode === global.TAB && !e.isDefaultPrevented()) {
|
||||
if (e.shiftKey) {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
e.stopImmediatePropagation();
|
||||
insertNbsp(editor, spaces);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
var register = function (editor) {
|
||||
var onAction = function () {
|
||||
return editor.execCommand('mceNonBreaking');
|
||||
};
|
||||
editor.ui.registry.addButton('nonbreaking', {
|
||||
icon: 'non-breaking',
|
||||
tooltip: 'Nonbreaking space',
|
||||
onAction: onAction
|
||||
});
|
||||
editor.ui.registry.addMenuItem('nonbreaking', {
|
||||
icon: 'non-breaking',
|
||||
text: 'Nonbreaking space',
|
||||
onAction: onAction
|
||||
});
|
||||
};
|
||||
|
||||
function Plugin () {
|
||||
global$1.add('nonbreaking', function (editor) {
|
||||
register$1(editor);
|
||||
register(editor);
|
||||
setup(editor);
|
||||
});
|
||||
}
|
||||
|
||||
Plugin();
|
||||
|
||||
}());
|
||||
/**
|
||||
* TinyMCE version 6.0.2 (2022-04-27)
|
||||
*/
|
||||
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
var global$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
|
||||
const isSimpleType = type => value => typeof value === type;
|
||||
const isBoolean = isSimpleType('boolean');
|
||||
const isNumber = isSimpleType('number');
|
||||
|
||||
const option = name => editor => editor.options.get(name);
|
||||
const register$2 = editor => {
|
||||
const registerOption = editor.options.register;
|
||||
registerOption('nonbreaking_force_tab', {
|
||||
processor: value => {
|
||||
if (isBoolean(value)) {
|
||||
return {
|
||||
value: value ? 3 : 0,
|
||||
valid: true
|
||||
};
|
||||
} else if (isNumber(value)) {
|
||||
return {
|
||||
value,
|
||||
valid: true
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
valid: false,
|
||||
message: 'Must be a boolean or number.'
|
||||
};
|
||||
}
|
||||
},
|
||||
default: false
|
||||
});
|
||||
registerOption('nonbreaking_wrap', {
|
||||
processor: 'boolean',
|
||||
default: true
|
||||
});
|
||||
};
|
||||
const getKeyboardSpaces = option('nonbreaking_force_tab');
|
||||
const wrapNbsps = option('nonbreaking_wrap');
|
||||
|
||||
const stringRepeat = (string, repeats) => {
|
||||
let str = '';
|
||||
for (let index = 0; index < repeats; index++) {
|
||||
str += string;
|
||||
}
|
||||
return str;
|
||||
};
|
||||
const isVisualCharsEnabled = editor => editor.plugins.visualchars ? editor.plugins.visualchars.isEnabled() : false;
|
||||
const insertNbsp = (editor, times) => {
|
||||
const classes = () => isVisualCharsEnabled(editor) ? 'mce-nbsp-wrap mce-nbsp' : 'mce-nbsp-wrap';
|
||||
const nbspSpan = () => `<span class="${ classes() }" contenteditable="false">${ stringRepeat(' ', times) }</span>`;
|
||||
const shouldWrap = wrapNbsps(editor);
|
||||
const html = shouldWrap || editor.plugins.visualchars ? nbspSpan() : stringRepeat(' ', times);
|
||||
editor.undoManager.transact(() => editor.insertContent(html));
|
||||
};
|
||||
|
||||
const register$1 = editor => {
|
||||
editor.addCommand('mceNonBreaking', () => {
|
||||
insertNbsp(editor, 1);
|
||||
});
|
||||
};
|
||||
|
||||
var global = tinymce.util.Tools.resolve('tinymce.util.VK');
|
||||
|
||||
const setup = editor => {
|
||||
const spaces = getKeyboardSpaces(editor);
|
||||
if (spaces > 0) {
|
||||
editor.on('keydown', e => {
|
||||
if (e.keyCode === global.TAB && !e.isDefaultPrevented()) {
|
||||
if (e.shiftKey) {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
e.stopImmediatePropagation();
|
||||
insertNbsp(editor, spaces);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const register = editor => {
|
||||
const onAction = () => editor.execCommand('mceNonBreaking');
|
||||
editor.ui.registry.addButton('nonbreaking', {
|
||||
icon: 'non-breaking',
|
||||
tooltip: 'Nonbreaking space',
|
||||
onAction
|
||||
});
|
||||
editor.ui.registry.addMenuItem('nonbreaking', {
|
||||
icon: 'non-breaking',
|
||||
text: 'Nonbreaking space',
|
||||
onAction
|
||||
});
|
||||
};
|
||||
|
||||
var Plugin = () => {
|
||||
global$1.add('nonbreaking', editor => {
|
||||
register$2(editor);
|
||||
register$1(editor);
|
||||
register(editor);
|
||||
setup(editor);
|
||||
});
|
||||
};
|
||||
|
||||
Plugin();
|
||||
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue