mirror of https://github.com/nextcloud/photos
parent
893b8974a0
commit
c73e919829
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue