botserver/web/desktop/drive/drive.html

126 lines
4.5 KiB
HTML
Raw Normal View History

<div class="drive-layout" x-data="driveApp()" x-cloak>
2025-11-20 18:29:55 -03:00
<div class="drive-sidebar">
<div
style="
padding: 1rem;
border-bottom: 1px solid var(--border, #e0e0e0);
"
>
<h3>General Bots Drive</h3>
</div>
2025-11-20 18:29:55 -03:00
<template x-for="item in navItems" :key="item.name">
<div
class="nav-item"
:class="{ active: current === item.name }"
@click="current = item.name"
>
<span x-text="item.icon"></span>
<span x-text="item.name"></span>
</div>
</template>
</div>
2025-11-20 18:29:55 -03:00
<div class="drive-main">
<div
style="
padding: 1rem;
border-bottom: 1px solid var(--border, #e0e0e0);
"
>
<h2 x-text="current"></h2>
<input
type="text"
x-model="search"
placeholder="Search files..."
style="
width: 100%;
margin-top: 0.5rem;
padding: 0.75rem;
border: 1px solid #e0e0e0;
border-radius: 8px;
font-family: inherit;
"
/>
</div>
2025-11-20 18:29:55 -03:00
<div class="file-list">
<template x-for="file in filteredFiles" :key="file.id">
<div
class="file-item"
:class="{ selected: selectedFile?.id === file.id }"
@click="selectedFile = file"
>
<span class="file-icon" x-text="file.icon"></span>
<div style="flex: 1">
<div style="font-weight: 600" x-text="file.name"></div>
<div class="text-xs text-gray" x-text="file.date"></div>
</div>
<div class="text-sm text-gray" x-text="file.size"></div>
</div>
</template>
</div>
2025-11-20 18:29:55 -03:00
</div>
<div class="drive-details">
<template x-if="selectedFile">
<div style="padding: 2rem">
<div style="text-align: center; margin-bottom: 2rem">
<div
style="font-size: 4rem; margin-bottom: 1rem"
x-text="selectedFile.icon"
></div>
<h3 x-text="selectedFile.name"></h3>
<p class="text-sm text-gray" x-text="selectedFile.type"></p>
</div>
<div style="margin-bottom: 1rem">
<div class="text-sm" style="margin-bottom: 0.5rem">
Size
</div>
<div class="text-gray" x-text="selectedFile.size"></div>
</div>
<div style="margin-bottom: 1rem">
<div class="text-sm" style="margin-bottom: 0.5rem">
Modified
</div>
<div class="text-gray" x-text="selectedFile.date"></div>
</div>
<div style="display: flex; gap: 0.5rem; margin-top: 2rem">
<button
style="
flex: 1;
padding: 0.75rem;
background: #1a73e8;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-family: inherit;
"
>
Download
</button>
<button
style="
flex: 1;
padding: 0.75rem;
background: #34a853;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-family: inherit;
"
>
Share
</button>
</div>
</div>
</template>
<template x-if="!selectedFile">
<div style="padding: 2rem; text-align: center; color: #5f6368">
<div style="font-size: 4rem; margin-bottom: 1rem">📄</div>
<p>Select a file to view details</p>
</div>
</template>
</div>
</div>