Skip to content

Commit e585d9d

Browse files
committed
Refactor code structure for improved readability and maintainability
1 parent 0096760 commit e585d9d

File tree

7 files changed

+2800
-2222
lines changed

7 files changed

+2800
-2222
lines changed

bin/color_picker.exe

240 KB
Binary file not shown.

images/app.png

1.85 KB
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "replace_me_with_name",
33
"version": "0.0.1",
44
"scripts": {
5-
"build": "pnpm clean && ncc build src/index.ts -o dist && babel dist --out-dir dist && cp -r images dist && cp -r plugin.json dist",
5+
"build": "pnpm clean && ncc build src/index.ts -o dist && babel dist --out-dir dist && cp -r images dist && cp -r plugin.json dist && cp -r bin dist",
66
"package": "pnpm build && cd dist && zip -r ../replace_me_with_name.wox *.js *.json images",
77
"dev": "nodemon --watch src --watch images --watch plugin.json --ext json,ts,js,mjs,png --exec pnpm run build",
88
"clean": "node -e \"var { rmdirSync, existsSync } = require('fs'), path = require('path'); ['./dist'].forEach(fPath => {if (existsSync(path.join(__dirname, fPath))) rmdirSync(path.join(__dirname, fPath), { recursive: true })}); process.exit(0);\"",

plugin.json

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,32 @@
11
{
2-
"Id": "[Id]",
3-
"TriggerKeywords": ["[Trigger Keyword]"],
4-
"Name": "[Name]",
5-
"Description": "[Description]",
6-
"Author": "[Author Name]",
2+
"Id": "9014abc5-7a57-46c4-8961-abf3d8f1b008",
3+
"TriggerKeywords": ["color"],
4+
"Commands": [
5+
{
6+
"Command":"pick",
7+
"Description":"Pick a color from the screen"
8+
}
9+
],
10+
"Name": "Color Picker",
11+
"Description": "Wox plugin to pick colors",
12+
"Author": "Wox-Launcher",
713
"Version": "0.0.1",
814
"MinWoxVersion": "2.0.0",
915
"Runtime": "nodejs",
10-
"Website": "[Website]",
16+
"Website": "https://github.com/Wox-launcher/Wox.Plugin.ColorPicker",
1117
"Entry": "index.js",
1218
"Icon": "relative:images/app.png",
13-
"SupportedOS": ["windows", "linux", "darwin"]
14-
}
19+
"SupportedOS": ["windows", "darwin"],
20+
"Features": [
21+
{
22+
"Name": "gridLayout",
23+
"Params": {
24+
"Columns": 6,
25+
"ItemPadding": 8,
26+
"ItemMargin": 8,
27+
"ShowTitle": true,
28+
"Commands": "!pick"
29+
}
30+
}
31+
]
32+
}

0 commit comments

Comments
 (0)