@kg-ui/kg-ui-plus 0.0.1 → 0.0.2
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/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +16 -0
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +4 -0
- package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +26 -0
- package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue2.mjs +49 -0
- package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue2.mjs +94 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue2.mjs +33 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue2.mjs +140 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue2.mjs +131 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/index.vue2.mjs +21 -0
- package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +4 -0
- package/dist/es/KgCopilot/dialogue.vue.mjs +7 -0
- package/dist/es/KgCopilot/dialogue.vue2.mjs +131 -0
- package/dist/es/KgCopilot/dialogue.vue3.mjs +4 -0
- package/dist/es/KgCopilot/index.vue.mjs +7 -0
- package/dist/es/KgCopilot/index.vue2.mjs +49 -0
- package/dist/es/KgCopilot/index.vue3.mjs +4 -0
- package/dist/es/KgCopilot/mdInCode.mjs +56 -0
- package/dist/es/KgCopilot/readMd.vue.mjs +7 -0
- package/dist/es/KgCopilot/readMd.vue2.mjs +87 -0
- package/dist/es/KgCopilot/readMd.vue3.mjs +4 -0
- package/dist/es/ReIcon/index.mjs +11 -0
- package/dist/es/ReIcon/src/iconfont.mjs +46 -0
- package/dist/es/ReIcon/src/iconifyIconOffline.mjs +30 -0
- package/dist/es/ReIcon/src/iconifyIconOnline.mjs +29 -0
- package/dist/es/_virtual/___vite-browser-external.mjs +6 -0
- package/dist/es/_virtual/__vite-browser-external.mjs +4 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +34 -0
- package/dist/es/_virtual/_plugin-vue_export-helper.mjs +10 -0
- package/dist/es/_virtual/index.mjs +13 -0
- package/dist/es/api/project.mjs +51 -0
- package/dist/es/directives/heighlight/index.mjs +69 -0
- package/dist/es/directives/index.mjs +4 -0
- package/dist/es/home/LFilter/FilterArea.vue.mjs +7 -0
- package/dist/es/home/LFilter/FilterArea.vue2.mjs +507 -0
- package/dist/es/home/LFilter/FilterArea.vue3.mjs +4 -0
- package/dist/es/home/LFilter/FilterHead.vue.mjs +129 -0
- package/dist/es/home/LFilter/FilterHead.vue2.mjs +4 -0
- package/dist/es/home/LFilter/FilterItem.vue.mjs +7 -0
- package/dist/es/home/LFilter/FilterItem.vue2.mjs +114 -0
- package/dist/es/home/LFilter/FilterItem.vue3.mjs +4 -0
- package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +7 -0
- package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +171 -0
- package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +4 -0
- package/dist/es/home/LFilter/index.vue.mjs +17 -0
- package/dist/es/home/LFilter/index.vue2.mjs +4 -0
- package/dist/es/home/LProject/index.vue.mjs +7 -0
- package/dist/es/home/LProject/index.vue2.mjs +70 -0
- package/dist/es/home/LProject/index.vue3.mjs +4 -0
- package/dist/es/home/index.vue.mjs +7 -0
- package/dist/es/home/index.vue2.mjs +80 -0
- package/dist/es/home/index.vue3.mjs +4 -0
- package/dist/es/index.mjs +36 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/check.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/circle-plus.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/close.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/microphone.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/paperclip.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/promotion.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/upload.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/copy-simple.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/speaker-high-light.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-down-thin.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-up-thin.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/warning-bold.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/add-line.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-down-s-line.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-up-s-line.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/check-fill.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/download-line.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify_vue@4.0.0_vue@3.2.45/node_modules/@iconify/vue/dist/iconify.mjs +1702 -0
- package/dist/es/node_modules/.pnpm/@iconify_vue@4.0.0_vue@3.2.45/node_modules/@iconify/vue/dist/offline.mjs +436 -0
- package/dist/es/node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs +70 -0
- package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.mjs +16 -0
- package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.mjs +36 -0
- package/dist/es/node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.mjs +48 -0
- package/dist/es/node_modules/.pnpm/dompurify@3.0.10/node_modules/dompurify/dist/purify.es.mjs +949 -0
- package/dist/es/node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.mjs +22 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.mjs +4 -0
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +72 -0
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +6 -0
- package/dist/es/node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.mjs +320 -0
- package/dist/es/node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.mjs +14 -0
- package/dist/es/node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.mjs +19 -0
- package/dist/es/node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.mjs +11 -0
- package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.mjs +21 -0
- package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.mjs +48 -0
- package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +8 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/core.mjs +5 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/apache.mjs +91 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/bash.mjs +377 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/basic.mjs +221 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/c.mjs +280 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/css.mjs +732 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dart.mjs +247 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/django.mjs +47 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dns.mjs +71 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dos.mjs +160 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dust.mjs +38 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/erlang.mjs +176 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/go.mjs +135 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/http.mjs +89 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/java.mjs +254 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/javascript.mjs +698 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/json.mjs +40 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/markdown.mjs +227 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/nginx.mjs +144 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/php.mjs +589 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/python.mjs +414 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/ruby.mjs +414 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/stylus.mjs +766 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/swift.mjs +832 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/typescript.mjs +788 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/xml.mjs +227 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/lib/core.mjs +1580 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/styles/paraiso-light.css.mjs +4 -0
- package/dist/es/node_modules/.pnpm/marked@12.0.1/node_modules/marked/lib/marked.esm.mjs +2045 -0
- package/dist/es/node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.mjs +514 -0
- package/dist/es/node_modules/.pnpm/pinyin-match@1.2.4/node_modules/pinyin-match/es/main.mjs +124 -0
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/formats.mjs +22 -0
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/index.mjs +14 -0
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/parse.mjs +199 -0
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/stringify.mjs +262 -0
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/utils.mjs +196 -0
- package/dist/es/node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.mjs +54 -0
- package/dist/es/node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.mjs +115 -0
- package/dist/es/store/index.mjs +8 -0
- package/dist/es/store/modules/copilot.mjs +108 -0
- package/dist/es/store/modules/filters.mjs +346 -0
- package/dist/es/store/modules/types.mjs +19 -0
- package/dist/es/style/index.scss.mjs +4 -0
- package/dist/es/style/tailwind.css.mjs +4 -0
- package/dist/es/style.css +1 -0
- package/dist/es/utils/home.mjs +129 -0
- package/dist/es/utils/http/index.mjs +90 -0
- package/dist/es/utils/message.mjs +42 -0
- package/package.json +1 -1
@@ -0,0 +1,247 @@
|
|
1
|
+
function dart(hljs) {
|
2
|
+
const SUBST = {
|
3
|
+
className: "subst",
|
4
|
+
variants: [{ begin: "\\$[A-Za-z0-9_]+" }]
|
5
|
+
};
|
6
|
+
const BRACED_SUBST = {
|
7
|
+
className: "subst",
|
8
|
+
variants: [
|
9
|
+
{
|
10
|
+
begin: /\$\{/,
|
11
|
+
end: /\}/
|
12
|
+
}
|
13
|
+
],
|
14
|
+
keywords: "true false null this is new super"
|
15
|
+
};
|
16
|
+
const STRING = {
|
17
|
+
className: "string",
|
18
|
+
variants: [
|
19
|
+
{
|
20
|
+
begin: "r'''",
|
21
|
+
end: "'''"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
begin: 'r"""',
|
25
|
+
end: '"""'
|
26
|
+
},
|
27
|
+
{
|
28
|
+
begin: "r'",
|
29
|
+
end: "'",
|
30
|
+
illegal: "\\n"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
begin: 'r"',
|
34
|
+
end: '"',
|
35
|
+
illegal: "\\n"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
begin: "'''",
|
39
|
+
end: "'''",
|
40
|
+
contains: [
|
41
|
+
hljs.BACKSLASH_ESCAPE,
|
42
|
+
SUBST,
|
43
|
+
BRACED_SUBST
|
44
|
+
]
|
45
|
+
},
|
46
|
+
{
|
47
|
+
begin: '"""',
|
48
|
+
end: '"""',
|
49
|
+
contains: [
|
50
|
+
hljs.BACKSLASH_ESCAPE,
|
51
|
+
SUBST,
|
52
|
+
BRACED_SUBST
|
53
|
+
]
|
54
|
+
},
|
55
|
+
{
|
56
|
+
begin: "'",
|
57
|
+
end: "'",
|
58
|
+
illegal: "\\n",
|
59
|
+
contains: [
|
60
|
+
hljs.BACKSLASH_ESCAPE,
|
61
|
+
SUBST,
|
62
|
+
BRACED_SUBST
|
63
|
+
]
|
64
|
+
},
|
65
|
+
{
|
66
|
+
begin: '"',
|
67
|
+
end: '"',
|
68
|
+
illegal: "\\n",
|
69
|
+
contains: [
|
70
|
+
hljs.BACKSLASH_ESCAPE,
|
71
|
+
SUBST,
|
72
|
+
BRACED_SUBST
|
73
|
+
]
|
74
|
+
}
|
75
|
+
]
|
76
|
+
};
|
77
|
+
BRACED_SUBST.contains = [
|
78
|
+
hljs.C_NUMBER_MODE,
|
79
|
+
STRING
|
80
|
+
];
|
81
|
+
const BUILT_IN_TYPES = [
|
82
|
+
// dart:core
|
83
|
+
"Comparable",
|
84
|
+
"DateTime",
|
85
|
+
"Duration",
|
86
|
+
"Function",
|
87
|
+
"Iterable",
|
88
|
+
"Iterator",
|
89
|
+
"List",
|
90
|
+
"Map",
|
91
|
+
"Match",
|
92
|
+
"Object",
|
93
|
+
"Pattern",
|
94
|
+
"RegExp",
|
95
|
+
"Set",
|
96
|
+
"Stopwatch",
|
97
|
+
"String",
|
98
|
+
"StringBuffer",
|
99
|
+
"StringSink",
|
100
|
+
"Symbol",
|
101
|
+
"Type",
|
102
|
+
"Uri",
|
103
|
+
"bool",
|
104
|
+
"double",
|
105
|
+
"int",
|
106
|
+
"num",
|
107
|
+
// dart:html
|
108
|
+
"Element",
|
109
|
+
"ElementList"
|
110
|
+
];
|
111
|
+
const NULLABLE_BUILT_IN_TYPES = BUILT_IN_TYPES.map((e) => `${e}?`);
|
112
|
+
const BASIC_KEYWORDS = [
|
113
|
+
"abstract",
|
114
|
+
"as",
|
115
|
+
"assert",
|
116
|
+
"async",
|
117
|
+
"await",
|
118
|
+
"base",
|
119
|
+
"break",
|
120
|
+
"case",
|
121
|
+
"catch",
|
122
|
+
"class",
|
123
|
+
"const",
|
124
|
+
"continue",
|
125
|
+
"covariant",
|
126
|
+
"default",
|
127
|
+
"deferred",
|
128
|
+
"do",
|
129
|
+
"dynamic",
|
130
|
+
"else",
|
131
|
+
"enum",
|
132
|
+
"export",
|
133
|
+
"extends",
|
134
|
+
"extension",
|
135
|
+
"external",
|
136
|
+
"factory",
|
137
|
+
"false",
|
138
|
+
"final",
|
139
|
+
"finally",
|
140
|
+
"for",
|
141
|
+
"Function",
|
142
|
+
"get",
|
143
|
+
"hide",
|
144
|
+
"if",
|
145
|
+
"implements",
|
146
|
+
"import",
|
147
|
+
"in",
|
148
|
+
"interface",
|
149
|
+
"is",
|
150
|
+
"late",
|
151
|
+
"library",
|
152
|
+
"mixin",
|
153
|
+
"new",
|
154
|
+
"null",
|
155
|
+
"on",
|
156
|
+
"operator",
|
157
|
+
"part",
|
158
|
+
"required",
|
159
|
+
"rethrow",
|
160
|
+
"return",
|
161
|
+
"sealed",
|
162
|
+
"set",
|
163
|
+
"show",
|
164
|
+
"static",
|
165
|
+
"super",
|
166
|
+
"switch",
|
167
|
+
"sync",
|
168
|
+
"this",
|
169
|
+
"throw",
|
170
|
+
"true",
|
171
|
+
"try",
|
172
|
+
"typedef",
|
173
|
+
"var",
|
174
|
+
"void",
|
175
|
+
"when",
|
176
|
+
"while",
|
177
|
+
"with",
|
178
|
+
"yield"
|
179
|
+
];
|
180
|
+
const KEYWORDS = {
|
181
|
+
keyword: BASIC_KEYWORDS,
|
182
|
+
built_in: BUILT_IN_TYPES.concat(NULLABLE_BUILT_IN_TYPES).concat([
|
183
|
+
// dart:core
|
184
|
+
"Never",
|
185
|
+
"Null",
|
186
|
+
"dynamic",
|
187
|
+
"print",
|
188
|
+
// dart:html
|
189
|
+
"document",
|
190
|
+
"querySelector",
|
191
|
+
"querySelectorAll",
|
192
|
+
"window"
|
193
|
+
]),
|
194
|
+
$pattern: /[A-Za-z][A-Za-z0-9_]*\??/
|
195
|
+
};
|
196
|
+
return {
|
197
|
+
name: "Dart",
|
198
|
+
keywords: KEYWORDS,
|
199
|
+
contains: [
|
200
|
+
STRING,
|
201
|
+
hljs.COMMENT(
|
202
|
+
/\/\*\*(?!\/)/,
|
203
|
+
/\*\//,
|
204
|
+
{
|
205
|
+
subLanguage: "markdown",
|
206
|
+
relevance: 0
|
207
|
+
}
|
208
|
+
),
|
209
|
+
hljs.COMMENT(
|
210
|
+
/\/{3,} ?/,
|
211
|
+
/$/,
|
212
|
+
{ contains: [
|
213
|
+
{
|
214
|
+
subLanguage: "markdown",
|
215
|
+
begin: ".",
|
216
|
+
end: "$",
|
217
|
+
relevance: 0
|
218
|
+
}
|
219
|
+
] }
|
220
|
+
),
|
221
|
+
hljs.C_LINE_COMMENT_MODE,
|
222
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
223
|
+
{
|
224
|
+
className: "class",
|
225
|
+
beginKeywords: "class interface",
|
226
|
+
end: /\{/,
|
227
|
+
excludeEnd: true,
|
228
|
+
contains: [
|
229
|
+
{ beginKeywords: "extends implements" },
|
230
|
+
hljs.UNDERSCORE_TITLE_MODE
|
231
|
+
]
|
232
|
+
},
|
233
|
+
hljs.C_NUMBER_MODE,
|
234
|
+
{
|
235
|
+
className: "meta",
|
236
|
+
begin: "@[A-Za-z]+"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
begin: "=>"
|
240
|
+
// No markup, just a relevance booster
|
241
|
+
}
|
242
|
+
]
|
243
|
+
};
|
244
|
+
}
|
245
|
+
export {
|
246
|
+
dart as default
|
247
|
+
};
|
@@ -0,0 +1,47 @@
|
|
1
|
+
function django(hljs) {
|
2
|
+
const FILTER = {
|
3
|
+
begin: /\|[A-Za-z]+:?/,
|
4
|
+
keywords: { name: "truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone" },
|
5
|
+
contains: [
|
6
|
+
hljs.QUOTE_STRING_MODE,
|
7
|
+
hljs.APOS_STRING_MODE
|
8
|
+
]
|
9
|
+
};
|
10
|
+
return {
|
11
|
+
name: "Django",
|
12
|
+
aliases: ["jinja"],
|
13
|
+
case_insensitive: true,
|
14
|
+
subLanguage: "xml",
|
15
|
+
contains: [
|
16
|
+
hljs.COMMENT(/\{%\s*comment\s*%\}/, /\{%\s*endcomment\s*%\}/),
|
17
|
+
hljs.COMMENT(/\{#/, /#\}/),
|
18
|
+
{
|
19
|
+
className: "template-tag",
|
20
|
+
begin: /\{%/,
|
21
|
+
end: /%\}/,
|
22
|
+
contains: [
|
23
|
+
{
|
24
|
+
className: "name",
|
25
|
+
begin: /\w+/,
|
26
|
+
keywords: { name: "comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim" },
|
27
|
+
starts: {
|
28
|
+
endsWithParent: true,
|
29
|
+
keywords: "in by as",
|
30
|
+
contains: [FILTER],
|
31
|
+
relevance: 0
|
32
|
+
}
|
33
|
+
}
|
34
|
+
]
|
35
|
+
},
|
36
|
+
{
|
37
|
+
className: "template-variable",
|
38
|
+
begin: /\{\{/,
|
39
|
+
end: /\}\}/,
|
40
|
+
contains: [FILTER]
|
41
|
+
}
|
42
|
+
]
|
43
|
+
};
|
44
|
+
}
|
45
|
+
export {
|
46
|
+
django as default
|
47
|
+
};
|
@@ -0,0 +1,71 @@
|
|
1
|
+
function dns(hljs) {
|
2
|
+
const KEYWORDS = [
|
3
|
+
"IN",
|
4
|
+
"A",
|
5
|
+
"AAAA",
|
6
|
+
"AFSDB",
|
7
|
+
"APL",
|
8
|
+
"CAA",
|
9
|
+
"CDNSKEY",
|
10
|
+
"CDS",
|
11
|
+
"CERT",
|
12
|
+
"CNAME",
|
13
|
+
"DHCID",
|
14
|
+
"DLV",
|
15
|
+
"DNAME",
|
16
|
+
"DNSKEY",
|
17
|
+
"DS",
|
18
|
+
"HIP",
|
19
|
+
"IPSECKEY",
|
20
|
+
"KEY",
|
21
|
+
"KX",
|
22
|
+
"LOC",
|
23
|
+
"MX",
|
24
|
+
"NAPTR",
|
25
|
+
"NS",
|
26
|
+
"NSEC",
|
27
|
+
"NSEC3",
|
28
|
+
"NSEC3PARAM",
|
29
|
+
"PTR",
|
30
|
+
"RRSIG",
|
31
|
+
"RP",
|
32
|
+
"SIG",
|
33
|
+
"SOA",
|
34
|
+
"SRV",
|
35
|
+
"SSHFP",
|
36
|
+
"TA",
|
37
|
+
"TKEY",
|
38
|
+
"TLSA",
|
39
|
+
"TSIG",
|
40
|
+
"TXT"
|
41
|
+
];
|
42
|
+
return {
|
43
|
+
name: "DNS Zone",
|
44
|
+
aliases: [
|
45
|
+
"bind",
|
46
|
+
"zone"
|
47
|
+
],
|
48
|
+
keywords: KEYWORDS,
|
49
|
+
contains: [
|
50
|
+
hljs.COMMENT(";", "$", { relevance: 0 }),
|
51
|
+
{
|
52
|
+
className: "meta",
|
53
|
+
begin: /^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/
|
54
|
+
},
|
55
|
+
// IPv6
|
56
|
+
{
|
57
|
+
className: "number",
|
58
|
+
begin: "((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"
|
59
|
+
},
|
60
|
+
// IPv4
|
61
|
+
{
|
62
|
+
className: "number",
|
63
|
+
begin: "((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"
|
64
|
+
},
|
65
|
+
hljs.inherit(hljs.NUMBER_MODE, { begin: /\b\d+[dhwm]?/ })
|
66
|
+
]
|
67
|
+
};
|
68
|
+
}
|
69
|
+
export {
|
70
|
+
dns as default
|
71
|
+
};
|
@@ -0,0 +1,160 @@
|
|
1
|
+
function dos(hljs) {
|
2
|
+
const COMMENT = hljs.COMMENT(
|
3
|
+
/^\s*@?rem\b/,
|
4
|
+
/$/,
|
5
|
+
{ relevance: 10 }
|
6
|
+
);
|
7
|
+
const LABEL = {
|
8
|
+
className: "symbol",
|
9
|
+
begin: "^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",
|
10
|
+
relevance: 0
|
11
|
+
};
|
12
|
+
const KEYWORDS = [
|
13
|
+
"if",
|
14
|
+
"else",
|
15
|
+
"goto",
|
16
|
+
"for",
|
17
|
+
"in",
|
18
|
+
"do",
|
19
|
+
"call",
|
20
|
+
"exit",
|
21
|
+
"not",
|
22
|
+
"exist",
|
23
|
+
"errorlevel",
|
24
|
+
"defined",
|
25
|
+
"equ",
|
26
|
+
"neq",
|
27
|
+
"lss",
|
28
|
+
"leq",
|
29
|
+
"gtr",
|
30
|
+
"geq"
|
31
|
+
];
|
32
|
+
const BUILT_INS = [
|
33
|
+
"prn",
|
34
|
+
"nul",
|
35
|
+
"lpt3",
|
36
|
+
"lpt2",
|
37
|
+
"lpt1",
|
38
|
+
"con",
|
39
|
+
"com4",
|
40
|
+
"com3",
|
41
|
+
"com2",
|
42
|
+
"com1",
|
43
|
+
"aux",
|
44
|
+
"shift",
|
45
|
+
"cd",
|
46
|
+
"dir",
|
47
|
+
"echo",
|
48
|
+
"setlocal",
|
49
|
+
"endlocal",
|
50
|
+
"set",
|
51
|
+
"pause",
|
52
|
+
"copy",
|
53
|
+
"append",
|
54
|
+
"assoc",
|
55
|
+
"at",
|
56
|
+
"attrib",
|
57
|
+
"break",
|
58
|
+
"cacls",
|
59
|
+
"cd",
|
60
|
+
"chcp",
|
61
|
+
"chdir",
|
62
|
+
"chkdsk",
|
63
|
+
"chkntfs",
|
64
|
+
"cls",
|
65
|
+
"cmd",
|
66
|
+
"color",
|
67
|
+
"comp",
|
68
|
+
"compact",
|
69
|
+
"convert",
|
70
|
+
"date",
|
71
|
+
"dir",
|
72
|
+
"diskcomp",
|
73
|
+
"diskcopy",
|
74
|
+
"doskey",
|
75
|
+
"erase",
|
76
|
+
"fs",
|
77
|
+
"find",
|
78
|
+
"findstr",
|
79
|
+
"format",
|
80
|
+
"ftype",
|
81
|
+
"graftabl",
|
82
|
+
"help",
|
83
|
+
"keyb",
|
84
|
+
"label",
|
85
|
+
"md",
|
86
|
+
"mkdir",
|
87
|
+
"mode",
|
88
|
+
"more",
|
89
|
+
"move",
|
90
|
+
"path",
|
91
|
+
"pause",
|
92
|
+
"print",
|
93
|
+
"popd",
|
94
|
+
"pushd",
|
95
|
+
"promt",
|
96
|
+
"rd",
|
97
|
+
"recover",
|
98
|
+
"rem",
|
99
|
+
"rename",
|
100
|
+
"replace",
|
101
|
+
"restore",
|
102
|
+
"rmdir",
|
103
|
+
"shift",
|
104
|
+
"sort",
|
105
|
+
"start",
|
106
|
+
"subst",
|
107
|
+
"time",
|
108
|
+
"title",
|
109
|
+
"tree",
|
110
|
+
"type",
|
111
|
+
"ver",
|
112
|
+
"verify",
|
113
|
+
"vol",
|
114
|
+
// winutils
|
115
|
+
"ping",
|
116
|
+
"net",
|
117
|
+
"ipconfig",
|
118
|
+
"taskkill",
|
119
|
+
"xcopy",
|
120
|
+
"ren",
|
121
|
+
"del"
|
122
|
+
];
|
123
|
+
return {
|
124
|
+
name: "Batch file (DOS)",
|
125
|
+
aliases: [
|
126
|
+
"bat",
|
127
|
+
"cmd"
|
128
|
+
],
|
129
|
+
case_insensitive: true,
|
130
|
+
illegal: /\/\*/,
|
131
|
+
keywords: {
|
132
|
+
keyword: KEYWORDS,
|
133
|
+
built_in: BUILT_INS
|
134
|
+
},
|
135
|
+
contains: [
|
136
|
+
{
|
137
|
+
className: "variable",
|
138
|
+
begin: /%%[^ ]|%[^ ]+?%|![^ ]+?!/
|
139
|
+
},
|
140
|
+
{
|
141
|
+
className: "function",
|
142
|
+
begin: LABEL.begin,
|
143
|
+
end: "goto:eof",
|
144
|
+
contains: [
|
145
|
+
hljs.inherit(hljs.TITLE_MODE, { begin: "([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*" }),
|
146
|
+
COMMENT
|
147
|
+
]
|
148
|
+
},
|
149
|
+
{
|
150
|
+
className: "number",
|
151
|
+
begin: "\\b\\d+",
|
152
|
+
relevance: 0
|
153
|
+
},
|
154
|
+
COMMENT
|
155
|
+
]
|
156
|
+
};
|
157
|
+
}
|
158
|
+
export {
|
159
|
+
dos as default
|
160
|
+
};
|
@@ -0,0 +1,38 @@
|
|
1
|
+
function dust(hljs) {
|
2
|
+
const EXPRESSION_KEYWORDS = "if eq ne lt lte gt gte select default math sep";
|
3
|
+
return {
|
4
|
+
name: "Dust",
|
5
|
+
aliases: ["dst"],
|
6
|
+
case_insensitive: true,
|
7
|
+
subLanguage: "xml",
|
8
|
+
contains: [
|
9
|
+
{
|
10
|
+
className: "template-tag",
|
11
|
+
begin: /\{[#\/]/,
|
12
|
+
end: /\}/,
|
13
|
+
illegal: /;/,
|
14
|
+
contains: [
|
15
|
+
{
|
16
|
+
className: "name",
|
17
|
+
begin: /[a-zA-Z\.-]+/,
|
18
|
+
starts: {
|
19
|
+
endsWithParent: true,
|
20
|
+
relevance: 0,
|
21
|
+
contains: [hljs.QUOTE_STRING_MODE]
|
22
|
+
}
|
23
|
+
}
|
24
|
+
]
|
25
|
+
},
|
26
|
+
{
|
27
|
+
className: "template-variable",
|
28
|
+
begin: /\{/,
|
29
|
+
end: /\}/,
|
30
|
+
illegal: /;/,
|
31
|
+
keywords: EXPRESSION_KEYWORDS
|
32
|
+
}
|
33
|
+
]
|
34
|
+
};
|
35
|
+
}
|
36
|
+
export {
|
37
|
+
dust as default
|
38
|
+
};
|