Skip to content

Commit 5e4ec18

Browse files
committed
feat: add remote push
1 parent 3bd0494 commit 5e4ec18

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1185
-1457
lines changed

README.md

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# tech-study-plugin
2+
3+
### 描述 Description
4+
5+
- 一个基于 chrome 浏览器插件的学习强国助手
6+
7+
> 注意: 项目仍在开发阶段,功能尚不完全,如出现 bug ,属于正常情况,请及时反馈,谢谢!
8+
9+
### 交流群 Telegram Group
10+
11+
- 链接: [tech-study 互动群](https://t.me/+IJ_YzNc-Iew0MGRl)
12+
13+
- 二维码:
14+
15+
<img src="./src/images/group.png" style="width:200px;" alt="Telegram邀请二维码">
16+
17+
注:介于脚本国内敏感,暂时不提供其他交流互动方式。
18+
19+
### 安装 Install
20+
21+
1. 下载 Release 发布里最新版本的压缩包`tech-study-plugin.zip`
22+
23+
2. 解压压缩包到常用的文件夹,便于查找文件夹路径
24+
25+
3. 配置 chrome 或者 edge 浏览器(以下以 edge 浏览器为例)
26+
27+
- 进入 `edge://extensions/` 页面
28+
29+
- 打开开发者模式选项
30+
31+
<img src="./src/images/install_1.png" style="width:250px;" alt="打开开发者模式">
32+
33+
- 加载解压的扩展文件,确认安装扩展
34+
35+
<img src="./src/images/install_2.png" style="width:800px;" alt="加载解压缩的扩展">
36+
37+
- 在扩展栏显示插件图标
38+
39+
<img src="./src/images/install_3.png" style="width:300px;" alt="显示扩展图标">
40+
41+
### 保留 Keep
42+
43+
1. 支持二维码扫码,以及基于 pushplus 远程推送的登录方式
44+
45+
2. 支持用户昵称、头像、总分以及当天分数的显示
46+
47+
3. 支持任务进度以及任务分数详情显示
48+
49+
4. 支持文章选读以及视听学习
50+
51+
5. 支持自动答题以及处理滑动验证
52+
53+
### 使用流程 Process
54+
55+
1. 点击`扩展图标`或者在`强国`右键菜单
56+
57+
- 扩展图标 <img src="./src/images/process_1.png" style="width:40px;" alt="扩展图标">
58+
59+
- 右键菜单 <img src="./src/images/process_2.png" style="width:300px;" alt="右键菜单">
60+
61+
2. 连接扩展
62+
63+
- 检查扩展的连接状况
64+
65+
<img src="./src/images/process_3.png" style="width:250px;" alt="连接状况">
66+
67+
- 若显示`未连接`,可采取以下办法:
68+
69+
- 刷新已有的强国页面
70+
71+
- 打开新的强国页面
72+
73+
- 若显示`已连接`,直接下一步
74+
75+
3. 登录账号
76+
77+
<img src="./src/images/process_4.png" style="width:200px;" alt="登录账号">
78+
79+
4. 开始任务,等待任务完成
80+
81+
<img src="./src/images/process_5.png" style="width:200px;" alt="连接状况">
82+
83+
### 交流学习 Learning
84+
85+
1. 本项目采用 `typescript` + `less` 编写,由 `rollup` 进行打包构建
86+
87+
2. 使用 `rollup` 插件列表
88+
89+
- rollup-plugin-typescript2 解析打包 `typescript` 文件
90+
91+
- rollup-plugin-postcss 解析打包 `less` 文件
92+
93+
- rollup-plugin-create-html 将打包后的 `*.js``*.css ` 等文件注入 html 模板(自己写的模块)
94+
95+
- @rollup/plugin-node-resolve 解析打包导入的 `node_modules` 中的模块
96+
97+
- @rollup/plugin-commonjs 解析打包基于 `commonjs` 的模块
98+
99+
- @rollup/plugin-terser 代码压缩
100+
101+
3. 手写的 `Composition API` 和 元素节点渲染模块,支持收集数据的影响以进行数据变化以及影响结果的回调,支持数据驱动的响应式元素节点以及异步元素节点的渲染(简化版 [Composition API](./src/utils/composition.ts) 以及 [元素节点渲染](./src/utils/element.ts)

dist/background/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/inject/exam/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/inject/home/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/inject/readAndWatch/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)