Skip to content

Commit

Permalink
feat(app): 新增仪表盘功能,新增浏览器拓展管理功能,新增新手教程功能,新增批量运行文件功能,并重写文件管理系统。
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Jun 24, 2022
1 parent 5a9045e commit 8adfede
Show file tree
Hide file tree
Showing 206 changed files with 25,504 additions and 13,805 deletions.
14 changes: 8 additions & 6 deletions .github/ISSUE_TEMPLATE/------.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
---
name: 新增脚本模板
about: 用于请求添加新的脚本
title: "[新增脚本] 请求新增脚本:xxx脚本"
title: '[新增脚本] 请求新增脚本:xxx脚本'
labels: new script
assignees: enncy

---

请求新增xxx脚本,具体网课详情如下:
请求新增 xxx 脚本,具体网课详情如下:

网课名:xxx
网课链接:https://xxx.xxx.com/xxx

### 脚本1:
### 脚本 1:

脚本名:学习脚本
执行页面:https://xxx.xxx.com/study/xxx
具体描述:页面加载后开始播放视频

### 脚本2:
### 脚本 2:

脚本名:作业脚本
执行页面:https://xxx.xxx.com/homework/xxx
具体描述:页面加载后开始做作业

****
---

补充说明: 这里是我的补充说明
13 changes: 6 additions & 7 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
---
name: bug
about: 报告/提交漏洞
title: "[bug] : BUG xxx"
title: '[bug] : BUG xxx'
labels: ''
assignees: enncy

---

**BUG描述**
**BUG 描述**

**重现方法**

1. 进入 '...'
2. 点击 '....'
3. 滚动到 '....'
4. 看到此BUG
4. 看到此 BUG

**预期行为**
应该是xxx动作,而不是xxx动作
应该是 xxx 动作,而不是 xxx 动作

**屏幕截图**
如果可以请附带截图。

**浏览器类型**
谷歌/Edge/...

**解决方案**
如果可以,请提供您的解决思路
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/feat.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: feat
about: 建议或者新功能新想法
title: "[feat] : 新特性XXX"
title: '[feat] : 新特性XXX'
labels: ''
assignees: enncy

---

**特性说明**
Expand Down
22 changes: 17 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"cSpell.words": [
"xmlhttp"
]
}
{
"cSpell.words": ["xmlhttp"],
"eslint.validate": ["javascript", "javascriptreact", "vue"],
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"less.compile": {
"compress": false,
"sourceMap": false,
"out": "../css/",
"main": "common.less"
},
"editor.mouseWheelZoom": true,
"editor.mouseWheelScrollSensitivity": 2
}
699 changes: 211 additions & 488 deletions CHANGELOG.md

Large diffs are not rendered by default.

43 changes: 21 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
<div align="center">

# OCS 网课助手

