550 lines
19 KiB
JSON
550 lines
19 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.removeProject",
|
|
"title": "Remove project",
|
|
"icon": "$(trash)"
|
|
},
|
|
{
|
|
"command": "vscode-appwrite.CreateTag",
|
|
"title": "Create function tag",
|
|
"icon": "$(cloud-upload)"
|
|
},
|
|
{
|
|
"command": "vscode-appwrite.CreateExecution",
|
|
"title": "Execute function",
|
|
"icon": "$(play)"
|
|
}
|
|
],
|
|
"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.refreshProjects",
|
|
"when": "view == Projects",
|
|
"group": "navigation"
|
|
},
|
|
{
|
|
"command": "vscode-appwrite.addProject",
|
|
"when": "view == Projects",
|
|
"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"
|
|
}
|
|
],
|
|
"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": {
|
|
"dayjs": "^1.10.4",
|
|
"fs-extra": "^9.1.0",
|
|
"node-appwrite": "^2.2.1",
|
|
"tar": "^6.1.0"
|
|
}
|
|
}
|