Skip to content

Commit b0e6329

Browse files
committed
feat: new code style applied to all instances
1 parent 55ffba7 commit b0e6329

File tree

199 files changed

+4939
-4449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+4939
-4449
lines changed

.devcontainer/devcontainer.json

Lines changed: 41 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,41 @@
1-
{
2-
"name": "Kadena Indexer",
3-
"build": {
4-
"dockerfile": "Dockerfile",
5-
"args": {
6-
"NODE_VERSION": "18",
7-
"INSTALL_AWS_CLI": "true",
8-
"INSTALL_TERRAFORM": "true",
9-
"INSTALL_DOCKER_CLI": "true",
10-
"TERRAFORM_VERSION": "1.7.3"
11-
}
12-
},
13-
"mounts": [
14-
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
15-
],
16-
"forwardPorts": [3000, 9090, 3001],
17-
"postCreateCommand": "yarn install",
18-
"remoteUser": "node",
19-
"customizations": {
20-
"vscode": {
21-
"settings": {
22-
"editor.tabSize": 2,
23-
"eslint.validate": ["javascript", "typescript"],
24-
"prettier.enable": true,
25-
"editor.formatOnSave": true,
26-
"prettier.singleQuote": false,
27-
"terminal.integrated.shell.linux": "/bin/bash",
28-
"editor.defaultFormatter": "esbenp.prettier-vscode",
29-
"files.exclude": {
30-
"**/.git": true,
31-
"**/.DS_Store": true,
32-
"**/node_modules": true
33-
}
34-
},
35-
"extensions": [
36-
"esbenp.prettier-vscode",
37-
"dbaeumer.vscode-eslint",
38-
"ms-azuretools.vscode-docker",
39-
"hashicorp.terraform"
40-
]
41-
}
42-
}
43-
}
1+
{
2+
"name": "Kadena Indexer",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"args": {
6+
"NODE_VERSION": "18",
7+
"INSTALL_AWS_CLI": "true",
8+
"INSTALL_TERRAFORM": "true",
9+
"INSTALL_DOCKER_CLI": "true",
10+
"TERRAFORM_VERSION": "1.7.3"
11+
}
12+
},
13+
"mounts": ["source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"],
14+
"forwardPorts": [3000, 9090, 3001],
15+
"postCreateCommand": "yarn install",
16+
"remoteUser": "node",
17+
"customizations": {
18+
"vscode": {
19+
"settings": {
20+
"editor.tabSize": 2,
21+
"eslint.validate": ["javascript", "typescript"],
22+
"prettier.enable": true,
23+
"editor.formatOnSave": true,
24+
"prettier.singleQuote": false,
25+
"terminal.integrated.shell.linux": "/bin/bash",
26+
"editor.defaultFormatter": "esbenp.prettier-vscode",
27+
"files.exclude": {
28+
"**/.git": true,
29+
"**/.DS_Store": true,
30+
"**/node_modules": true
31+
}
32+
},
33+
"extensions": [
34+
"esbenp.prettier-vscode",
35+
"dbaeumer.vscode-eslint",
36+
"ms-azuretools.vscode-docker",
37+
"hashicorp.terraform"
38+
]
39+
}
40+
}
41+
}

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
name: Bug Report
33
about: Create a bug report to help us improve
4-
title: "fix: "
4+
title: 'fix: '
55
labels: bug
6-
assignees: ""
6+
assignees: ''
77
---
88

99
## Bug Report
1010

1111
#### Version:
12+
1213
- Release: v1.0.0
1314
- Tag: release-1.0.0
1415
- Commit: abc123f
@@ -23,4 +24,3 @@ assignees: ""
2324

2425
<!-- Please explain the steps required to duplicate the issue,
2526
especially if you can provide a sample application. -->
26-

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
name: Feature Request
33
about: Suggest an idea or enhancement for this project
4-
title: "feat:"
4+
title: 'feat:'
55
labels: enhancement
6-
assignees: ""
6+
assignees: ''
77
---
88

99
## Feature Request

.github/ISSUE_TEMPLATE/refactor_request.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
name: Refactor Request
33
about: Suggest the refactoring for this project
4-
title: "refactor:"
4+
title: 'refactor:'
55
labels: enhancement
6-
assignees: ""
6+
assignees: ''
77
---
88

99
## Refactor Request
@@ -18,4 +18,3 @@ Please include if your refactor request is related to a problem. -->
1818
<!-- List any other information that is relevant to your issue. Stack traces,
1919
related issues, suggestions on how to add, use case, Stack Overflow links,
2020
forum links, screenshots, OS if applicable, etc. -->
21-

.github/workflows/indexer.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
name: "Indexer Build"
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
10-
11-
jobs:
12-
build:
13-
runs-on: ubuntu-latest
14-
15-
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@v2
18-
19-
- name: Use Node.js 18
20-
uses: actions/setup-node@v2
21-
with:
22-
node-version: "18"
23-
cache: "yarn"
24-
25-
- name: Install dependencies
26-
run: yarn install
27-
working-directory: ./indexer
28-
29-
- name: Build
30-
run: tsc
31-
working-directory: ./indexer
1+
name: 'Indexer Build'
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Use Node.js 18
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: '18'
23+
cache: 'yarn'
24+
25+
- name: Install dependencies
26+
run: yarn install
27+
working-directory: ./indexer
28+
29+
- name: Build
30+
run: tsc
31+
working-directory: ./indexer

