add fileUpload

This commit is contained in:
Firesieht 2022-08-26 20:02:52 +03:00
parent 374bd99ed2
commit bd028fc09d
174 changed files with 1116 additions and 25 deletions

View File

@ -0,0 +1,19 @@
import React from "react";
import DocViewer, { DocViewerRenderers } from "react-doc-viewer";
interface DocViewer{
paragraphs:string[]
error: string;
variants: string[]
}
export const MyDocViewer : React.FC<DocViewer> = () =>{
return(
<div>
</div>
);
}

View File

View File

@ -0,0 +1,39 @@
import React, { useState } from "react";
import { Button, message, Upload } from "antd"
import Icon, { UploadOutlined } from '@ant-design/icons';
import 'antd/dist/antd.css';
interface FileUploaderIE{
onResponse: (response:any)=>void
}
export const FileUploader:React.FC<FileUploaderIE> = (data) =>{
const props = {
name: 'file',
action: 'http://192.168.9.152:8000/api/docx/',
headers: {
authorization: 'authorization-text',
},
onChange(info:any) {
if (info.file.status !== 'uploading') {
console.log(info.file, info.fileList);
}
if (info.file.status === 'done') {
data.onResponse(info.file.response)
message.success(`${info.file.name} file uploaded successfully`);
} else if (info.file.status === 'error') {
message.error(`${info.file.name} file upload failed.`);
}
},
};
return (
<Upload {...props}>
<Button icon={<UploadOutlined></UploadOutlined>}>Click to Upload</Button>
</Upload>
);
}

View File

View File

@ -0,0 +1,12 @@
import React from "react";
import styles from "./header.module.css"
export const Header:React.FC = () =>{
return(
<div className={styles.header}>
<div className={styles.item}>
</div>
</div>
);
}

Binary file not shown.

BIN
docs/221_ot_19_02_2022.docx Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
docs/662_ot_14_04_2022.docx Normal file

Binary file not shown.

Binary file not shown.

BIN
docs/664_ot_14_04_2022.docx Normal file

Binary file not shown.

Binary file not shown.

BIN
docs/761_ot_27_04_2022.docx Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
docs/955_ot_27_05_2022.docx Normal file

Binary file not shown.

Binary file not shown.

BIN
docs/Gotovo_476.docx Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More