2024-05-28 10:42:42 -04:00
|
|
|
<!--
|
|
|
|
|
- SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
- SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
-->
|
2024-01-24 11:58:16 -05:00
|
|
|
<template>
|
|
|
|
|
<NcContent app-name="files">
|
2024-06-03 19:28:22 -04:00
|
|
|
<Navigation v-if="!isPublic" />
|
|
|
|
|
<FilesList :is-public="isPublic" />
|
2024-01-24 11:58:16 -05:00
|
|
|
</NcContent>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts">
|
2024-06-03 19:28:22 -04:00
|
|
|
import { isPublicShare } from '@nextcloud/sharing/public'
|
2024-01-24 11:58:16 -05:00
|
|
|
import { defineComponent } from 'vue'
|
|
|
|
|
import NcContent from '@nextcloud/vue/components/NcContent'
|
|
|
|
|
import Navigation from './views/Navigation.vue'
|
|
|
|
|
import FilesList from './views/FilesList.vue'
|
2025-06-11 07:43:26 -04:00
|
|
|
import { useHotKeys } from './composables/useHotKeys'
|
2024-01-24 11:58:16 -05:00
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
|
name: 'FilesApp',
|
|
|
|
|
|
|
|
|
|
components: {
|
|
|
|
|
NcContent,
|
|
|
|
|
FilesList,
|
|
|
|
|
Navigation,
|
|
|
|
|
},
|
2024-06-03 19:28:22 -04:00
|
|
|
|
|
|
|
|
setup() {
|
2025-06-11 07:43:26 -04:00
|
|
|
// Register global hotkeys
|
|
|
|
|
useHotKeys()
|
|
|
|
|
|
2024-06-03 19:28:22 -04:00
|
|
|
const isPublic = isPublicShare()
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
isPublic,
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-01-24 11:58:16 -05:00
|
|
|
})
|
|
|
|
|
</script>
|