|
|
@ -46,6 +46,7 @@ use OCP\AppFramework\Http\RedirectResponse; |
|
|
use OCP\AppFramework\Http\Response; |
|
|
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\EventDispatcher\IEventDispatcher; |
|
|
use OCP\EventDispatcher\IEventDispatcher; |
|
|
use OCP\Files\Folder; |
|
|
use OCP\Files\Folder; |
|
|
use OCP\Files\IRootFolder; |
|
|
use OCP\Files\IRootFolder; |
|
|
@ -294,6 +295,7 @@ class ViewController extends Controller { |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$this->eventDispatcher->dispatchTyped(new ResourcesLoadAdditionalScriptsEvent()); |
|
|
$event = new LoadAdditionalScriptsEvent(); |
|
|
$event = new LoadAdditionalScriptsEvent(); |
|
|
$this->eventDispatcher->dispatchTyped($event); |
|
|
$this->eventDispatcher->dispatchTyped($event); |
|
|
$this->eventDispatcher->dispatchTyped(new LoadSidebar()); |
|
|
$this->eventDispatcher->dispatchTyped(new LoadSidebar()); |
|
|
@ -301,6 +303,7 @@ class ViewController extends Controller { |
|
|
if (class_exists(LoadViewer::class)) { |
|
|
if (class_exists(LoadViewer::class)) { |
|
|
$this->eventDispatcher->dispatchTyped(new LoadViewer()); |
|
|
$this->eventDispatcher->dispatchTyped(new LoadViewer()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$this->initialState->provideInitialState('templates_path', $this->templateManager->hasTemplateDirectory() ? $this->templateManager->getTemplatePath() : false); |
|
|
$this->initialState->provideInitialState('templates_path', $this->templateManager->hasTemplateDirectory() ? $this->templateManager->getTemplatePath() : false); |
|
|
$this->initialState->provideInitialState('templates', $this->templateManager->listCreators()); |
|
|
$this->initialState->provideInitialState('templates', $this->templateManager->listCreators()); |
|
|
|
|
|
|
|
|
|