|
|
@ -52,6 +52,7 @@ use OCP\AppFramework\Http\Response;
|
|
|
|
use OCP\AppFramework\Http\TemplateResponse;
|
|
|
|
use OCP\AppFramework\Http\TemplateResponse;
|
|
|
|
use OCP\AppFramework\Services\IInitialState;
|
|
|
|
use OCP\AppFramework\Services\IInitialState;
|
|
|
|
use OCP\Collaboration\Resources\LoadAdditionalScriptsEvent as ResourcesLoadAdditionalScriptsEvent;
|
|
|
|
use OCP\Collaboration\Resources\LoadAdditionalScriptsEvent as ResourcesLoadAdditionalScriptsEvent;
|
|
|
|
|
|
|
|
use OCP\Constants;
|
|
|
|
use OCP\EventDispatcher\IEventDispatcher;
|
|
|
|
use OCP\EventDispatcher\IEventDispatcher;
|
|
|
|
use OCP\Files\Folder;
|
|
|
|
use OCP\Files\Folder;
|
|
|
|
use OCP\Files\IRootFolder;
|
|
|
|
use OCP\Files\IRootFolder;
|
|
|
@ -246,6 +247,11 @@ class ViewController extends Controller {
|
|
|
|
$filesSortingConfig = json_decode($this->config->getUserValue($userId, 'files', 'files_sorting_configs', '{}'), true);
|
|
|
|
$filesSortingConfig = json_decode($this->config->getUserValue($userId, 'files', 'files_sorting_configs', '{}'), true);
|
|
|
|
$this->initialState->provideInitialState('filesSortingConfig', $filesSortingConfig);
|
|
|
|
$this->initialState->provideInitialState('filesSortingConfig', $filesSortingConfig);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Forbidden file characters
|
|
|
|
|
|
|
|
/** @var string[] */
|
|
|
|
|
|
|
|
$forbiddenCharacters = $this->config->getSystemValue('forbidden_chars', []);
|
|
|
|
|
|
|
|
$this->initialState->provideInitialState('forbiddenCharacters', Constants::FILENAME_INVALID_CHARS . implode('', $forbiddenCharacters));
|
|
|
|
|
|
|
|
|
|
|
|
$event = new LoadAdditionalScriptsEvent();
|
|
|
|
$event = new LoadAdditionalScriptsEvent();
|
|
|
|
$this->eventDispatcher->dispatchTyped($event);
|
|
|
|
$this->eventDispatcher->dispatchTyped($event);
|
|
|
|
$this->eventDispatcher->dispatchTyped(new ResourcesLoadAdditionalScriptsEvent());
|
|
|
|
$this->eventDispatcher->dispatchTyped(new ResourcesLoadAdditionalScriptsEvent());
|
|
|
|