No recent {title.toLowerCase()} found.
) : (
-
+
{recentFiles.map(file => renderFileCard(file))}
)}
@@ -301,7 +312,7 @@ export default function OfficeHome({ type, onFileSelect, onCreateBlank, onPinCha
) : allFiles.length === 0 ? (
No {title.toLowerCase()} found in your drive.
) : (
-
+
{allFiles.map(file => renderFileCard(file))}
)}
diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts
index 93969d4..db5b4d5 100644
--- a/frontend/src/lib/api.ts
+++ b/frontend/src/lib/api.ts
@@ -470,7 +470,7 @@ class ApiClient {
}
// --- OnlyOffice ---
- async createOnlyOfficeFile(type: 'word' | 'slide') {
+ async createOnlyOfficeFile(type: 'word' | 'slide' | 'cell') {
const res = await this.request('/api/onlyoffice/create', {
method: 'POST',
body: { type }
@@ -494,7 +494,7 @@ class ApiClient {
return res.json();
}
- async listOfficeFiles(type: 'docx' | 'pptx') {
+ async listOfficeFiles(type: 'docx' | 'pptx' | 'xlsx') {
const res = await this.request(`/api/onlyoffice/files?type=${type}`);
return res.json();
}