Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
e92c896a
Unverified
Commit
e92c896a
authored
Sep 20, 2024
by
linfeng
Committed by
GitHub
Sep 20, 2024
Browse files
Merge pull request #5 from LollipopsAndWine/feat/ade/dev
feat: queue loading
parents
076a2a14
21945ffc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
projects/web/package.json
projects/web/package.json
+1
-0
projects/web/src/pages/extract/components/pdf-extraction/index.tsx
...web/src/pages/extract/components/pdf-extraction/index.tsx
+1
-2
projects/web/src/store/jobProgress.ts
projects/web/src/store/jobProgress.ts
+3
-0
No files found.
projects/web/package.json
View file @
e92c896a
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
"eslint-plugin-react-hooks"
:
"^5.1.0-rc.0"
,
"eslint-plugin-react-hooks"
:
"^5.1.0-rc.0"
,
"eslint-plugin-react-refresh"
:
"^0.4.9"
,
"eslint-plugin-react-refresh"
:
"^0.4.9"
,
"globals"
:
"^15.9.0"
,
"globals"
:
"^15.9.0"
,
"less"
:
"^4.2.0"
,
"postcss"
:
"^8.4.41"
,
"postcss"
:
"^8.4.41"
,
"sass-embedded"
:
"^1.77.8"
,
"sass-embedded"
:
"^1.77.8"
,
"tailwindcss"
:
"^3.4.10"
,
"tailwindcss"
:
"^3.4.10"
,
...
...
projects/web/src/pages/extract/components/pdf-extraction/index.tsx
View file @
e92c896a
...
@@ -21,13 +21,12 @@ interface IPdfExtractionProps {
...
@@ -21,13 +21,12 @@ interface IPdfExtractionProps {
}
}
const
PdfExtraction
=
({
className
=
""
}:
IPdfExtractionProps
)
=>
{
const
PdfExtraction
=
({
className
=
""
}:
IPdfExtractionProps
)
=>
{
const
newData
=
useJobExtraction
();
const
{
const
{
refreshQueue
,
refreshQueue
,
taskInfo
,
taskInfo
,
isLoading
:
queueLoading
,
isLoading
:
queueLoading
,
isError
:
compileError
,
isError
:
compileError
,
}
=
newData
;
}
=
useJobExtraction
()
;
const
[
pdfState
,
setPdfState
]
=
useState
({
const
[
pdfState
,
setPdfState
]
=
useState
({
page
:
1
,
page
:
1
,
...
...
projects/web/src/store/jobProgress.ts
View file @
e92c896a
...
@@ -103,6 +103,9 @@ export const useJobExtraction = () => {
...
@@ -103,6 +103,9 @@ export const useJobExtraction = () => {
}
else
{
}
else
{
setIsPolling
(
false
);
setIsPolling
(
false
);
setQueueLoading
(
false
);
setQueueLoading
(
false
);
getExtractTaskIdProgress
(
jobID
!
).
then
((
res
)
=>
{
setTaskInfo
(
res
as
any
);
});
}
}
}
}
...
...
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