> OCS (Online Course Script) 网课刷课脚本,帮助大学生解决网课难题
![GitHub Repo stars](https://img.shields.io/github/stars/ocsjs/ocsjs?style=flat-square)
![npm](https://img.shields.io/npm/v/ocsjs?color=red&style=flat-square)
![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hd/ocsjs?color=%23ff5627&label=jsDelivr&logoColor=%23555555&style=flat-square)
![NPM](https://img.shields.io/npm/l/ocsjs?style=flat-square)
![npm bundle size](https://img.shields.io/bundlephobia/min/ocsjs?style=flat-square)

</div>

# 关于

- [使用方法](https://docs.ocsjs.com)
- [功能列表](https://docs.ocsjs.com/feat-list)
- [项目开发](https://docs.ocsjs.com/docs/更多/api)
- [疑难问答](https://docs.ocsjs.com/docs/更多/FQA)
- [更新日志](CHANGELOG.md)

<div align="center">

<img src="https://cdn.ocsjs.com/resources/img/logo.jpg" width=124 height=124 style="border-radius:50%" />

# OCS 网课助手

> OCS (Online Course Script) 网课刷课脚本,帮助大学生解决网课难题
![GitHub Repo stars](https://img.shields.io/github/stars/ocsjs/ocsjs)
![npm](https://img.shields.io/npm/v/ocsjs?color=red)
![NPM](https://img.shields.io/npm/l/ocsjs)
![今日安装](https://img.shields.io/badge/dynamic/json?color=orange&label=今日安装&query=$.data.today_install&url=https://scriptcat.org/api/v1/scripts/367)
![总共安装](https://img.shields.io/badge/dynamic/json?color=red&label=总共安装&query=$.data.total_install&url=https://scriptcat.org/api/v1/scripts/367)

</div>

<div align="center">

## 官网及教程 [https://docs.ocsjs.com](https://docs.ocsjs.com)

</div>
133 changes: 67 additions & 66 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,67 +1,68 @@
{
"name": "ocsjs",
"version": "3.17.4",
"description": "ocs - online course script 在线网络课程辅助工具",
"types": "./lib/src/core/index.d.ts",
"main": "./lib/src/core/index.js",
"files": [
"lib",
"dist"
],
"scripts": {
"dev:core": "gulp -f ./scripts/dev-core.js",
"build:core": "pnpm lint && pnpm build && gulp -f ./scripts/build-core.js",
"build:app": "pnpm lint && pnpm build && gulp -f ./scripts/build-app.js",
"build": "pnpm lint && gulp -f ./scripts/tsc.js",
"lint": "eslint ./packages --ext .ts,.tsx,.js,.jsx,.vue --fix",
"release": "sh ./scripts/release.sh",
"pub:minor": "npm version minor && pnpm build:core && npm publish",
"pub:major": "npm version major && pnpm build:core && npm publish",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md --same-file -r 0"
},
"devDependencies": {
"@types/node": "^17.0.16",
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"cz-conventional-changelog": "^3.3.0",
"del": "^6.0.0",
"eslint": "^7.12.1",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-vue": "^8.6.0",
"gulp": "^4.0.2",
"gulp-cli": "^2.3.0",
"gulp-zip": "^5.1.0",
"prettier": "^2.6.2",
"typescript": "^4.5.5"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ocsjs/ocsjs.git"
},
"keywords": [
"ocs",
"script",
"playwright",
"puppeteer",
"electron",
"vue",
"ant-design-vue",
"typescript"
],
"author": "enncy",
"license": "MIT",
"bugs": {
"url": "https://github.com/ocsjs/ocsjs/issues"
},
"homepage": "https://github.com/ocsjs/ocsjs#readme",
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
"name": "ocsjs",
"version": "3.17.4",
"description": "ocs - online course script 在线网络课程辅助工具",
"types": "./lib/src/core/index.d.ts",
"main": "./lib/src/core/index.js",
"files": [
"lib",
"dist"
],
"scripts": {
"dev:core": "gulp -f ./scripts/dev-core.js",
"build:core": "pnpm lint && pnpm build && gulp -f ./scripts/build-core.js",
"build:app": "pnpm lint && pnpm build && gulp -f ./scripts/build-app.js",
"build": "pnpm lint && gulp -f ./scripts/tsc.js",
"lint": "pnpm format && eslint ./packages --ext .ts,.tsx,.js,.jsx,.vue --fix",
"format": "prettier . --write",
"release": "sh ./scripts/release.sh",
"pub:minor": "npm version minor && pnpm build:core && npm publish",
"pub:major": "npm version major && pnpm build:core && npm publish",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md --same-file -r 0"
},
"devDependencies": {
"@types/node": "^17.0.16",
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"cz-conventional-changelog": "^3.3.0",
"del": "^6.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-vue": "^8.6.0",
"gulp": "^4.0.2",
"gulp-cli": "^2.3.0",
"gulp-zip": "^5.1.0",
"prettier": "^2.6.2",
"typescript": "^4.5.5"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ocsjs/ocsjs.git"
},
"keywords": [
"ocs",
"script",
"playwright",
"puppeteer",
"electron",
"vue",
"ant-design-vue",
"typescript"
],
"author": "enncy",
"license": "MIT",
"bugs": {
"url": "https://github.com/ocsjs/ocsjs/issues"
},
"homepage": "https://github.com/ocsjs/ocsjs#readme",
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
70 changes: 34 additions & 36 deletions packages/app/electron.builder.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,34 @@
{
"$schema": "https://json.schemastore.org/electron-builder.json",
"appId": "ocs.enncy.cn",
"productName": "ocs",
"asar": false,
"copyright": "Copyright © 2021 ${author}",
"nsis": {
"oneClick": true
},
"win": {
"icon": "public/favicon.ico",
"artifactName": "${productName}-${version}-setup-${os}-${arch}.${ext}",
"target": [
{
"target": "nsis",
"arch": [
"ia32",
"x64"
]
},
{
"target": "zip"
}
]
},
"mac": {
"icon": "public/favicon.ico",
"artifactName": "${productName}-${version}-setup-${os}-${arch}.${ext}",
"target": "default"
},
"fileAssociations": {
"ext": "ocs",
"icon": "public/favicon.ico",
"name": "ocs 脚本"
}
}
{
"$schema": "https://json.schemastore.org/electron-builder.json",
"appId": "ocs.enncy.cn",
"productName": "ocs",
"asar": false,
"copyright": "Copyright © 2021 ${author}",
"nsis": {
"oneClick": true,
"uninstallDisplayName": "${productName} ${version} 卸载程序"
},
"win": {
"icon": "public/favicon.ico",
"artifactName": "${productName}-${version}-setup-${os}-${arch}.${ext}",
"target": [
{
"target": "nsis",
"arch": ["x64"]
},
{
"target": "zip"
}
]
},
"mac": {
"icon": "public/favicon.ico",
"artifactName": "${productName}-${version}-setup-${os}-${arch}.${ext}",
"target": "default"
},
"fileAssociations": {
"ext": "ocs",
"icon": "public/favicon.ico",
"name": "ocs 脚本"
}
}
Loading

0 comments on commit 8adfede

Please sign in to comment.