mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Node update
This commit is contained in:
parent
7a52e3f584
commit
6910ff631e
126 changed files with 6343 additions and 5149 deletions
56
node_modules/codemirror/dist/index.js
generated
vendored
56
node_modules/codemirror/dist/index.js
generated
vendored
|
@ -7,6 +7,8 @@ import { highlightSelectionMatches, searchKeymap } from '@codemirror/search';
|
|||
import { closeBrackets, autocompletion, closeBracketsKeymap, completionKeymap } from '@codemirror/autocomplete';
|
||||
import { lintKeymap } from '@codemirror/lint';
|
||||
|
||||
// (The superfluous function calls around the list of extensions work
|
||||
// around current limitations in tree-shaking software.)
|
||||
/**
|
||||
This is an extension value that just pulls together a number of
|
||||
extensions that you might want in a basic editor. It is meant as a
|
||||
|
@ -44,25 +46,25 @@ you take this package's source (which is just a bunch of imports
|
|||
and an array literal), copy it into your own code, and adjust it
|
||||
as desired.
|
||||
*/
|
||||
const basicSetup = [
|
||||
/*@__PURE__*/lineNumbers(),
|
||||
/*@__PURE__*/highlightActiveLineGutter(),
|
||||
/*@__PURE__*/highlightSpecialChars(),
|
||||
/*@__PURE__*/history(),
|
||||
/*@__PURE__*/foldGutter(),
|
||||
/*@__PURE__*/drawSelection(),
|
||||
/*@__PURE__*/dropCursor(),
|
||||
/*@__PURE__*/EditorState.allowMultipleSelections.of(true),
|
||||
/*@__PURE__*/indentOnInput(),
|
||||
/*@__PURE__*/syntaxHighlighting(defaultHighlightStyle, { fallback: true }),
|
||||
/*@__PURE__*/bracketMatching(),
|
||||
/*@__PURE__*/closeBrackets(),
|
||||
/*@__PURE__*/autocompletion(),
|
||||
/*@__PURE__*/rectangularSelection(),
|
||||
/*@__PURE__*/crosshairCursor(),
|
||||
/*@__PURE__*/highlightActiveLine(),
|
||||
/*@__PURE__*/highlightSelectionMatches(),
|
||||
/*@__PURE__*/keymap.of([
|
||||
const basicSetup = /*@__PURE__*/(() => [
|
||||
lineNumbers(),
|
||||
highlightActiveLineGutter(),
|
||||
highlightSpecialChars(),
|
||||
history(),
|
||||
foldGutter(),
|
||||
drawSelection(),
|
||||
dropCursor(),
|
||||
EditorState.allowMultipleSelections.of(true),
|
||||
indentOnInput(),
|
||||
syntaxHighlighting(defaultHighlightStyle, { fallback: true }),
|
||||
bracketMatching(),
|
||||
closeBrackets(),
|
||||
autocompletion(),
|
||||
rectangularSelection(),
|
||||
crosshairCursor(),
|
||||
highlightActiveLine(),
|
||||
highlightSelectionMatches(),
|
||||
keymap.of([
|
||||
...closeBracketsKeymap,
|
||||
...defaultKeymap,
|
||||
...searchKeymap,
|
||||
|
@ -71,7 +73,7 @@ const basicSetup = [
|
|||
...completionKeymap,
|
||||
...lintKeymap
|
||||
])
|
||||
];
|
||||
])();
|
||||
/**
|
||||
A minimal set of extensions to create a functional editor. Only
|
||||
includes [the default keymap](https://codemirror.net/6/docs/ref/#commands.defaultKeymap), [undo
|
||||
|
@ -80,15 +82,15 @@ highlighting](https://codemirror.net/6/docs/ref/#view.highlightSpecialChars), [c
|
|||
drawing](https://codemirror.net/6/docs/ref/#view.drawSelection), and [default highlight
|
||||
style](https://codemirror.net/6/docs/ref/#language.defaultHighlightStyle).
|
||||
*/
|
||||
const minimalSetup = [
|
||||
/*@__PURE__*/highlightSpecialChars(),
|
||||
/*@__PURE__*/history(),
|
||||
/*@__PURE__*/drawSelection(),
|
||||
/*@__PURE__*/syntaxHighlighting(defaultHighlightStyle, { fallback: true }),
|
||||
/*@__PURE__*/keymap.of([
|
||||
const minimalSetup = /*@__PURE__*/(() => [
|
||||
highlightSpecialChars(),
|
||||
history(),
|
||||
drawSelection(),
|
||||
syntaxHighlighting(defaultHighlightStyle, { fallback: true }),
|
||||
keymap.of([
|
||||
...defaultKeymap,
|
||||
...historyKeymap,
|
||||
])
|
||||
];
|
||||
])();
|
||||
|
||||
export { basicSetup, minimalSetup };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue