2023-07-27 14:31:52 +09:00
|
|
|
<!--
|
2024-02-14 00:59:27 +09:00
|
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-07-27 14:31:52 +09:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-01-30 04:37:25 +09:00
|
|
|
<template>
|
2020-10-17 20:12:00 +09:00
|
|
|
<div>
|
|
|
|
<XDrive ref="drive" @cd="x => folder = x"/>
|
2020-01-30 04:37:25 +09:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-01-14 23:23:08 +09:00
|
|
|
<script lang="ts" setup>
|
2023-12-07 14:42:09 +09:00
|
|
|
import { computed, ref } from 'vue';
|
2023-12-26 14:19:35 +09:00
|
|
|
import * as Misskey from 'misskey-js';
|
2022-08-31 00:24:33 +09:00
|
|
|
import XDrive from '@/components/MkDrive.vue';
|
2023-09-19 16:37:43 +09:00
|
|
|
import { i18n } from '@/i18n.js';
|
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2023-12-26 14:19:35 +09:00
|
|
|
const folder = ref<Misskey.entities.DriveFolder | null>(null);
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2023-12-07 14:42:09 +09:00
|
|
|
const headerActions = computed(() => []);
|
2022-06-20 17:38:49 +09:00
|
|
|
|
2023-12-07 14:42:09 +09:00
|
|
|
const headerTabs = computed(() => []);
|
2022-06-20 17:38:49 +09:00
|
|
|
|
2024-02-16 16:17:09 +09:00
|
|
|
definePageMetadata(() => ({
|
2023-12-07 14:42:09 +09:00
|
|
|
title: folder.value ? folder.value.name : i18n.ts.drive,
|
2022-12-19 19:01:30 +09:00
|
|
|
icon: 'ti ti-cloud',
|
2022-06-20 17:38:49 +09:00
|
|
|
hideHeader: true,
|
2024-02-16 16:17:09 +09:00
|
|
|
}));
|
2020-01-30 04:37:25 +09:00
|
|
|
</script>
|