Skip to content

Commit 11cc05b

Browse files
init
0 parents  commit 11cc05b

22 files changed

+2017
-0
lines changed

.gitignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
/out
5+
*.vsix
6+
7+
package-lock.json
8+
9+
# local env files
10+
.env.local
11+
.env.*.local
12+
13+
# Log files
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*
17+
pnpm-debug.log*
18+
19+
# Editor directories and files
20+
.idea
21+
.vscode
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw?

.vscodeignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.vscode/**
2+
.vscode-test/**
3+
src-plugin/**
4+
src-vue/**
5+
.gitignore
6+
.yarnrc
7+
vsc-extension-quickstart.md
8+
**/tsconfig.json
9+
**/eslint.config.mjs
10+
**/*.map
11+
**/*.ts
12+
**/.vscode-test.*

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 DataPLANT
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# ARC-VS-CODE
2+
A Visual Studio Code Extension that enables editing of ARCs (Annotated Research Contexts), including adding, removing, and editing of investigations, studies, and assays via SWATE and ARCtrl.

eslint.config.mjs

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import tsParser from "@typescript-eslint/parser";
3+
4+
export default [{
5+
files: ["**/*.ts"],
6+
}, {
7+
plugins: {
8+
"@typescript-eslint": typescriptEslint,
9+
},
10+
11+
languageOptions: {
12+
parser: tsParser,
13+
ecmaVersion: 2022,
14+
sourceType: "module",
15+
},
16+
17+
rules: {
18+
"@typescript-eslint/naming-convention": ["warn", {
19+
selector: "import",
20+
format: ["camelCase", "PascalCase"],
21+
}],
22+
23+
curly: "warn",
24+
eqeqeq: "warn",
25+
"no-throw-literal": "warn",
26+
semi: "warn",
27+
},
28+
}];

package.json

+123
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
{
2+
"name": "arc-vs-code",
3+
"displayName": "arc-vs-code",
4+
"description": "A Visual Studio Code Extension that enables editing of ARCs (Annotated Research Contexts), including adding, removing, and editing of investigations, studies, and assays via SWATE and ARCtrl.",
5+
"icon": "resources/icon.png",
6+
7+
"version": "1.0.0",
8+
"engines": {
9+
"vscode": "^1.94.0"
10+
},
11+
"publisher": "nfdi4plants",
12+
"license": "MIT",
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/nfdi4plants/arc-vs-code.git"
16+
},
17+
"categories": [
18+
"Other"
19+
],
20+
"activationEvents": [
21+
],
22+
"main": "./out/extension.js",
23+
"contributes": {
24+
"commands": [
25+
{
26+
"command": "arc-vs-code.start",
27+
"title": "Open ARC-VS-CODE Extension"
28+
},
29+
{
30+
"command": "arc-vs-code.edit_investigation",
31+
"title": "Edit Investigation"
32+
},
33+
{
34+
"command": "arc-vs-code.add_study",
35+
"title": "Add Study"
36+
},
37+
{
38+
"command": "arc-vs-code.edit_study",
39+
"title": "Edit Study"
40+
},
41+
{
42+
"command": "arc-vs-code.delete_study",
43+
"title": "Delete Study"
44+
},
45+
{
46+
"command": "arc-vs-code.add_assay",
47+
"title": "Add Assay"
48+
},
49+
{
50+
"command": "arc-vs-code.edit_assay",
51+
"title": "Edit Assay"
52+
},
53+
{
54+
"command": "arc-vs-code.delete_assay",
55+
"title": "Delete Assay"
56+
}
57+
],
58+
"menus": {
59+
"explorer/context": [
60+
{
61+
"command": "arc-vs-code.edit_investigation",
62+
"when": "resourceFilename == isa.investigation.xlsx",
63+
"group": "navigation"
64+
},
65+
{
66+
"command": "arc-vs-code.edit_study",
67+
"when": "explorerResourceIsFolder && resourceDirname =~ /.*?[\\\\\\\/]studies$/",
68+
"group": "navigation@1"
69+
},
70+
{
71+
"command": "arc-vs-code.delete_study",
72+
"when": "explorerResourceIsFolder && resourceDirname =~ /.*?[\\\\\\\/]studies$/",
73+
"group": "navigation@2"
74+
},
75+
{
76+
"command": "arc-vs-code.add_study",
77+
"when": "explorerResourceIsFolder && resourceFilename == studies",
78+
"group": "navigation"
79+
},
80+
{
81+
"command": "arc-vs-code.edit_assay",
82+
"when": "explorerResourceIsFolder && resourceDirname =~ /.*?[\\\\\\\/]assays$/",
83+
"group": "navigation@1"
84+
},
85+
{
86+
"command": "arc-vs-code.delete_assay",
87+
"when": "explorerResourceIsFolder && resourceDirname =~ /.*?[\\\\\\\/]assays$/",
88+
"group": "navigation@2"
89+
},
90+
{
91+
"command": "arc-vs-code.add_assay",
92+
"when": "explorerResourceIsFolder && resourceFilename == assays",
93+
"group": "navigation"
94+
}
95+
]
96+
}
97+
},
98+
"scripts": {
99+
"vscode:prepublish": "npm run compile",
100+
"build_vue": "npm run build --prefix=./src-vue/",
101+
"build_plugin": "./node_modules/vsce/vsce package",
102+
"install": "code --uninstall-extension nfdi4plants.arc-vs-code; code --install-extension ./arc-vs-code-1.0.0.vsix",
103+
"full": "npm run build_vue;npm run build_plugin;npm run install; code",
104+
"full2": "npm run build_plugin;npm run install; code",
105+
"compile": "tsc -p ./",
106+
"watch": "tsc -watch -p ./",
107+
"pretest": "npm run compile && npm run lint",
108+
"lint": "eslint src-plugin",
109+
"test": "vscode-test"
110+
},
111+
"devDependencies": {
112+
"@types/mocha": "^10.0.8",
113+
"@types/node": "20.x",
114+
"@types/vscode": "^1.94.0",
115+
"@typescript-eslint/eslint-plugin": "^8.7.0",
116+
"@typescript-eslint/parser": "^8.7.0",
117+
"@vscode/test-cli": "^0.0.10",
118+
"@vscode/test-electron": "^2.4.1",
119+
"eslint": "^9.11.1",
120+
"typescript": "^5.6.2",
121+
"vsce": "^2.15.0"
122+
}
123+
}

resources/icon.png

56.3 KB
Loading

0 commit comments

Comments
 (0)