firefish/packages/client/src/pages/drive.vue

24 lines
523 B
Vue
Raw Normal View History

2023-07-20 04:17:05 +09:00
<template>
<div>
<XDrive ref="drive" @cd="(x) => (folder = x)" />
</div>
</template>
<script lang="ts" setup>
2023-08-25 07:19:12 +09:00
import { computed, ref } from "vue";
2023-07-20 04:17:05 +09:00
import XDrive from "@/components/MkDrive.vue";
import { i18n } from "@/i18n";
import { definePageMetadata } from "@/scripts/page-metadata";
2023-10-17 02:12:35 +09:00
import icon from "@/scripts/icon";
2023-07-20 04:17:05 +09:00
2023-09-04 17:47:24 +09:00
const folder = ref(null);
2023-07-20 04:17:05 +09:00
definePageMetadata(
computed(() => ({
2023-08-25 07:19:12 +09:00
title: folder.value ? folder.value.name : i18n.ts.drive,
2023-10-17 02:12:35 +09:00
icon: `${icon("ph-cloud")}`,
2023-07-20 04:17:05 +09:00
hideHeader: true,
})),
);
</script>