Skip to content

Commit a821580

Browse files
committed
chore: run prettier on the codebase
1 parent fbad981 commit a821580

Some content is hidden

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

58 files changed

+3958
-2072
lines changed

.devcontainer/devcontainer.json

+45-49
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,47 @@
11
{
2-
"name": "Go",
3-
"build": {
4-
"dockerfile": "Dockerfile",
5-
"args": {
6-
// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17
7-
// Append -bullseye or -buster to pin to an OS version.
8-
// Use -bullseye variants on local arm64/Apple Silicon.
9-
"VARIANT": "1-1.21-bookworm",
10-
// Options
11-
"NODE_VERSION": "lts/*"
12-
}
13-
},
14-
"runArgs": [
15-
"--cap-add=SYS_PTRACE",
16-
"--security-opt",
17-
"seccomp=unconfined"
18-
],
19-
"customizations": {
20-
"vscode": {
21-
// Set *default* container specific settings.json values on container create.
22-
"settings": {
23-
"go.toolsManagement.checkForUpdates": "local",
24-
"go.useLanguageServer": true,
25-
"go.gopath": "/go",
26-
"go.goroot": "/usr/local/go",
27-
"typescript.tsdk": "webui/node_modules/typescript/lib",
28-
"typescript.enablePromptUseWorkspaceTsdk": true,
29-
"gitlens.telemetry.enabled": false
30-
},
31-
// Add the IDs of extensions you want installed when the container is created.
32-
"extensions": [
33-
"golang.Go",
34-
"ms-azuretools.vscode-docker",
35-
"mhutchie.git-graph",
36-
"eamodio.gitlens",
37-
"donjayamanne.githistory",
38-
"esbenp.prettier-vscode",
39-
"iulian-radu-at.vscode-tasks-sidebar"
40-
]
41-
}
42-
},
43-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
44-
// "forwardPorts": [],
2+
"name": "Go",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"args": {
6+
// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17
7+
// Append -bullseye or -buster to pin to an OS version.
8+
// Use -bullseye variants on local arm64/Apple Silicon.
9+
"VARIANT": "1-1.21-bookworm",
10+
// Options
11+
"NODE_VERSION": "lts/*"
12+
}
13+
},
14+
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
15+
"customizations": {
16+
"vscode": {
17+
// Set *default* container specific settings.json values on container create.
18+
"settings": {
19+
"go.toolsManagement.checkForUpdates": "local",
20+
"go.useLanguageServer": true,
21+
"go.gopath": "/go",
22+
"go.goroot": "/usr/local/go",
23+
"typescript.tsdk": "webui/node_modules/typescript/lib",
24+
"typescript.enablePromptUseWorkspaceTsdk": true,
25+
"gitlens.telemetry.enabled": false
26+
},
27+
// Add the IDs of extensions you want installed when the container is created.
28+
"extensions": [
29+
"golang.Go",
30+
"ms-azuretools.vscode-docker",
31+
"mhutchie.git-graph",
32+
"eamodio.gitlens",
33+
"donjayamanne.githistory",
34+
"esbenp.prettier-vscode",
35+
"iulian-radu-at.vscode-tasks-sidebar"
36+
]
37+
}
38+
},
39+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
40+
// "forwardPorts": [],
4541

46-
// Use 'postCreateCommand' to run commands after the container is created.
47-
// "postCreateCommand": "go version",
48-
49-
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
50-
"remoteUser": "vscode"
51-
}
42+
// Use 'postCreateCommand' to run commands after the container is created.
43+
// "postCreateCommand": "go version",
44+
45+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
46+
"remoteUser": "vscode"
47+
}

.github/ISSUE_TEMPLATE/bug_report.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Bug report
33
about: Report an issue with Backrest
4-
title: ''
4+
title: ""
55
labels: bug
6-
assignees: ''
7-
6+
assignees: ""
87
---
98

