Compare commits
20 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
80df346ec3 | 4 years ago |
|
|
da6726e223 | 4 years ago |
|
|
bed2cd0724 | 4 years ago |
|
|
dac1abc111 | 4 years ago |
|
|
0394e1e410 | 4 years ago |
|
|
b3f50add57 | 4 years ago |
|
|
d25d7fa890 | 4 years ago |
|
|
1dfa29f3d1 | 4 years ago |
|
|
3c2d44013e | 4 years ago |
|
|
54b7548879 | 4 years ago |
|
|
e419c00c50 | 4 years ago |
|
|
4872457bfb | 4 years ago |
|
|
fab7d28d70 | 4 years ago |
|
|
10db0cbb2d | 4 years ago |
|
|
35bdebe5d9 | 4 years ago |
|
|
33e6bfb1b5 | 4 years ago |
|
|
d5a1dd007c | 4 years ago |
|
|
556d0f31ff | 4 years ago |
|
|
487fd2b6c8 | 4 years ago |
|
|
eeff4c0eaf | 4 years ago |
@ -1,9 +0,0 @@
|
||||
const { override, fixBabelImports } = require('customize-cra');
|
||||
|
||||
module.exports = override(
|
||||
fixBabelImports('import', {
|
||||
libraryName: 'antd',
|
||||
libraryDirectory: 'es',
|
||||
style: 'css',
|
||||
}),
|
||||
);
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1 @@
|
||||
@import '~antd/dist/antd.css';
|
||||
@ -1,12 +1,17 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { StrictMode } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import './index.css';
|
||||
import App from './App';
|
||||
import reportWebVitals from './reportWebVitals';
|
||||
// import reportWebVitals from './reportWebVitals';
|
||||
|
||||
ReactDOM.render(<App />, document.getElementById('root'));
|
||||
const el = document.getElementById('root');
|
||||
if (el === null) {
|
||||
throw new Error('root container missing in index.html');
|
||||
}
|
||||
const root = createRoot(el);
|
||||
root.render(<StrictMode><App /></StrictMode>);
|
||||
|
||||
// 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();
|
||||
// reportWebVitals();
|
||||
|
||||
@ -1,15 +0,0 @@
|
||||
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;
|
||||
@ -1,5 +0,0 @@
|
||||
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
||||
// allows you to do things like:
|
||||
// expect(element).toHaveTextContent(/react/i)
|
||||
// learn more: https://github.com/testing-library/jest-dom
|
||||
import '@testing-library/jest-dom';
|
||||
Loading…
Reference in New Issue