mirror of
https://github.com/Ai-hack-MAGNUM-OPUS/frontend.git
synced 2024-11-24 02:23:48 +03:00
add fileUpload
This commit is contained in:
parent
374bd99ed2
commit
bd028fc09d
19
Components/DocViewer/index.tsx
Normal file
19
Components/DocViewer/index.tsx
Normal 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>
|
||||
);
|
||||
}
|
0
Components/FileUploader/file.module.css
Normal file
0
Components/FileUploader/file.module.css
Normal file
39
Components/FileUploader/index.tsx
Normal file
39
Components/FileUploader/index.tsx
Normal 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>
|
||||
);
|
||||
}
|
0
Components/header/header.module.css
Normal file
0
Components/header/header.module.css
Normal file
12
Components/header/index.tsx
Normal file
12
Components/header/index.tsx
Normal 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>
|
||||
);
|
||||
}
|
BIN
docs/208_ot_18_fevralya_2022.docx
Normal file
BIN
docs/208_ot_18_fevralya_2022.docx
Normal file
Binary file not shown.
BIN
docs/221_ot_19_02_2022.docx
Normal file
BIN
docs/221_ot_19_02_2022.docx
Normal file
Binary file not shown.
Binary file not shown.
BIN
docs/392_ot_17_marta_2022.docx
Normal file
BIN
docs/392_ot_17_marta_2022.docx
Normal file
Binary file not shown.
BIN
docs/453_ot_24_marta_2022.docx
Normal file
BIN
docs/453_ot_24_marta_2022.docx
Normal file
Binary file not shown.
BIN
docs/469_ot_25_marta_2022.docx
Normal file
BIN
docs/469_ot_25_marta_2022.docx
Normal file
Binary file not shown.
BIN
docs/574_ot_2_aprelya_2022.docx
Normal file
BIN
docs/574_ot_2_aprelya_2022.docx
Normal file
Binary file not shown.
BIN
docs/662_ot_14_04_2022.docx
Normal file
BIN
docs/662_ot_14_04_2022.docx
Normal file
Binary file not shown.
BIN
docs/662_ot_14_aprelya_2022.docx
Normal file
BIN
docs/662_ot_14_aprelya_2022.docx
Normal file
Binary file not shown.
BIN
docs/664_ot_14_04_2022.docx
Normal file
BIN
docs/664_ot_14_04_2022.docx
Normal file
Binary file not shown.
BIN
docs/664_ot_14_aprelya_2022.docx
Normal file
BIN
docs/664_ot_14_aprelya_2022.docx
Normal file
Binary file not shown.
BIN
docs/761_ot_27_04_2022.docx
Normal file
BIN
docs/761_ot_27_04_2022.docx
Normal file
Binary file not shown.
BIN
docs/761_ot_27_aprelya_2022.docx
Normal file
BIN
docs/761_ot_27_aprelya_2022.docx
Normal file
Binary file not shown.
BIN
docs/772_ot_28_aprelya_2022.docx
Normal file
BIN
docs/772_ot_28_aprelya_2022.docx
Normal file
Binary file not shown.
BIN
docs/804_ot_30_aprelya_2022.docx
Normal file
BIN
docs/804_ot_30_aprelya_2022.docx
Normal file
Binary file not shown.
BIN
docs/811_ot_4_maya_2022.docx
Normal file
BIN
docs/811_ot_4_maya_2022.docx
Normal file
Binary file not shown.
BIN
docs/814_ot_5_maya_2022.docx
Normal file
BIN
docs/814_ot_5_maya_2022.docx
Normal file
Binary file not shown.
BIN
docs/835_ot_9_maya_2022.docx
Normal file
BIN
docs/835_ot_9_maya_2022.docx
Normal file
Binary file not shown.
BIN
docs/845_ot_9_maya_2022.docx
Normal file
BIN
docs/845_ot_9_maya_2022.docx
Normal file
Binary file not shown.
BIN
docs/954_ot_27_maya_2022.docx
Normal file
BIN
docs/954_ot_27_maya_2022.docx
Normal file
Binary file not shown.
BIN
docs/955_ot_27_05_2022.docx
Normal file
BIN
docs/955_ot_27_05_2022.docx
Normal file
Binary file not shown.
BIN
docs/955_ot_27_maya_2022.docx
Normal file
BIN
docs/955_ot_27_maya_2022.docx
Normal file
Binary file not shown.
BIN
docs/Gotovo_476.docx
Normal file
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.
BIN
docs/POSTANOVLENIE_PRAVITEL_STVA_RF_16_03_2022_375.docx
Normal file
BIN
docs/POSTANOVLENIE_PRAVITEL_STVA_RF_16_03_2022_375.docx
Normal file
Binary file not shown.
BIN
docs/PP_RF_ot_04_05_2021_N_712.docx
Normal file
BIN
docs/PP_RF_ot_04_05_2021_N_712.docx
Normal file
Binary file not shown.
BIN
docs/PP_RF_ot_09_06_2021_N_874.docx
Normal file
BIN
docs/PP_RF_ot_09_06_2021_N_874.docx
Normal file
Binary file not shown.
BIN
docs/PP_RF_ot_09_12_2020_N_2061.docx
Normal file
BIN
docs/PP_RF_ot_09_12_2020_N_2061.docx
Normal file
Binary file not shown.
BIN
docs/PP_RF_ot_11_12_2020_N_2080.docx
Normal file
BIN
docs/PP_RF_ot_11_12_2020_N_2080.docx
Normal file
Binary file not shown.
BIN
docs/PP_RF_ot_12_10_2019_N_1320.docx
Normal file
BIN
docs/PP_RF_ot_12_10_2019_N_1320.docx
Normal file
Binary file not shown.
BIN
docs/PP_RF_ot_13_03_2021_N_369.docx
Normal file
BIN
docs/PP_RF_ot_13_03_2021_N_369.docx
Normal file
Binary file not shown.
BIN
docs/PP_RF_ot_13_05_2020_668.docx
Normal file
BIN
docs/PP_RF_ot_13_05_2020_668.docx
Normal file
Binary file not shown.
BIN
docs/PP_Rossiyskoy_Federatsii_ot_04_03_2021_314.docx
Normal file
BIN
docs/PP_Rossiyskoy_Federatsii_ot_04_03_2021_314.docx
Normal file
Binary file not shown.
BIN
docs/PP_Rossiyskoy_Federatsii_ot_21_12_2020.docx
Normal file
BIN
docs/PP_Rossiyskoy_Federatsii_ot_21_12_2020.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Praitelstva_ot_18_03_2022_397.docx
Normal file
BIN
docs/Postanovlenie_Praitelstva_ot_18_03_2022_397.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_OT_13_12_2021_2276.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_OT_13_12_2021_2276.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot28_12_2019_N_1930.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot28_12_2019_N_1930.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot30_04_2019_N_532.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot30_04_2019_N_532.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_02_03_2021_N_298.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_02_03_2021_N_298.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_03_03_2017_N_248.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_03_03_2017_N_248.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_03_04_2018_N_402.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_03_04_2018_N_402.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_03_05_2019_N_548.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_03_05_2019_N_548.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_03_12_2020_N_2003.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_03_12_2020_N_2003.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_09_06_2021_N_874.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_09_06_2021_N_874.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_09_12_2020_N_2061.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_09_12_2020_N_2061.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_11_12_2020_N_2080.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_11_12_2020_N_2080.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_12_10_2019_N_1320.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_12_10_2019_N_1320.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_13_03_2021_N_369.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_13_03_2021_N_369.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_14_04_2022_664.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_14_04_2022_664.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_14_09_2020_1426.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_14_09_2020_1426.docx
Normal file
Binary file not shown.
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_16_11_2020_N_1844.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_16_11_2020_N_1844.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_16_11_2021_N_1954.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_16_11_2021_N_1954.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_17_08_2019_N_1070.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_17_08_2019_N_1070.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_17_10_2018_N_1237.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_17_10_2018_N_1237.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_18_02_2021_N_213.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_18_02_2021_N_213.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_18_03_2016_N_213.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_18_03_2016_N_213.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_18_06_2021_N_931.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_18_06_2021_N_931.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_18_09_2021_N_1578.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_18_09_2021_N_1578.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_18_11_2020_N_1875.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_18_11_2020_N_1875.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_19_02_2021_N_226.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_19_02_2021_N_226.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_19_08_2017_N_985_docx.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_19_08_2017_N_985_docx.docx
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_22_05_2020_N_726.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_22_05_2020_N_726.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_23_06_2021_N_975.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_23_06_2021_N_975.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_23_08_2021_N_1380.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_23_08_2021_N_1380.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_24_12_2020_N_2254.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_24_12_2020_N_2254.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_24_12_2021_N_2461.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_24_12_2021_N_2461.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_25_05_2017_N_634.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_25_05_2017_N_634.docx
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_26_02_2021_N_269.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_26_02_2021_N_269.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_27_03_2021_N_456.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_27_03_2021_N_456.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_27_03_2021_N_464.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_27_03_2021_N_464.docx
Normal file
Binary file not shown.
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_27_09_2021_N_1619.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_27_09_2021_N_1619.docx
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_29_06_2017_N_779.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_29_06_2017_N_779.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_29_09_2017_N_1179.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_29_09_2017_N_1179.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_30_06_2021_N_1103.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_30_06_2021_N_1103.docx
Normal file
Binary file not shown.
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_30_11_2021_N_2139.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_30_11_2021_N_2139.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_30_12_2020_N_2380.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_30_12_2020_N_2380.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_31_03_2021_N_487.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_31_03_2021_N_487.docx
Normal file
Binary file not shown.
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_31_12_2016_N_1579.docx
Normal file
BIN
docs/Postanovlenie_Pravitelstva_RF_ot_31_12_2016_N_1579.docx
Normal file
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
Loading…
Reference in New Issue
Block a user