Merge branch 'feature/file-folder-selectors' of github.com:ONLYOFFICE/AppServer into feature/file-folder-selectors
@ -40,9 +40,9 @@ const SelectFileDialogAsideView = ({
|
|||||||
isTranslationsReady,
|
isTranslationsReady,
|
||||||
passedId,
|
passedId,
|
||||||
}) => {
|
}) => {
|
||||||
const [isLoadingDate, setIsLoadingDate] = useState(false);
|
const [isLoadingData, setIsLoadingData] = useState(false);
|
||||||
const onSetLoadingData = (loading) => {
|
const onSetLoadingData = (loading) => {
|
||||||
setIsLoadingDate(loading);
|
setIsLoadingData(loading);
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -87,7 +87,7 @@ const SelectFileDialogAsideView = ({
|
|||||||
displayType={displayType}
|
displayType={displayType}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{selectedFolder && !isLoadingDate && (
|
{selectedFolder && !isLoadingData && (
|
||||||
<FilesListBody
|
<FilesListBody
|
||||||
filesList={filesList}
|
filesList={filesList}
|
||||||
onSelectFile={onSelectFile}
|
onSelectFile={onSelectFile}
|
||||||
@ -98,7 +98,6 @@ const SelectFileDialogAsideView = ({
|
|||||||
displayType={DISPLAY_TYPE}
|
displayType={DISPLAY_TYPE}
|
||||||
loadingText={loadingText}
|
loadingText={loadingText}
|
||||||
selectedFile={selectedFile}
|
selectedFile={selectedFile}
|
||||||
isLoadingDate={isLoadingDate}
|
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -127,7 +127,6 @@ const FilesListBody = ({
|
|||||||
>
|
>
|
||||||
{({ onItemsRendered, ref }) => (
|
{({ onItemsRendered, ref }) => (
|
||||||
<List
|
<List
|
||||||
className="options_list"
|
|
||||||
height={displayType === "aside" ? height : listHeight}
|
height={displayType === "aside" ? height : listHeight}
|
||||||
itemCount={itemCount}
|
itemCount={itemCount}
|
||||||
itemSize={displayType === "aside" ? 56 : 36}
|
itemSize={displayType === "aside" ? 56 : 36}
|
||||||
|
@ -155,7 +155,7 @@ class SelectFileDialogBody extends React.Component {
|
|||||||
const { setSelectedNode, setSelectedFolder } = this.props;
|
const { setSelectedNode, setSelectedFolder } = this.props;
|
||||||
const { selectedFolder, page } = this.state;
|
const { selectedFolder, page } = this.state;
|
||||||
|
|
||||||
//console.log(`loadNextPage(startIndex=${page}")`);
|
console.log(`loadNextPage(startIndex=${page}")`);
|
||||||
|
|
||||||
const pageCount = 30;
|
const pageCount = 30;
|
||||||
this.newFilter.page = page;
|
this.newFilter.page = page;
|
||||||
|
@ -18,8 +18,6 @@ class SelectFileDialogModalViewBody extends React.Component {
|
|||||||
this.state = {
|
this.state = {
|
||||||
isLoading: true,
|
isLoading: true,
|
||||||
};
|
};
|
||||||
this.backupList;
|
|
||||||
this.convertedData = [];
|
|
||||||
this.folderList = "";
|
this.folderList = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -170,7 +168,7 @@ class SelectFileDialogModalViewBody extends React.Component {
|
|||||||
onClickSave,
|
onClickSave,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
const { isLoading } = this.state;
|
const { isLoading } = this.state;
|
||||||
console.log("isLoading", isLoading);
|
|
||||||
return (
|
return (
|
||||||
<StyledAsidePanel visible={isPanelVisible}>
|
<StyledAsidePanel visible={isPanelVisible}>
|
||||||
<ModalDialog
|
<ModalDialog
|
||||||
|
@ -234,8 +234,7 @@ class IconFormatsStore {
|
|||||||
sound = false,
|
sound = false,
|
||||||
html = false
|
html = false
|
||||||
) => {
|
) => {
|
||||||
const folderPath =
|
const folderPath = `/static/images/icons/${size}`;
|
||||||
size === 24 ? `/static/images/icons/${size}` : `images/icons/${size}`;
|
|
||||||
|
|
||||||
if (archive) return `${folderPath}/file_archive.svg`;
|
if (archive) return `${folderPath}/file_archive.svg`;
|
||||||
|
|
||||||
@ -316,8 +315,7 @@ class IconFormatsStore {
|
|||||||
};
|
};
|
||||||
|
|
||||||
getIconSrc = (ext, size = 24) => {
|
getIconSrc = (ext, size = 24) => {
|
||||||
const folderPath =
|
const folderPath = `/static/images/icons/${size}`;
|
||||||
size === 24 ? `/static/images/icons/${size}` : `images/icons/${size}`;
|
|
||||||
|
|
||||||
if (presentInArray(this.archive, ext, true))
|
if (presentInArray(this.archive, ext, true))
|
||||||
return `${folderPath}/file_archive.svg`;
|
return `${folderPath}/file_archive.svg`;
|
||||||
|
Before Width: | Height: | Size: 932 B After Width: | Height: | Size: 932 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 930 B After Width: | Height: | Size: 930 B |
Before Width: | Height: | Size: 920 B After Width: | Height: | Size: 920 B |
Before Width: | Height: | Size: 963 B After Width: | Height: | Size: 963 B |
Before Width: | Height: | Size: 810 B After Width: | Height: | Size: 810 B |
Before Width: | Height: | Size: 861 B After Width: | Height: | Size: 861 B |
Before Width: | Height: | Size: 905 B After Width: | Height: | Size: 905 B |
Before Width: | Height: | Size: 495 B After Width: | Height: | Size: 495 B |
Before Width: | Height: | Size: 532 B After Width: | Height: | Size: 532 B |
Before Width: | Height: | Size: 935 B After Width: | Height: | Size: 935 B |
Before Width: | Height: | Size: 339 B After Width: | Height: | Size: 339 B |
Before Width: | Height: | Size: 993 B After Width: | Height: | Size: 993 B |
Before Width: | Height: | Size: 991 B After Width: | Height: | Size: 991 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 963 B After Width: | Height: | Size: 963 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 974 B After Width: | Height: | Size: 974 B |
Before Width: | Height: | Size: 996 B After Width: | Height: | Size: 996 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 957 B After Width: | Height: | Size: 957 B |
Before Width: | Height: | Size: 924 B After Width: | Height: | Size: 924 B |
Before Width: | Height: | Size: 954 B After Width: | Height: | Size: 954 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 938 B After Width: | Height: | Size: 938 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 907 B After Width: | Height: | Size: 907 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 937 B After Width: | Height: | Size: 937 B |
Before Width: | Height: | Size: 1021 B After Width: | Height: | Size: 1021 B |
Before Width: | Height: | Size: 1005 B After Width: | Height: | Size: 1005 B |
Before Width: | Height: | Size: 1014 B After Width: | Height: | Size: 1014 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 470 B After Width: | Height: | Size: 470 B |
Before Width: | Height: | Size: 547 B After Width: | Height: | Size: 547 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 344 B After Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 889 B After Width: | Height: | Size: 889 B |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 949 B After Width: | Height: | Size: 949 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 606 B After Width: | Height: | Size: 606 B |
Before Width: | Height: | Size: 686 B After Width: | Height: | Size: 686 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 347 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |