mirror of
https://github.com/PlayEdu/backend
synced 2025-07-29 03:19:33 +08:00
Compare commits
No commits in common. "b49c73f338170a72095239366c4de56a4679841c" and "015dc667cba0f7c80a89e3bd30129001401c571f" have entirely different histories.
b49c73f338
...
015dc667cb
12
package.json
12
package.json
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "playedu-admin-interface",
|
"name": "frontend",
|
||||||
"private": false,
|
"private": true,
|
||||||
"version": "1.6.0",
|
"version": "0.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
@ -14,7 +14,6 @@
|
|||||||
"ahooks": "^3.7.6",
|
"ahooks": "^3.7.6",
|
||||||
"antd": "^5.3.2",
|
"antd": "^5.3.2",
|
||||||
"axios": "^1.3.4",
|
"axios": "^1.3.4",
|
||||||
"dayjs": "^1.11.10",
|
|
||||||
"echarts": "^5.4.2",
|
"echarts": "^5.4.2",
|
||||||
"localforage": "^1.10.0",
|
"localforage": "^1.10.0",
|
||||||
"match-sorter": "^6.3.1",
|
"match-sorter": "^6.3.1",
|
||||||
@ -25,11 +24,12 @@
|
|||||||
"react-router-dom": "^6.9.0",
|
"react-router-dom": "^6.9.0",
|
||||||
"redux": "^4.2.1",
|
"redux": "^4.2.1",
|
||||||
"sort-by": "^1.2.0",
|
"sort-by": "^1.2.0",
|
||||||
|
"web-vitals": "^3.3.0",
|
||||||
"xlsx": "^0.18.5"
|
"xlsx": "^0.18.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "^18.2.0",
|
"@types/react": "^18.0.28",
|
||||||
"@types/react-dom": "^18.2.0",
|
"@types/react-dom": "^18.0.11",
|
||||||
"@vitejs/plugin-react-swc": "^3.0.0",
|
"@vitejs/plugin-react-swc": "^3.0.0",
|
||||||
"less": "^4.1.3",
|
"less": "^4.1.3",
|
||||||
"rollup-plugin-gzip": "^3.1.0",
|
"rollup-plugin-gzip": "^3.1.0",
|
||||||
|
1
public/js/xg/hls.min.js
vendored
Normal file
1
public/js/xg/hls.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
21
public/js/xg/index.js
Normal file
21
public/js/xg/index.js
Normal file
File diff suppressed because one or more lines are too long
@ -14,7 +14,7 @@ export const BackBartment = (props: PropInterface) => {
|
|||||||
return (
|
return (
|
||||||
<div className={styles["back-bar-box"]}>
|
<div className={styles["back-bar-box"]}>
|
||||||
<Button
|
<Button
|
||||||
style={{ paddingLeft: 0 }}
|
style={{paddingLeft:0}}
|
||||||
icon={<LeftOutlined />}
|
icon={<LeftOutlined />}
|
||||||
type="link"
|
type="link"
|
||||||
danger
|
danger
|
||||||
|
@ -35,7 +35,7 @@ export const Footer: React.FC<PropInterface> = ({ type }) => {
|
|||||||
className="ml-5"
|
className="ml-5"
|
||||||
style={{ color: "#D7D7D7", fontSize: 12, marginTop: -5 }}
|
style={{ color: "#D7D7D7", fontSize: 12, marginTop: -5 }}
|
||||||
>
|
>
|
||||||
Version 1.6
|
Version 1.5
|
||||||
</span>
|
</span>
|
||||||
</Link>
|
</Link>
|
||||||
</Layout.Footer>
|
</Layout.Footer>
|
||||||
|
@ -2,6 +2,7 @@ import ReactDOM from "react-dom/client";
|
|||||||
import "./assets/iconfont/iconfont.css";
|
import "./assets/iconfont/iconfont.css";
|
||||||
import "./index.less";
|
import "./index.less";
|
||||||
import App from "./App";
|
import App from "./App";
|
||||||
|
import reportWebVitals from "./reportWebVitals";
|
||||||
import { BrowserRouter } from "react-router-dom";
|
import { BrowserRouter } from "react-router-dom";
|
||||||
import { Provider } from "react-redux";
|
import { Provider } from "react-redux";
|
||||||
import store from "./store";
|
import store from "./store";
|
||||||
@ -24,3 +25,8 @@ ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
|||||||
</ConfigProvider>
|
</ConfigProvider>
|
||||||
</Provider>
|
</Provider>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// If you want to start measuring performance in your app, pass a function
|
||||||
|
// to log results (for example: reportWebVitals(console.log))
|
||||||
|
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
||||||
|
reportWebVitals();
|
||||||
|
@ -86,10 +86,10 @@ export const MemberCreate: React.FC<PropInterface> = ({
|
|||||||
if (loading) {
|
if (loading) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// if (values.idCard !== "" && !ValidataCredentials(values.idCard)) {
|
if (values.idCard !== "" && !ValidataCredentials(values.idCard)) {
|
||||||
// message.error("请输入正确的身份证号!");
|
message.error("请输入正确的身份证号!");
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
user
|
user
|
||||||
.storeUser(
|
.storeUser(
|
||||||
|
@ -108,10 +108,10 @@ export const MemberUpdate: React.FC<PropInterface> = ({
|
|||||||
if (loading) {
|
if (loading) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// if (values.idCard !== "" && !ValidataCredentials(values.idCard)) {
|
if (values.idCard !== "" && !ValidataCredentials(values.idCard)) {
|
||||||
// message.error("请输入正确的身份证号!");
|
message.error("请输入正确的身份证号!");
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
user
|
user
|
||||||
.updateUser(
|
.updateUser(
|
||||||
|
15
src/reportWebVitals.ts
Normal file
15
src/reportWebVitals.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { ReportHandler } from 'web-vitals';
|
||||||
|
|
||||||
|
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
|
||||||
|
if (onPerfEntry && onPerfEntry instanceof Function) {
|
||||||
|
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
||||||
|
getCLS(onPerfEntry);
|
||||||
|
getFID(onPerfEntry);
|
||||||
|
getFCP(onPerfEntry);
|
||||||
|
getLCP(onPerfEntry);
|
||||||
|
getTTFB(onPerfEntry);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
export default reportWebVitals;
|
Loading…
x
Reference in New Issue
Block a user