加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
package.json 7.20 KB
一键复制 编辑 原始数据 按行查看 历史
双反光 提交于 2022-05-09 21:38 . md 更新
{
"name": "fish-book",
"displayName": "Fish book",
"description": "专门为摸鱼而生",
"version": "0.0.2",
"engines": {
"vscode": "^1.66.0"
},
"publisher": "Chensy",
"icon": "media/book.png",
"keywords": [
"小说",
"摸鱼",
"爬虫",
"自定义配置"
],
"repository": "https://gitee.com/shuangfanguang/Thief-Book-VSCode",
"categories": [
"Other"
],
"activationEvents": [
"onCommand",
"onView:nodeDependencies",
"onView:fishBookView",
"onCommand:extension.bookStart"
],
"main": "./dist/extension.js",
"contributes": {
"viewsWelcome": [
{
"view": "nodeDependencies",
"contents": "No node dependencies found [learn more](https://www.npmjs.com/).\n[Add Dependency](command:nodeDependencies.addEntry)"
},
{
"view": "fishBookView",
"contents": "Unset file directory.\n [Config](command:fishBookView.addEntry)"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "package-explorer",
"title": "Package Explorer",
"icon": "media/dep.svg"
},
{
"id": "fish-book-view",
"title": "Fish Book",
"icon": "media/fish.svg"
}
]
},
"views": {
"package-explorer": [
{
"id": "nodeDependencies",
"name": "Node Dependencies",
"icon": "media/dep.svg",
"contextualTitle": "Package Explorer"
}
],
"fish-book-view": [
{
"id": "fishBookView",
"name": "File Directory",
"icon": "media/fish.svg",
"contextualTitle": "This fish book."
},
{
"id": "requestGroup",
"name": "Request Group",
"icon": "media/fish.svg",
"contextualTitle": "This request group."
}
]
},
"configuration": {
"title": "Thief-Book",
"type": "object",
"properties": {
"thiefBook.currPageNumber": {
"type": "number",
"default": 1,
"description": "当前小说页数(支持跳转) & Pages of Current Novels (Support jumping)"
},
"thiefBook.pageSize": {
"type": "number",
"default": 50,
"description": "每页文字数量 & Number of text per page"
},
"thiefBook.filePath": {
"type": "string",
"default": "",
"description": "TXT格式小说绝对路径 & Absolute Path of TXT Format Novels"
}
}
},
"commands": [
{
"command": "fishbook.displayCode",
"title": "fish-book.DisplayCode"
},
{
"command": "fishbook.getPreviousPage",
"title": "fish-book.PreviousBook"
},
{
"command": "fishbook.getNextPage",
"title": "fish-book.NextBook"
},
{
"command": "fishbook.getJumpingPage",
"title": "fish-book.JumpingBook"
},
{
"command": "fishbook.bookStart",
"title": "Book Start"
},
{
"command": "fishbook.bookInfo",
"title": "Book Info"
},
{
"command": "nodeDependencies.refreshEntry",
"title": "Refresh",
"icon": {
"light": "media/refresh.svg",
"dark": "media/refresh.svg"
}
},
{
"command": "nodeDependencies.addEntry",
"title": "Add"
},
{
"command": "nodeDependencies.editEntry",
"title": "Edit",
"icon": {
"light": "media/edit.svg",
"dark": "media/edit.svg"
}
},
{
"command": "nodeDependencies.deleteEntry",
"title": "Delete"
},
{
"command": "requestGroup.addEntry",
"title": "Add"
},
{
"command": "requestGroup.editEntry",
"title": "Edit",
"icon": {
"light": "media/edit.svg",
"dark": "media/edit.svg"
}
},
{
"command": "requestGroup.deleteEntry",
"title": "Delete"
},
{
"command": "requestGroup.refreshEntry",
"title": "Refresh",
"icon": {
"light": "media/refresh.svg",
"dark": "media/refresh.svg"
}
},
{
"command": "fishBookView.addEntry",
"title": "Add"
},
{
"command": "fishBookView.editEntry",
"title": "Edit",
"icon": {
"light": "media/edit.svg",
"dark": "media/edit.svg"
}
},
{
"command": "fishBookView.deleteEntry",
"title": "Delete"
},
{
"command": "fishBookView.refreshEntry",
"title": "Refresh",
"icon": {
"light": "media/refresh.svg",
"dark": "media/refresh.svg"
}
},
{
"command": "fishBookView.viewDetailEntry",
"title": "View"
},
{
"command": "fishBookView.startView",
"title": "startView",
"icon": {
"light": "media/fish-view.svg",
"dark": "media/fish-view.svg"
}
}
],
"menus": {
"view/title": [
{
"command": "nodeDependencies.refreshEntry",
"when": "view == nodeDependencies",
"group": "navigation"
},
{
"command": "nodeDependencies.addEntry",
"when": "view == nodeDependencies"
},
{
"command": "requestGroup.refreshEntry",
"when": "view == requestGroup",
"group": "navigation"
},
{
"command": "requestGroup.addEntry",
"when": "view == requestGroup"
},
{
"command": "fishBookView.refreshEntry",
"when": "view == fishBookView",
"group": "navigation"
},
{
"command": "fishBookView.addEntry",
"when": "view == fishBookView"
}
],
"view/item/context": [
{
"command": "nodeDependencies.editEntry",
"when": "view == nodeDependencies && viewItem == dependency",
"group": "inline"
},
{
"command": "nodeDependencies.deleteEntry",
"when": "view == nodeDependencies && viewItem == dependency"
},
{
"command": "requestGroup.editEntry",
"when": "view == requestGroup",
"group": "inline"
},
{
"command": "requestGroup.deleteEntry",
"when": "view == requestGroup"
},
{
"command": "fishBookView.editEntry",
"when": "view == fishBookView && viewItem == book",
"group": "inline"
},
{
"command": "fishBookView.deleteEntry",
"when": "view == fishBookView && viewItem == book"
},
{
"command": "fishBookView.viewDetailEntry",
"when": "view == fishBookView && viewItem == detail"
},
{
"command": "fishBookView.startView",
"when": "view == fishBookView && viewItem == detail",
"group": "inline"
}
]
},
"keybindings": [
{
"command": "fishbook.getPreviousPage",
"key": "alt+,",
"mac": "cmd+,"
},
{
"command": "fishbook.getNextPage",
"key": "alt+.",
"mac": "cmd+."
},
{
"command": "fishbook.getJumpingPage",
"key": "alt+;",
"mac": "cmd+;"
},
{
"command": "fishbook.displayCode",
"key": "alt+m",
"mac": "cmd+m"
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"vscode:package": "vsce package --no-yarn",
"vscode:publish": "vsce publish --no-yarn"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.1.0",
"@types/node": "14.x",
"@types/vscode": "^1.66.0",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"@vscode/test-electron": "^2.1.3",
"eslint": "^8.11.0",
"glob": "^7.2.0",
"mocha": "^9.2.2",
"ts-loader": "^9.2.8",
"ts-node": "^10.7.0",
"typescript": "^4.5.5",
"webpack": "^5.70.0",
"webpack-cli": "^4.9.2"
},
"dependencies": {
"axios": "^0.27.1",
"copy-webpack-plugin": "^10.2.4",
"html-to-text": "^8.2.0"
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化