@oneflowui/ui 0.5.1 → 0.5.3
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/components/Dashboard/charts/BarChart.vue.js +2 -2
- package/dist/components/Dashboard/charts/BarChart.vue2.js +11 -8
- package/dist/components/Dashboard/charts/PieChart.vue.js +2 -2
- package/dist/components/Dashboard/charts/PieChart.vue2.js +8 -5
- package/dist/components/Dashboard/index.vue.js +1 -1
- package/dist/components/Dashboard/index.vue2.js +20 -25
- package/dist/components/editor/RichTextEditor.vue2.js +1 -1
- package/dist/components/table/DataTable.vue.js +1 -1
- package/dist/components/table/DataTable.vue2.js +134 -135
- package/dist/components/table/FieldCell.vue.js +2 -2
- package/dist/components/table/FieldCell.vue2.js +16 -15
- package/dist/composables/useMarkdown.js +23 -23
- package/dist/index.d.ts +1 -5
- package/dist/index.js +250 -350
- package/dist/plugin.d.ts +5 -0
- package/dist/plugin.js +197 -0
- package/dist/style.css +1 -1
- package/dist/utils/echarts.d.ts +2 -0
- package/dist/utils/icon.d.ts +0 -5
- package/dist/utils/icon.js +72 -11
- package/package.json +2 -3
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +0 -5
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js +0 -377
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js +0 -923
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js +0 -151
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js +0 -240
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js +0 -658
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js +0 -38
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js +0 -216
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js +0 -13
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js +0 -399
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js +0 -305
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js +0 -615
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js +0 -753
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js +0 -219
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js +0 -183
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +0 -1063
package/dist/utils/icon.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* 解析图标:支持 lucide 图标名字符串或直接传入 Vue 组件
|
|
4
|
-
* @param icon lucide icon name (kebab-case) 或 Component
|
|
5
|
-
* @returns Vue Component 或 undefined
|
|
6
|
-
*/
|
|
7
2
|
export declare function resolveIcon(icon: string | Component | undefined): Component | undefined;
|
package/dist/utils/icon.js
CHANGED
|
@@ -1,14 +1,75 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { defineAsyncComponent as c } from "vue";
|
|
2
|
+
const r = /* @__PURE__ */ new Map(), e = {
|
|
3
|
+
ActivityIcon: () => import("lucide-vue-next/dist/esm/icons/activity.js"),
|
|
4
|
+
AlertCircleIcon: () => import("lucide-vue-next/dist/esm/icons/circle-alert.js"),
|
|
5
|
+
AlertTriangleIcon: () => import("lucide-vue-next/dist/esm/icons/triangle-alert.js"),
|
|
6
|
+
ArrowUpDownIcon: () => import("lucide-vue-next/dist/esm/icons/arrow-up-down.js"),
|
|
7
|
+
BarChart3Icon: () => import("lucide-vue-next/dist/esm/icons/bar-chart-3.js"),
|
|
8
|
+
BeakerIcon: () => import("lucide-vue-next/dist/esm/icons/beaker.js"),
|
|
9
|
+
BellIcon: () => import("lucide-vue-next/dist/esm/icons/bell.js"),
|
|
10
|
+
BookOpenIcon: () => import("lucide-vue-next/dist/esm/icons/book-open.js"),
|
|
11
|
+
BotIcon: () => import("lucide-vue-next/dist/esm/icons/bot.js"),
|
|
12
|
+
BugIcon: () => import("lucide-vue-next/dist/esm/icons/bug.js"),
|
|
13
|
+
CalendarIcon: () => import("lucide-vue-next/dist/esm/icons/calendar.js"),
|
|
14
|
+
CheckCircleIcon: () => import("lucide-vue-next/dist/esm/icons/circle-check.js"),
|
|
15
|
+
ChevronDownIcon: () => import("lucide-vue-next/dist/esm/icons/chevron-down.js"),
|
|
16
|
+
ClockIcon: () => import("lucide-vue-next/dist/esm/icons/clock.js"),
|
|
17
|
+
Columns3Icon: () => import("lucide-vue-next/dist/esm/icons/columns-3.js"),
|
|
18
|
+
DatabaseIcon: () => import("lucide-vue-next/dist/esm/icons/database.js"),
|
|
19
|
+
EditIcon: () => import("lucide-vue-next/dist/esm/icons/pencil.js"),
|
|
20
|
+
EyeIcon: () => import("lucide-vue-next/dist/esm/icons/eye.js"),
|
|
21
|
+
FileTextIcon: () => import("lucide-vue-next/dist/esm/icons/file-text.js"),
|
|
22
|
+
FlagIcon: () => import("lucide-vue-next/dist/esm/icons/flag.js"),
|
|
23
|
+
GanttChartIcon: () => import("lucide-vue-next/dist/esm/icons/gantt-chart.js"),
|
|
24
|
+
GitBranchIcon: () => import("lucide-vue-next/dist/esm/icons/git-branch.js"),
|
|
25
|
+
GroupIcon: () => import("lucide-vue-next/dist/esm/icons/group.js"),
|
|
26
|
+
HistoryIcon: () => import("lucide-vue-next/dist/esm/icons/history.js"),
|
|
27
|
+
HomeIcon: () => import("lucide-vue-next/dist/esm/icons/house.js"),
|
|
28
|
+
ImageIcon: () => import("lucide-vue-next/dist/esm/icons/image.js"),
|
|
29
|
+
InboxIcon: () => import("lucide-vue-next/dist/esm/icons/inbox.js"),
|
|
30
|
+
KanbanIcon: () => import("lucide-vue-next/dist/esm/icons/kanban.js"),
|
|
31
|
+
LayersIcon: () => import("lucide-vue-next/dist/esm/icons/layers.js"),
|
|
32
|
+
LayoutDashboardIcon: () => import("lucide-vue-next/dist/esm/icons/layout-dashboard.js"),
|
|
33
|
+
LayoutGridIcon: () => import("lucide-vue-next/dist/esm/icons/layout-grid.js"),
|
|
34
|
+
LinkIcon: () => import("lucide-vue-next/dist/esm/icons/link.js"),
|
|
35
|
+
ListChecksIcon: () => import("lucide-vue-next/dist/esm/icons/list-checks.js"),
|
|
36
|
+
ListFilterIcon: () => import("lucide-vue-next/dist/esm/icons/list-filter.js"),
|
|
37
|
+
ListIcon: () => import("lucide-vue-next/dist/esm/icons/list.js"),
|
|
38
|
+
Maximize2Icon: () => import("lucide-vue-next/dist/esm/icons/maximize-2.js"),
|
|
39
|
+
MaximizeIcon: () => import("lucide-vue-next/dist/esm/icons/maximize.js"),
|
|
40
|
+
MessageSquareIcon: () => import("lucide-vue-next/dist/esm/icons/message-square.js"),
|
|
41
|
+
PackageIcon: () => import("lucide-vue-next/dist/esm/icons/package.js"),
|
|
42
|
+
PanelRightIcon: () => import("lucide-vue-next/dist/esm/icons/panel-right.js"),
|
|
43
|
+
PinIcon: () => import("lucide-vue-next/dist/esm/icons/pin.js"),
|
|
44
|
+
PlusIcon: () => import("lucide-vue-next/dist/esm/icons/plus.js"),
|
|
45
|
+
SearchIcon: () => import("lucide-vue-next/dist/esm/icons/search.js"),
|
|
46
|
+
SettingsIcon: () => import("lucide-vue-next/dist/esm/icons/settings.js"),
|
|
47
|
+
StickyNoteIcon: () => import("lucide-vue-next/dist/esm/icons/sticky-note.js"),
|
|
48
|
+
Table2Icon: () => import("lucide-vue-next/dist/esm/icons/table-2.js"),
|
|
49
|
+
TargetIcon: () => import("lucide-vue-next/dist/esm/icons/target.js"),
|
|
50
|
+
Trash2Icon: () => import("lucide-vue-next/dist/esm/icons/trash-2.js"),
|
|
51
|
+
UserIcon: () => import("lucide-vue-next/dist/esm/icons/user.js"),
|
|
52
|
+
UsersIcon: () => import("lucide-vue-next/dist/esm/icons/users.js"),
|
|
53
|
+
ZapIcon: () => import("lucide-vue-next/dist/esm/icons/zap.js")
|
|
54
|
+
};
|
|
55
|
+
function p(o) {
|
|
56
|
+
return o.split("-").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join("") + "Icon";
|
|
57
|
+
}
|
|
58
|
+
function I(o) {
|
|
59
|
+
return o ? o.endsWith("Icon") ? o : o.includes("-") ? p(o) : `${o.charAt(0).toUpperCase()}${o.slice(1)}Icon` : "";
|
|
60
|
+
}
|
|
61
|
+
function m(o) {
|
|
62
|
+
return c({
|
|
63
|
+
loader: o,
|
|
64
|
+
suspensible: !1
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function a(o) {
|
|
68
|
+
if (!o) return;
|
|
69
|
+
if (typeof o != "string") return o;
|
|
70
|
+
if (r.has(o)) return r.get(o);
|
|
71
|
+
const t = I(o), n = e[t], i = n ? m(n) : void 0;
|
|
72
|
+
return r.set(o, i), i;
|
|
12
73
|
}
|
|
13
74
|
export {
|
|
14
75
|
a as resolveIcon
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneflowui/ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "OneFlow UI Component Library - Vue3 components for task management views",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"sideEffects": [
|
|
21
|
-
"*.css"
|
|
22
|
-
"*.vue"
|
|
21
|
+
"*.css"
|
|
23
22
|
],
|
|
24
23
|
"files": [
|
|
25
24
|
"dist"
|
package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js
DELETED
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
function w(e) {
|
|
2
|
-
const a = e.regex, t = {}, c = {
|
|
3
|
-
begin: /\$\{/,
|
|
4
|
-
end: /\}/,
|
|
5
|
-
contains: [
|
|
6
|
-
"self",
|
|
7
|
-
{
|
|
8
|
-
begin: /:-/,
|
|
9
|
-
contains: [t]
|
|
10
|
-
}
|
|
11
|
-
// default values
|
|
12
|
-
]
|
|
13
|
-
};
|
|
14
|
-
Object.assign(t, {
|
|
15
|
-
className: "variable",
|
|
16
|
-
variants: [
|
|
17
|
-
{ begin: a.concat(
|
|
18
|
-
/\$[\w\d#@][\w\d_]*/,
|
|
19
|
-
// negative look-ahead tries to avoid matching patterns that are not
|
|
20
|
-
// Perl at all like $ident$, @ident@, etc.
|
|
21
|
-
"(?![\\w\\d])(?![$])"
|
|
22
|
-
) },
|
|
23
|
-
c
|
|
24
|
-
]
|
|
25
|
-
});
|
|
26
|
-
const s = {
|
|
27
|
-
className: "subst",
|
|
28
|
-
begin: /\$\(/,
|
|
29
|
-
end: /\)/,
|
|
30
|
-
contains: [e.BACKSLASH_ESCAPE]
|
|
31
|
-
}, o = e.inherit(
|
|
32
|
-
e.COMMENT(),
|
|
33
|
-
{
|
|
34
|
-
match: [
|
|
35
|
-
/(^|\s)/,
|
|
36
|
-
/#.*$/
|
|
37
|
-
],
|
|
38
|
-
scope: {
|
|
39
|
-
2: "comment"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
), i = {
|
|
43
|
-
begin: /<<-?\s*(?=\w+)/,
|
|
44
|
-
starts: { contains: [
|
|
45
|
-
e.END_SAME_AS_BEGIN({
|
|
46
|
-
begin: /(\w+)/,
|
|
47
|
-
end: /(\w+)/,
|
|
48
|
-
className: "string"
|
|
49
|
-
})
|
|
50
|
-
] }
|
|
51
|
-
}, n = {
|
|
52
|
-
className: "string",
|
|
53
|
-
begin: /"/,
|
|
54
|
-
end: /"/,
|
|
55
|
-
contains: [
|
|
56
|
-
e.BACKSLASH_ESCAPE,
|
|
57
|
-
t,
|
|
58
|
-
s
|
|
59
|
-
]
|
|
60
|
-
};
|
|
61
|
-
s.contains.push(n);
|
|
62
|
-
const r = {
|
|
63
|
-
match: /\\"/
|
|
64
|
-
}, m = {
|
|
65
|
-
className: "string",
|
|
66
|
-
begin: /'/,
|
|
67
|
-
end: /'/
|
|
68
|
-
}, p = {
|
|
69
|
-
match: /\\'/
|
|
70
|
-
}, d = {
|
|
71
|
-
begin: /\$?\(\(/,
|
|
72
|
-
end: /\)\)/,
|
|
73
|
-
contains: [
|
|
74
|
-
{
|
|
75
|
-
begin: /\d+#[0-9a-f]+/,
|
|
76
|
-
className: "number"
|
|
77
|
-
},
|
|
78
|
-
e.NUMBER_MODE,
|
|
79
|
-
t
|
|
80
|
-
]
|
|
81
|
-
}, l = [
|
|
82
|
-
"fish",
|
|
83
|
-
"bash",
|
|
84
|
-
"zsh",
|
|
85
|
-
"sh",
|
|
86
|
-
"csh",
|
|
87
|
-
"ksh",
|
|
88
|
-
"tcsh",
|
|
89
|
-
"dash",
|
|
90
|
-
"scsh"
|
|
91
|
-
], u = e.SHEBANG({
|
|
92
|
-
binary: `(${l.join("|")})`,
|
|
93
|
-
relevance: 10
|
|
94
|
-
}), h = {
|
|
95
|
-
className: "function",
|
|
96
|
-
begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
|
|
97
|
-
returnBegin: !0,
|
|
98
|
-
contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
|
|
99
|
-
relevance: 0
|
|
100
|
-
}, b = [
|
|
101
|
-
"if",
|
|
102
|
-
"then",
|
|
103
|
-
"else",
|
|
104
|
-
"elif",
|
|
105
|
-
"fi",
|
|
106
|
-
"time",
|
|
107
|
-
"for",
|
|
108
|
-
"while",
|
|
109
|
-
"until",
|
|
110
|
-
"in",
|
|
111
|
-
"do",
|
|
112
|
-
"done",
|
|
113
|
-
"case",
|
|
114
|
-
"esac",
|
|
115
|
-
"coproc",
|
|
116
|
-
"function",
|
|
117
|
-
"select"
|
|
118
|
-
], g = [
|
|
119
|
-
"true",
|
|
120
|
-
"false"
|
|
121
|
-
], f = { match: /(\/[a-z._-]+)+/ }, E = [
|
|
122
|
-
"break",
|
|
123
|
-
"cd",
|
|
124
|
-
"continue",
|
|
125
|
-
"eval",
|
|
126
|
-
"exec",
|
|
127
|
-
"exit",
|
|
128
|
-
"export",
|
|
129
|
-
"getopts",
|
|
130
|
-
"hash",
|
|
131
|
-
"pwd",
|
|
132
|
-
"readonly",
|
|
133
|
-
"return",
|
|
134
|
-
"shift",
|
|
135
|
-
"test",
|
|
136
|
-
"times",
|
|
137
|
-
"trap",
|
|
138
|
-
"umask",
|
|
139
|
-
"unset"
|
|
140
|
-
], S = [
|
|
141
|
-
"alias",
|
|
142
|
-
"bind",
|
|
143
|
-
"builtin",
|
|
144
|
-
"caller",
|
|
145
|
-
"command",
|
|
146
|
-
"declare",
|
|
147
|
-
"echo",
|
|
148
|
-
"enable",
|
|
149
|
-
"help",
|
|
150
|
-
"let",
|
|
151
|
-
"local",
|
|
152
|
-
"logout",
|
|
153
|
-
"mapfile",
|
|
154
|
-
"printf",
|
|
155
|
-
"read",
|
|
156
|
-
"readarray",
|
|
157
|
-
"source",
|
|
158
|
-
"sudo",
|
|
159
|
-
"type",
|
|
160
|
-
"typeset",
|
|
161
|
-
"ulimit",
|
|
162
|
-
"unalias"
|
|
163
|
-
], _ = [
|
|
164
|
-
"autoload",
|
|
165
|
-
"bg",
|
|
166
|
-
"bindkey",
|
|
167
|
-
"bye",
|
|
168
|
-
"cap",
|
|
169
|
-
"chdir",
|
|
170
|
-
"clone",
|
|
171
|
-
"comparguments",
|
|
172
|
-
"compcall",
|
|
173
|
-
"compctl",
|
|
174
|
-
"compdescribe",
|
|
175
|
-
"compfiles",
|
|
176
|
-
"compgroups",
|
|
177
|
-
"compquote",
|
|
178
|
-
"comptags",
|
|
179
|
-
"comptry",
|
|
180
|
-
"compvalues",
|
|
181
|
-
"dirs",
|
|
182
|
-
"disable",
|
|
183
|
-
"disown",
|
|
184
|
-
"echotc",
|
|
185
|
-
"echoti",
|
|
186
|
-
"emulate",
|
|
187
|
-
"fc",
|
|
188
|
-
"fg",
|
|
189
|
-
"float",
|
|
190
|
-
"functions",
|
|
191
|
-
"getcap",
|
|
192
|
-
"getln",
|
|
193
|
-
"history",
|
|
194
|
-
"integer",
|
|
195
|
-
"jobs",
|
|
196
|
-
"kill",
|
|
197
|
-
"limit",
|
|
198
|
-
"log",
|
|
199
|
-
"noglob",
|
|
200
|
-
"popd",
|
|
201
|
-
"print",
|
|
202
|
-
"pushd",
|
|
203
|
-
"pushln",
|
|
204
|
-
"rehash",
|
|
205
|
-
"sched",
|
|
206
|
-
"setcap",
|
|
207
|
-
"setopt",
|
|
208
|
-
"stat",
|
|
209
|
-
"suspend",
|
|
210
|
-
"ttyctl",
|
|
211
|
-
"unfunction",
|
|
212
|
-
"unhash",
|
|
213
|
-
"unlimit",
|
|
214
|
-
"unsetopt",
|
|
215
|
-
"vared",
|
|
216
|
-
"wait",
|
|
217
|
-
"whence",
|
|
218
|
-
"where",
|
|
219
|
-
"which",
|
|
220
|
-
"zcompile",
|
|
221
|
-
"zformat",
|
|
222
|
-
"zftp",
|
|
223
|
-
"zle",
|
|
224
|
-
"zmodload",
|
|
225
|
-
"zparseopts",
|
|
226
|
-
"zprof",
|
|
227
|
-
"zpty",
|
|
228
|
-
"zregexparse",
|
|
229
|
-
"zsocket",
|
|
230
|
-
"zstyle",
|
|
231
|
-
"ztcp"
|
|
232
|
-
], N = [
|
|
233
|
-
"chcon",
|
|
234
|
-
"chgrp",
|
|
235
|
-
"chown",
|
|
236
|
-
"chmod",
|
|
237
|
-
"cp",
|
|
238
|
-
"dd",
|
|
239
|
-
"df",
|
|
240
|
-
"dir",
|
|
241
|
-
"dircolors",
|
|
242
|
-
"ln",
|
|
243
|
-
"ls",
|
|
244
|
-
"mkdir",
|
|
245
|
-
"mkfifo",
|
|
246
|
-
"mknod",
|
|
247
|
-
"mktemp",
|
|
248
|
-
"mv",
|
|
249
|
-
"realpath",
|
|
250
|
-
"rm",
|
|
251
|
-
"rmdir",
|
|
252
|
-
"shred",
|
|
253
|
-
"sync",
|
|
254
|
-
"touch",
|
|
255
|
-
"truncate",
|
|
256
|
-
"vdir",
|
|
257
|
-
"b2sum",
|
|
258
|
-
"base32",
|
|
259
|
-
"base64",
|
|
260
|
-
"cat",
|
|
261
|
-
"cksum",
|
|
262
|
-
"comm",
|
|
263
|
-
"csplit",
|
|
264
|
-
"cut",
|
|
265
|
-
"expand",
|
|
266
|
-
"fmt",
|
|
267
|
-
"fold",
|
|
268
|
-
"head",
|
|
269
|
-
"join",
|
|
270
|
-
"md5sum",
|
|
271
|
-
"nl",
|
|
272
|
-
"numfmt",
|
|
273
|
-
"od",
|
|
274
|
-
"paste",
|
|
275
|
-
"ptx",
|
|
276
|
-
"pr",
|
|
277
|
-
"sha1sum",
|
|
278
|
-
"sha224sum",
|
|
279
|
-
"sha256sum",
|
|
280
|
-
"sha384sum",
|
|
281
|
-
"sha512sum",
|
|
282
|
-
"shuf",
|
|
283
|
-
"sort",
|
|
284
|
-
"split",
|
|
285
|
-
"sum",
|
|
286
|
-
"tac",
|
|
287
|
-
"tail",
|
|
288
|
-
"tr",
|
|
289
|
-
"tsort",
|
|
290
|
-
"unexpand",
|
|
291
|
-
"uniq",
|
|
292
|
-
"wc",
|
|
293
|
-
"arch",
|
|
294
|
-
"basename",
|
|
295
|
-
"chroot",
|
|
296
|
-
"date",
|
|
297
|
-
"dirname",
|
|
298
|
-
"du",
|
|
299
|
-
"echo",
|
|
300
|
-
"env",
|
|
301
|
-
"expr",
|
|
302
|
-
"factor",
|
|
303
|
-
// "false", // keyword literal already
|
|
304
|
-
"groups",
|
|
305
|
-
"hostid",
|
|
306
|
-
"id",
|
|
307
|
-
"link",
|
|
308
|
-
"logname",
|
|
309
|
-
"nice",
|
|
310
|
-
"nohup",
|
|
311
|
-
"nproc",
|
|
312
|
-
"pathchk",
|
|
313
|
-
"pinky",
|
|
314
|
-
"printenv",
|
|
315
|
-
"printf",
|
|
316
|
-
"pwd",
|
|
317
|
-
"readlink",
|
|
318
|
-
"runcon",
|
|
319
|
-
"seq",
|
|
320
|
-
"sleep",
|
|
321
|
-
"stat",
|
|
322
|
-
"stdbuf",
|
|
323
|
-
"stty",
|
|
324
|
-
"tee",
|
|
325
|
-
"test",
|
|
326
|
-
"timeout",
|
|
327
|
-
// "true", // keyword literal already
|
|
328
|
-
"tty",
|
|
329
|
-
"uname",
|
|
330
|
-
"unlink",
|
|
331
|
-
"uptime",
|
|
332
|
-
"users",
|
|
333
|
-
"who",
|
|
334
|
-
"whoami",
|
|
335
|
-
"yes"
|
|
336
|
-
];
|
|
337
|
-
return {
|
|
338
|
-
name: "Bash",
|
|
339
|
-
aliases: [
|
|
340
|
-
"sh",
|
|
341
|
-
"zsh"
|
|
342
|
-
],
|
|
343
|
-
keywords: {
|
|
344
|
-
$pattern: /\b[a-z][a-z0-9._-]+\b/,
|
|
345
|
-
keyword: b,
|
|
346
|
-
literal: g,
|
|
347
|
-
built_in: [
|
|
348
|
-
...E,
|
|
349
|
-
...S,
|
|
350
|
-
// Shell modifiers
|
|
351
|
-
"set",
|
|
352
|
-
"shopt",
|
|
353
|
-
..._,
|
|
354
|
-
...N
|
|
355
|
-
]
|
|
356
|
-
},
|
|
357
|
-
contains: [
|
|
358
|
-
u,
|
|
359
|
-
// to catch known shells and boost relevancy
|
|
360
|
-
e.SHEBANG(),
|
|
361
|
-
// to catch unknown shells but still highlight the shebang
|
|
362
|
-
h,
|
|
363
|
-
d,
|
|
364
|
-
o,
|
|
365
|
-
i,
|
|
366
|
-
f,
|
|
367
|
-
n,
|
|
368
|
-
r,
|
|
369
|
-
m,
|
|
370
|
-
p,
|
|
371
|
-
t
|
|
372
|
-
]
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
export {
|
|
376
|
-
w as default
|
|
377
|
-
};
|