Skip to content

Commit

Permalink
Merge pull request #3 from tencentcloudstack/feat/support-login-feature
Browse files Browse the repository at this point in the history
[20231020]support login,init,plan,apply,destroy process
  • Loading branch information
andrew-tx authored Nov 1, 2023
2 parents 21ec176 + 0b4f4fe commit 5080aec
Show file tree
Hide file tree
Showing 45 changed files with 445 additions and 212 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist
node_modules
.vscode-test/
*.vsix
terraform.log
73 changes: 42 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,22 @@
"onCommand:tcTerraform.init",
"onCommand:tcTerraform.plan",
"onCommand:tcTerraform.apply",
"onCommand:tcTerraform.import",
"onCommand:tcTerraform.validate",
"onCommand:tcTerraform.refresh",
"onCommand:tcTerraform.destroy",
"onCommand:tcTerraform.visualize",
"onCommand:tcTerraform.test",
"onCommand:tcTerraform.push",
"onCommand:tcTerraformer.import",
"onCommand:tcTerraformer.plan",
"workspaceContains:**/*.tf",
"onLanguage:terraform"
],
"contributes": {
"menus": {
"view/title": [
{
"command": "tcTerraform.resourcesExplorer.refresh",
"when": "view == tcTerraform.resourcesExplorer.cvm",
"group": "navigation"
}
]
},
"viewsContainers": {
"activitybar": [
{
Expand All @@ -65,24 +68,34 @@
"views": {
"tc-terraform-resources": [
{
"id": "tcTerraform.sessionExplorer",
"name": "%TcTerraform.view.session.explorer%",
"id": "tcTerraform.loginExplorer",
"name": "%TcTerraform.view.login%",
"contextualTitle": "Session Explorer",
"visibility": "collapsed"
},
{
"id": "tcTerraform.resourcesExplorer.cvm",
"name": "%TcTerraform.view.resource.explorer.cvm%",
"name": "%TcTerraform.view.resource.cvm%",
"contextualTitle": "Resources Explorer",
"visibility": "collapsed"
},
{
"id": "tcTerraform.helpExplorer",
"name": "%TcTerraform.view.help.explorer%",
"name": "%TcTerraform.view.help%",
"visibility": "collapsed"
}
]
},
"viewsWelcome": [
{
"view": "tcTerraform.loginExplorer",
"contents": "%TcTerraform.view.login.welcome%"
},
{
"view": "tcTerraform.resourcesExplorer.cvm",
"contents": "%TcTerraform.view.login.welcome%"
}
],
"languages": [
{
"id": "terraform",
Expand All @@ -101,9 +114,17 @@
"commands": [
{
"command": "tcTerraform.login",
"title": "Login",
"title": "Login: %TcTerraform.view.login.welcome%",
"category": "TencentCloud Terraform"
},
{
"command": "tcTerraform.resourcesExplorer.refresh",
"title": "%TcTerraform.refresh%",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "tcTerraform.init",
"title": "Init",
Expand Down Expand Up @@ -178,6 +199,16 @@
],
"description": "Specifies terminal used to run Terraform commands. Valid settings are `cloudshell` or `integrated`."
},
"tcTerraform.properties.secretId": {
"type": "string",
"default": "your_secretid",
"description": "Input your Tencent Cloud secret Id."
},
"tcTerraform.properties.secretKey": {
"type": "string",
"default": "your_secretkey",
"description": "Input your Tencent Cloud secret key."
},
"tcTerraform.checkTerraformCmd": {
"type": "boolean",
"default": "true",
Expand All @@ -193,26 +224,6 @@
"default": "true",
"description": "Specifies whether or not TCCLI installed in the PATH."
},
"tcTerraform.secretid.cmd": {
"type": "string",
"default": "tccli configure list | grep 'secretId'",
"description": "Indicates how to get the secretid."
},
"tcTerraform.secretkey.cmd": {
"type": "string",
"default": "tccli configure list | grep 'secretKey'",
"description": "Indicates how to get the secretkey."
},
"tcTerraform.secretid": {
"type": "string",
"default": "your_secretid",
"description": "Input your tencentcloud secret key id."
},
"tcTerraform.secretkey": {
"type": "string",
"default": "your_secretkey",
"description": "Input your tencentcloud secret key."
},
"tcTerraform.test.path": {
"type": "string",
"default": "./",
Expand Down
35 changes: 23 additions & 12 deletions package.nls.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
{
"TcTerraform.title": "TencentCloud Terraofrm",
"TcTerraform.view.session.explorer": "Connect to TencentCloud",
"TcTerraform.view.template.explorer": "Tempaltes Management",
"TcTerraform.view.resource.explorer": "Resources Explorer",
"TcTerraform.view.resource.explorer.cvm": "Import Resouce: CVM",
"TcTerraform.view.resource.explorer.tke": "Import Resouce: TKE",
"TcTerraform.view.help.explorer": "Help",
"TcTerraform.view.help.explorer.provider": "TencentCloud Terraform Provider",
"TcTerraform.view.help.explorer.doc": "Documentation",
"TcTerraform.view.help.explorer.repo": "GitHub Repository",
"TcTerraform.productName": "TcTerraform Toolkit"
}
"TcTerraform.title": "Tencent Cloud Terraform",
"TcTerraform.view.login": "Login Tencent Cloud",
"TcTerraform.view.login.welcome": "Please login the Tencent Cloud. [Sign up](https://cloud.tencent.com/register) for a Tencent Cloud account if you do not have one.\n[Sign in Tencent Cloud](command:tcTerraform.login)",
"TcTerraform.view.codesnippet": "Code Snippets and Examples",
"TcTerraform.view.resource": "Resources Explorer",
"TcTerraform.refresh": "Refresh",
"TcTerraform.refresh.success": "Resources refreshed.",
"TcTerraform.view.resource.cvm": "Resources: CVM",
"TcTerraform.view.resource.tke": "Resources: TKE",
"TcTerraform.view.help": "Help",
"TcTerraform.view.help.provider": "Tencent Cloud Terraform Provider",
"TcTerraform.view.help.doc": "Documentation",
"TcTerraform.view.help.repo": "GitHub Repository",
"TcTerraform.pickup.aksk": "Sign in with [Secret Id/Secret Key]",
"TcTerraform.pickup.oauth": "Sign in with [Tencent Cloud authoritication] (Coming Soon...)",
"TcTerraform.pickup.aksk.placeholder": "Please input your API {0}",
"TcTerraform.pickup.aksk.verify.empty": "{0} can not be empty",
"TcTerraform.welcome": "Welcome to use Tencent Cloud Terraform extension, please wait for the page loading...",
"TcTerraform.msg.aksk.notfound": "Cannot find TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY, please sign in first!",
"TcTerraform.logout": "Logout Tencent Cloud ({0})",
"TcTerraform.login": "Login Tencent Cloud...",
"TcTerraform.login.success": "Logged into Tencent Cloud successfully."
}
1 change: 1 addition & 0 deletions resources/dark/boolean.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/dark/dependency.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/dark/document.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/dark/edit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/dark/folder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/dark/number.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/dark/refresh.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/dark/string.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5080aec

Please sign in to comment.