feat: integrate learning module
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-08-16 20:52:16 +08:00
parent 26b52d76e3
commit 01bee3188b
107 changed files with 6318 additions and 12063 deletions

View File

@@ -4,6 +4,7 @@ export type ProjectPublic = {
app_id: string;
title: string;
summary: string;
description?: string | null;
cover_url?: string | null;
category?: string | null;
age_band?: string | null;
@@ -15,6 +16,7 @@ export type ProjectPublic = {
/** @deprecated Use play_url. Kept for one client compatibility release. */
runtime_url?: string | null;
creator_name?: string | null;
creator_age?: number | null;
buddy_name?: string | null;
buddy_sprite_url?: string | null;
buddy_pose_url?: string | null;
@@ -74,7 +76,10 @@ export type WorksProjectMetadataInput = {
app_id: string;
title: string;
summary: string;
description?: string | null;
cover_url?: string | null;
creator_name?: string | null;
creator_age?: number | null;
category?: string | null;
age_band?: string | null;
difficulty?: string | null;
@@ -133,6 +138,13 @@ export type WorksStaticPackageSummary = {
export type WorksProjectSourcePublishInput = {
projectId: string;
project: WorksProjectMetadataInput;
cover?: WorksProjectCoverUpload;
};
export type WorksProjectCoverUpload = {
fileName: string;
mimeType: string;
dataBase64: string;
};
export type WorksSubmissionBindingWarning = {
@@ -428,6 +440,7 @@ export async function publishWorksProjectSource(
body: JSON.stringify({
projectId: input.projectId,
project: input.project,
...(input.cover ? { cover: input.cover } : {}),
}),
});
if (!response.success || !response.package || !response.upload) {