Убрал лишние импорты

This commit is contained in:
2025-10-04 10:48:39 +04:00
parent f347eb098b
commit 10ddff97d0
8 changed files with 88 additions and 19 deletions

83
.idea/workspace.xml generated Normal file
View 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">{
&quot;customColor&quot;: &quot;&quot;,
&quot;associatedIndex&quot;: 5
}</component>
<component name="ProjectId" id="32ugu54CHfH6I1mAvywPuSyNpUc" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">{
&quot;keyToString&quot;: {
&quot;ModuleVcsDetector.initialDetectionPerformed&quot;: &quot;true&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
&quot;git-widget-placeholder&quot;: &quot;lab__work4&quot;,
&quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
&quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
&quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
&quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
&quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
&quot;npm.start.executor&quot;: &quot;Run&quot;,
&quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
}
}</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>

View File

@@ -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 (

View File

@@ -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}) {

View File

@@ -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";

View File

@@ -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";

View File

@@ -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(() => {

View File

@@ -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";

View File

@@ -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() {