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
11028584
Commit
11028584
authored
Dec 20, 2024
by
Ли Джен Сеп
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#6
переделал компоненты material ui
parent
2078e52e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
InputField.tsx
frontend/src/app/components/InputField.tsx
+0
-1
requestSlice.ts
frontend/src/features/requestSlice.ts
+2
-0
No files found.
frontend/src/app/components/InputField.tsx
View file @
11028584
...
...
@@ -48,7 +48,6 @@ export default function InputField({ name, value, onChange }: Props) {
variant=
"outlined"
id=
{
`${name}-input`
}
name=
{
name
}
label=
{
name
}
value=
{
value
}
type=
"password"
onChange=
{
onChange
}
...
...
frontend/src/features/requestSlice.ts
View file @
11028584
...
...
@@ -22,6 +22,7 @@ export const encodeMessage = createAsyncThunk('request/encode', async (newMessag
try
{
const
{
data
}
=
await
axiosClient
.
post
(
'/encode'
,
newMessage
);
console
.
log
(
data
);
console
.
log
(
newMessage
);
return
data
.
encoded
;
}
catch
(
error
:
any
)
{
...
...
@@ -33,6 +34,7 @@ export const decodeMessage = createAsyncThunk('request/decode', async (newMessag
try
{
const
{
data
}
=
await
axiosClient
.
post
(
'/decode'
,
newMessage
);
console
.
log
(
data
);
console
.
log
(
newMessage
);
return
data
.
decoded
;
}
catch
(
error
:
any
)
{
throw
new
Error
(
error
.
response
?.
data
?.
message
||
'Error encoding message'
);
...
...
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