@redis-ui/components 51.26.0 → 51.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Button/CopyToClipboardButton/CopyToClipboardButton.cjs +17 -8
- package/dist/Button/CopyToClipboardButton/CopyToClipboardButton.js +17 -8
- package/dist/Button/CopyToClipboardButton/CopyToClipboardButton.types.d.ts +5 -1
- package/dist/CodeBlock/CodeBlock.cjs +29 -14
- package/dist/CodeBlock/CodeBlock.js +29 -14
- package/dist/CodeBlock/CodeBlock.style.d.ts +4 -3
- package/dist/CodeBlock/CodeBlock.types.cjs +7 -0
- package/dist/CodeBlock/CodeBlock.types.d.ts +4 -0
- package/dist/CodeBlock/CodeBlock.types.js +7 -1
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.cjs +29 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.constants.cjs +34 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.constants.d.ts +25 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.constants.js +32 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.d.ts +6 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.js +29 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.types.d.ts +10 -0
- package/dist/CodeBlock/components/HighlightedCode/HighlightedCode.types.js +1 -0
- package/dist/Inputs/Input/Input.cjs +9 -2
- package/dist/Inputs/Input/Input.d.ts +4 -1
- package/dist/Inputs/Input/Input.js +9 -2
- package/dist/Inputs/Input/Input.types.d.ts +5 -1
- package/dist/Inputs/PasswordInput/components/Compose/Compose.types.d.ts +1 -1
- package/dist/Inputs/TextArea/TextArea.cjs +16 -6
- package/dist/Inputs/TextArea/TextArea.d.ts +3 -1
- package/dist/Inputs/TextArea/TextArea.js +16 -6
- package/dist/Inputs/TextArea/TextArea.types.d.ts +4 -1
- package/dist/Inputs/TextArea/components/CopyButton/CopyButton.cjs +7 -0
- package/dist/Inputs/TextArea/components/CopyButton/CopyButton.d.ts +2 -0
- package/dist/Inputs/TextArea/components/CopyButton/CopyButton.js +7 -0
- package/dist/Inputs/TextArea/components/CopyButton/CopyButton.style.cjs +17 -0
- package/dist/Inputs/TextArea/components/CopyButton/CopyButton.style.d.ts +1 -0
- package/dist/Inputs/TextArea/components/CopyButton/CopyButton.style.js +15 -0
- package/dist/Inputs/TextArea/components/TextAreaTag/TextAreaTag.cjs +3 -1
- package/dist/Inputs/TextArea/components/TextAreaTag/TextAreaTag.js +4 -2
- package/dist/Inputs/TextArea/components/TextAreaTag/TextAreaTag.style.cjs +8 -1
- package/dist/Inputs/TextArea/components/TextAreaTag/TextAreaTag.style.js +8 -1
- package/dist/Inputs/components/Compose/CommonCompose.cjs +23 -18
- package/dist/Inputs/components/Compose/CommonCompose.d.ts +1 -1
- package/dist/Inputs/components/Compose/CommonCompose.js +24 -19
- package/dist/Inputs/components/Compose/CommonCompose.types.d.ts +2 -0
- package/dist/Inputs/components/Compose/Compose.style.cjs +7 -0
- package/dist/Inputs/components/Compose/Compose.style.js +7 -0
- package/dist/Inputs/components/Compose/NumericCompose.types.d.ts +1 -1
- package/dist/Inputs/components/CopyButton/CopyButton.cjs +15 -0
- package/dist/Inputs/components/CopyButton/CopyButton.d.ts +2 -0
- package/dist/Inputs/components/CopyButton/CopyButton.js +15 -0
- package/dist/Inputs/components/CopyButton/CopyButton.style.cjs +17 -0
- package/dist/Inputs/components/CopyButton/CopyButton.style.d.ts +1 -0
- package/dist/Inputs/components/CopyButton/CopyButton.style.js +15 -0
- package/dist/Inputs/components/CopyButton/CopyButton.types.d.ts +6 -0
- package/dist/Inputs/components/CopyButton/CopyButton.types.js +1 -0
- package/dist/Inputs/components/InputTag/InputTag.cjs +3 -1
- package/dist/Inputs/components/InputTag/InputTag.js +4 -2
- package/dist/Inputs/components/InputTag/InputTag.style.cjs +1 -1
- package/dist/Inputs/components/InputTag/InputTag.style.js +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.js +2 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.cjs +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.cjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.cjs +17 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.cjs +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.cjs +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.cjs +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.cjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.cjs +16 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.cjs +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
- package/dist/node_modules/character-entities-legacy/index.cjs +116 -0
- package/dist/node_modules/character-entities-legacy/index.js +116 -0
- package/dist/node_modules/character-reference-invalid/index.cjs +38 -0
- package/dist/node_modules/character-reference-invalid/index.js +38 -0
- package/dist/node_modules/comma-separated-tokens/index.cjs +43 -0
- package/dist/node_modules/comma-separated-tokens/index.js +43 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.cjs +15 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +15 -0
- package/dist/node_modules/hast-util-parse-selector/lib/index.cjs +76 -0
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +76 -0
- package/dist/node_modules/hastscript/lib/create-h.cjs +262 -0
- package/dist/node_modules/hastscript/lib/create-h.js +262 -0
- package/dist/node_modules/hastscript/lib/index.cjs +21 -0
- package/dist/node_modules/hastscript/lib/index.js +21 -0
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +49 -0
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +49 -0
- package/dist/node_modules/is-alphabetical/index.cjs +14 -0
- package/dist/node_modules/is-alphabetical/index.js +14 -0
- package/dist/node_modules/is-alphanumerical/index.cjs +15 -0
- package/dist/node_modules/is-alphanumerical/index.js +15 -0
- package/dist/node_modules/is-decimal/index.cjs +14 -0
- package/dist/node_modules/is-decimal/index.js +14 -0
- package/dist/node_modules/is-hexadecimal/index.cjs +14 -0
- package/dist/node_modules/is-hexadecimal/index.js +14 -0
- package/dist/node_modules/parse-entities/lib/index.cjs +232 -0
- package/dist/node_modules/parse-entities/lib/index.js +232 -0
- package/dist/node_modules/property-information/index.cjs +27 -0
- package/dist/node_modules/property-information/index.js +26 -0
- package/dist/node_modules/property-information/lib/aria.cjs +60 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.cjs +81 -0
- package/dist/node_modules/property-information/lib/find.js +81 -0
- package/dist/node_modules/property-information/lib/html.cjs +326 -0
- package/dist/node_modules/property-information/lib/html.js +326 -0
- package/dist/node_modules/property-information/lib/normalize.cjs +15 -0
- package/dist/node_modules/property-information/lib/normalize.js +15 -0
- package/dist/node_modules/property-information/lib/svg.cjs +564 -0
- package/dist/node_modules/property-information/lib/svg.js +564 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.cjs +15 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +15 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.cjs +14 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +14 -0
- package/dist/node_modules/property-information/lib/util/create.cjs +53 -0
- package/dist/node_modules/property-information/lib/util/create.js +53 -0
- package/dist/node_modules/property-information/lib/util/defined-info.cjs +49 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +49 -0
- package/dist/node_modules/property-information/lib/util/info.cjs +33 -0
- package/dist/node_modules/property-information/lib/util/info.js +33 -0
- package/dist/node_modules/property-information/lib/util/merge.cjs +26 -0
- package/dist/node_modules/property-information/lib/util/merge.js +26 -0
- package/dist/node_modules/property-information/lib/util/schema.cjs +27 -0
- package/dist/node_modules/property-information/lib/util/schema.js +27 -0
- package/dist/node_modules/property-information/lib/util/types.cjs +35 -0
- package/dist/node_modules/property-information/lib/util/types.js +24 -0
- package/dist/node_modules/property-information/lib/xlink.cjs +18 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.cjs +14 -0
- package/dist/node_modules/property-information/lib/xml.js +15 -0
- package/dist/node_modules/property-information/lib/xmlns.cjs +14 -0
- package/dist/node_modules/property-information/lib/xmlns.js +14 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.cjs +6 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js +6 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.cjs +183 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js +181 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.cjs +308 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js +306 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.cjs +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.js +5 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.cjs +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/json.js +5 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/python.cjs +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/python.js +5 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.cjs +4 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/typescript.js +5 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-light.cjs +12 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-light.js +12 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vs.cjs +121 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vs.js +121 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus.cjs +147 -0
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus.js +147 -0
- package/dist/node_modules/refractor/lang/bash.cjs +190 -0
- package/dist/node_modules/refractor/lang/bash.js +190 -0
- package/dist/node_modules/refractor/lang/clike.cjs +37 -0
- package/dist/node_modules/refractor/lang/clike.js +37 -0
- package/dist/node_modules/refractor/lang/javascript.cjs +122 -0
- package/dist/node_modules/refractor/lang/javascript.js +122 -0
- package/dist/node_modules/refractor/lang/json.cjs +36 -0
- package/dist/node_modules/refractor/lang/json.js +36 -0
- package/dist/node_modules/refractor/lang/python.cjs +71 -0
- package/dist/node_modules/refractor/lang/python.js +71 -0
- package/dist/node_modules/refractor/lang/typescript.cjs +55 -0
- package/dist/node_modules/refractor/lang/typescript.js +55 -0
- package/dist/node_modules/refractor/lib/core.cjs +214 -0
- package/dist/node_modules/refractor/lib/core.js +214 -0
- package/dist/node_modules/refractor/lib/prism-core.cjs +595 -0
- package/dist/node_modules/refractor/lib/prism-core.js +595 -0
- package/dist/node_modules/space-separated-tokens/index.cjs +15 -0
- package/dist/node_modules/space-separated-tokens/index.js +15 -0
- package/package.json +4 -2
- package/skills/redis-ui-components/references/CodeBlock.md +23 -5
- package/skills/redis-ui-components/references/CopyToClipboardButton.md +23 -1
- package/skills/redis-ui-components/references/Input.md +39 -2
- package/skills/redis-ui-components/references/SearchInput.md +1 -1
- package/skills/redis-ui-components/references/TextArea.md +19 -1
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
//#region ../../node_modules/react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus.js
|
|
2
|
+
var vsc_dark_plus_default = {
|
|
3
|
+
"pre[class*=\"language-\"]": {
|
|
4
|
+
"color": "#d4d4d4",
|
|
5
|
+
"fontSize": "13px",
|
|
6
|
+
"textShadow": "none",
|
|
7
|
+
"fontFamily": "Menlo, Monaco, Consolas, \"Andale Mono\", \"Ubuntu Mono\", \"Courier New\", monospace",
|
|
8
|
+
"direction": "ltr",
|
|
9
|
+
"textAlign": "left",
|
|
10
|
+
"whiteSpace": "pre",
|
|
11
|
+
"wordSpacing": "normal",
|
|
12
|
+
"wordBreak": "normal",
|
|
13
|
+
"lineHeight": "1.5",
|
|
14
|
+
"MozTabSize": "4",
|
|
15
|
+
"OTabSize": "4",
|
|
16
|
+
"tabSize": "4",
|
|
17
|
+
"WebkitHyphens": "none",
|
|
18
|
+
"MozHyphens": "none",
|
|
19
|
+
"msHyphens": "none",
|
|
20
|
+
"hyphens": "none",
|
|
21
|
+
"padding": "1em",
|
|
22
|
+
"margin": ".5em 0",
|
|
23
|
+
"overflow": "auto",
|
|
24
|
+
"background": "#1e1e1e"
|
|
25
|
+
},
|
|
26
|
+
"code[class*=\"language-\"]": {
|
|
27
|
+
"color": "#d4d4d4",
|
|
28
|
+
"fontSize": "13px",
|
|
29
|
+
"textShadow": "none",
|
|
30
|
+
"fontFamily": "Menlo, Monaco, Consolas, \"Andale Mono\", \"Ubuntu Mono\", \"Courier New\", monospace",
|
|
31
|
+
"direction": "ltr",
|
|
32
|
+
"textAlign": "left",
|
|
33
|
+
"whiteSpace": "pre",
|
|
34
|
+
"wordSpacing": "normal",
|
|
35
|
+
"wordBreak": "normal",
|
|
36
|
+
"lineHeight": "1.5",
|
|
37
|
+
"MozTabSize": "4",
|
|
38
|
+
"OTabSize": "4",
|
|
39
|
+
"tabSize": "4",
|
|
40
|
+
"WebkitHyphens": "none",
|
|
41
|
+
"MozHyphens": "none",
|
|
42
|
+
"msHyphens": "none",
|
|
43
|
+
"hyphens": "none"
|
|
44
|
+
},
|
|
45
|
+
"pre[class*=\"language-\"]::selection": {
|
|
46
|
+
"textShadow": "none",
|
|
47
|
+
"background": "#264F78"
|
|
48
|
+
},
|
|
49
|
+
"code[class*=\"language-\"]::selection": {
|
|
50
|
+
"textShadow": "none",
|
|
51
|
+
"background": "#264F78"
|
|
52
|
+
},
|
|
53
|
+
"pre[class*=\"language-\"] *::selection": {
|
|
54
|
+
"textShadow": "none",
|
|
55
|
+
"background": "#264F78"
|
|
56
|
+
},
|
|
57
|
+
"code[class*=\"language-\"] *::selection": {
|
|
58
|
+
"textShadow": "none",
|
|
59
|
+
"background": "#264F78"
|
|
60
|
+
},
|
|
61
|
+
":not(pre) > code[class*=\"language-\"]": {
|
|
62
|
+
"padding": ".1em .3em",
|
|
63
|
+
"borderRadius": ".3em",
|
|
64
|
+
"color": "#db4c69",
|
|
65
|
+
"background": "#1e1e1e"
|
|
66
|
+
},
|
|
67
|
+
".namespace": { "Opacity": ".7" },
|
|
68
|
+
"doctype.doctype-tag": { "color": "#569CD6" },
|
|
69
|
+
"doctype.name": { "color": "#9cdcfe" },
|
|
70
|
+
"comment": { "color": "#6a9955" },
|
|
71
|
+
"prolog": { "color": "#6a9955" },
|
|
72
|
+
"punctuation": { "color": "#d4d4d4" },
|
|
73
|
+
".language-html .language-css .token.punctuation": { "color": "#d4d4d4" },
|
|
74
|
+
".language-html .language-javascript .token.punctuation": { "color": "#d4d4d4" },
|
|
75
|
+
"property": { "color": "#9cdcfe" },
|
|
76
|
+
"tag": { "color": "#569cd6" },
|
|
77
|
+
"boolean": { "color": "#569cd6" },
|
|
78
|
+
"number": { "color": "#b5cea8" },
|
|
79
|
+
"constant": { "color": "#9cdcfe" },
|
|
80
|
+
"symbol": { "color": "#b5cea8" },
|
|
81
|
+
"inserted": { "color": "#b5cea8" },
|
|
82
|
+
"unit": { "color": "#b5cea8" },
|
|
83
|
+
"selector": { "color": "#d7ba7d" },
|
|
84
|
+
"attr-name": { "color": "#9cdcfe" },
|
|
85
|
+
"string": { "color": "#ce9178" },
|
|
86
|
+
"char": { "color": "#ce9178" },
|
|
87
|
+
"builtin": { "color": "#ce9178" },
|
|
88
|
+
"deleted": { "color": "#ce9178" },
|
|
89
|
+
".language-css .token.string.url": { "textDecoration": "underline" },
|
|
90
|
+
"operator": { "color": "#d4d4d4" },
|
|
91
|
+
"entity": { "color": "#569cd6" },
|
|
92
|
+
"operator.arrow": { "color": "#569CD6" },
|
|
93
|
+
"atrule": { "color": "#ce9178" },
|
|
94
|
+
"atrule.rule": { "color": "#c586c0" },
|
|
95
|
+
"atrule.url": { "color": "#9cdcfe" },
|
|
96
|
+
"atrule.url.function": { "color": "#dcdcaa" },
|
|
97
|
+
"atrule.url.punctuation": { "color": "#d4d4d4" },
|
|
98
|
+
"keyword": { "color": "#569CD6" },
|
|
99
|
+
"keyword.module": { "color": "#c586c0" },
|
|
100
|
+
"keyword.control-flow": { "color": "#c586c0" },
|
|
101
|
+
"function": { "color": "#dcdcaa" },
|
|
102
|
+
"function.maybe-class-name": { "color": "#dcdcaa" },
|
|
103
|
+
"regex": { "color": "#d16969" },
|
|
104
|
+
"important": { "color": "#569cd6" },
|
|
105
|
+
"italic": { "fontStyle": "italic" },
|
|
106
|
+
"class-name": { "color": "#4ec9b0" },
|
|
107
|
+
"maybe-class-name": { "color": "#4ec9b0" },
|
|
108
|
+
"console": { "color": "#9cdcfe" },
|
|
109
|
+
"parameter": { "color": "#9cdcfe" },
|
|
110
|
+
"interpolation": { "color": "#9cdcfe" },
|
|
111
|
+
"punctuation.interpolation-punctuation": { "color": "#569cd6" },
|
|
112
|
+
"variable": { "color": "#9cdcfe" },
|
|
113
|
+
"imports.maybe-class-name": { "color": "#9cdcfe" },
|
|
114
|
+
"exports.maybe-class-name": { "color": "#9cdcfe" },
|
|
115
|
+
"escape": { "color": "#d7ba7d" },
|
|
116
|
+
"tag.punctuation": { "color": "#808080" },
|
|
117
|
+
"cdata": { "color": "#808080" },
|
|
118
|
+
"attr-value": { "color": "#ce9178" },
|
|
119
|
+
"attr-value.punctuation": { "color": "#ce9178" },
|
|
120
|
+
"attr-value.punctuation.attr-equals": { "color": "#d4d4d4" },
|
|
121
|
+
"namespace": { "color": "#4ec9b0" },
|
|
122
|
+
"pre[class*=\"language-javascript\"]": { "color": "#9cdcfe" },
|
|
123
|
+
"code[class*=\"language-javascript\"]": { "color": "#9cdcfe" },
|
|
124
|
+
"pre[class*=\"language-jsx\"]": { "color": "#9cdcfe" },
|
|
125
|
+
"code[class*=\"language-jsx\"]": { "color": "#9cdcfe" },
|
|
126
|
+
"pre[class*=\"language-typescript\"]": { "color": "#9cdcfe" },
|
|
127
|
+
"code[class*=\"language-typescript\"]": { "color": "#9cdcfe" },
|
|
128
|
+
"pre[class*=\"language-tsx\"]": { "color": "#9cdcfe" },
|
|
129
|
+
"code[class*=\"language-tsx\"]": { "color": "#9cdcfe" },
|
|
130
|
+
"pre[class*=\"language-css\"]": { "color": "#ce9178" },
|
|
131
|
+
"code[class*=\"language-css\"]": { "color": "#ce9178" },
|
|
132
|
+
"pre[class*=\"language-html\"]": { "color": "#d4d4d4" },
|
|
133
|
+
"code[class*=\"language-html\"]": { "color": "#d4d4d4" },
|
|
134
|
+
".language-regex .token.anchor": { "color": "#dcdcaa" },
|
|
135
|
+
".language-html .token.punctuation": { "color": "#808080" },
|
|
136
|
+
"pre[class*=\"language-\"] > code[class*=\"language-\"]": {
|
|
137
|
+
"position": "relative",
|
|
138
|
+
"zIndex": "1"
|
|
139
|
+
},
|
|
140
|
+
".line-highlight.line-highlight": {
|
|
141
|
+
"background": "#f7ebc6",
|
|
142
|
+
"boxShadow": "inset 5px 0 0 #f7d87c",
|
|
143
|
+
"zIndex": "0"
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
//#endregion
|
|
147
|
+
exports.default = vsc_dark_plus_default;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
//#region ../../node_modules/react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus.js
|
|
2
|
+
var vsc_dark_plus_default = {
|
|
3
|
+
"pre[class*=\"language-\"]": {
|
|
4
|
+
"color": "#d4d4d4",
|
|
5
|
+
"fontSize": "13px",
|
|
6
|
+
"textShadow": "none",
|
|
7
|
+
"fontFamily": "Menlo, Monaco, Consolas, \"Andale Mono\", \"Ubuntu Mono\", \"Courier New\", monospace",
|
|
8
|
+
"direction": "ltr",
|
|
9
|
+
"textAlign": "left",
|
|
10
|
+
"whiteSpace": "pre",
|
|
11
|
+
"wordSpacing": "normal",
|
|
12
|
+
"wordBreak": "normal",
|
|
13
|
+
"lineHeight": "1.5",
|
|
14
|
+
"MozTabSize": "4",
|
|
15
|
+
"OTabSize": "4",
|
|
16
|
+
"tabSize": "4",
|
|
17
|
+
"WebkitHyphens": "none",
|
|
18
|
+
"MozHyphens": "none",
|
|
19
|
+
"msHyphens": "none",
|
|
20
|
+
"hyphens": "none",
|
|
21
|
+
"padding": "1em",
|
|
22
|
+
"margin": ".5em 0",
|
|
23
|
+
"overflow": "auto",
|
|
24
|
+
"background": "#1e1e1e"
|
|
25
|
+
},
|
|
26
|
+
"code[class*=\"language-\"]": {
|
|
27
|
+
"color": "#d4d4d4",
|
|
28
|
+
"fontSize": "13px",
|
|
29
|
+
"textShadow": "none",
|
|
30
|
+
"fontFamily": "Menlo, Monaco, Consolas, \"Andale Mono\", \"Ubuntu Mono\", \"Courier New\", monospace",
|
|
31
|
+
"direction": "ltr",
|
|
32
|
+
"textAlign": "left",
|
|
33
|
+
"whiteSpace": "pre",
|
|
34
|
+
"wordSpacing": "normal",
|
|
35
|
+
"wordBreak": "normal",
|
|
36
|
+
"lineHeight": "1.5",
|
|
37
|
+
"MozTabSize": "4",
|
|
38
|
+
"OTabSize": "4",
|
|
39
|
+
"tabSize": "4",
|
|
40
|
+
"WebkitHyphens": "none",
|
|
41
|
+
"MozHyphens": "none",
|
|
42
|
+
"msHyphens": "none",
|
|
43
|
+
"hyphens": "none"
|
|
44
|
+
},
|
|
45
|
+
"pre[class*=\"language-\"]::selection": {
|
|
46
|
+
"textShadow": "none",
|
|
47
|
+
"background": "#264F78"
|
|
48
|
+
},
|
|
49
|
+
"code[class*=\"language-\"]::selection": {
|
|
50
|
+
"textShadow": "none",
|
|
51
|
+
"background": "#264F78"
|
|
52
|
+
},
|
|
53
|
+
"pre[class*=\"language-\"] *::selection": {
|
|
54
|
+
"textShadow": "none",
|
|
55
|
+
"background": "#264F78"
|
|
56
|
+
},
|
|
57
|
+
"code[class*=\"language-\"] *::selection": {
|
|
58
|
+
"textShadow": "none",
|
|
59
|
+
"background": "#264F78"
|
|
60
|
+
},
|
|
61
|
+
":not(pre) > code[class*=\"language-\"]": {
|
|
62
|
+
"padding": ".1em .3em",
|
|
63
|
+
"borderRadius": ".3em",
|
|
64
|
+
"color": "#db4c69",
|
|
65
|
+
"background": "#1e1e1e"
|
|
66
|
+
},
|
|
67
|
+
".namespace": { "Opacity": ".7" },
|
|
68
|
+
"doctype.doctype-tag": { "color": "#569CD6" },
|
|
69
|
+
"doctype.name": { "color": "#9cdcfe" },
|
|
70
|
+
"comment": { "color": "#6a9955" },
|
|
71
|
+
"prolog": { "color": "#6a9955" },
|
|
72
|
+
"punctuation": { "color": "#d4d4d4" },
|
|
73
|
+
".language-html .language-css .token.punctuation": { "color": "#d4d4d4" },
|
|
74
|
+
".language-html .language-javascript .token.punctuation": { "color": "#d4d4d4" },
|
|
75
|
+
"property": { "color": "#9cdcfe" },
|
|
76
|
+
"tag": { "color": "#569cd6" },
|
|
77
|
+
"boolean": { "color": "#569cd6" },
|
|
78
|
+
"number": { "color": "#b5cea8" },
|
|
79
|
+
"constant": { "color": "#9cdcfe" },
|
|
80
|
+
"symbol": { "color": "#b5cea8" },
|
|
81
|
+
"inserted": { "color": "#b5cea8" },
|
|
82
|
+
"unit": { "color": "#b5cea8" },
|
|
83
|
+
"selector": { "color": "#d7ba7d" },
|
|
84
|
+
"attr-name": { "color": "#9cdcfe" },
|
|
85
|
+
"string": { "color": "#ce9178" },
|
|
86
|
+
"char": { "color": "#ce9178" },
|
|
87
|
+
"builtin": { "color": "#ce9178" },
|
|
88
|
+
"deleted": { "color": "#ce9178" },
|
|
89
|
+
".language-css .token.string.url": { "textDecoration": "underline" },
|
|
90
|
+
"operator": { "color": "#d4d4d4" },
|
|
91
|
+
"entity": { "color": "#569cd6" },
|
|
92
|
+
"operator.arrow": { "color": "#569CD6" },
|
|
93
|
+
"atrule": { "color": "#ce9178" },
|
|
94
|
+
"atrule.rule": { "color": "#c586c0" },
|
|
95
|
+
"atrule.url": { "color": "#9cdcfe" },
|
|
96
|
+
"atrule.url.function": { "color": "#dcdcaa" },
|
|
97
|
+
"atrule.url.punctuation": { "color": "#d4d4d4" },
|
|
98
|
+
"keyword": { "color": "#569CD6" },
|
|
99
|
+
"keyword.module": { "color": "#c586c0" },
|
|
100
|
+
"keyword.control-flow": { "color": "#c586c0" },
|
|
101
|
+
"function": { "color": "#dcdcaa" },
|
|
102
|
+
"function.maybe-class-name": { "color": "#dcdcaa" },
|
|
103
|
+
"regex": { "color": "#d16969" },
|
|
104
|
+
"important": { "color": "#569cd6" },
|
|
105
|
+
"italic": { "fontStyle": "italic" },
|
|
106
|
+
"class-name": { "color": "#4ec9b0" },
|
|
107
|
+
"maybe-class-name": { "color": "#4ec9b0" },
|
|
108
|
+
"console": { "color": "#9cdcfe" },
|
|
109
|
+
"parameter": { "color": "#9cdcfe" },
|
|
110
|
+
"interpolation": { "color": "#9cdcfe" },
|
|
111
|
+
"punctuation.interpolation-punctuation": { "color": "#569cd6" },
|
|
112
|
+
"variable": { "color": "#9cdcfe" },
|
|
113
|
+
"imports.maybe-class-name": { "color": "#9cdcfe" },
|
|
114
|
+
"exports.maybe-class-name": { "color": "#9cdcfe" },
|
|
115
|
+
"escape": { "color": "#d7ba7d" },
|
|
116
|
+
"tag.punctuation": { "color": "#808080" },
|
|
117
|
+
"cdata": { "color": "#808080" },
|
|
118
|
+
"attr-value": { "color": "#ce9178" },
|
|
119
|
+
"attr-value.punctuation": { "color": "#ce9178" },
|
|
120
|
+
"attr-value.punctuation.attr-equals": { "color": "#d4d4d4" },
|
|
121
|
+
"namespace": { "color": "#4ec9b0" },
|
|
122
|
+
"pre[class*=\"language-javascript\"]": { "color": "#9cdcfe" },
|
|
123
|
+
"code[class*=\"language-javascript\"]": { "color": "#9cdcfe" },
|
|
124
|
+
"pre[class*=\"language-jsx\"]": { "color": "#9cdcfe" },
|
|
125
|
+
"code[class*=\"language-jsx\"]": { "color": "#9cdcfe" },
|
|
126
|
+
"pre[class*=\"language-typescript\"]": { "color": "#9cdcfe" },
|
|
127
|
+
"code[class*=\"language-typescript\"]": { "color": "#9cdcfe" },
|
|
128
|
+
"pre[class*=\"language-tsx\"]": { "color": "#9cdcfe" },
|
|
129
|
+
"code[class*=\"language-tsx\"]": { "color": "#9cdcfe" },
|
|
130
|
+
"pre[class*=\"language-css\"]": { "color": "#ce9178" },
|
|
131
|
+
"code[class*=\"language-css\"]": { "color": "#ce9178" },
|
|
132
|
+
"pre[class*=\"language-html\"]": { "color": "#d4d4d4" },
|
|
133
|
+
"code[class*=\"language-html\"]": { "color": "#d4d4d4" },
|
|
134
|
+
".language-regex .token.anchor": { "color": "#dcdcaa" },
|
|
135
|
+
".language-html .token.punctuation": { "color": "#808080" },
|
|
136
|
+
"pre[class*=\"language-\"] > code[class*=\"language-\"]": {
|
|
137
|
+
"position": "relative",
|
|
138
|
+
"zIndex": "1"
|
|
139
|
+
},
|
|
140
|
+
".line-highlight.line-highlight": {
|
|
141
|
+
"background": "#f7ebc6",
|
|
142
|
+
"boxShadow": "inset 5px 0 0 #f7d87c",
|
|
143
|
+
"zIndex": "0"
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
//#endregion
|
|
147
|
+
export { vsc_dark_plus_default as default };
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
//#region ../../node_modules/refractor/lang/bash.js
|
|
2
|
+
/**
|
|
3
|
+
* @import {Refractor} from '../lib/core.js'
|
|
4
|
+
*/
|
|
5
|
+
bash.displayName = "bash";
|
|
6
|
+
bash.aliases = ["sh", "shell"];
|
|
7
|
+
/** @param {Refractor} Prism */
|
|
8
|
+
function bash(Prism) {
|
|
9
|
+
(function(Prism) {
|
|
10
|
+
var envVars = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b";
|
|
11
|
+
var commandAfterHeredoc = {
|
|
12
|
+
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
13
|
+
lookbehind: true,
|
|
14
|
+
alias: "punctuation",
|
|
15
|
+
inside: null
|
|
16
|
+
};
|
|
17
|
+
var insideString = {
|
|
18
|
+
bash: commandAfterHeredoc,
|
|
19
|
+
environment: {
|
|
20
|
+
pattern: RegExp("\\$" + envVars),
|
|
21
|
+
alias: "constant"
|
|
22
|
+
},
|
|
23
|
+
variable: [
|
|
24
|
+
{
|
|
25
|
+
pattern: /\$?\(\([\s\S]+?\)\)/,
|
|
26
|
+
greedy: true,
|
|
27
|
+
inside: {
|
|
28
|
+
variable: [{
|
|
29
|
+
pattern: /(^\$\(\([\s\S]+)\)\)/,
|
|
30
|
+
lookbehind: true
|
|
31
|
+
}, /^\$\(\(/],
|
|
32
|
+
number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
|
|
33
|
+
operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
|
|
34
|
+
punctuation: /\(\(?|\)\)?|,|;/
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
|
|
39
|
+
greedy: true,
|
|
40
|
+
inside: { variable: /^\$\(|^`|\)$|`$/ }
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
pattern: /\$\{[^}]+\}/,
|
|
44
|
+
greedy: true,
|
|
45
|
+
inside: {
|
|
46
|
+
operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
|
|
47
|
+
punctuation: /[\[\]]/,
|
|
48
|
+
environment: {
|
|
49
|
+
pattern: RegExp("(\\{)" + envVars),
|
|
50
|
+
lookbehind: true,
|
|
51
|
+
alias: "constant"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
/\$(?:\w+|[#?*!@$])/
|
|
56
|
+
],
|
|
57
|
+
entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
|
|
58
|
+
};
|
|
59
|
+
Prism.languages.bash = {
|
|
60
|
+
shebang: {
|
|
61
|
+
pattern: /^#!\s*\/.*/,
|
|
62
|
+
alias: "important"
|
|
63
|
+
},
|
|
64
|
+
comment: {
|
|
65
|
+
pattern: /(^|[^"{\\$])#.*/,
|
|
66
|
+
lookbehind: true
|
|
67
|
+
},
|
|
68
|
+
"function-name": [{
|
|
69
|
+
pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
|
|
70
|
+
lookbehind: true,
|
|
71
|
+
alias: "function"
|
|
72
|
+
}, {
|
|
73
|
+
pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
|
|
74
|
+
alias: "function"
|
|
75
|
+
}],
|
|
76
|
+
"for-or-select": {
|
|
77
|
+
pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
|
|
78
|
+
alias: "variable",
|
|
79
|
+
lookbehind: true
|
|
80
|
+
},
|
|
81
|
+
"assign-left": {
|
|
82
|
+
pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
|
|
83
|
+
inside: { environment: {
|
|
84
|
+
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + envVars),
|
|
85
|
+
lookbehind: true,
|
|
86
|
+
alias: "constant"
|
|
87
|
+
} },
|
|
88
|
+
alias: "variable",
|
|
89
|
+
lookbehind: true
|
|
90
|
+
},
|
|
91
|
+
parameter: {
|
|
92
|
+
pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
|
|
93
|
+
alias: "variable",
|
|
94
|
+
lookbehind: true
|
|
95
|
+
},
|
|
96
|
+
string: [
|
|
97
|
+
{
|
|
98
|
+
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
99
|
+
lookbehind: true,
|
|
100
|
+
greedy: true,
|
|
101
|
+
inside: insideString
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
|
|
105
|
+
lookbehind: true,
|
|
106
|
+
greedy: true,
|
|
107
|
+
inside: { bash: commandAfterHeredoc }
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
111
|
+
lookbehind: true,
|
|
112
|
+
greedy: true,
|
|
113
|
+
inside: insideString
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
pattern: /(^|[^$\\])'[^']*'/,
|
|
117
|
+
lookbehind: true,
|
|
118
|
+
greedy: true
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
122
|
+
greedy: true,
|
|
123
|
+
inside: { entity: insideString.entity }
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
environment: {
|
|
127
|
+
pattern: RegExp("\\$?" + envVars),
|
|
128
|
+
alias: "constant"
|
|
129
|
+
},
|
|
130
|
+
variable: insideString.variable,
|
|
131
|
+
function: {
|
|
132
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
133
|
+
lookbehind: true
|
|
134
|
+
},
|
|
135
|
+
keyword: {
|
|
136
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
|
|
137
|
+
lookbehind: true
|
|
138
|
+
},
|
|
139
|
+
builtin: {
|
|
140
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
|
|
141
|
+
lookbehind: true,
|
|
142
|
+
alias: "class-name"
|
|
143
|
+
},
|
|
144
|
+
boolean: {
|
|
145
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
|
|
146
|
+
lookbehind: true
|
|
147
|
+
},
|
|
148
|
+
"file-descriptor": {
|
|
149
|
+
pattern: /\B&\d\b/,
|
|
150
|
+
alias: "important"
|
|
151
|
+
},
|
|
152
|
+
operator: {
|
|
153
|
+
pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
|
|
154
|
+
inside: { "file-descriptor": {
|
|
155
|
+
pattern: /^\d/,
|
|
156
|
+
alias: "important"
|
|
157
|
+
} }
|
|
158
|
+
},
|
|
159
|
+
punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
|
|
160
|
+
number: {
|
|
161
|
+
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
162
|
+
lookbehind: true
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
commandAfterHeredoc.inside = Prism.languages.bash;
|
|
166
|
+
var toBeCopied = [
|
|
167
|
+
"comment",
|
|
168
|
+
"function-name",
|
|
169
|
+
"for-or-select",
|
|
170
|
+
"assign-left",
|
|
171
|
+
"parameter",
|
|
172
|
+
"string",
|
|
173
|
+
"environment",
|
|
174
|
+
"function",
|
|
175
|
+
"keyword",
|
|
176
|
+
"builtin",
|
|
177
|
+
"boolean",
|
|
178
|
+
"file-descriptor",
|
|
179
|
+
"operator",
|
|
180
|
+
"punctuation",
|
|
181
|
+
"number"
|
|
182
|
+
];
|
|
183
|
+
var inside = insideString.variable[1].inside;
|
|
184
|
+
for (var i = 0; i < toBeCopied.length; i++) inside[toBeCopied[i]] = Prism.languages.bash[toBeCopied[i]];
|
|
185
|
+
Prism.languages.sh = Prism.languages.bash;
|
|
186
|
+
Prism.languages.shell = Prism.languages.bash;
|
|
187
|
+
})(Prism);
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
exports.default = bash;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
//#region ../../node_modules/refractor/lang/bash.js
|
|
2
|
+
/**
|
|
3
|
+
* @import {Refractor} from '../lib/core.js'
|
|
4
|
+
*/
|
|
5
|
+
bash.displayName = "bash";
|
|
6
|
+
bash.aliases = ["sh", "shell"];
|
|
7
|
+
/** @param {Refractor} Prism */
|
|
8
|
+
function bash(Prism) {
|
|
9
|
+
(function(Prism) {
|
|
10
|
+
var envVars = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b";
|
|
11
|
+
var commandAfterHeredoc = {
|
|
12
|
+
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
13
|
+
lookbehind: true,
|
|
14
|
+
alias: "punctuation",
|
|
15
|
+
inside: null
|
|
16
|
+
};
|
|
17
|
+
var insideString = {
|
|
18
|
+
bash: commandAfterHeredoc,
|
|
19
|
+
environment: {
|
|
20
|
+
pattern: RegExp("\\$" + envVars),
|
|
21
|
+
alias: "constant"
|
|
22
|
+
},
|
|
23
|
+
variable: [
|
|
24
|
+
{
|
|
25
|
+
pattern: /\$?\(\([\s\S]+?\)\)/,
|
|
26
|
+
greedy: true,
|
|
27
|
+
inside: {
|
|
28
|
+
variable: [{
|
|
29
|
+
pattern: /(^\$\(\([\s\S]+)\)\)/,
|
|
30
|
+
lookbehind: true
|
|
31
|
+
}, /^\$\(\(/],
|
|
32
|
+
number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
|
|
33
|
+
operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
|
|
34
|
+
punctuation: /\(\(?|\)\)?|,|;/
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
|
|
39
|
+
greedy: true,
|
|
40
|
+
inside: { variable: /^\$\(|^`|\)$|`$/ }
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
pattern: /\$\{[^}]+\}/,
|
|
44
|
+
greedy: true,
|
|
45
|
+
inside: {
|
|
46
|
+
operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
|
|
47
|
+
punctuation: /[\[\]]/,
|
|
48
|
+
environment: {
|
|
49
|
+
pattern: RegExp("(\\{)" + envVars),
|
|
50
|
+
lookbehind: true,
|
|
51
|
+
alias: "constant"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
/\$(?:\w+|[#?*!@$])/
|
|
56
|
+
],
|
|
57
|
+
entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
|
|
58
|
+
};
|
|
59
|
+
Prism.languages.bash = {
|
|
60
|
+
shebang: {
|
|
61
|
+
pattern: /^#!\s*\/.*/,
|
|
62
|
+
alias: "important"
|
|
63
|
+
},
|
|
64
|
+
comment: {
|
|
65
|
+
pattern: /(^|[^"{\\$])#.*/,
|
|
66
|
+
lookbehind: true
|
|
67
|
+
},
|
|
68
|
+
"function-name": [{
|
|
69
|
+
pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
|
|
70
|
+
lookbehind: true,
|
|
71
|
+
alias: "function"
|
|
72
|
+
}, {
|
|
73
|
+
pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
|
|
74
|
+
alias: "function"
|
|
75
|
+
}],
|
|
76
|
+
"for-or-select": {
|
|
77
|
+
pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
|
|
78
|
+
alias: "variable",
|
|
79
|
+
lookbehind: true
|
|
80
|
+
},
|
|
81
|
+
"assign-left": {
|
|
82
|
+
pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
|
|
83
|
+
inside: { environment: {
|
|
84
|
+
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + envVars),
|
|
85
|
+
lookbehind: true,
|
|
86
|
+
alias: "constant"
|
|
87
|
+
} },
|
|
88
|
+
alias: "variable",
|
|
89
|
+
lookbehind: true
|
|
90
|
+
},
|
|
91
|
+
parameter: {
|
|
92
|
+
pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
|
|
93
|
+
alias: "variable",
|
|
94
|
+
lookbehind: true
|
|
95
|
+
},
|
|
96
|
+
string: [
|
|
97
|
+
{
|
|
98
|
+
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
99
|
+
lookbehind: true,
|
|
100
|
+
greedy: true,
|
|
101
|
+
inside: insideString
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
|
|
105
|
+
lookbehind: true,
|
|
106
|
+
greedy: true,
|
|
107
|
+
inside: { bash: commandAfterHeredoc }
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
111
|
+
lookbehind: true,
|
|
112
|
+
greedy: true,
|
|
113
|
+
inside: insideString
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
pattern: /(^|[^$\\])'[^']*'/,
|
|
117
|
+
lookbehind: true,
|
|
118
|
+
greedy: true
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
122
|
+
greedy: true,
|
|
123
|
+
inside: { entity: insideString.entity }
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
environment: {
|
|
127
|
+
pattern: RegExp("\\$?" + envVars),
|
|
128
|
+
alias: "constant"
|
|
129
|
+
},
|
|
130
|
+
variable: insideString.variable,
|
|
131
|
+
function: {
|
|
132
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
133
|
+
lookbehind: true
|
|
134
|
+
},
|
|
135
|
+
keyword: {
|
|
136
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
|
|
137
|
+
lookbehind: true
|
|
138
|
+
},
|
|
139
|
+
builtin: {
|
|
140
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
|
|
141
|
+
lookbehind: true,
|
|
142
|
+
alias: "class-name"
|
|
143
|
+
},
|
|
144
|
+
boolean: {
|
|
145
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
|
|
146
|
+
lookbehind: true
|
|
147
|
+
},
|
|
148
|
+
"file-descriptor": {
|
|
149
|
+
pattern: /\B&\d\b/,
|
|
150
|
+
alias: "important"
|
|
151
|
+
},
|
|
152
|
+
operator: {
|
|
153
|
+
pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
|
|
154
|
+
inside: { "file-descriptor": {
|
|
155
|
+
pattern: /^\d/,
|
|
156
|
+
alias: "important"
|
|
157
|
+
} }
|
|
158
|
+
},
|
|
159
|
+
punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
|
|
160
|
+
number: {
|
|
161
|
+
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
162
|
+
lookbehind: true
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
commandAfterHeredoc.inside = Prism.languages.bash;
|
|
166
|
+
var toBeCopied = [
|
|
167
|
+
"comment",
|
|
168
|
+
"function-name",
|
|
169
|
+
"for-or-select",
|
|
170
|
+
"assign-left",
|
|
171
|
+
"parameter",
|
|
172
|
+
"string",
|
|
173
|
+
"environment",
|
|
174
|
+
"function",
|
|
175
|
+
"keyword",
|
|
176
|
+
"builtin",
|
|
177
|
+
"boolean",
|
|
178
|
+
"file-descriptor",
|
|
179
|
+
"operator",
|
|
180
|
+
"punctuation",
|
|
181
|
+
"number"
|
|
182
|
+
];
|
|
183
|
+
var inside = insideString.variable[1].inside;
|
|
184
|
+
for (var i = 0; i < toBeCopied.length; i++) inside[toBeCopied[i]] = Prism.languages.bash[toBeCopied[i]];
|
|
185
|
+
Prism.languages.sh = Prism.languages.bash;
|
|
186
|
+
Prism.languages.shell = Prism.languages.bash;
|
|
187
|
+
})(Prism);
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
export { bash as default };
|