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

28 lines
600 B
Vue
Raw Normal View History

<template>
2023-04-08 02:01:42 +02:00
<div>
<XDrive ref="drive" @cd="(x) => (folder = x)" />
</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 * as os from "@/os";
import { i18n } from "@/i18n";
import { definePageMetadata } from "@/scripts/page-metadata";
let folder = ref(null);
const headerActions = computed(() => []);
const headerTabs = computed(() => []);
2023-04-08 02:01:42 +02:00
definePageMetadata(
computed(() => ({
title: folder.value ? folder.value.name : i18n.ts.drive,
2023-04-08 02:01:42 +02:00
icon: "ph-cloud ph-bold ph-lg",
hideHeader: true,
2023-07-06 03:28:27 +02:00
})),
2023-04-08 02:01:42 +02:00
);
</script>