forked from splunk/vscode-extension-splunk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
407 lines (407 loc) · 14.1 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
{
"name": "splunk",
"version": "0.2.10",
"publisher": "Splunk",
"engines": {
"vscode": "^1.72.0"
},
"license": "MIT",
"displayName": "Splunk Extension",
"description": "Splunk Python Debugging (local, remote), Linting, IntelliSense, Snippets, Templates.",
"categories": [
"Programming Languages",
"Linters",
"Snippets",
"Debuggers",
"Formatters",
"Other"
],
"keywords": [
"splunk",
"python"
],
"galleryBanner": {
"color": "#000000",
"theme": "dark"
},
"main": "./dist/extension.js",
"contributes": {
"languages": [
{
"id": "splunk",
"extensions": [
".conf"
],
"filenamePatterns": [
"*.conf",
"default.meta",
"local.meta"
],
"aliases": [
"Splunk .conf files",
"Splunk",
"Splunk config files"
],
"mimetypes": [
"text/x-code-output"
],
"configuration": "./splunk-language-configuration.json"
},
{
"id": "splunk_search",
"aliases": [
"SPL"
],
"configuration": "./spl-language-configuration.json",
"extensions": [
".splunk-spl"
]
},
{
"id": "splunk-spl-meta",
"aliases": [
"SPL-META"
]
}
],
"grammars": [
{
"language": "splunk",
"scopeName": "source.splunk",
"path": "./syntaxes/splunk.tmLanguage.json"
}
],
"jsonValidation": [
{
"fileMatch": "globalConfig.json",
"url": "https://raw.githubusercontent.com/splunk/addonfactory-ucc-base-ui/main/src/main/webapp/schema/schema.json"
}
],
"configuration": {
"title": "Splunk",
"properties": {
"splunk.spec.FileVersion": {
"type": "string",
"enum": [
"7.3",
"8.0",
"8.1",
"8.2",
"9.0"
],
"order": 0,
"scope": "resource",
"default": "9.0",
"description": "Specifies the version of spec files to use.\nNote: this setting is ignored if you specify a Spec File Path."
},
"splunk.spec.FilePath": {
"type": "string",
"scope": "resource",
"default": "",
"order": 1,
"description": "Specify an absolute path to the Splunk spec files. For example, if Splunk is installed locally, $SPLUNK_HOME/etc/system/README/ can be used where $SPLUNK_HOME is set to the path where Splunk is installed.\nNote: leave this setting blank to use built-in spec files."
},
"splunk.enableSplunkExplorer": {
"type": "boolean",
"description": "Enables the Splunk Explorer in the activity bar.",
"default": true,
"order": 2
},
"splunk.commands.splunkRestUrl": {
"type": "string",
"scope": "resource",
"default": "https://localhost:8089",
"description": "Specify the URL for the Splunk REST API",
"order": 3
},
"splunk.commands.enableCertificateVerification": {
"type": "boolean",
"scope": "resource",
"default": false,
"description": "Enable SSL certificate verification for Splunk",
"order": 4
},
"splunk.commands.token": {
"type": "string",
"scope": "resource",
"default": "",
"order": 5,
"description": "Splunk Enterprise token used for authentication. Refer to the Splunk documentation for more information about tokens at https://docs.splunk.com/Documentation/Splunk/latest/Security/UseAuthTokens"
},
"splunk.reports.SplunkSearchHead": {
"type": "string",
"scope": "resource",
"default": "http://localhost:8000",
"order": 6,
"description": "Specify the Search Head URL used to display reports."
},
"splunk.search.searchOutputMode": {
"type": "string",
"enum": [
"csv",
"json",
"xml"
],
"scope": "resource",
"default": "csv",
"order": 7,
"description": "Controls how Splunk search results are rendered"
},
"splunk.reports.viewRefreshInterval": {
"type": "integer",
"scope": "resource",
"default": 300,
"order": 8,
"description": "Specify an interval, in seconds, to refresh embedded reports."
},
"splunk.spec.trimEqualSignWhitespace": {
"type": "boolean",
"scope": "resource",
"default": false,
"order": 9,
"description": "When auto-completing settings, trim whitespace around the '=' sign. For example, key = value will become key=value.\nNote: changing this setting requires a restart of Visual Studio Code."
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "splunk-bar",
"title": "Splunk",
"icon": "images/splunk.svg"
}
]
},
"views": {
"splunk-bar": [
{
"id": "savedSearches",
"name": "Saved Searches",
"when": "config.splunk.enableSplunkExplorer == true"
},
{
"id": "embeddedReports",
"name": "Report Views",
"when": "config.splunk.enableSplunkExplorer == true"
}
]
},
"menus": {
"commandPalette": [
{
"command": "splunk.embeddedReport.show",
"when": "false"
},
{
"command": "splunk.previewGlobalConfig",
"when": "resourceFilename == globalConfig.json"
}
],
"view/title": [
{
"command": "splunk.savedSearches.refresh",
"group": "navigation",
"when": "view == savedSearches"
},
{
"command": "splunk.embeddedReport.refresh",
"group": "navigation",
"when": "view == embeddedReports"
}
],
"view/item/context": [
{
"command": "splunk.savedSearch.run",
"when": "view == savedSearches && viewItem == savedSearch",
"group": "inline"
},
{
"command": "splunk.embeddedReport.show",
"when": "view == embeddedReports",
"group": "inline"
}
],
"editor/context": [
{
"command": "splunk.previewGlobalConfig",
"when": "resourceFilename == globalConfig.json"
}
],
"editor/title": [
{
"command": "splunk.previewGlobalConfig",
"when": "resourceFilename == globalConfig.json",
"group": "navigation"
}
]
},
"commands": [
{
"command": "splunk.savedSearches.refresh",
"title": "Refresh Saved Searches",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "splunk.savedSearch.run",
"title": "Run Saved Search",
"category": "Splunk",
"icon": {
"light": "resources/light/search.svg",
"dark": "resources/dark/search.svg"
}
},
{
"command": "splunk.search.adhoc",
"title": "Ad-hoc Search",
"category": "Splunk"
},
{
"command": "splunk.embeddedReport.show",
"title": "Show Embedded Report",
"category": "Splunk",
"icon": {
"light": "resources/light/view.svg",
"dark": "resources/dark/view.svg"
}
},
{
"command": "splunk.embeddedReport.refresh",
"title": "Refresh Reports",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "splunk.new.modviz",
"title": "New Custom Visualization",
"category": "Splunk"
},
{
"command": "splunk.new.command",
"title": "New Custom Command",
"category": "Splunk"
},
{
"command": "splunk.new.resthandler",
"title": "New Custom REST Handler",
"category": "Splunk"
},
{
"command": "splunk.previewGlobalConfig",
"title": "Preview globalConfig.json",
"category": "Splunk",
"enablement": "resourceFilename == globalConfig.json"
},
{
"command": "splunk.fullDebugRefresh",
"title": "Trigger Full Debug Refresh",
"category": "Splunk"
},
{
"command": "splunk.notebooks.addVisualizationPreference",
"title": "Add Visualization Preference"
},
{
"command": "splunk.notebooks.openJobInspector",
"title": "Open Job Inspector"
},
{
"command": "splunk.notebooks.openSearchLog",
"title": "Open Search Log"
},
{
"command": "splunk.notebooks.copyJobIdToClipboard",
"title": "Copy Job ID to Clipboard"
},
{
"command": "splunk.notebooks.copyDetection",
"title": "Copy Detection"
}
],
"notebooks": [
{
"id": "splunk-notebook",
"type": "splunk-notebook",
"displayName": "Splunk Notebook",
"selector": [
{
"filenamePattern": "*.splnb"
}
]
}
],
"notebookRenderer": [
{
"id": "splunk-visualization-renderer",
"displayName": "Splunk Visualization Renderer",
"mimeTypes": [
"application/splunk/events"
],
"entrypoint": "./dist/visualization.js"
}
]
},
"activationEvents": [
"onLanguage:splunk",
"onCommand:splunk.search.adhoc",
"onCommand:splunk.savedSearches.refresh",
"onCommand:splunk.savedSearch.run",
"onCommand:splunk.search.saved",
"onCommand:splunk.new.modviz",
"onCommand:splunk.new.command",
"onCommand:splunk.new.resthandler",
"onCommand:splunk.embeddedReport.show",
"onCommand:splunk.previewGlobalConfig",
"onView:savedSearches",
"onView:embeddedReports",
"workspaceContains:**/globalConfig.json"
],
"repository": {
"url": "https://github.com/splunk/vscode-extension",
"type": "git"
},
"icon": "images/icon.png",
"extensionDependencies": [],
"dependencies": {
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@splunk/react-ui": "^4.14.0",
"@splunk/splunk-utils": "^2.2.3",
"@splunk/visualization-context": "^25.3.0",
"@splunk/visualizations": "^25.3.0",
"@types/vscode-notebook-renderer": "^1.72.0",
"axios": ">=0.27.2",
"babel-loader": "^9.1.0",
"react": "^16",
"react-dom": "^16.14.0",
"splunk-sdk": "^1.12.1",
"styled-components": "5",
"ts-loader": "^9.4.2",
"typescript": "^4.2.2"
},
"devDependencies": {
"@types/glob": "^7.1.1",
"@types/node": "^12.12.0",
"@types/vscode": "^1.72.0",
"chai": "^4.3.6",
"eslint": "^8.21.0",
"glob": "^7.1.5",
"mocha": "^10.0.0",
"process": "^0.11.10",
"typescript": "^4.2.2",
"vscode-test": "^1.3.2",
"webpack": "^5.76.0",
"webpack-cli": "^5.0.1"
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"test": "mocha",
"compile": "webpack",
"watch": "webpack --watch --mode none"
}
}