109
Note: if you have a question or need support please post in the [discussions area](https://github.com/garethgeorge/backrest/discussions).
@@ -14,6 +13,7 @@ A clear and concise description of what the bug is.
1413

1514
**To Reproduce**
1615
Steps to reproduce the behavior:
16+
1717
1. Go to '...'
1818
2. Click on '....'
1919
3. Scroll down to '....'
@@ -26,8 +26,9 @@ A clear and concise description of what you expected to happen.
2626
If applicable, add screenshots to help explain your problem.
2727

2828
**Platform Info**
29-
- OS and Architecture [e.g. Windows 10 x64, Darwin arm64]
30-
- Backrest Version [e.g. 0.0.0]
29+
30+
- OS and Architecture [e.g. Windows 10 x64, Darwin arm64]
31+
- Backrest Version [e.g. 0.0.0]
3132

3233
**Additional context**
3334
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
4+
title: ""
55
labels: enhancement
6-
assignees: ''
7-
6+
assignees: ""
87
---
98

109
Note: if you have a question or want discussion please post in the [discussions area](https://github.com/garethgeorge/backrest/discussions).

.github/workflows/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
with:
3333
node-version: "20"
3434

35+
- name: Check Formatting
36+
3537
- name: Generate
3638
run: go generate ./...
3739

.vscode/launch.json

+32-35
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,33 @@
11
{
2-
"version": "0.2.0",
3-
"configurations": [
4-
{
5-
"name": "Debug Go backend",
6-
"type": "go",
7-
"request": "launch",
8-
"mode": "debug",
9-
"program": "${workspaceFolder}/backrest.go",
10-
"output": "__debug_bin",
11-
"preLaunchTask": "Build Webui",
12-
},
13-
{
14-
"type": "chrome",
15-
"request": "launch",
16-
"preLaunchTask": "Parcel",
17-
"postDebugTask": "Terminate Parcel",
18-
"name": "Debug TS frontend",
19-
"url": "http://localhost:1234",
20-
"webRoot": "${workspaceFolder}/webui/src/",
21-
"sourceMapPathOverrides": {
22-
"../*": "${webRoot}/*"
23-
}
24-
}
25-
],
26-
"compounds": [
27-
{
28-
"name": "Debug Backrest (backend+frontend)",
29-
"configurations": [
30-
"Debug Go backend",
31-
"Debug TS frontend"
32-
],
33-
"stopAll": true
34-
}
35-
]
36-
}
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug Go backend",
6+
"type": "go",
7+
"request": "launch",
8+
"mode": "debug",
9+
"program": "${workspaceFolder}/backrest.go",
10+
"output": "__debug_bin",
11+
"preLaunchTask": "Build Webui"
12+
},
13+
{
14+
"type": "chrome",
15+
"request": "launch",
16+
"preLaunchTask": "Parcel",
17+
"postDebugTask": "Terminate Parcel",
18+
"name": "Debug TS frontend",
19+
"url": "http://localhost:1234",
20+
"webRoot": "${workspaceFolder}/webui/src/",
21+
"sourceMapPathOverrides": {
22+
"../*": "${webRoot}/*"
23+
}
24+
}
25+
],
26+
"compounds": [
27+
{
28+
"name": "Debug Backrest (backend+frontend)",
29+
"configurations": ["Debug Go backend", "Debug TS frontend"],
30+
"stopAll": true
31+
}
32+
]
33+
}

.vscode/tasks.json

+48-48
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
{
2-
"version": "2.0.0",
3-
"tasks": [
4-
{
5-
"label": "npm i",
6-
"type": "shell",
7-
"command": "cd webui && npm i",
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "npm i",
6+
"type": "shell",
7+
"command": "cd webui && npm i"
8+
},
9+
{
10+
"label": "Parcel",
11+
"type": "npm",
12+
"script": "start",
13+
"dependsOn": "npm i",
14+
"isBackground": true,
15+
"problemMatcher": {
16+
"background": {
17+
"activeOnStart": true,
18+
"beginsPattern": "parcel serve",
19+
"endsPattern": "Built in"
820
},
9-
{
10-
"label": "Parcel",
11-
"type": "npm",
12-
"script": "start",
13-
"dependsOn": "npm i",
14-
"isBackground": true,
15-
"problemMatcher": {
16-
"background": {
17-
"activeOnStart": true,
18-
"beginsPattern": "parcel serve",
19-
"endsPattern": "Built in"
20-
},
21-
"pattern": {
22-
"regexp": ".*"
23-
}
24-
},
25-
"path": "webui"
26-
},
27-
{
28-
"label": "Build Webui",
29-
"type": "npm",
30-
"script": "build",
31-
"path": "webui",
32-
"group": "build",
33-
"problemMatcher": [],
34-
"dependsOn": "npm i"
35-
},
36-
{
37-
"label": "Terminate Parcel",
38-
"command": "echo ${input:terminate}",
39-
"type": "shell",
40-
"problemMatcher": []
41-
}
42-
],
43-
"inputs": [
44-
{
45-
"id": "terminate",
46-
"type": "command",
47-
"command": "workbench.action.tasks.terminate",
48-
"args": "Parcel"
21+
"pattern": {
22+
"regexp": ".*"
4923
}
50-
]
51-
}
24+
},
25+
"path": "webui"
26+
},
27+
{
28+
"label": "Build Webui",
29+
"type": "npm",
30+
"script": "build",
31+
"path": "webui",
32+
"group": "build",
33+
"problemMatcher": [],
34+
"dependsOn": "npm i"
35+
},
36+
{
37+
"label": "Terminate Parcel",
38+
"command": "echo ${input:terminate}",
39+
"type": "shell",
40+
"problemMatcher": []
41+
}
42+
],
43+
"inputs": [
44+
{
45+
"id": "terminate",
46+
"type": "command",
47+
"command": "workbench.action.tasks.terminate",
48+
"args": "Parcel"
49+
}
50+
]
51+
}

0 commit comments

Comments
 (0)