.github/workflows/terraform.yml

Lines changed: 59 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,59 @@
1-
name: "Terraform Deployment"
2-
3-
on:
4-
workflow_dispatch:
5-
6-
jobs:
7-
terraform-plan:
8-
runs-on: ubuntu-latest
9-
env:
10-
TF_VAR_AWS_ACCESS_KEY_ID: ${{ vars.TF_VAR_AWS_ACCESS_KEY_ID }}
11-
TF_VAR_AWS_SECRET_ACCESS_KEY: ${{ vars.TF_VAR_AWS_SECRET_ACCESS_KEY }}
12-
TF_VAR_AWS_ACCOUNT_ID: ${{ vars.TF_VAR_AWS_ACCOUNT_ID }}
13-
TF_VAR_AWS_USER_NAME: ${{ vars.TF_VAR_AWS_USER_NAME }}
14-
TF_VAR_AWS_DB_USERNAME: ${{ vars.TF_VAR_AWS_DB_USERNAME }}
15-
TF_VAR_AWS_DB_PASSWORD: ${{ vars.TF_VAR_AWS_DB_PASSWORD }}
16-
TF_VAR_db_password: ${{ vars.TF_VAR_db_password }}
17-
18-
steps:
19-
- name: Checkout code
20-
uses: actions/checkout@v2
21-
22-
- name: Setup Terraform
23-
uses: hashicorp/setup-terraform@v3
24-
with:
25-
terraform_version: 1.7.3
26-
terraform_wrapper: false
27-
28-
- name: Terraform Init
29-
run: terraform init
30-
working-directory: ./terraform
31-
32-
- name: Terraform Plan
33-
run: terraform plan -out=tfplan
34-
working-directory: ./terraform
35-
36-
- name: Upload Terraform Plan
37-
uses: actions/upload-artifact@v2
38-
with:
39-
name: terraform-plan
40-
path: ./terraform/tfplan
41-
42-
terraform-apply:
43-
needs: terraform-plan
44-
runs-on: ubuntu-latest
45-
steps:
46-
- name: Checkout code
47-
uses: actions/checkout@v2
48-
49-
- name: Setup Terraform
50-
uses: hashicorp/setup-terraform@v1
51-
52-
- name: Download Terraform Plan
53-
uses: actions/download-artifact@v2
54-
with:
55-
name: terraform-plan
56-
path: ./terraform
57-
58-
# - name: Terraform Apply
59-
# run: terraform apply tfplan
60-
# working-directory: ./terraform
1+
name: 'Terraform Deployment'
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
terraform-plan:
8+
runs-on: ubuntu-latest
9+
env:
10+
TF_VAR_AWS_ACCESS_KEY_ID: ${{ vars.TF_VAR_AWS_ACCESS_KEY_ID }}
11+
TF_VAR_AWS_SECRET_ACCESS_KEY: ${{ vars.TF_VAR_AWS_SECRET_ACCESS_KEY }}
12+
TF_VAR_AWS_ACCOUNT_ID: ${{ vars.TF_VAR_AWS_ACCOUNT_ID }}
13+
TF_VAR_AWS_USER_NAME: ${{ vars.TF_VAR_AWS_USER_NAME }}
14+
TF_VAR_AWS_DB_USERNAME: ${{ vars.TF_VAR_AWS_DB_USERNAME }}
15+
TF_VAR_AWS_DB_PASSWORD: ${{ vars.TF_VAR_AWS_DB_PASSWORD }}
16+
TF_VAR_db_password: ${{ vars.TF_VAR_db_password }}
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v2
21+
22+
- name: Setup Terraform
23+
uses: hashicorp/setup-terraform@v3
24+
with:
25+
terraform_version: 1.7.3
26+
terraform_wrapper: false
27+
28+
- name: Terraform Init
29+
run: terraform init
30+
working-directory: ./terraform
31+
32+
- name: Terraform Plan
33+
run: terraform plan -out=tfplan
34+
working-directory: ./terraform
35+
36+
- name: Upload Terraform Plan
37+
uses: actions/upload-artifact@v2
38+
with:
39+
name: terraform-plan
40+
path: ./terraform/tfplan
41+
42+
terraform-apply:
43+
needs: terraform-plan
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Checkout code
47+
uses: actions/checkout@v2
48+
49+
- name: Setup Terraform
50+
uses: hashicorp/setup-terraform@v1
51+
52+
- name: Download Terraform Plan
53+
uses: actions/download-artifact@v2
54+
with:
55+
name: terraform-plan
56+
path: ./terraform
57+
# - name: Terraform Apply
58+
# run: terraform apply tfplan
59+
# working-directory: ./terraform

0 commit comments

Comments
 (0)