feat: scaffold seafile resource sync

This commit is contained in:
SepComet
2026-05-05 10:30:47 +08:00
parent fdeb25805c
commit 8265a10cff
10 changed files with 506 additions and 97 deletions
+19 -3
View File
@@ -2,6 +2,17 @@ import { readFile } from 'node:fs/promises';
import path from 'node:path';
import process from 'node:process';
export type ProjectDownload = {
name: string;
description?: string;
url?: string;
type?: 'build' | 'demo' | 'document' | 'asset';
platform?: string;
size?: number;
updated_at?: string;
source?: 'seed' | 'seafile';
};
type ProjectSeed = {
name: string;
description: string;
@@ -9,6 +20,7 @@ type ProjectSeed = {
cover_image: string;
demo_video?: string;
download_link?: string;
downloads?: ProjectDownload[];
tags: string[];
featured: boolean;
};
@@ -21,12 +33,16 @@ export type ProjectData = ProjectSeed & {
type ShareSeed = {
name: string;
description: string;
url: string;
time: string;
description?: string;
url?: string;
time?: string;
};
export type ShareData = ShareSeed & {
type?: 'build' | 'demo' | 'document' | 'asset';
project?: string;
project_repo?: string;
platform?: string;
size?: number;
source?: 'seed' | 'seafile';
updated_at?: string;