加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
package.json 5.01 KB
一键复制 编辑 原始数据 按行查看 历史
smdsbz 提交于 2021-05-04 21:56 . dev: a working liveroom
{
"name": "vscdd",
"displayName": "vscdd",
"description": "Viva eSprite of 臭 「誰でも大好き」",
"publisher": "smdsbz",
"version": "0.0.2",
"preview": true,
"repository": {
"type": "git",
"url": "https://gitee.com/smdsbz/vscdd.git"
},
"engines": {
"vscode": "^1.55.0"
},
"categories": [
"Other",
"Visualization",
"Education"
],
"activationEvents": [
"onStartupFinished",
"onCommand:vscdd.startMonitoring",
"onCommand:vscdd.stopMonitoring",
"onCommand:vscdd.initAuth",
"onCommand:vscdd.refreshFollowsConfig",
"onCommand:vscdd.pullFollowingList",
"onCommand:vscdd.openLiveRoom"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "vscdd.startMonitoring",
"title": "启动查房 - Start snooping",
"category": "VSCDD"
},
{
"command": "vscdd.stopMonitoring",
"title": "停止查房 - Stop snooping",
"category": "VSCDD"
},
{
"command": "vscdd.initAuth",
"title": "重新登录 - Re-login",
"category": "VSCDD"
},
{
"command": "vscdd.refreshFollowsConfig",
"title": "刷新关注列表 - Refresh follows config",
"category": "VSCDD"
},
{
"command": "vscdd.pullFollowingList",
"title": "拉取关注列表 - Pull followings",
"category": "VSCDD"
},
{
"command": "vscdd.openLiveRoom",
"title": "LINK START",
"category": "VSCDD"
}
],
"configuration": {
"title": "VSCDD",
"properties": {
"vscdd.auth": {
"type": "object",
"default": {},
"markdownDescription": "__【个人信息】__ B 站登录相关,一般不需要在配置文件中自行设置。",
"scope": "machine-overridable"
},
"vscdd.follows": {
"type": "array",
"default": [
{
"uid": 3652858,
"special": true,
"hint": "author smdsbz"
},
{
"uid": 672455305,
"uname": "华小科Official",
"room_id": 22536559,
"special": true,
"hint": "hust xiaoke huaxiaoke"
}
],
"markdownDescription": "__DD 列表__ 列表中每一项必须包含 `uid: number` 主播 UID 字段。插件运行时会自动对该设置项进行更新与补充以作为缓存:`uname: string` 主播昵称, `room_id: number` 直播间号, `special: boolean` 是否为特别关注(特别关注一旦设定则不会自动更新,这意味着 VSCDD 中的特别关注与 B 站的特别关注可以分别管理)<small>(其实就是懒,所有缓存设置都不提供一致性,只在刷新时更新,特别关注只有初始化)</small>。用户也可以自行设置一些可选域,以帮助 VSCDD 更好地工作:`hint: string` 用作 QuickPick 模糊查询的补充信息。"
},
"vscdd.snooping.enableOnStartup": {
"type": "string",
"enum": [
"off",
"all",
"special"
],
"default": "all",
"markdownDescription": "VS Code 启动后即启动开播监测?"
},
"vscdd.snooping.promptOnStartup": {
"type": "string",
"enum": [
"off",
"all",
"special"
],
"default": "special",
"markdownEnumDescriptions": [
"启动时不弹出开播提示",
"启动时弹出开播提示",
"启动时仅对特别关注(见 #vscdd.follows#)弹出提示"
],
"markdownDescription": "启动开播监控时是否立即弹出正在直播的提醒?"
},
"vscdd.snooping.interval": {
"type": "number",
"default": 30,
"markdownDescription": "轮询直播间状态间隔(秒)。"
},
"vscdd.chromeExecutable": {
"type": "string",
"default": "",
"markdownDescription": "Chrome 可执行文件路径(新版套皮 Edge 也行)。macOS 用户还需要设置该应用的 `NSAppSleepDisabled` ([issue](https://bugs.chromium.org/p/chromium/issues/detail?id=741689))",
"scope": "machine"
},
"vscdd.renderQuality": {
"type": "number",
"minimum": 10,
"maximum": 100,
"default": 40,
"markdownDescription": "串流画面质量(0-100)"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run -S esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run -S esbuild-base -- --sourcemap",
"esbuild-watch": "npm run -S esbuild-base -- --sourcemap --watch",
"test-compile": "tsc -p ./",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.4",
"@types/node": "^12.11.7",
"@types/vscode": "^1.55.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"esbuild": "^0.11.17",
"eslint": "^7.19.0",
"glob": "^7.1.6",
"mocha": "^8.2.1",
"typescript": "^4.1.3",
"vscode-test": "^1.5.0"
},
"dependencies": {
"axios": "^0.21.1",
"puppeteer-core": "^9.1.0",
"qrcode": "^1.4.4"
},
"license": "MIT"
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化