cxorz / chaoxing-sign-ui Goto Github PK
View Code? Open in Web Editor NEW超星学习通签到图形化界面。
License: MIT License
超星学习通签到图形化界面。
License: MIT License
cli运行在云服务器上,端口为默认,访问ip:5000可以看到“Welcome, chaoxing-sign-cli API service is running.”
本地通过yarn start启动ui后通过localhost:3000可以进行添加账户,签到操作,但是yarn build后部署到托管上无法添加账号,如 #11
控制台输出如图
这个ui界面所有的依赖安装之后70多mb,我本地可以运行起来,一到服务器就出现负载拉满cpu堵塞,这个对服务器要求高吗,我的是2h2g的,麻烦告诉一下
点击添加账户按钮没有反应
export const LOGIN_PAGE = {
URL: 'http://passport2.chaoxing.com/mlogin?fid=&newversion=true&refer=http%3A%2F%2Fi.chaoxing.com',
METHOD: 'GET'
};
export const LOGIN = {
URL: 'http://passport2.chaoxing.com/fanyalogin',
METHOD: 'POST',
};
export const PRESIGN = {
URL: 'https://mobilelearn.chaoxing.com/newsign/preSign',
METHOD: 'GET'
};
export const PPTSIGN = {
URL: 'https://mobilelearn.chaoxing.com/pptSign/stuSignajax',
METHOD: 'GET'
};
export const PPTACTIVEINFO = {
URL: 'https://mobilelearn.chaoxing.com/v2/apis/active/getPPTActiveInfo',
METHOD: 'GET'
};
export const COURSELIST = {
URL: 'http://mooc1-1.chaoxing.com/visit/courselistdata',
METHOD: 'POST'
};
`export` const BACKCLAZZDATA = {
URL: 'http://mooc1-api.chaoxing.com/mycourse/backclazzdata',
METHOD: 'GET'
};
export const ACTIVELIST = {
URL: 'https://mobilelearn.chaoxing.com/v2/apis/active/student/activelist',
METHOD: 'GET'
};
export const ACCOUNTMANAGE = {
URL: 'http://passport2.chaoxing.com/mooc/accountManage',
METHOD: 'GET'
};
export const PANCHAOXING = {
URL: 'https://pan-yz.chaoxing.com',
METHOD: 'GET'
};
export const PANLIST = {
URL: 'https://pan-yz.chaoxing.com/opt/listres',
METHOD: 'POST'
};
export const PANTOKEN = {
URL: 'https://pan-yz.chaoxing.com/api/token/uservalid',
METHOD: 'GET'
};
export const PANUPLOAD = {
URL: 'https://pan-yz.chaoxing.com/upload',
METHOD: 'POST'
};
export const WEBIM = {
URL: 'https://im.chaoxing.com/webim/me',
METHOD: 'GET'
};
// 无课程的群聊的一些 API
export const CHAT_GROUP = {
PRESTUSIGN: {
URL: 'https://mobilelearn.chaoxing.com/sign/preStuSign',
METHOD: 'GET'
},
SIGN: {
URL: 'https://mobilelearn.chaoxing.com/sign/stuSignajax',
METHOD: 'GET'
}
};
The build failed because the process exited too early. This probably means the system ran out of memory or someone called kill -9
on the process.
签到成功后再一段时间内仍然能扫描出签到活动,多次签到也能正常触发“重复签到”提示,推测是后端API繁忙或缓存没有及时刷新。
warning "@emotion/react > @emotion/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
warning "@emotion/react > @emotion/babel-plugin > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > @mui/[email protected]" has incorrect peer dependency "react@^17.0.0".
warning " > @mui/[email protected]" has incorrect peer dependency "react@^17.0.0".
warning " > @mui/[email protected]" has incorrect peer dependency "react-dom@^17.0.0".
warning "@mui/material > @mui/[email protected]" has incorrect peer dependency "react@^17.0.0".
warning "@mui/material > @mui/[email protected]" has incorrect peer dependency "react-dom@^17.0.0".
warning "@mui/material > @mui/[email protected]" has incorrect peer dependency "react@^17.0.0".
warning "@mui/material > @mui/[email protected]" has incorrect peer dependency "react@^17.0.0".
warning "@mui/material > @mui/system > @mui/[email protected]" has incorrect peer dependency "react@^17.0.0".
warning "@mui/material > @mui/system > @mui/[email protected]" has incorrect peer dependency "react@^17.0.0".
warning " > @testing-library/[email protected]" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning "react-scripts > [email protected]" has unmet peer dependency "autoprefixer@^10.0.2".
warning "react-scripts > eslint-config-react-app > [email protected]" has unmet peer dependency "@babel/plugin-syntax-flow@^7.14.5".
warning "react-scripts > eslint-config-react-app > [email protected]" has unmet peer dependency "@babel/plugin-transform-react-jsx@^7.14.9".
warning "react-scripts > react-dev-utils > [email protected]" has unmet peer dependency "typescript@>= 2.7".
warning "react-scripts > eslint-config-react-app > @typescript-eslint/eslint-plugin > [email protected]" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
yarn install时报错
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=14.0.0". Got "12.22.7"
在首页添加一个刷新按钮,按下后自动扫描所有已添加账号的签到状态和类型,并将其显示在首页的卡片上。
添加一个一键签到按钮,允许用户使用同一个参数对所有同签到类型的账号进行签到(列表选择),并将结果以列表的方式返回,运行前必须执行刷新指令。
服务端api能不写死吗,通过网址传参。
或者加一个api修改的页面。
这个静态网页挂在vercel上,本地服务器没有公网ip,不好连接。
你好作者,尝试了几个账号,出现这个“身份过期,程序将关闭,请你使用手动填写用户名密码的方式登录!手动登录后身份信息刷新,之后可继续使用本地凭证!” 请问这个是什么原因呢?还有我在服务器用pm2守护了chaoxing-sign-cli API的进程,使其在ssh断开后保持正常工作,但是这样一来ui端只要ssh断开就不能访问了,请问ui端可以使用进程守护吗?
好像还是有问题呢,这个我属实不懂react,这个build之后会生成一个build文件夹,但是部署静态网站的时候只需要上传build文件夹里面的内容吗,还是说其他的所有的文件夹,包括src等的文件都需要上传呢,我总是出问题,部署之后可以打开界面,但是添加不了账号,我怀疑就是文件应该全部上传,但是上传之后也是打不开,php版本我选择的纯静态。如果只是上传build文件夹,那么接口要去哪里配置。
两个项目对存放路径做要求的吗?并行或者是其他?
cli能正常签到,也添加了账号。但使用ui版点击确认提交无反应
跪求大佬出个ui的教程
[root@VM-16-15-centos chaoxing-sign-ui-main]# yarn build
yarn run v1.22.19
$ tsc && vite build
src/components/UserCard/UserCard.tsx:14:30 - error TS2307: Cannot find module '../../hooks/useLongPress' or its corresponding type declarations.
14 import { useLongPress } from '../../hooks/useLongPress'
~~~~~~~~~~~~~~~~~~~~~~~~~~
src/components/UserCard/UserCard.tsx:26:31 - error TS7006: Parameter 'pos' implicitly has an 'any' type.
26 const [ref] = useLongPress((pos) => {
~~~
Found 2 errors in the same file, starting at: src/components/UserCard/UserCard.tsx:14
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.