Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
Jakob 2019-11-28 19:19:09 +01:00
parent 893b8974a0
commit c73e919829
3 changed files with 29 additions and 1 deletions

View File

@ -68,6 +68,7 @@ class PageController extends Controller {
$this->eventDispatcher->dispatch(LoadViewer::class, new LoadViewer());
$this->initialStateService->provideInitialState($this->appName, 'mimes', Application::MIMES);
$this->initialStateService->provideInitialState($this->appName, 'maps', Application::MAPS);
Util::addScript($this->appName, 'photos');
Util::addStyle($this->appName, 'icons');
@ -75,5 +76,4 @@ class PageController extends Controller {
$response = new TemplateResponse($this->appName, 'main');
return $response;
}
}

View File

@ -22,6 +22,7 @@
<template>
<Content app-name="photos">
{{MapsInstalled}}
<AppNavigation>
<AppNavigationItem :to="{name: 'root'}"
class="app-navigation__photos"
@ -53,6 +54,7 @@ import AppNavigationItem from '@nextcloud/vue/dist/Components/AppNavigationItem'
import svgplaceholder from './assets/file-placeholder.svg'
import imgplaceholder from './assets/image.svg'
import videoplaceholder from './assets/video.svg'
import MapsInstalled from './services/MapsInstalled'
export default {
name: 'Photos',

View File

@ -0,0 +1,26 @@
/**
* @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
import { loadState } from '@nextcloud/initial-state'
const maps = loadState('maps')
export default maps