Giter Club home page Giter Club logo

chaoxing-sign-ui's Introduction

chaoxing-sign-ui

本仓库不再维护,代码已整合到 chaoxing-sign-cli,只需关注该项目即可。

chaoxing-sign-ui's People

Contributors

cxorz avatar wen-templari avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chaoxing-sign-ui's Issues

ui界面对服务器配置要求高吗

这个ui界面所有的依赖安装之后70多mb,我本地可以运行起来,一到服务器就出现负载拉满cpu堵塞,这个对服务器要求高吗,我的是2h2g的,麻烦告诉一下

部署后打开一片空白

2_L`EF$2G6}LBTCU63MIF V
大佬,为什么部署以后打开一片空白,而且F12里竟然显示找不到那个css和js,我去看了下路径是对的啊??
不管是远程访问还是服务器本地访问都不行,郁闷死了
image

api.ts内不含baseUrl,之前搭建时正常

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'
  }
};

yarn start后报错

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繁忙或缓存没有及时刷新。

额,这个问题大吗,运行yarn install,安装到第三步的时候

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".

新功能建议

在首页添加一个刷新按钮,按下后自动扫描所有已添加账号的签到状态和类型,并将其显示在首页的卡片上。
添加一个一键签到按钮,允许用户使用同一个参数对所有同签到类型的账号进行签到(列表选择),并将结果以列表的方式返回,运行前必须执行刷新指令。

关于服务端的api

服务端api能不写死吗,通过网址传参。
或者加一个api修改的页面。

这个静态网页挂在vercel上,本地服务器没有公网ip,不好连接。

你好作者,我想请教一下身份过期和守护进程的问题

你好作者,尝试了几个账号,出现这个“身份过期,程序将关闭,请你使用手动填写用户名密码的方式登录!手动登录后身份信息刷新,之后可继续使用本地凭证!” 请问这个是什么原因呢?还有我在服务器用pm2守护了chaoxing-sign-cli API的进程,使其在ssh断开后保持正常工作,但是这样一来ui端只要ssh断开就不能访问了,请问ui端可以使用进程守护吗?

移动端适配问题

机型:苹果13
使用 safari 与 Alook 浏览器均出现如下情况,第一次使用时页面正常,之后页面都一片空白
微信图片_20220420103651

无法添加账号

好像还是有问题呢,这个我属实不懂react,这个build之后会生成一个build文件夹,但是部署静态网站的时候只需要上传build文件夹里面的内容吗,还是说其他的所有的文件夹,包括src等的文件都需要上传呢,我总是出问题,部署之后可以打开界面,但是添加不了账号,我怀疑就是文件应该全部上传,但是上传之后也是打不开,php版本我选择的纯静态。如果只是上传build文件夹,那么接口要去哪里配置。

无法添加账号

两个项目对存放路径做要求的吗?并行或者是其他?

构建时报错

[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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.