auto commit

This commit is contained in:
DuYi 2024-08-27 10:10:05 +08:00
parent c09ae961b5
commit 46dce38662
1747 changed files with 1747 additions and 732 deletions

View File

@ -90,3 +90,4 @@ cd my-app
npm start
```

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -16,3 +16,4 @@
<div id="root"></div>
</body>
</html>

View File

@ -5,3 +5,4 @@ function App() {
}
export default App;

View File

@ -6,3 +6,4 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<App />
);

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -16,3 +16,4 @@
<div id="root"></div>
</body>
</html>

View File

@ -106,3 +106,4 @@ function App() {
}
export default App;

View File

@ -6,3 +6,4 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<App />
);

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -16,3 +16,4 @@
<div id="root"></div>
</body>
</html>

View File

@ -53,3 +53,4 @@ function App() {
// }
export default App;

View File

@ -6,3 +6,4 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<App />
);

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -16,3 +16,4 @@
<div id="root"></div>
</body>
</html>

View File

@ -68,3 +68,4 @@ class App extends React.Component {
}
export default App;

View File

@ -6,3 +6,4 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<App />
);

View File

@ -361,3 +361,4 @@ export default App;
关于受控组件和非受控组件,可以参阅:*https://goshacmd.com/controlled-vs-uncontrolled-inputs-react/*

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -16,3 +16,4 @@
<div id="root"></div>
</body>
</html>

View File

@ -27,3 +27,4 @@ class App extends React.Component {
}
export default App;

View File

@ -6,3 +6,4 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<App />
);

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -16,3 +16,4 @@
<div id="root"></div>
</body>
</html>

View File

@ -48,3 +48,4 @@ class App extends React.Component {
}
export default App;

View File

@ -6,3 +6,4 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<App />
);

View File

@ -346,3 +346,4 @@ function useMyBook(){
export default useMyBook;
```

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -16,3 +16,4 @@
<div id="root"></div>
</body>
</html>

View File

@ -6,3 +6,4 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<App />
);

View File

@ -39,3 +39,4 @@
整个 *React-router*,我们将写一个学生管理系统,用到什么讲什么。

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -48,3 +48,4 @@ function App() {
}
export default App;

View File

@ -9,3 +9,4 @@ root.render(
<App />
</BrowserRouter>
);

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -51,3 +51,4 @@ function App() {
}
export default App;

View File

@ -9,3 +9,4 @@ root.render(
<App />
</BrowserRouter>
);

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -40,3 +40,4 @@ function App() {
}
export default App;

View File

@ -9,3 +9,4 @@ root.render(
<App />
</BrowserRouter>
);

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -53,3 +53,4 @@ export default function App() {
</div>
);
}

View File

@ -24,3 +24,4 @@ request.interceptors.response.use(
);
export default request;

View File

@ -41,3 +41,4 @@ export function editUserApi(id, data) {
data,
});
}

View File

@ -104,3 +104,4 @@ export const store = createStore(
和后端交互示例:学生管理系统

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -17,3 +17,4 @@
<div id="root"></div>
</body>
</html>

View File

@ -18,3 +18,4 @@ render();
// 让 redux 和 react 建立关联
// subscribe 叫做订阅,在仓库的状态发生改变的时候
store.subscribe(render);

View File

@ -55,3 +55,4 @@ export function todoReducer(state = defaultState, action) {
default: return state;
}
}

View File

@ -14,3 +14,4 @@ export const store = createStore(
todoReducer,
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);

View File

@ -178,3 +178,4 @@ export const {add,del,change} = todolistSlice.actions;
和后端交互示例:学生管理系统

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -17,3 +17,4 @@
<div id="root"></div>
</body>
</html>

View File

@ -13,3 +13,4 @@ root.render(
<App />
</Provider>
);

View File

@ -9,3 +9,4 @@ export default configureStore({
todo : todolistReducer
}
});

View File

@ -178,3 +178,4 @@ export const {add,del,change} = todolistSlice.actions;
和后端交互示例:学生管理系统

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -40,3 +40,4 @@ function App() {
}
export default App;

View File

@ -13,3 +13,4 @@ root.render(
</BrowserRouter>
</Provider>
);

View File

@ -6,3 +6,4 @@ export default configureStore({
stu: stuReducer,
},
});

View File

@ -83,3 +83,4 @@ export const stuSlice = createSlice({
const { initStuList, deleteStu, addStu, editStu } = stuSlice.actions;
export default stuSlice.reducer;

View File

@ -108,3 +108,4 @@ const App = () => (

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -16,3 +16,4 @@
<div id="root"></div>
</body>
</html>

View File

@ -12,3 +12,4 @@ root.render(
<App />
</ConfigProvider>
);

View File

@ -356,3 +356,4 @@ npm install --save @toast-ui/react-editor --force

View File

@ -68,3 +68,4 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

View File

@ -102,3 +102,4 @@ function getClientEnvironment(publicUrl) {
}
module.exports = getClientEnvironment;

View File

@ -64,3 +64,4 @@ function getHttpsConfig() {
}
module.exports = getHttpsConfig;

View File

@ -27,3 +27,4 @@ module.exports = babelJest.createTransformer({
babelrc: false,
configFile: false,
});

View File

@ -12,3 +12,4 @@ module.exports = {
return 'cssTransform';
},
};

View File

@ -38,3 +38,4 @@ module.exports = {
return `module.exports = ${assetFilename};`;
},
};

View File

@ -132,3 +132,4 @@ function getModules() {
}
module.exports = getModules();

View File

@ -75,3 +75,4 @@ module.exports = {
module.exports.moduleFileExtensions = moduleFileExtensions;

View File

@ -753,3 +753,4 @@ module.exports = function (webpackEnv) {
performance: false,
};
};

View File

@ -7,3 +7,4 @@ module.exports = env => {
return hash.digest('hex');
};

View File

@ -125,3 +125,4 @@ module.exports = function (proxy, allowedHost) {
},
};
};

View File

@ -16,3 +16,4 @@
<div id="root"></div>
</body>
</html>

View File

@ -215,3 +215,4 @@ function copyPublicFolder() {
filter: file => file !== paths.appHtml,
});
}

View File

@ -152,3 +152,4 @@ checkBrowsers(paths.appPath, isInteractive)
}
process.exit(1);
});

View File

@ -26,3 +26,4 @@ export function addComment(newComment){
data : newComment
})
}

View File

@ -38,3 +38,4 @@ service.interceptors.response.use(
);
export default service;

View File

@ -45,3 +45,4 @@ function Recommend(props) {
}
export default Recommend;

View File

@ -105,3 +105,4 @@
align-items:center;
/* outline: 1px solid blue; */
}

View File

@ -13,3 +13,4 @@
margin-top: 10px;
font-weight: 200;
}

View File

@ -23,3 +23,4 @@ root.render(
</BrowserRouter>
</Provider>
);

View File

@ -8,3 +8,4 @@ export default configureStore({
type: typeReducer
},
});

View File

@ -22,3 +22,4 @@ const typeSlice = createSlice({
});
export default typeSlice.reducer;

Some files were not shown because too many files have changed in this diff Show More