2020-01-29 13:37:25 -06:00
|
|
|
<template>
|
2020-10-17 06:12:00 -05:00
|
|
|
<div>
|
|
|
|
<XDrive ref="drive" @cd="x => folder = x"/>
|
2020-01-29 13:37:25 -06:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-01-14 08:23:08 -06:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { computed } from 'vue';
|
2021-11-11 11:02:25 -06:00
|
|
|
import XDrive from '@/components/drive.vue';
|
|
|
|
import * as os from '@/os';
|
|
|
|
import * as symbols from '@/symbols';
|
2022-01-14 08:23:08 -06:00
|
|
|
import { i18n } from '@/i18n';
|
2020-01-29 13:37:25 -06:00
|
|
|
|
2022-01-14 08:23:08 -06:00
|
|
|
let folder = $ref(null);
|
2020-01-29 13:37:25 -06:00
|
|
|
|
2022-01-14 08:23:08 -06:00
|
|
|
defineExpose({
|
|
|
|
[symbols.PAGE_INFO]: computed(() => ({
|
2022-01-27 20:39:49 -06:00
|
|
|
title: folder ? folder.name : i18n.ts.drive,
|
2022-01-14 08:23:08 -06:00
|
|
|
icon: 'fas fa-cloud',
|
|
|
|
bg: 'var(--bg)',
|
|
|
|
hideHeader: true,
|
|
|
|
})),
|
2020-01-29 13:37:25 -06:00
|
|
|
});
|
|
|
|
</script>
|