mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
add p2p support for HLS https://github.com/Novage/p2p-media-loader
This commit is contained in:
parent
64c36d9f4e
commit
0d0338876d
1197 changed files with 121461 additions and 179724 deletions
24
node_modules/@codemirror/lint/dist/index.cjs
generated
vendored
24
node_modules/@codemirror/lint/dist/index.cjs
generated
vendored
|
@ -197,7 +197,7 @@ A set of default key bindings for the lint functionality.
|
|||
- F8: [`nextDiagnostic`](https://codemirror.net/6/docs/ref/#lint.nextDiagnostic)
|
||||
*/
|
||||
const lintKeymap = [
|
||||
{ key: "Mod-Shift-m", run: openLintPanel },
|
||||
{ key: "Mod-Shift-m", run: openLintPanel, preventDefault: true },
|
||||
{ key: "F8", run: nextDiagnostic }
|
||||
];
|
||||
const lintPlugin = view.ViewPlugin.fromClass(class {
|
||||
|
@ -611,8 +611,8 @@ class LintGutterMarker extends view.GutterMarker {
|
|||
function trackHoverOn(view, marker) {
|
||||
let mousemove = (event) => {
|
||||
let rect = marker.getBoundingClientRect();
|
||||
if (event.clientX > rect.left - 10 /* Margin */ && event.clientX < rect.right + 10 /* Margin */ &&
|
||||
event.clientY > rect.top - 10 /* Margin */ && event.clientY < rect.bottom + 10 /* Margin */)
|
||||
if (event.clientX > rect.left - 10 /* Hover.Margin */ && event.clientX < rect.right + 10 /* Hover.Margin */ &&
|
||||
event.clientY > rect.top - 10 /* Hover.Margin */ && event.clientY < rect.bottom + 10 /* Hover.Margin */)
|
||||
return;
|
||||
for (let target = event.target; target; target = target.parentNode) {
|
||||
if (target.nodeType == 1 && target.classList.contains("cm-tooltip-lint"))
|
||||
|
@ -715,14 +715,14 @@ const lintGutterTheme = view.EditorView.baseTheme({
|
|||
".cm-lint-marker-warning": {
|
||||
content: svg(`<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>`),
|
||||
},
|
||||
".cm-lint-marker-error:before": {
|
||||
".cm-lint-marker-error": {
|
||||
content: svg(`<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>`)
|
||||
},
|
||||
});
|
||||
const lintGutterConfig = state.Facet.define({
|
||||
combine(configs) {
|
||||
return state.combineConfig(configs, {
|
||||
hoverTime: 300 /* Time */,
|
||||
hoverTime: 300 /* Hover.Time */,
|
||||
markerFilter: null,
|
||||
tooltipFilter: null
|
||||
});
|
||||
|
@ -736,9 +736,23 @@ the diagnostics.
|
|||
function lintGutter(config = {}) {
|
||||
return [lintGutterConfig.of(config), lintGutterMarkers, lintGutterExtension, lintGutterTheme, lintGutterTooltip];
|
||||
}
|
||||
/**
|
||||
Iterate over the marked diagnostics for the given editor state,
|
||||
calling `f` for each of them. Note that, if the document changed
|
||||
since the diagnostics werecreated, the `Diagnostic` object will
|
||||
hold the original outdated position, whereas the `to` and `from`
|
||||
arguments hold the diagnostic's current position.
|
||||
*/
|
||||
function forEachDiagnostic(state$1, f) {
|
||||
let lState = state$1.field(lintState, false);
|
||||
if (lState && lState.diagnostics.size)
|
||||
for (let iter = state.RangeSet.iter([lState.diagnostics]); iter.value; iter.next())
|
||||
f(iter.value.spec.diagnostic, iter.from, iter.to);
|
||||
}
|
||||
|
||||
exports.closeLintPanel = closeLintPanel;
|
||||
exports.diagnosticCount = diagnosticCount;
|
||||
exports.forEachDiagnostic = forEachDiagnostic;
|
||||
exports.forceLinting = forceLinting;
|
||||
exports.lintGutter = lintGutter;
|
||||
exports.lintKeymap = lintKeymap;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue