vscode-appwrite/package.json
2021-05-29 10:08:32 -05:00

708 lines
25 KiB
JSON

{
"name": "vscode-appwrite",
"displayName": "Appwrite",
"description": "Manage your Appwrite resources right from VS Code!",
"version": "0.0.9",
"engines": {
"vscode": "^1.55.0"
},
"publisher": "Streamlux",
"repository": {
"url": "https://github.com/streamlux/vscode-appwrite"
},
"categories": [
"Other"
],
"icon": "resources/AppwriteIcon.png",
"galleryBanner": {
"color": "#061F2F",
"theme": "dark"
},
"homepage": "https://github.com/streamlux/vscode-appwrite",
"bugs": {
"url": "https://github.com/streamlux/vscode-appwrite/issues",
"email": "engineering@streamlux.com"
},
"license": "SEE LICENSE IN LICENSE.md",
"activationEvents": [
"onCommand:vscode-appwrite.Connect",
"onView:Appwrite",
"onView:Users",
"onView:Database",
"onView:Health",
"onView:Functions",
"onCommand:vscode-appwrite.AddProject",
"onCommand:vscode-appwrite.CreateTag"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "vscode-appwrite.Connect",
"title": "Connect to Appwrite",
"category": ""
},
{
"command": "vscode-appwrite.CreateUser",
"title": "Create user",
"icon": "$(add)"
},
{
"command": "vscode-appwrite.DeleteUser",
"title": "Delete user",
"icon": "$(trash)"
},
{
"command": "vscode-appwrite.GetUserLogs",
"title": "Get user logs",
"icon": "$(output)"
},
{
"command": "vscode-appwrite.openUserInConsole",
"title": "View user in Appwrite console",
"icon": "$(link-external)"
},
{
"command": "vscode-appwrite.viewUserPrefs",
"title": "View user preferences",
"icon": "$(json)"
},
{
"command": "vscode-appwrite.refreshEntry",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "vscode-appwrite.copyUserId",
"title": "Copy user ID",
"icon": "$(clippy)"
},
{
"command": "vscode-appwrite.copyUserEmail",
"title": "Copy user email",
"icon": "$(clippy)"
},
{
"command": "vscode-appwrite.refreshUsersList",
"title": "Refresh users list",
"icon": "$(refresh)"
},
{
"command": "vscode-appwrite.OpenUsersDocumentation",
"title": "Open documentation",
"icon": "$(book)"
},
{
"command": "vscode-appwrite.OpenDatabaseDocumentation",
"title": "Open documentation",
"icon": "$(book)"
},
{
"command": "vscode-appwrite.viewDocumentAsJson",
"title": "View as JSON"
},
{
"command": "vscode-appwrite.viewCollectionAsJson",
"title": "View collection as JSON"
},
{
"command": "vscode-appwrite.refreshCollection",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "vscode-appwrite.createRule",
"title": "Create collection rule",
"icon": "$(add)"
},
{
"command": "vscode-appwrite.removeRule",
"title": "Remove collection rule"
},
{
"command": "vscode-appwrite.deleteDocument",
"title": "Delete document"
},
{
"command": "vscode-appwrite.deleteCollection",
"title": "Delete collection"
},
{
"command": "vscode-appwrite.refreshCollectionsList",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "vscode-appwrite.createCollection",
"title": "Create collection",
"icon": "$(add)"
},
{
"command": "vscode-appwrite.createPermission",
"title": "Create permission",
"icon": "$(add)"
},
{
"command": "vscode-appwrite.deletePermission",
"title": "Delete permission",
"icon": "$(trash)"
},
{
"command": "vscode-appwrite.editPermission",
"title": "Edit permission",
"icon": "$(edit)"
},
{
"command": "vscode-appwrite.refreshHealth",
"title": "Refresh health",
"icon": "$(refresh)"
},
{
"command": "vscode-appwrite.openHealthDocumentation",
"title": "Open health documentation",
"icon": "$(book)"
},
{
"command": "vscode-appwrite.refreshStorage",
"title": "Refresh storage",
"icon": "$(refresh)"
},
{
"command": "vscode-appwrite.openStorageDocumentation",
"title": "Open storage documentation",
"icon": "$(book)"
},
{
"command": "vscode-appwrite.addProject",
"title": "Add Appwrite project",
"icon": "$(plus)"
},
{
"command": "vscode-appwrite.setActiveProject",
"title": "Set as active"
},
{
"command": "vscode-appwrite.refreshProjects",
"title": "Refresh projects",
"icon": "$(refresh)"
},
{
"command": "vscode-appwrite.refreshFunctions",
"title": "Refresh functions",
"icon": "$(refresh)"
},
{
"command": "vscode-appwrite.removeProject",
"title": "Remove project",
"icon": "$(trash)"
},
{
"command": "vscode-appwrite.CreateTag",
"title": "Create function tag",
"icon": "$(cloud-upload)"
},
{
"command": "vscode-appwrite.deleteTag",
"title": "Delete tag",
"icon": "$(trash)"
},
{
"command": "vscode-appwrite.CreateExecution",
"title": "Execute"
},
{
"command": "vscode-appwrite.activateTag",
"title": "Activate"
},
{
"command": "vscode-appwrite.editValue",
"title": "Edit",
"icon": "$(edit)"
},
{
"command": "vscode-appwrite.deleteFunction",
"title": "Delete",
"icon": "$(trash)"
},
{
"command": "vscode-appwrite.openFunctionsDocumentation",
"title": "Open functions documentation",
"icon": "$(book)"
},
{
"command": "vscode-appwrite.createFunction",
"title": "Create function",
"icon": "$(add)"
},
{
"command": "vscode-appwrite.createFunctionVar",
"title": "Create variable",
"icon": "$(add)"
},
{
"command": "vscode-appwrite.deleteFunctionVar",
"title": "Delete variable",
"icon": "$(trash)"
},
{
"command": "vscode-appwrite.viewExecutionOutput",
"title": "View execution stdout",
"enablement": "viewItem =~ /^((execution|execution_outputOnly))$/"
},
{
"command": "vscode-appwrite.viewExecutionErrors",
"title": "View execution stderr",
"enablement": "viewItem =~ /^((execution|execution_errorOnly))$/"
},
{
"command": "vscode-appwrite.copyExecutionOutput",
"title": "Copy execution stdout",
"enablement": "viewItem =~ /^((execution|execution_outputOnly))$/"
},
{
"command": "vscode-appwrite.copyExecutionErrors",
"title": "Copy execution stderr",
"enablement": "viewItem =~ /^((execution|execution_errorOnly))$/"
},
{
"command": "vscode-appwrite.openExecutionsInBrowser",
"title": "View executions in browser",
"enablement": "viewItem =~ /^(executions)$/",
"icon": "$(link-external)"
},
{
"command": "vscode-appwrite.openFunctionTagsInBrowser",
"title": "Open function tags in browser",
"icon": "$(link-external)"
},
{
"command": "vscode-appwrite.openFunctionSettingsInBrowser",
"title": "Open function settings in browser",
"icon": "$(link-external)"
}
],
"views": {
"Appwrite": [
{
"id": "Users",
"name": "Users"
},
{
"id": "Database",
"name": "Database"
},
{
"id": "Storage",
"name": "Storage"
},
{
"id": "Health",
"name": "Health"
},
{
"id": "Projects",
"name": "Projects"
},
{
"id": "Functions",
"name": "Functions"
}
]
},
"viewsWelcome": [
{
"view": "Users",
"contents": "Connect to Appwrite to get started.\n[Connect to Appwrite](command:vscode-appwrite.Connect)"
},
{
"view": "Projects",
"contents": "Add an Appwrite project to get started.\n[Connect to Appwrite](command:vscode-appwrite.Connect)"
}
],
"menus": {
"view/title": [
{
"command": "vscode-appwrite.OpenUsersDocumentation",
"when": "view == Users",
"group": "navigation"
},
{
"command": "vscode-appwrite.OpenDatabaseDocumentation",
"when": "view == Database",
"group": "navigation"
},
{
"command": "vscode-appwrite.refreshUsersList",
"when": "view == Users",
"group": "navigation"
},
{
"command": "vscode-appwrite.CreateUser",
"when": "view == Users",
"group": "navigation"
},
{
"command": "vscode-appwrite.refreshCollectionsList",
"when": "view == Database",
"group": "navigation"
},
{
"command": "vscode-appwrite.createCollection",
"when": "view == Database",
"group": "navigation"
},
{
"command": "vscode-appwrite.refreshHealth",
"when": "view == Health",
"group": "navigation"
},
{
"command": "vscode-appwrite.openHealthDocumentation",
"when": "view == Health",
"group": "navigation"
},
{
"command": "vscode-appwrite.refreshStorage",
"when": "view == Storage",
"group": "navigation"
},
{
"command": "vscode-appwrite.openStorageDocumentation",
"when": "view == Storage",
"group": "navigation"
},
{
"command": "vscode-appwrite.openFunctionsDocumentation",
"when": "view == Functions",
"group": "navigation"
},
{
"command": "vscode-appwrite.refreshProjects",
"when": "view == Projects",
"group": "navigation"
},
{
"command": "vscode-appwrite.refreshFunctions",
"when": "view == Functions",
"group": "navigation"
},
{
"command": "vscode-appwrite.createFunction",
"when": "view == Functions",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "vscode-appwrite.viewUserPrefs",
"when": "viewItem == user"
},
{
"command": "vscode-appwrite.DeleteUser",
"when": "viewItem == user"
},
{
"command": "vscode-appwrite.GetUserLogs",
"when": "viewItem == user"
},
{
"command": "vscode-appwrite.openUserInConsole",
"when": "view == Users && viewItem == user",
"group": "inline"
},
{
"command": "vscode-appwrite.copyUserId",
"when": "viewItem == user.id",
"group": "inline"
},
{
"command": "vscode-appwrite.copyUserEmail",
"when": "viewItem == user.email",
"group": "inline"
},
{
"command": "vscode-appwrite.viewDocumentAsJson",
"when": "viewItem == document"
},
{
"command": "vscode-appwrite.viewCollectionAsJson",
"when": "viewItem == collection"
},
{
"command": "vscode-appwrite.deleteCollection",
"when": "viewItem == collection"
},
{
"command": "vscode-appwrite.createRule",
"when": "viewItem == collection.rules",
"group": "inline"
},
{
"command": "vscode-appwrite.createRule",
"when": "viewItem == collection.rules"
},
{
"command": "vscode-appwrite.removeRule",
"when": "viewItem == collection.rule"
},
{
"command": "vscode-appwrite.refreshCollection",
"when": "viewItem == collection"
},
{
"command": "vscode-appwrite.deleteDocument",
"when": "viewItem == document"
},
{
"command": "vscode-appwrite.createPermission",
"when": "viewItem =~ /^(permissions)$/"
},
{
"command": "vscode-appwrite.createPermission",
"when": "viewItem =~ /^(permissions)$/",
"group": "inline"
},
{
"command": "vscode-appwrite.editPermission",
"when": "viewItem =~ /^(permission)$/",
"group": "inline"
},
{
"command": "vscode-appwrite.editPermission",
"when": "viewItem =~ /^(permission)$/"
},
{
"command": "vscode-appwrite.deletePermission",
"when": "viewItem =~ /^(permission)$/"
},
{
"command": "vscode-appwrite.deletePermission",
"when": "viewItem =~ /^(permission)$/",
"group": "inline"
},
{
"command": "vscode-appwrite.setActiveProject",
"when": "viewItem =~ /^(appwriteProject)$/",
"group": "inline"
},
{
"command": "vscode-appwrite.removeProject",
"when": "viewItem =~ /(appwriteProject)/"
},
{
"command": "vscode-appwrite.CreateExecution",
"when": "viewItem =~ /^(function)$/",
"group": "inline"
},
{
"command": "vscode-appwrite.activateTag",
"when": "viewItem =~ /^(tag)$/",
"group": "inline"
},
{
"command": "vscode-appwrite.editValue",
"when": "viewItem =~ /^(editable)/",
"group": "inline"
},
{
"command": "vscode-appwrite.deleteFunction",
"when": "viewItem =~ /^(function)$/"
},
{
"command": "vscode-appwrite.deleteFunctionVar",
"when": "viewItem =~ /(var)$/"
},
{
"command": "vscode-appwrite.createFunctionVar",
"when": "viewItem =~ /^(vars)$/",
"group": "inline"
},
{
"command": "vscode-appwrite.deleteTag",
"when": "viewItem =~ /^(tag)$/"
},
{
"command": "vscode-appwrite.viewExecutionErrors",
"when": "viewItem =~ /^execution[^s]*$/",
"group": "view@1"
},
{
"command": "vscode-appwrite.viewExecutionOutput",
"when": "viewItem =~ /^execution[^s]*$/",
"group": "view@1"
},
{
"command": "vscode-appwrite.copyExecutionErrors",
"when": "viewItem =~ /^execution[^s]*$/",
"group": "copy@2"
},
{
"command": "vscode-appwrite.copyExecutionOutput",
"when": "viewItem =~ /^execution[^s]*$/",
"group": "copy@2"
},
{
"command": "vscode-appwrite.openExecutionsInBrowser",
"when": "viewItem =~ /^executions$/",
"group": "inline"
},
{
"command": "vscode-appwrite.openFunctionTagsInBrowser",
"when": "viewItem =~ /^tags$/",
"group": "inline"
},
{
"command": "vscode-appwrite.openFunctionSettingsInBrowser",
"when": "viewItem =~ /^functionSettings$/",
"group": "inline"
},
{
"command": "vscode-appwrite.CreateTag",
"when": "viewItem =~ /^tags$/",
"group": "inline"
}
],
"explorer/context": [
{
"command": "vscode-appwrite.CreateTag",
"when": "explorerResourceIsFolder == true",
"group": "appwrite@1"
}
],
"commandPalette": [
{
"command": "vscode-appwrite.Connect"
},
{
"command": "vscode-appwrite.CreateUser"
},
{
"command": "vscode-appwrite.DeleteUser",
"when": "viewItem == user"
},
{
"command": "vscode-appwrite.GetUserLogs",
"when": "viewItem == user"
},
{
"command": "vscode-appwrite.openUserInConsole",
"when": "viewItem == user"
},
{
"command": "vscode-appwrite.viewUserPrefs",
"when": "viewItem == user"
},
{
"command": "vscode-appwrite.copyUserId",
"when": "viewItem == user.id"
},
{
"command": "vscode-appwrite.copyUserEmail",
"when": "viewItem == user.email"
},
{
"command": "vscode-appwrite.viewDocumentAsJson",
"when": "viewItem == document"
},
{
"command": "vscode-appwrite.viewCollectionAsJson",
"when": "viewItem == collection"
},
{
"command": "vscode-appwrite.refreshCollection",
"when": "viewItem == collection"
},
{
"command": "vscode-appwrite.createRule",
"when": "viewItem == collection.rules"
},
{
"command": "vscode-appwrite.removeRule",
"when": "viewItem == rule"
},
{
"command": "vscode-appwrite.deleteDocument",
"when": "viewItem == document"
},
{
"command": "vscode-appwrite.deleteCollection",
"when": "viewItem == collection"
},
{
"command": "vscode-appwrite.createPermission",
"when": "viewItem == collection.permissions"
},
{
"command": "vscode-appwrite.deletePermission",
"when": "viewItem =~ /^(permission)$/"
},
{
"command": "vscode-appwrite.editPermission",
"when": "viewItem =~ /^(permission)$/"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "Appwrite",
"title": "Appwrite",
"icon": "./resources/vscode-appwrite.svg"
}
]
},
"configuration": {
"title": "Appwrite",
"properties": {
"appwrite.projects": {
"type": "array",
"default": [],
"markdownDescription": "List of Appwrite project configurations. You can use the Connect command to set this up, or see [docs](https://github.com/streamlux/vscode-appwrite/) for more information."
},
"appwrite.activeProjectId": {
"type": "string",
"default": "",
"markdownDescription": "Project id of the active project, see [docs](https://github.com/streamlux/vscode-appwrite/) for more information."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"test-compile": "tsc -p ./",
"test-watch": "tsc -watch -p ./",
"pretest": "npm run test-compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/fs-extra": "^9.0.11",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.4",
"@types/node": "^12.11.7",
"@types/tar": "^4.0.4",
"@types/vscode": "^1.55.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"eslint": "^7.19.0",
"glob": "^7.1.6",
"mocha": "^8.2.1",
"ts-loader": "^8.0.14",
"typescript": "^4.1.3",
"vsce": "^1.88.0",
"vscode-test": "^1.5.0",
"webpack": "^5.19.0",
"webpack-cli": "^4.4.0"
},
"dependencies": {
"cron-validate": "^1.4.3",
"cronstrue": "^1.113.0",
"dayjs": "^1.10.4",
"fs-extra": "^9.1.0",
"node-appwrite": "^2.2.3",
"tar": "^6.1.0"
}
}