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

28 lines
559 B
Vue
Raw Normal View History

<template>
2023-04-08 02:01:42 +02:00
<div>
2024-03-02 06:24:05 +01:00
<XDrive
ref="drive"
:full-page-header="true"
@cd="(x) => (folder = x)"
/>
2023-04-08 02:01:42 +02:00
</div>
</template>
<script lang="ts" setup>
import { computed, ref } from "vue";
2023-04-08 02:01:42 +02:00
import XDrive from "@/components/MkDrive.vue";
import { i18n } from "@/i18n";
import { definePageMetadata } from "@/scripts/page-metadata";
import icon from "@/scripts/icon";
const folder = ref(null);
2023-04-08 02:01:42 +02:00
definePageMetadata(
computed(() => ({
title: folder.value ? folder.value.name : i18n.ts.drive,
icon: `${icon("ph-cloud")}`,
2023-04-08 02:01:42 +02:00
hideHeader: true,
2023-07-06 03:28:27 +02:00
})),
2023-04-08 02:01:42 +02:00
);
</script>