Project files tweaks (#679)

* chore: fixed issue when loading first time; deleting excel file after upload; only json files from project list

* chore: added last loaded project to endpoint response

* chore: incremental file name

---------

Co-authored-by: Name <Email>
This commit is contained in:
Ary
2023-12-30 11:32:17 -07:00
committed by GitHub
parent c5c0401ac4
commit 7b9f64a630
9 changed files with 613 additions and 30 deletions
@@ -21,6 +21,11 @@ export type ProjectFile = {
export type ProjectFileList = Array<ProjectFile>;
export type ProjectFileListResponse = {
files: ProjectFileList;
lastLoadedProject: string;
};
export type ErrorResponse = {
message: string;
}
};
+8 -1
View File
@@ -38,7 +38,14 @@ export type { OSCSettings, OscSubscription, OscSubscriptionOptions } from './def
export type { HttpSettings, HttpSubscription, HttpSubscriptionOptions } from './definitions/core/HttpSettings.type.js';
// SERVER RESPONSES
export type { NetworkInterface, GetInfo, ProjectFileList, ProjectFile, ErrorResponse } from './api/ontime-controller/BackendResponse.type.js';
export type {
NetworkInterface,
GetInfo,
ProjectFileList,
ProjectFile,
ErrorResponse,
ProjectFileListResponse,
} from './api/ontime-controller/BackendResponse.type.js';
export type { GetRundownCached } from './api/rundown-controller/BackendResponse.type.js';
// SERVER RUNTIME