Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
Homework83_M11
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ли Джен Сеп
Homework83_M11
Commits
2b1a794d
Commit
2b1a794d
authored
Dec 20, 2024
by
bekzat kapan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#7
Создал файл axiosClient.ts, настроил store и добавил Loader.css
parent
b27de198
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
0 deletions
+83
-0
Loader.css
frontend/src/animations/Loader.css
+60
-0
axiosClient.ts
frontend/src/helpers/axiosClient.ts
+7
-0
hooks.ts
frontend/src/store/hooks.ts
+6
-0
store.ts
frontend/src/store/store.ts
+10
-0
No files found.
frontend/src/animations/Loader.css
0 → 100644
View file @
2b1a794d
.loader
{
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
}
.lds-ripple
{
color
:
#c7cad1
}
.lds-ripple
,
.lds-ripple
div
{
box-sizing
:
border-box
;
}
.lds-ripple
{
display
:
inline-block
;
position
:
relative
;
width
:
80px
;
height
:
80px
;
}
.lds-ripple
div
{
position
:
absolute
;
border
:
4px
solid
currentColor
;
opacity
:
1
;
border-radius
:
50%
;
animation
:
lds-ripple
1s
cubic-bezier
(
0
,
0.2
,
0.8
,
1
)
infinite
;
}
.lds-ripple
div
:nth-child
(
2
)
{
animation-delay
:
-0.5s
;
}
@keyframes
lds-ripple
{
0
%
{
top
:
36px
;
left
:
36px
;
width
:
8px
;
height
:
8px
;
opacity
:
0
;
}
4
.9
%
{
top
:
36px
;
left
:
36px
;
width
:
8px
;
height
:
8px
;
opacity
:
0
;
}
5
%
{
top
:
36px
;
left
:
36px
;
width
:
8px
;
height
:
8px
;
opacity
:
1
;
}
100
%
{
top
:
0
;
left
:
0
;
width
:
80px
;
height
:
80px
;
opacity
:
0
;
}
}
\ No newline at end of file
frontend/src/helpers/axiosClient.ts
0 → 100644
View file @
2b1a794d
import
axios
from
"axios"
;
const
axiosClient
=
axios
.
create
({
baseURL
:
"https://localhost/3000"
,
});
export
default
axiosClient
;
frontend/src/store/hooks.ts
0 → 100644
View file @
2b1a794d
import
{
useDispatch
,
useSelector
}
from
"react-redux"
;
import
type
{
TypedUseSelectorHook
}
from
"react-redux"
;
import
type
{
RootState
,
AppDispatch
}
from
"./store"
;
export
const
useAppDispatch
:
()
=>
AppDispatch
=
useDispatch
;
export
const
useAppSelector
:
TypedUseSelectorHook
<
RootState
>
=
useSelector
;
frontend/src/store/store.ts
0 → 100644
View file @
2b1a794d
import
{
configureStore
}
from
"@reduxjs/toolkit"
;
export
const
store
=
configureStore
({
reducer
:
{
},
});
export
type
RootState
=
ReturnType
<
typeof
store
.
getState
>
;
export
type
AppDispatch
=
typeof
store
.
dispatch
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment