Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f2dd8d7b
authored
Jan 13, 2024
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 美化绘画界面UI
parent
d427e849
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
web/src/components/MjLogsTable.js
+4
-4
web/src/pages/Midjourney/index.js
+0
-1
No files found.
web/src/components/MjLogsTable.js
View file @
f2dd8d7b
...
...
@@ -37,7 +37,7 @@ function renderType(type) {
case
'BLEAND'
:
return
<
Tag
color
=
"lime"
size
=
'large'
>
图混合
<
/Tag>
;
default
:
return
<
Tag
color
=
"
black
"
size
=
'large'
>
未知
<
/Tag>
;
return
<
Tag
color
=
"
white
"
size
=
'large'
>
未知
<
/Tag>
;
}
}
...
...
@@ -51,7 +51,7 @@ function renderCode(code) {
case
22
:
return
<
Tag
color
=
"orange"
size
=
'large'
>
重复提交
<
/Tag>
;
default
:
return
<
Tag
color
=
"
black
"
size
=
'large'
>
未知
<
/Tag>
;
return
<
Tag
color
=
"
white
"
size
=
'large'
>
未知
<
/Tag>
;
}
}
...
...
@@ -70,7 +70,7 @@ function renderStatus(type) {
case
'FAILURE'
:
return
<
Tag
color
=
"red"
size
=
'large'
>
失败
<
/Tag>
;
default
:
return
<
Tag
color
=
"
black
"
size
=
'large'
>
未知
<
/Tag>
;
return
<
Tag
color
=
"
white
"
size
=
'large'
>
未知
<
/Tag>
;
}
}
...
...
@@ -173,7 +173,7 @@ const LogsTable = () => {
<
div
>
{
// 转换例如100%为数字100,如果text未定义,返回0
<
Progress
percent
=
{
text
?
parseInt
(
text
.
replace
(
'%'
,
''
))
:
0
}
showInfo
=
{
true
}
<
Progress
stroke
=
{
record
.
status
===
"FAILURE"
?
"var(--semi-color-warning)"
:
null
}
percent
=
{
text
?
parseInt
(
text
.
replace
(
'%'
,
''
))
:
0
}
showInfo
=
{
true
}
aria
-
label
=
"drawing progress"
/>
}
<
/div
>
...
...
web/src/pages/Midjourney/index.js
View file @
f2dd8d7b
import
React
from
'react'
;
import
{
Header
,
Segment
}
from
'semantic-ui-react'
;
import
MjLogsTable
from
'../../components/MjLogsTable'
;
const
Midjourney
=
()
=>
(
...
...
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