2022-08-14 20:54:18 +00:00
|
|
|
<template>
|
2022-09-09 07:31:42 +00:00
|
|
|
<NcContent app-name="memories">
|
|
|
|
<NcAppNavigation>
|
|
|
|
<template id="app-memories-navigation" #list>
|
|
|
|
<NcAppNavigationItem :to="{name: 'timeline'}"
|
|
|
|
:title="t('timeline', 'Timeline')"
|
|
|
|
icon="icon-yourmemories"
|
|
|
|
exact>
|
|
|
|
</NcAppNavigationItem>
|
|
|
|
<NcAppNavigationItem :to="{name: 'folders'}"
|
|
|
|
:title="t('folders', 'Folders')"
|
|
|
|
icon="icon-files-dark">
|
|
|
|
</NcAppNavigationItem>
|
2022-09-12 02:21:20 +00:00
|
|
|
<NcAppNavigationItem :to="{name: 'favorites'}"
|
|
|
|
:title="t('favorites', 'Favorites')"
|
|
|
|
icon="icon-favorite">
|
|
|
|
</NcAppNavigationItem>
|
2022-09-09 07:31:42 +00:00
|
|
|
</template>
|
|
|
|
<template #footer>
|
|
|
|
<NcAppNavigationSettings :title="t('memories', 'Settings')">
|
|
|
|
<Settings />
|
|
|
|
</NcAppNavigationSettings>
|
|
|
|
</template>
|
|
|
|
</NcAppNavigation>
|
2022-08-14 20:54:18 +00:00
|
|
|
|
2022-09-09 07:31:42 +00:00
|
|
|
<NcAppContent>
|
|
|
|
<div class="outer">
|
|
|
|
<router-view />
|
|
|
|
</div>
|
|
|
|
</NcAppContent>
|
|
|
|
</NcContent>
|
2022-08-14 20:54:18 +00:00
|
|
|
</template>
|
|
|
|
|
2022-08-14 21:38:29 +00:00
|
|
|
<style scoped>
|
|
|
|
.outer {
|
2022-08-15 03:48:52 +00:00
|
|
|
padding: 0 0 0 44px;
|
2022-09-09 07:31:42 +00:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2022-08-14 21:38:29 +00:00
|
|
|
}
|
2022-08-20 00:51:18 +00:00
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
2022-09-09 07:31:42 +00:00
|
|
|
.outer {
|
|
|
|
padding-left: 5px;
|
|
|
|
}
|
2022-08-20 00:51:18 +00:00
|
|
|
}
|
2022-08-14 21:38:29 +00:00
|
|
|
</style>
|
|
|
|
|
2022-09-13 01:33:24 +00:00
|
|
|
<script lang="ts">
|
2022-09-13 02:36:27 +00:00
|
|
|
import { Component, Mixins } from 'vue-property-decorator';
|
2022-09-08 23:23:28 +00:00
|
|
|
import { NcContent, NcAppContent, NcAppNavigation, NcAppNavigationItem, NcAppNavigationSettings} from '@nextcloud/vue'
|
2022-08-20 00:18:04 +00:00
|
|
|
|
2022-08-15 23:43:10 +00:00
|
|
|
import Timeline from './components/Timeline.vue'
|
2022-08-20 00:18:04 +00:00
|
|
|
import Settings from './components/Settings.vue'
|
2022-09-13 02:36:27 +00:00
|
|
|
import GlobalMixin from './mixins/GlobalMixin';
|
2022-08-14 20:54:18 +00:00
|
|
|
|
2022-09-13 02:36:27 +00:00
|
|
|
@Component({
|
2022-09-09 07:31:42 +00:00
|
|
|
components: {
|
|
|
|
NcContent,
|
|
|
|
NcAppContent,
|
|
|
|
NcAppNavigation,
|
|
|
|
NcAppNavigationItem,
|
|
|
|
NcAppNavigationSettings,
|
2022-08-20 00:18:04 +00:00
|
|
|
|
2022-09-09 07:31:42 +00:00
|
|
|
Timeline,
|
|
|
|
Settings,
|
|
|
|
},
|
2022-09-13 02:36:27 +00:00
|
|
|
})
|
|
|
|
export default class App extends Mixins(GlobalMixin) {
|
|
|
|
// Outer element
|
2022-08-14 20:54:18 +00:00
|
|
|
}
|
|
|
|
</script>
|