remove file uploads from config

This commit is contained in:
Matt Hill
2024-07-30 09:09:35 -06:00
parent 290a15bbd9
commit 89e327383e
10 changed files with 0 additions and 142 deletions

View File

@@ -14,8 +14,6 @@ export abstract class ApiService {
// for sideloading packages
abstract uploadPackage(guid: string, body: Blob): Promise<string>
abstract uploadFile(body: Blob): Promise<string>
// for getting static files: ex icons, instructions, licenses
abstract getStaticProxy(
pkg: MarketplacePkg,

View File

@@ -52,15 +52,6 @@ export class LiveApiService extends ApiService {
})
}
async uploadFile(body: Blob): Promise<string> {
return this.httpRequest({
method: Method.POST,
body,
url: `/rest/upload`,
responseType: 'text',
})
}
// for getting static files: ex. instructions, licenses
async getStaticProxy(

View File

@@ -1084,11 +1084,6 @@ export class MockApiService extends ApiService {
}
}
async uploadFile(body: Blob): Promise<string> {
await pauseFor(2000)
return 'returnedhash'
}
private async initProgress(): Promise<T.FullProgress> {
const progress = JSON.parse(JSON.stringify(PROGRESS))