inital commit

This commit is contained in:
2026-01-01 15:25:19 +05:30
commit f0ae49465a
36361 changed files with 4894111 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
/**
* Loads a list of files and adds them to the state
* @private
*/
export function loadItems(fb) {
fb.files.setMod('active', true);
fb.files.setMod('loading', true);
return fb.dataProvider
.items(fb.state.currentPath, fb.state.currentSource, {
sortBy: fb.state.sortBy,
onlyImages: fb.state.onlyImages,
filterWord: fb.state.filterWord
})
.then(resp => {
if (resp) {
fb.state.elements = resp;
fb.state.activeElements = [];
}
})
.catch(fb.status)
.finally(() => fb.files.setMod('loading', false));
}