highsoft-ui 1.0.138 → 1.0.140
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/CodeBlock-BreFXfK5.js +241 -0
- package/dist/{Footer-CcrBEAxZ.js → Footer-DtFs2Sgb.js} +2 -2
- package/dist/{FooterHelp-CfoW8dhY.js → FooterHelp-COjjt6h7.js} +1 -1
- package/dist/{FooterLinks-CSAfsyJP.js → FooterLinks-DZ0uH7HO.js} +2 -2
- package/dist/{Header-Ga_hYsOa.js → Header-C7MCiwiz.js} +2 -2
- package/dist/bash-kQhoNpCD.js +181 -0
- package/dist/components/CodeBlock/index.js +1 -1
- package/dist/components/Footer/FooterHelp.js +1 -1
- package/dist/components/Footer/FooterLinks.js +1 -1
- package/dist/components/Footer/index.js +1 -1
- package/dist/components/Header/index.js +1 -1
- package/dist/create-element-B4K6TXvP.js +217 -0
- package/dist/css-FhcewZZo.js +61 -0
- package/dist/json-Bfzk2Msc.js +32 -0
- package/dist/jsx-B57trbk8.js +5 -0
- package/dist/jsx-hpSEtOci.js +182 -0
- package/dist/lib/components/CodeBlock/index.d.ts +7 -1
- package/dist/main.js +5 -5
- package/dist/markup-BC51nDBv.js +5 -0
- package/dist/markup-BhBs-nbv.js +128 -0
- package/dist/prism-light-hml_uDoc.js +1954 -0
- package/dist/python-Bt2XI9DF.js +66 -0
- package/dist/tsx-CJFgwLf7.js +54 -0
- package/package.json +1 -1
- package/dist/CodeBlock-DtYddgyU.js +0 -3044
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { r as e, s as t } from "./utils-K9S_6_Eq.js";
|
|
2
|
+
import { t as n } from "./clsx-BWCAbrjV.js";
|
|
3
|
+
import { L as r, N as i } from "./esm-CDDjSK4f.js";
|
|
4
|
+
import { t as a } from "./Button-Dc8NFRWQ.js";
|
|
5
|
+
import { t as o } from "./FrameworkIcon-Ds6WrxO0.js";
|
|
6
|
+
import { Fragment as s, forwardRef as c, useCallback as l, useEffect as u, useMemo as d, useState as f } from "react";
|
|
7
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
8
|
+
var h = {
|
|
9
|
+
add: "L3qApa_add",
|
|
10
|
+
badge: "L3qApa_badge",
|
|
11
|
+
body: "L3qApa_body",
|
|
12
|
+
copyBtn: "L3qApa_copyBtn",
|
|
13
|
+
head: "L3qApa_head",
|
|
14
|
+
lang: "L3qApa_lang",
|
|
15
|
+
langGroup: "L3qApa_langGroup",
|
|
16
|
+
line: "L3qApa_line",
|
|
17
|
+
numbered: "L3qApa_numbered",
|
|
18
|
+
pre: "L3qApa_pre",
|
|
19
|
+
remove: "L3qApa_remove",
|
|
20
|
+
scroll: "L3qApa_scroll",
|
|
21
|
+
wrap: "L3qApa_wrap"
|
|
22
|
+
}, g = null;
|
|
23
|
+
function _() {
|
|
24
|
+
return g ||= Promise.all([
|
|
25
|
+
import("./prism-light-hml_uDoc.js"),
|
|
26
|
+
import("./create-element-B4K6TXvP.js").then((e) => e.n),
|
|
27
|
+
import("./jsx-B57trbk8.js"),
|
|
28
|
+
import("./tsx-CJFgwLf7.js"),
|
|
29
|
+
import("./json-Bfzk2Msc.js"),
|
|
30
|
+
import("./bash-kQhoNpCD.js"),
|
|
31
|
+
import("./python-Bt2XI9DF.js"),
|
|
32
|
+
import("./css-FhcewZZo.js"),
|
|
33
|
+
import("./markup-BC51nDBv.js")
|
|
34
|
+
]).then(([e, t, n, r, i, a, o, s, c]) => {
|
|
35
|
+
let l = e.default;
|
|
36
|
+
return l.registerLanguage("jsx", n.default), l.registerLanguage("tsx", r.default), l.registerLanguage("json", i.default), l.registerLanguage("bash", a.default), l.registerLanguage("python", o.default), l.registerLanguage("css", s.default), l.registerLanguage("markup", c.default), {
|
|
37
|
+
SyntaxHighlighter: l,
|
|
38
|
+
createElement: t.default
|
|
39
|
+
};
|
|
40
|
+
}), g;
|
|
41
|
+
}
|
|
42
|
+
var v = {
|
|
43
|
+
js: "javascript",
|
|
44
|
+
javascript: "javascript",
|
|
45
|
+
ts: "typescript",
|
|
46
|
+
typescript: "typescript",
|
|
47
|
+
html: "html",
|
|
48
|
+
css: "css",
|
|
49
|
+
python: "python"
|
|
50
|
+
}, y = {
|
|
51
|
+
js: "jsx",
|
|
52
|
+
javascript: "jsx",
|
|
53
|
+
jsx: "jsx",
|
|
54
|
+
ts: "tsx",
|
|
55
|
+
typescript: "tsx",
|
|
56
|
+
tsx: "tsx",
|
|
57
|
+
json: "json",
|
|
58
|
+
bash: "bash",
|
|
59
|
+
sh: "bash",
|
|
60
|
+
shell: "bash",
|
|
61
|
+
python: "python",
|
|
62
|
+
py: "python",
|
|
63
|
+
css: "css",
|
|
64
|
+
scss: "css",
|
|
65
|
+
html: "markup",
|
|
66
|
+
xml: "markup",
|
|
67
|
+
markup: "markup"
|
|
68
|
+
}, b = {
|
|
69
|
+
js: {
|
|
70
|
+
label: "Javascript",
|
|
71
|
+
badge: "JS",
|
|
72
|
+
bg: "#f7df1e",
|
|
73
|
+
fg: "#1a1a1a"
|
|
74
|
+
},
|
|
75
|
+
javascript: {
|
|
76
|
+
label: "Javascript",
|
|
77
|
+
badge: "JS",
|
|
78
|
+
bg: "#f7df1e",
|
|
79
|
+
fg: "#1a1a1a"
|
|
80
|
+
},
|
|
81
|
+
ts: {
|
|
82
|
+
label: "Typescript",
|
|
83
|
+
badge: "TS",
|
|
84
|
+
bg: "#3178c6",
|
|
85
|
+
fg: "#ffffff"
|
|
86
|
+
},
|
|
87
|
+
typescript: {
|
|
88
|
+
label: "Typescript",
|
|
89
|
+
badge: "TS",
|
|
90
|
+
bg: "#3178c6",
|
|
91
|
+
fg: "#ffffff"
|
|
92
|
+
},
|
|
93
|
+
python: {
|
|
94
|
+
label: "Python",
|
|
95
|
+
badge: "PY",
|
|
96
|
+
bg: "#3776ab",
|
|
97
|
+
fg: "#ffffff"
|
|
98
|
+
},
|
|
99
|
+
html: {
|
|
100
|
+
label: "HTML",
|
|
101
|
+
badge: "<>",
|
|
102
|
+
bg: "#e34f26",
|
|
103
|
+
fg: "#ffffff"
|
|
104
|
+
},
|
|
105
|
+
css: {
|
|
106
|
+
label: "CSS",
|
|
107
|
+
badge: "CSS",
|
|
108
|
+
bg: "#1572b6",
|
|
109
|
+
fg: "#ffffff"
|
|
110
|
+
},
|
|
111
|
+
json: {
|
|
112
|
+
label: "JSON",
|
|
113
|
+
badge: "{ }",
|
|
114
|
+
bg: "#6b7280",
|
|
115
|
+
fg: "#ffffff"
|
|
116
|
+
},
|
|
117
|
+
bash: {
|
|
118
|
+
label: "Bash",
|
|
119
|
+
badge: ">_",
|
|
120
|
+
bg: "#4b5563",
|
|
121
|
+
fg: "#ffffff"
|
|
122
|
+
},
|
|
123
|
+
text: {
|
|
124
|
+
label: "Text",
|
|
125
|
+
badge: "TXT",
|
|
126
|
+
bg: "#9ca3af",
|
|
127
|
+
fg: "#ffffff"
|
|
128
|
+
}
|
|
129
|
+
}, x = /\s*(?:\/\/|\/\*|#|--|<!--)?\s*\[!code\s+(\+\+?|--?)\]\s*(?:\*\/|-->)?\s*$/;
|
|
130
|
+
function S(e) {
|
|
131
|
+
return e.split("\n").map((e) => {
|
|
132
|
+
let t = e.match(x);
|
|
133
|
+
return t ? {
|
|
134
|
+
text: e.replace(x, ""),
|
|
135
|
+
kind: t[1][0] === "+" ? "add" : "remove"
|
|
136
|
+
} : {
|
|
137
|
+
text: e,
|
|
138
|
+
kind: null
|
|
139
|
+
};
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
var C = {}, w = ({ children: e }) => /* @__PURE__ */ p("pre", {
|
|
143
|
+
className: h.pre,
|
|
144
|
+
children: e
|
|
145
|
+
}), T = ({ children: e }) => /* @__PURE__ */ p("code", { children: e }), E = c(({ code: c, html: g, lang: x = "text", showLines: E = !0, syntax: D = !0, diff: O = !0, wrap: k = !0, copyLabel: A = "Copy code", className: j, ...M }, N) => {
|
|
146
|
+
let P = b[x] ?? b.text, F = v[x], [I, L] = e(), [R, z] = t(), B = L || z, V = d(() => O ? S(c) : c.split("\n").map((e) => ({
|
|
147
|
+
text: e,
|
|
148
|
+
kind: null
|
|
149
|
+
})), [c, O]), H = d(() => V.some((e) => e.kind) ? V.filter((e) => e.kind !== "remove").map((e) => e.text).join("\n") : c, [V, c]), U = l(() => {
|
|
150
|
+
R(), I(H);
|
|
151
|
+
}, [
|
|
152
|
+
H,
|
|
153
|
+
I,
|
|
154
|
+
R
|
|
155
|
+
]), W = n(h.body, {
|
|
156
|
+
[h.numbered]: E,
|
|
157
|
+
[h.scroll]: !k
|
|
158
|
+
}), G = y[x], K = d(() => V.map((e) => e.text).join("\n"), [V]), q = D && !g && !!G && K.trim().length > 0, [J, Y] = f(null);
|
|
159
|
+
u(() => {
|
|
160
|
+
if (!q) return;
|
|
161
|
+
let e = !0;
|
|
162
|
+
return _().then((t) => {
|
|
163
|
+
e && Y(t);
|
|
164
|
+
}), () => {
|
|
165
|
+
e = !1;
|
|
166
|
+
};
|
|
167
|
+
}, [q]);
|
|
168
|
+
let X = (e) => n(h.line, {
|
|
169
|
+
[h.add]: e === "add",
|
|
170
|
+
[h.remove]: e === "remove"
|
|
171
|
+
});
|
|
172
|
+
return /* @__PURE__ */ m("div", {
|
|
173
|
+
ref: N,
|
|
174
|
+
className: n(h.wrap, j),
|
|
175
|
+
...M,
|
|
176
|
+
children: [/* @__PURE__ */ m("div", {
|
|
177
|
+
className: h.head,
|
|
178
|
+
children: [/* @__PURE__ */ m("span", {
|
|
179
|
+
className: h.langGroup,
|
|
180
|
+
children: [F ? /* @__PURE__ */ p(o, {
|
|
181
|
+
icon: F,
|
|
182
|
+
size: 16,
|
|
183
|
+
"aria-hidden": !0
|
|
184
|
+
}) : /* @__PURE__ */ p("span", {
|
|
185
|
+
className: h.badge,
|
|
186
|
+
style: {
|
|
187
|
+
background: P.bg,
|
|
188
|
+
color: P.fg
|
|
189
|
+
},
|
|
190
|
+
children: P.badge
|
|
191
|
+
}), /* @__PURE__ */ p("span", {
|
|
192
|
+
className: h.lang,
|
|
193
|
+
children: P.label
|
|
194
|
+
})]
|
|
195
|
+
}), /* @__PURE__ */ p(a, {
|
|
196
|
+
variant: B ? "success" : "transparent",
|
|
197
|
+
size: 100,
|
|
198
|
+
iconRight: p(B ? r : i, {}),
|
|
199
|
+
onClick: U,
|
|
200
|
+
"aria-label": B ? "Copied" : A,
|
|
201
|
+
className: h.copyBtn,
|
|
202
|
+
children: B ? "Copied" : A
|
|
203
|
+
})]
|
|
204
|
+
}), g ? /* @__PURE__ */ p("div", {
|
|
205
|
+
className: W,
|
|
206
|
+
dangerouslySetInnerHTML: { __html: g }
|
|
207
|
+
}) : q && J ? /* @__PURE__ */ p("div", {
|
|
208
|
+
className: W,
|
|
209
|
+
children: /* @__PURE__ */ p(J.SyntaxHighlighter, {
|
|
210
|
+
language: G,
|
|
211
|
+
useInlineStyles: !1,
|
|
212
|
+
style: C,
|
|
213
|
+
PreTag: w,
|
|
214
|
+
CodeTag: T,
|
|
215
|
+
wrapLines: !0,
|
|
216
|
+
renderer: ({ rows: e, stylesheet: t, useInlineStyles: n }) => e.map((r, i) => /* @__PURE__ */ m(s, { children: [/* @__PURE__ */ p("span", {
|
|
217
|
+
className: X(V[i]?.kind ?? null),
|
|
218
|
+
children: (r.children ?? []).map((e, r) => J.createElement({
|
|
219
|
+
node: e,
|
|
220
|
+
stylesheet: t,
|
|
221
|
+
useInlineStyles: n,
|
|
222
|
+
key: `c-${i}-${r}`
|
|
223
|
+
}))
|
|
224
|
+
}), i < e.length - 1 ? "\n" : null] }, i)),
|
|
225
|
+
children: K
|
|
226
|
+
})
|
|
227
|
+
}) : /* @__PURE__ */ p("div", {
|
|
228
|
+
className: W,
|
|
229
|
+
children: /* @__PURE__ */ p("pre", {
|
|
230
|
+
className: h.pre,
|
|
231
|
+
children: /* @__PURE__ */ p("code", { children: V.map((e, t) => /* @__PURE__ */ m(s, { children: [/* @__PURE__ */ p("span", {
|
|
232
|
+
className: X(e.kind),
|
|
233
|
+
children: e.text
|
|
234
|
+
}), t < V.length - 1 ? "\n" : null] }, t)) })
|
|
235
|
+
})
|
|
236
|
+
})]
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
E.displayName = "CodeBlock";
|
|
240
|
+
//#endregion
|
|
241
|
+
export { E as t };
|
|
@@ -6,8 +6,8 @@ import { t as a } from "./DiscordInvite-CLYxexdH.js";
|
|
|
6
6
|
import { t as o } from "./Logo-DTfFHBgU.js";
|
|
7
7
|
import { t as s } from "./NewsletterSignup-Dw9YbhEh.js";
|
|
8
8
|
import { t as c } from "./FooterBottom-Dtttgp4F.js";
|
|
9
|
-
import { t as l } from "./FooterHelp-
|
|
10
|
-
import { t as u } from "./FooterLinks-
|
|
9
|
+
import { t as l } from "./FooterHelp-COjjt6h7.js";
|
|
10
|
+
import { t as u } from "./FooterLinks-DZ0uH7HO.js";
|
|
11
11
|
import { t as d } from "./YoutubeModal-DGj2INF0.js";
|
|
12
12
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
13
13
|
var m = {
|
|
@@ -109,7 +109,7 @@ var u = {
|
|
|
109
109
|
],
|
|
110
110
|
Support: [
|
|
111
111
|
{
|
|
112
|
-
title: "Ask Highcharts
|
|
112
|
+
title: "Ask Highcharts Assist",
|
|
113
113
|
url: "https://www.highcharts.com/chat/gpt/"
|
|
114
114
|
},
|
|
115
115
|
{
|
|
@@ -231,7 +231,7 @@ var u = {
|
|
|
231
231
|
url: "https://www.highcharts.com/products/highcharts-editor/"
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
|
-
title: "Highcharts
|
|
234
|
+
title: "Highcharts Assist",
|
|
235
235
|
url: "https://www.highcharts.com/chat/gpt/"
|
|
236
236
|
}
|
|
237
237
|
],
|
|
@@ -288,7 +288,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: s = "a", host
|
|
|
288
288
|
href: B("https://www.highcharts.com/chat/gpt/", c),
|
|
289
289
|
children: [/* @__PURE__ */ O("span", {
|
|
290
290
|
className: A.gpt,
|
|
291
|
-
children: "Highcharts
|
|
291
|
+
children: "Highcharts Assist"
|
|
292
292
|
}), /* @__PURE__ */ O(d, {})]
|
|
293
293
|
}) }),
|
|
294
294
|
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(x, {}) }),
|
|
@@ -348,7 +348,7 @@ function X({ subItems: t, children: r, notifications: o = J, link: s = "a", host
|
|
|
348
348
|
href: B("https://www.highcharts.com/chat/gpt/", c),
|
|
349
349
|
children: [/* @__PURE__ */ O("span", {
|
|
350
350
|
className: A.gpt,
|
|
351
|
-
children: "Highcharts
|
|
351
|
+
children: "Highcharts Assist"
|
|
352
352
|
}), /* @__PURE__ */ O(d, {})]
|
|
353
353
|
}) }),
|
|
354
354
|
/* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(x, {}) }),
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
e.displayName = "bash", e.aliases = ["sh", "shell"];
|
|
2
|
+
function e(e) {
|
|
3
|
+
(function(e) {
|
|
4
|
+
var t = "\\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", n = {
|
|
5
|
+
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
6
|
+
lookbehind: !0,
|
|
7
|
+
alias: "punctuation",
|
|
8
|
+
inside: null
|
|
9
|
+
}, r = {
|
|
10
|
+
bash: n,
|
|
11
|
+
environment: {
|
|
12
|
+
pattern: RegExp("\\$" + t),
|
|
13
|
+
alias: "constant"
|
|
14
|
+
},
|
|
15
|
+
variable: [
|
|
16
|
+
{
|
|
17
|
+
pattern: /\$?\(\([\s\S]+?\)\)/,
|
|
18
|
+
greedy: !0,
|
|
19
|
+
inside: {
|
|
20
|
+
variable: [{
|
|
21
|
+
pattern: /(^\$\(\([\s\S]+)\)\)/,
|
|
22
|
+
lookbehind: !0
|
|
23
|
+
}, /^\$\(\(/],
|
|
24
|
+
number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
|
|
25
|
+
operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
|
|
26
|
+
punctuation: /\(\(?|\)\)?|,|;/
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
|
|
31
|
+
greedy: !0,
|
|
32
|
+
inside: { variable: /^\$\(|^`|\)$|`$/ }
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
pattern: /\$\{[^}]+\}/,
|
|
36
|
+
greedy: !0,
|
|
37
|
+
inside: {
|
|
38
|
+
operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
|
|
39
|
+
punctuation: /[\[\]]/,
|
|
40
|
+
environment: {
|
|
41
|
+
pattern: RegExp("(\\{)" + t),
|
|
42
|
+
lookbehind: !0,
|
|
43
|
+
alias: "constant"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
/\$(?:\w+|[#?*!@$])/
|
|
48
|
+
],
|
|
49
|
+
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})/
|
|
50
|
+
};
|
|
51
|
+
e.languages.bash = {
|
|
52
|
+
shebang: {
|
|
53
|
+
pattern: /^#!\s*\/.*/,
|
|
54
|
+
alias: "important"
|
|
55
|
+
},
|
|
56
|
+
comment: {
|
|
57
|
+
pattern: /(^|[^"{\\$])#.*/,
|
|
58
|
+
lookbehind: !0
|
|
59
|
+
},
|
|
60
|
+
"function-name": [{
|
|
61
|
+
pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
|
|
62
|
+
lookbehind: !0,
|
|
63
|
+
alias: "function"
|
|
64
|
+
}, {
|
|
65
|
+
pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
|
|
66
|
+
alias: "function"
|
|
67
|
+
}],
|
|
68
|
+
"for-or-select": {
|
|
69
|
+
pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
|
|
70
|
+
alias: "variable",
|
|
71
|
+
lookbehind: !0
|
|
72
|
+
},
|
|
73
|
+
"assign-left": {
|
|
74
|
+
pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
|
|
75
|
+
inside: { environment: {
|
|
76
|
+
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + t),
|
|
77
|
+
lookbehind: !0,
|
|
78
|
+
alias: "constant"
|
|
79
|
+
} },
|
|
80
|
+
alias: "variable",
|
|
81
|
+
lookbehind: !0
|
|
82
|
+
},
|
|
83
|
+
parameter: {
|
|
84
|
+
pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
|
|
85
|
+
alias: "variable",
|
|
86
|
+
lookbehind: !0
|
|
87
|
+
},
|
|
88
|
+
string: [
|
|
89
|
+
{
|
|
90
|
+
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
91
|
+
lookbehind: !0,
|
|
92
|
+
greedy: !0,
|
|
93
|
+
inside: r
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
|
|
97
|
+
lookbehind: !0,
|
|
98
|
+
greedy: !0,
|
|
99
|
+
inside: { bash: n }
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
103
|
+
lookbehind: !0,
|
|
104
|
+
greedy: !0,
|
|
105
|
+
inside: r
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
pattern: /(^|[^$\\])'[^']*'/,
|
|
109
|
+
lookbehind: !0,
|
|
110
|
+
greedy: !0
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
114
|
+
greedy: !0,
|
|
115
|
+
inside: { entity: r.entity }
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
environment: {
|
|
119
|
+
pattern: RegExp("\\$?" + t),
|
|
120
|
+
alias: "constant"
|
|
121
|
+
},
|
|
122
|
+
variable: r.variable,
|
|
123
|
+
function: {
|
|
124
|
+
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;|&])/,
|
|
125
|
+
lookbehind: !0
|
|
126
|
+
},
|
|
127
|
+
keyword: {
|
|
128
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
|
|
129
|
+
lookbehind: !0
|
|
130
|
+
},
|
|
131
|
+
builtin: {
|
|
132
|
+
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;|&])/,
|
|
133
|
+
lookbehind: !0,
|
|
134
|
+
alias: "class-name"
|
|
135
|
+
},
|
|
136
|
+
boolean: {
|
|
137
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
|
|
138
|
+
lookbehind: !0
|
|
139
|
+
},
|
|
140
|
+
"file-descriptor": {
|
|
141
|
+
pattern: /\B&\d\b/,
|
|
142
|
+
alias: "important"
|
|
143
|
+
},
|
|
144
|
+
operator: {
|
|
145
|
+
pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
|
|
146
|
+
inside: { "file-descriptor": {
|
|
147
|
+
pattern: /^\d/,
|
|
148
|
+
alias: "important"
|
|
149
|
+
} }
|
|
150
|
+
},
|
|
151
|
+
punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
|
|
152
|
+
number: {
|
|
153
|
+
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
154
|
+
lookbehind: !0
|
|
155
|
+
}
|
|
156
|
+
}, n.inside = e.languages.bash;
|
|
157
|
+
for (var i = [
|
|
158
|
+
"comment",
|
|
159
|
+
"function-name",
|
|
160
|
+
"for-or-select",
|
|
161
|
+
"assign-left",
|
|
162
|
+
"parameter",
|
|
163
|
+
"string",
|
|
164
|
+
"environment",
|
|
165
|
+
"function",
|
|
166
|
+
"keyword",
|
|
167
|
+
"builtin",
|
|
168
|
+
"boolean",
|
|
169
|
+
"file-descriptor",
|
|
170
|
+
"operator",
|
|
171
|
+
"punctuation",
|
|
172
|
+
"number"
|
|
173
|
+
], a = r.variable[1].inside, o = 0; o < i.length; o++) a[i[o]] = e.languages.bash[i[o]];
|
|
174
|
+
e.languages.sh = e.languages.bash, e.languages.shell = e.languages.bash;
|
|
175
|
+
})(e);
|
|
176
|
+
}
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region node_modules/react-syntax-highlighter/dist/esm/languages/prism/bash.js
|
|
179
|
+
var t = e;
|
|
180
|
+
//#endregion
|
|
181
|
+
export { t as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../CodeBlock-
|
|
1
|
+
import { t as e } from "../../CodeBlock-BreFXfK5.js";
|
|
2
2
|
export { e as CodeBlock };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../FooterHelp-
|
|
1
|
+
import { t as e } from "../../FooterHelp-COjjt6h7.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../FooterLinks-
|
|
1
|
+
import { t as e } from "../../FooterLinks-DZ0uH7HO.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../Footer-
|
|
1
|
+
import { t as e } from "../../Footer-DtFs2Sgb.js";
|
|
2
2
|
export { e as Footer };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../Header-
|
|
1
|
+
import { n as e, t } from "../../Header-C7MCiwiz.js";
|
|
2
2
|
export { t as Header, e as SubHeader };
|