-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
600 lines (600 loc) · 21.4 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
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
{
"version": "0.6.0",
"name": "radicle",
"displayName": "Radicle",
"description": "Bring support for the Radicle network to your VS code.",
"galleryBanner": {
"color": "#0A0D10",
"theme": "dark"
},
"icon": "assets/marketplace-icon.png",
"publisher": "radicle-ide-plugins-team",
"author": "Konstantinos Maninakis <[email protected]>",
"contributors": [
"Konstantinos Maninakis <[email protected]>"
],
"license": "./LICENSE",
"repository": "https://github.com/cytechmobile/radicle-vscode-extension",
"bugs": "https://app.radicle.at/nodes/seed.radicle.at/rad:z3Makm6fsQQXmpSFE43DZqwupaEhk/issues",
"pricing": "Free",
"engines": {
"vscode": "^1.91.0",
"npm": "^7"
},
"keywords": [
"radicle",
"git"
],
"categories": [
"SCM Providers"
],
"scripts": {
"preinstall": "npx -y only-allow pnpm",
"vscode:prepublish": "npm run verify-deps && npm run lint && npm run test && npm run build",
"verify-deps": "npx npm-run-all -pl verify-deps:*",
"verify-deps:extension": "npx --yes pnpm@latest i --frozen-lockfile --prefer-offline",
"verify-deps:webviews": "cd ./src/webviews && npm run verify-deps",
"compile:extension": "esbuild ./src/extension.ts --bundle --outfile=./dist/extension.js --external:vscode --format=cjs --platform=node --target=es2020",
"build": "run-p -l build:*",
"build:extension": "npm run compile:extension -- --minify",
"build:webviews": "cd ./src/webviews && npm run build",
"dev": "npm run verify-deps && run-s dev:*",
"dev:webviews": "cd ./src/webviews && npm run dev",
"dev:extension": "npm run compile:extension -- --sourcemap --watch",
"lint": "run-p lint:*",
"lint:extension": "eslint . --ext .vue,.ts,.tsx,.js,.jsx --max-warnings 0 --cache --cache-location node_modules/.cache/eslint",
"lint:webviews": "cd ./src/webviews && npm run lintfix",
"test": "npm run test:typings && npm run test:unit && npm run test:e2e",
"test:typings": "run-p test:typings:*",
"test:typings:extension": "tsc --noEmit",
"test:typings:webviews": "cd ./src/webviews && npm run type-check",
"test:unit": "echo \"Unit testing not yet implemented.\"",
"test:e2e": "echo \"End-to-end testing not yet implemented.\""
},
"main": "./dist/extension.js",
"activationEvents": [
"onWebviewPanel:webview-patch-detail"
],
"contributes": {
"commands": [
{
"command": "radicle.troubleshootRadCliInstallation",
"title": "Troubleshoot Radicle CLI (a.k.a. `rad`) Installation",
"shortTitle": "Troubleshoot rad CLI",
"category": "Radicle",
"icon": "$(wand)",
"enablement": "!radicle.isRadCliInstalled"
},
{
"command": "radicle.sync",
"title": "Synchronize Local and Network Changes",
"shortTitle": "Sync",
"category": "Radicle",
"icon": "$(rad-sync)",
"enablement": "radicle.isRadInitialized"
},
{
"command": "radicle.fetch",
"title": "Fetch Latest Changes from the Network",
"shortTitle": "Fetch",
"category": "Radicle",
"icon": "$(rad-pull)",
"enablement": "radicle.isRadInitialized"
},
{
"command": "radicle.announce",
"title": "Announce Local Changes to the Network",
"shortTitle": "Announce",
"category": "Radicle",
"icon": "$(rad-push)",
"enablement": "radicle.isRadInitialized"
},
{
"command": "radicle.clone",
"title": "Clone a Radicle Repository Locally",
"shortTitle": "Clone",
"category": "Radicle",
"icon": "$(rad-clone)"
},
{
"command": "radicle.showExtensionLog",
"title": "Show Everything Logged in the Output Panel",
"shortTitle": "Extension log",
"category": "Radicle",
"icon": "$(output)"
},
{
"command": "radicle.deAuthCurrentIdentity",
"title": "De-authenticate / Re-seal the Currently Used Radicle Identity",
"shortTitle": "De-auth",
"category": "Radicle",
"icon": "$(sign-out)"
},
{
"command": "radicle.collapsePatches",
"title": "Collapse All Items in Patches View",
"shortTitle": "Collapse Patches",
"category": "Radicle",
"icon": "$(collapse-all)",
"enablement": "radicle.isRadInitialized"
},
{
"command": "radicle.refreshAllPatches",
"title": "Refresh All Patch Data",
"shortTitle": "Refresh Patches",
"category": "Radicle",
"icon": "$(refresh)",
"enablement": "radicle.isRadInitialized"
},
{
"command": "radicle.refreshOnePatch",
"title": "Refresh Patch Data",
"shortTitle": "Refresh Patch",
"category": "Radicle",
"icon": "$(refresh)",
"enablement": "radicle.isRadInitialized"
},
{
"command": "radicle.viewPatchDetails",
"title": "Open Patch Details",
"shortTitle": "Patch Details",
"category": "Radicle",
"icon": "$(preview)",
"enablement": "radicle.isRadInitialized"
},
{
"command": "radicle.checkoutPatch",
"title": "Check Out Patch Branch",
"shortTitle": "Check Out Patch",
"category": "Radicle",
"icon": "$(check)"
},
{
"command": "radicle.checkoutDefaultBranch",
"title": "Check Out Default Git Branch",
"shortTitle": "Check Out Default",
"category": "Radicle",
"icon": "$(home)"
},
{
"command": "radicle.copyPatchId",
"title": "Copy Patch Identifier to Clipboard",
"shortTitle": "Copy id",
"category": "Radicle",
"icon": "$(copy)"
},
{
"command": "radicle.openOriginalVersionOfPatchedFile",
"title": "Open Original Version",
"shortTitle": "Open Original",
"category": "Radicle",
"icon": "$(go-to-file)"
},
{
"command": "radicle.openChangedVersionOfPatchedFile",
"title": "Open Changed Version",
"shortTitle": "Open Changed",
"category": "Radicle",
"icon": "$(go-to-file)"
},
{
"command": "radicle.draftizePatch",
"title": "Change Patch Status to Draft",
"shortTitle": "Draft",
"category": "Radicle",
"icon": "git-pull-request-draft",
"enablement": "radicle.isRadInitialized"
},
{
"command": "radicle.openPatch",
"title": "Change Patch Status to Open",
"shortTitle": "Open",
"category": "Radicle",
"icon": "git-pull-request",
"enablement": "radicle.isRadInitialized"
},
{
"command": "radicle.archivePatch",
"title": "Change Patch Status to Archived",
"shortTitle": "Archive",
"category": "Radicle",
"icon": "git-pull-request-closed",
"enablement": "radicle.isRadInitialized"
}
],
"menus": {
"commandPalette": [
{
"command": "radicle.viewPatchDetails",
"when": "false"
},
{
"command": "radicle.refreshOnePatch",
"when": "false"
},
{
"command": "radicle.checkoutPatch",
"when": "false"
},
{
"command": "radicle.copyPatchId",
"when": "false"
},
{
"command": "radicle.openOriginalVersionOfPatchedFile",
"when": "false"
},
{
"command": "radicle.openChangedVersionOfPatchedFile",
"when": "false"
},
{
"command": "radicle.draftizePatch",
"when": "false"
},
{
"command": "radicle.openPatch",
"when": "false"
},
{
"command": "radicle.archivePatch",
"when": "false"
}
],
"scm/title": [
{
"command": "radicle.sync",
"group": "navigation",
"when": "radicle.isRadInitialized"
},
{
"submenu": "submenu-scm-radicle"
}
],
"view/title": [
{
"command": "radicle.refreshAllPatches",
"when": "view == patches-view",
"group": "navigation@1"
}
],
"view/item/context": [
{
"command": "radicle.viewPatchDetails",
"when": "view == patches-view && viewItem =~ /patch/",
"group": "inline@1"
},
{
"command": "radicle.viewPatchDetails",
"when": "view == patches-view && viewItem =~ /patch/",
"group": "contextMenu.A@1"
},
{
"command": "radicle.refreshOnePatch",
"when": "view == patches-view && viewItem =~ /patch/",
"group": "contextMenu.A@2"
},
{
"command": "radicle.checkoutPatch",
"when": "view == patches-view && viewItem =~ /patch/ && viewItem =~ /:checked-out-false/",
"group": "inline@2"
},
{
"command": "radicle.checkoutPatch",
"when": "view == patches-view && viewItem =~ /patch/ && viewItem =~ /:checked-out-false/",
"group": "contextMenu.B@1"
},
{
"command": "radicle.checkoutDefaultBranch",
"when": "view == patches-view && viewItem =~ /patch/ && viewItem =~ /:checked-out-true/",
"group": "contextMenu.B@1"
},
{
"command": "radicle.draftizePatch",
"when": "view == patches-view && viewItem =~ /patch/ && viewItem =~ /:status-editable/ && (viewItem =~ /:status-open/ || viewItem =~ /:status-archived/)",
"group": "contextMenu.C@1"
},
{
"command": "radicle.openPatch",
"when": "view == patches-view && viewItem =~ /patch/ && viewItem =~ /:status-editable/ && (viewItem =~ /:status-draft/ || viewItem =~ /:status-archived/)",
"group": "contextMenu.C@2"
},
{
"command": "radicle.archivePatch",
"when": "view == patches-view && viewItem =~ /patch/ && viewItem =~ /:status-editable/ && (viewItem =~ /:status-draft/ || viewItem =~ /:status-open/)",
"group": "contextMenu.C@3"
},
{
"command": "radicle.copyPatchId",
"when": "view == patches-view && viewItem =~ /patch/",
"group": "contextMenu.D@1"
},
{
"command": "radicle.checkoutDefaultBranch",
"when": "view == patches-view && viewItem =~ /patch/ && viewItem =~ /:checked-out-true/",
"group": "inline@2"
},
{
"command": "radicle.openOriginalVersionOfPatchedFile",
"when": "view == patches-view && viewItem =~ /filechange/ && viewItem =~ /:(deleted|modified|copied|moved)/",
"group": "contextMenu.diff@1"
},
{
"command": "radicle.openChangedVersionOfPatchedFile",
"when": "view == patches-view && viewItem =~ /filechange/ && viewItem =~ /:(added|modified|copied|moved)/",
"group": "contextMenu.diff@2"
}
],
"submenu-scm-radicle": [
{
"command": "radicle.sync",
"when": "radicle.isRadInitialized"
},
{
"command": "radicle.fetch",
"when": "radicle.isRadInitialized"
},
{
"command": "radicle.announce",
"when": "radicle.isRadInitialized"
},
{
"command": "radicle.clone"
}
]
},
"submenus": [
{
"id": "submenu-scm-radicle",
"label": "Radicle",
"icon": "$(radicle-logo)"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "radicle",
"title": "Radicle",
"icon": "$(radicle-logo)"
}
]
},
"views": {
"radicle": [
{
"id": "getting-started",
"contextualTitle": "Radicle",
"name": "Getting Started",
"icon": "$(radicle-logo)",
"initialSize": 1,
"when": "!radicle.isRadCliInstalled || !radicle.isRadInitialized"
},
{
"id": "cli-commands",
"contextualTitle": "Radicle",
"name": "CLI Commands",
"icon": "$(radicle-logo)",
"initialSize": 1,
"when": "radicle.isRadCliInstalled && radicle.isRadInitialized"
},
{
"id": "patches-view",
"contextualTitle": "Radicle",
"name": "Patches",
"icon": "$(git-pull-request)",
"initialSize": 4,
"when": "radicle.isRadCliInstalled && radicle.isRadInitialized",
"type": "tree"
}
]
},
"viewsWelcome": [
{
"view": "getting-started",
"contents": "Activating extension ...",
"when": "!radicle.isExtensionActivated"
},
{
"view": "getting-started",
"contents": "Failed resolving the Radicle CLI binary.\nPlease ensure it is installed on your machine and either that it is globally accessible in the shell as `rad` or that its path is correctly defined in the extension's settings.\nPlease expect the extention's capabilities to remain severely limited until this issue is resolved.\n[$(wand)Troubleshoot](command:radicle.troubleshootRadCliInstallation)",
"when": "radicle.isExtensionActivated && !radicle.isRadCliInstalled"
},
{
"view": "getting-started",
"contents": "No folder is currently opened in your workspace.\nTo use Radicle, you must open a folder containing a Git repository.\n[Open Folder](command:workbench.action.files.openFolder)\n[$(rad-clone)Clone from Radicle](command:radicle.clone)\n",
"when": "radicle.isExtensionActivated && radicle.isRadCliInstalled && workspaceFolderCount == 0"
},
{
"view": "getting-started",
"contents": "The folder currently opened in your workspace is not a Git code repository.\nIn order to use Radicle with it, this folder must first be initialized as a Git code repository.\n[Initialize Repository With Git](command:git.init?%5Btrue%5D)\n[Choose a Different Folder](command:workbench.action.files.openFolder)\nTo learn more about how to use Git and source control in VS Code [read the docs](https://code.visualstudio.com/docs/sourcecontrol/overview).",
"when": "radicle.isExtensionActivated && radicle.isRadCliInstalled && workspaceFolderCount > 0 && gitOpenRepositoryCount == 0"
},
{
"view": "getting-started",
"contents": "The Git repository currently opened in your workspace is not yet initialized with Radicle.\nTo use Radicle with it, please run `rad init` in your terminal.\nOnce rad-initialized, this repo will have access to advanced source control, collaboration and project management capabilities powered by both Git and Radicle.\nDuring this reversible rad-initializing process you also get to choose whether your repo will be private or public, among other options.\nTo learn more [read the Radicle User Guide](https://docs.radicle.xyz/guides/user#git-going-with-repositories).",
"when": "radicle.isExtensionActivated && radicle.isRadCliInstalled && workspaceFolderCount > 0 && gitOpenRepositoryCount > 0 && !radicle.isRadInitialized"
},
{
"view": "cli-commands",
"contents": "Use the buttons below to perform common interactions with the Radicle network.\n[$(rad-sync) Sync](command:radicle.sync)\n[$(rad-pull) Fetch](command:radicle.fetch)\n[$(rad-push) Announce](command:radicle.announce)",
"enablement": "radicle.isRadCliInstalled"
}
],
"icons": {
"radicle-logo": {
"description": "Radicle logo",
"default": {
"fontPath": "./assets/radicle-icons.woff",
"fontCharacter": "A"
}
},
"rad-push": {
"description": "Radicle-themed arrow pointing away from user",
"default": {
"fontPath": "./assets/radicle-icons.woff",
"fontCharacter": "B"
}
},
"rad-pull": {
"description": "Radicle-themed arrow pointing towards user",
"default": {
"fontPath": "./assets/radicle-icons.woff",
"fontCharacter": "C"
}
},
"rad-sync": {
"description": "Radicle-themed circulating arrows",
"default": {
"fontPath": "./assets/radicle-icons.woff",
"fontCharacter": "D"
}
},
"rad-spread": {
"description": "Radicle-themed node propagating to further nodes",
"default": {
"fontPath": "./assets/radicle-icons.woff",
"fontCharacter": "E"
}
},
"rad-clone": {
"description": "Radicle-themed book with a copy of it on the side",
"default": {
"fontPath": "./assets/radicle-icons.woff",
"fontCharacter": "F"
}
}
},
"colors": [
{
"id": "issue.open",
"defaults": {
"dark": "#57ab5a",
"light": "#4c954f",
"highContrast": "editor.foreground",
"highContrastLight": "editor.foreground"
},
"description": "The color used for indicating that a Radicle Issue is open."
},
{
"id": "issue.closed",
"defaults": {
"dark": "#986ee2",
"light": "#825ec0",
"highContrast": "editor.foreground",
"highContrastLight": "editor.foreground"
},
"description": "The color used for indicating that a Radicle Issue is closed."
},
{
"id": "patch.draft",
"defaults": {
"dark": "#8999a8",
"light": "#75828f",
"highContrast": "editor.foreground",
"highContrastLight": "editor.foreground"
},
"description": "The color used for indicating that a Radicle Patch is a draft."
},
{
"id": "patch.open",
"defaults": {
"dark": "issue.open",
"light": "issue.open",
"highContrast": "editor.foreground",
"highContrastLight": "editor.foreground"
},
"description": "The color used for indicating that a Radicle Patch is open."
},
{
"id": "patch.archived",
"defaults": {
"dark": "#dd655f",
"light": "#c74942",
"highContrast": "editor.foreground",
"highContrastLight": "editor.foreground"
},
"description": "The color used for indicating that a Radicle Patch is archived."
},
{
"id": "patch.merged",
"defaults": {
"dark": "issue.closed",
"light": "issue.closed",
"highContrast": "editor.foreground",
"highContrastLight": "editor.foreground"
},
"description": "The color used for indicating that a Radicle Patch is merged."
}
],
"configuration": [
{
"properties": {
"radicle.hideTempFiles": {
"scope": "application",
"type": "boolean",
"default": "true",
"description": "Exclude temporary files generated by the extension (e.g. old/new versions of files changed in patches) from being listed among the recently opened or in search."
}
}
},
{
"title": "Advanced",
"properties": {
"radicle.advanced.pathToRadBinary": {
"scope": "machine-overridable",
"type": "string",
"pattern": "^$|^(/[^/ ]*)+/?$",
"patternErrorMessage": "Current input doesn't match any supported path patterns.",
"default": "",
"markdownDescription": "Specifies the _absolute_ path to the Radicle CLI binary stored on your machine. \n\nLeave empty to use the default path for your OS or if command `rad` is already globally available in your shell."
},
"radicle.advanced.pathToNodeHome": {
"scope": "machine-overridable",
"type": "string",
"default": "",
"markdownDescription": "Specifies the path to the Radicle node's home directory. \n\nLeave empty to use the default path or if environment variable `RAD_HOME` is already globally available in your shell."
},
"radicle.advanced.httpApiEndpoint": {
"scope": "machine-overridable",
"type": "string",
"default": "http://127.0.0.1:8080",
"format": "uri",
"markdownDescription": "Specifies the endpoint to the root of the Radicle HTTP API connected to a seed node. This is commonly served via `radicle-httpd` and can be any Fully-Qualified Domain Name (FQDN) i.e. $protocol://$host:$port/$path ."
}
}
}
]
},
"lint-staged": {
"*.{vue,ts,tsx,js,jsx}": "eslint --fix --max-warnings 0 --cache --cache-location node_modules/.cache/eslint"
},
"dependencies": {
"@vue/reactivity": "^3.4.20",
"javascript-time-ago": "^2.5.9",
"lodash": "^4.17.21",
"ofetch": "^1.3.3",
"pinia": "^2.1.7"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.8",
"@total-typescript/ts-reset": "^0.5.1",
"@types/javascript-time-ago": "^2.0.8",
"@types/lodash": "^4.17.6",
"@types/node": "^20.11.21",
"@types/vscode": "^1.91.0",
"esbuild": "^0.23.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier-vue": "^4.2.0",
"eslint-plugin-tailwindcss": "^3.14.3",
"eslint-plugin-vue-scoped-css": "^2.7.2",
"npm-run-all": "^4.1.5",
"simple-git-hooks": "^2.9.0",
"ts-xor": "^1.3.0",
"typescript": "^5.3.3"
},
"simple-git-hooks": {
"pre-commit": "npm run lint"
},
"private": true
}