-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
139 lines (139 loc) · 3.84 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
{
"name": "pterodactyl-vsc",
"displayName": "Pterodactyl file system",
"description": "Open a Pterodactyl server folder as a remote workspace.",
"version": "1.1.0",
"publisher": "tomatocake",
"license": "MIT",
"main": "./out/src/extension",
"browser": "./out/src/extension",
"extensionKind": [
"workspace"
],
"repository": {
"type": "git",
"url": "https://github.com/DEVTomatoCake/Pterodactyl-vsc.git"
},
"engines": {
"vscode": "^1.91.0"
},
"categories": [
"Other"
],
"qna": false,
"activationEvents": [
"onFileSystem:pterodactyl"
],
"keywords": [
"pterodactyl",
"ptero",
"file-system-provider",
"remote-repository",
"remote-filesystem"
],
"contributes": {
"commands": [
{
"command": "pterodactyl-vsc.init",
"title": "Setup/Connect to server",
"shortTitle": "Setup",
"category": "Pterodactyl"
},
{
"command": "pterodactyl-vsc.reset",
"title": "Reset workspace config",
"shortTitle": "Reset",
"category": "Pterodactyl"
},
{
"command": "pterodactyl-vsc.refresh",
"title": "Refresh server files",
"shortTitle": "Refresh",
"category": "Pterodactyl"
}
],
"menus": {
"commandPalette": [
{
"command": "pterodactyl-vsc.init",
"when": "workbenchState != workspace"
},
{
"command": "pterodactyl-vsc.reset",
"when": "workbenchState == workspace"
},
{
"command": "pterodactyl-vsc.refresh",
"when": "workbenchState == workspace"
}
]
},
"viewsWelcome": [
{
"view": "explorer",
"contents": "Open a Pterodactyl server folder as a remote workspace.\n[Add Pterodactyl panel](command:pterodactyl-vsc.init)",
"when": "workspaceFolderCount == 0"
}
],
"configuration": {
"title": "Pterodactyl file system",
"properties": {
"pterodactyl-vsc.panelUrl": {
"type": "string",
"default": "",
"description": "Pterodactyl panel URL to connect to.",
"format": "uri"
},
"pterodactyl-vsc.apiKey": {
"type": "string",
"default": "",
"description": "Client API key for the Pterodactyl panel set above, found in Account Settings -> API Credentials.",
"minLength": 48,
"maxLength": 48,
"pattern": "^ptlc_[a-zA-Z0-9]{43}$",
"patternErrorMessage": "Invalid client API key."
},
"pterodactyl-vsc.serverId": {
"type": "string",
"default": "",
"description": "Server ID of the server you want to edit the files of, found in the URL.",
"minLength": 8,
"maxLength": 8,
"pattern": "^[a-z0-9]{8}$",
"patternErrorMessage": "Invalid short server ID."
},
"pterodactyl-vsc.proxyUrl": {
"type": "string",
"default": "https://pterodactyl-vsc.tomatocake.workers.dev/?url=",
"description": "CORS proxy to use. Leave empty to disable.",
"pattern": "^(https?://.+)?$"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint .",
"watch": "tsc -watch -p ./",
"pack": "vsce pack -o ./out/pterodactyl-vsc.vsix -t web",
"pack-files": "vsce ls",
"--comment-publish": "https://dev.azure.com/tomatocake/_usersSettings/tokens",
"publish": "vsce publish",
"--comment-publish-openvsx": "https://open-vsx.org/user-settings/tokens",
"publish-openvsx": "npx ovsx publish ./out/pterodactyl-vsc.vsix",
"sideload": "npx serve --cors -l 5000 --ssl-cert $HOME/certs/localhost.pem --ssl-key $HOME/certs/localhost-key.pem",
"sideload-win": "npx serve --cors -l 5000 --ssl-cert %userprofile%\\certs\\localhost.pem --ssl-key %userprofile%\\certs\\localhost-key.pem"
},
"devDependencies": {
"@stylistic/eslint-plugin-js": "^2.7.2",
"@types/node": "^22.5.1",
"@types/vscode": "^1.92.0",
"@typescript-eslint/parser": "^8.3.0",
"@vscode/vsce": "^3.0.0",
"eslint": "^9.9.1",
"eslint-plugin-sonarjs": "^1.0.4",
"eslint-plugin-unicorn": "^55.0.0",
"typescript": "^5.5.4"
}
}