memories/src/App.vue

83 lines
1.5 KiB
Vue
Raw Normal View History

2022-08-14 20:54:18 +00:00
<template>
2022-09-08 23:23:28 +00:00
<NcContent app-name="memories">
<NcAppNavigation>
<template id="app-memories-navigation" #list>
2022-09-08 23:23:28 +00:00
<NcAppNavigationItem :to="{name: 'timeline'}"
2022-08-16 01:12:14 +00:00
:title="t('timeline', 'Timeline')"
2022-08-18 18:49:53 +00:00
icon="icon-yourmemories"
2022-08-16 01:12:14 +00:00
exact>
2022-09-08 23:23:28 +00:00
</NcAppNavigationItem>
2022-09-08 23:57:50 +00:00
<NcAppNavigationItem :to="{name: 'folders'}"
:title="t('folders', 'Folders')"
2022-08-17 20:39:48 +00:00
icon="icon-files-dark">
2022-09-08 23:23:28 +00:00
</NcAppNavigationItem>
2022-08-14 20:54:18 +00:00
</template>
2022-08-20 00:18:04 +00:00
<template #footer>
2022-09-08 23:23:28 +00:00
<NcAppNavigationSettings :title="t('memories', 'Settings')">
2022-08-20 00:18:04 +00:00
<Settings />
2022-09-08 23:23:28 +00:00
</NcAppNavigationSettings>
2022-08-20 00:18:04 +00:00
</template>
2022-09-08 23:23:28 +00:00
</NcAppNavigation>
2022-08-14 20:54:18 +00:00
2022-09-08 23:23:28 +00:00
<NcAppContent>
2022-08-14 21:38:29 +00:00
<div class="outer">
2022-08-18 05:30:37 +00:00
<router-view />
2022-08-14 21:38:29 +00:00
</div>
2022-09-08 23:23:28 +00:00
</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;
height: 100%;
2022-09-08 23:23:28 +00:00
width: 100%;
2022-08-14 21:38:29 +00:00
}
2022-08-20 00:51:18 +00:00
@media (max-width: 768px) {
.outer {
padding-left: 5px;
}
}
2022-08-14 21:38:29 +00:00
</style>
2022-08-14 20:54:18 +00:00
<script>
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-08-14 20:54:18 +00:00
export default {
name: 'App',
components: {
2022-09-08 23:23:28 +00:00
NcContent,
NcAppContent,
NcAppNavigation,
NcAppNavigationItem,
NcAppNavigationSettings,
2022-08-20 00:18:04 +00:00
2022-08-14 21:38:29 +00:00
Timeline,
2022-08-20 00:18:04 +00:00
Settings,
2022-08-14 20:54:18 +00:00
},
data() {
return {
loading: false,
show: true,
starred: false,
}
},
methods: {
close() {
this.show = false
console.debug(arguments)
},
newButtonAction() {
console.debug(arguments)
},
log() {
console.debug(arguments)
},
},
}
</script>