Убрал лишние импорты
This commit is contained in:
83
.idea/workspace.xml
generated
Normal file
83
.idea/workspace.xml
generated
Normal file
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AutoImportSettings">
|
||||
<option name="autoReloadType" value="SELECTIVE" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="857c5166-c43c-4106-983f-6753255d86a7" name="Changes" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/online-library/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/online-library/package-lock.json" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/online-library/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/online-library/package.json" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/online-library/src/BookCard/BookCard.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/online-library/src/BookCard/BookCard.jsx" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/online-library/src/BookCardInfo/BookCardIInfo.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/online-library/src/BookCardInfo/BookCardIInfo.jsx" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/online-library/src/Main/Main.jsx" beforeDir="false" afterPath="$PROJECT_DIR$/online-library/src/Main/Main.jsx" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="ProjectColorInfo">{
|
||||
"customColor": "",
|
||||
"associatedIndex": 5
|
||||
}</component>
|
||||
<component name="ProjectId" id="32ugu54CHfH6I1mAvywPuSyNpUc" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent">{
|
||||
"keyToString": {
|
||||
"ModuleVcsDetector.initialDetectionPerformed": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"RunOnceActivity.git.unshallow": "true",
|
||||
"git-widget-placeholder": "lab__work4",
|
||||
"node.js.detected.package.eslint": "true",
|
||||
"node.js.detected.package.tslint": "true",
|
||||
"node.js.selected.package.eslint": "(autodetect)",
|
||||
"node.js.selected.package.tslint": "(autodetect)",
|
||||
"nodejs_package_manager_path": "npm",
|
||||
"npm.start.executor": "Run",
|
||||
"vue.rearranger.settings.migration": "true"
|
||||
}
|
||||
}</component>
|
||||
<component name="RunManager">
|
||||
<configuration name="start" type="js.build_tools.npm" nameIsGenerated="true">
|
||||
<package-json value="$PROJECT_DIR$/online-library/package.json" />
|
||||
<command value="run" />
|
||||
<scripts>
|
||||
<script value="start" />
|
||||
</scripts>
|
||||
<node-interpreter value="project" />
|
||||
<envs />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
||||
<component name="SharedIndexes">
|
||||
<attachedChunks>
|
||||
<set>
|
||||
<option value="bundled-jdk-9823dce3aa75-fbdcb00ec9e3-intellij.indexing.shared.core-IU-251.23774.435" />
|
||||
<option value="bundled-js-predefined-d6986cc7102b-f27c65a3e318-JavaScript-IU-251.23774.435" />
|
||||
</set>
|
||||
</attachedChunks>
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="857c5166-c43c-4106-983f-6753255d86a7" name="Changes" comment="" />
|
||||
<created>1758276091066</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1758276091066</updated>
|
||||
<workItem from="1758276092290" duration="2000" />
|
||||
<workItem from="1758276100014" duration="1788000" />
|
||||
<workItem from="1758286909451" duration="8000" />
|
||||
<workItem from="1758286999127" duration="5000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="3" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -7,6 +7,9 @@ import Lk from "./Lk/Lk";
|
||||
import Choice from "./Choice/Choice";
|
||||
import BookCardInfo from "./BookCardInfo/BookCardIInfo";
|
||||
import AuthPages from "./Registration/AuthPages";
|
||||
import "./style.css"
|
||||
import "bootstrap/dist/css/bootstrap.css";
|
||||
import "bootstrap/dist/js/bootstrap.bundle.min";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import "bootstrap/dist/css/bootstrap.css";
|
||||
import "bootstrap/dist/js/bootstrap.bundle.min";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
function BookCard({book}) {
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { bookAPI } from "../ApiRequest/ApiClient";
|
||||
import axios from "axios";
|
||||
import "bootstrap/dist/css/bootstrap.css";
|
||||
import "bootstrap/dist/js/bootstrap.bundle.min";
|
||||
import { Alert } from "react-bootstrap";
|
||||
import CustomList from "./CustomList/CustomList";
|
||||
import { Spinner } from "react-bootstrap";
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import "bootstrap/dist/css/bootstrap.css";
|
||||
import "bootstrap/dist/js/bootstrap.bundle.min";
|
||||
import "../style.css";
|
||||
import BookCard from "../BookCard/BookCard";
|
||||
import { useEffect, useState } from "react";
|
||||
import { bookAPI } from "../ApiRequest/ApiClient";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { use, useEffect, useState } from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
import {
|
||||
Container,
|
||||
Row,
|
||||
@@ -10,8 +10,6 @@ import {
|
||||
Tabs,
|
||||
Alert,
|
||||
} from "react-bootstrap";
|
||||
import "bootstrap/dist/css/bootstrap.css";
|
||||
import "bootstrap/dist/js/bootstrap.bundle.min";
|
||||
import { authAPI } from "../ApiRequest/ApiClient";
|
||||
import axios from "axios";
|
||||
import { setAccessToken } from "../ApiRequest/JwtUtils";
|
||||
@@ -89,7 +87,7 @@ const LoginForm = () => {
|
||||
setLoading(true);
|
||||
try {
|
||||
const response = await authAPI.login(formData);
|
||||
if (response.status == 200) {
|
||||
if (response.status === 200) {
|
||||
const token = response.data;
|
||||
setAccessToken(token);
|
||||
setTimeout(() => {
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import "bootstrap/dist/css/bootstrap.css";
|
||||
import "bootstrap/dist/js/bootstrap.bundle.min";
|
||||
import "../style.css";
|
||||
import BookCard from "../BookCard/BookCard";
|
||||
import { useEffect, useState } from "react";
|
||||
import { bookAPI } from "../ApiRequest/ApiClient";
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
import "bootstrap/dist/css/bootstrap.css";
|
||||
import "bootstrap/dist/js/bootstrap.bundle.min";
|
||||
import "../style.css";
|
||||
import { NavLink, useNavigate } from "react-router-dom";
|
||||
import { HashLink } from "react-router-hash-link";
|
||||
import { getAccessToken, removeAccessToken } from "../ApiRequest/JwtUtils";
|
||||
import { useEffect, useState } from "react";
|
||||
import axios from "axios";
|
||||
import { authAPI, bookAPI } from "../ApiRequest/ApiClient";
|
||||
import "bootstrap/dist/css/bootstrap.css";
|
||||
import "bootstrap/dist/js/bootstrap.bundle.min";
|
||||
import { Alert } from "react-bootstrap";
|
||||
|
||||
function Headers() {
|
||||
|
||||
Reference in New Issue
Block a user