feat: save the selected parser to the backend on the upload file page and upload document (#54)

* feat: add pagination to document table

* feat: fetch document list by page

* feat: poll the document list

* feat: upload document

* feat: save the selected parser to the backend on the upload file page
This commit is contained in:
balibabu
2024-02-05 12:01:27 +08:00
committed by GitHub
parent 51482f3e2a
commit f305776217
18 changed files with 629 additions and 82 deletions

View File

@@ -0,0 +1,23 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_304_1382)">
<path
d="M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z"
fill="#F9F5FF" />
<path
d="M1 16C1 7.71573 7.71573 1 16 1C24.2843 1 31 7.71573 31 16C31 24.2843 24.2843 31 16 31C7.71573 31 1 24.2843 1 16Z"
fill="#7F56D9" />
<path
d="M1 16C1 7.71573 7.71573 1 16 1C24.2843 1 31 7.71573 31 16C31 24.2843 24.2843 31 16 31C7.71573 31 1 24.2843 1 16Z"
stroke="#7F56D9" stroke-width="2" />
<path fill-rule="evenodd" clip-rule="evenodd"
d="M22.7951 9.85338L13.2484 19.0667L10.7151 16.3601C10.2484 15.9201 9.51509 15.8934 8.98176 16.2667C8.46176 16.6534 8.31509 17.3334 8.63509 17.8801L11.6351 22.7601C11.9284 23.2134 12.4351 23.4934 13.0084 23.4934C13.5551 23.4934 14.0751 23.2134 14.3684 22.7601C14.8484 22.1334 24.0084 11.2134 24.0084 11.2134C25.2084 9.98672 23.7551 8.90672 22.7951 9.84005V9.85338Z"
fill="white" />
</g>
<defs>
<clipPath id="clip0_304_1382">
<path
d="M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z"
fill="white" />
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,35 @@
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_d_304_382)">
<g clip-path="url(#clip0_304_382)">
<path
d="M4 20C4 11.1634 11.1634 4 20 4C28.8366 4 36 11.1634 36 20C36 28.8366 28.8366 36 20 36C11.1634 36 4 28.8366 4 20Z"
fill="#F9F5FF" />
<path
d="M5 20C5 11.7157 11.7157 5 20 5C28.2843 5 35 11.7157 35 20C35 28.2843 28.2843 35 20 35C11.7157 35 5 28.2843 5 20Z"
fill="#7F56D9" />
<path
d="M5 20C5 11.7157 11.7157 5 20 5C28.2843 5 35 11.7157 35 20C35 28.2843 28.2843 35 20 35C11.7157 35 5 28.2843 5 20Z"
stroke="#7F56D9" stroke-width="2" />
<circle cx="20" cy="20" r="5" fill="white" />
</g>
</g>
<defs>
<filter id="filter0_d_304_382" x="0" y="0" width="40" height="40" filterUnits="userSpaceOnUse"
color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix" />
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
result="hardAlpha" />
<feMorphology radius="4" operator="dilate" in="SourceAlpha" result="effect1_dropShadow_304_382" />
<feOffset />
<feComposite in2="hardAlpha" operator="out" />
<feColorMatrix type="matrix" values="0 0 0 0 0.619152 0 0 0 0 0.465529 0 0 0 0 0.930549 0 0 0 0.24 0" />
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_304_382" />
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_304_382" result="shape" />
</filter>
<clipPath id="clip0_304_382">
<path
d="M4 20C4 11.1634 11.1634 4 20 4C28.8366 4 36 11.1634 36 20C36 28.8366 28.8366 36 20 36C11.1634 36 4 28.8366 4 20Z"
fill="white" />
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB