forked from Sage-Bionetworks/SynapseWebClient
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SWC-6734: Use legacy uploader for Google Cloud Platform bucket upload…
…, and new SRC uploader for S3 (and S3-like) upload
- Loading branch information
1 parent
6f1b426
commit 0368b4c
Showing
10 changed files
with
1,244 additions
and
523 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
478 changes: 286 additions & 192 deletions
478
src/main/java/org/sagebionetworks/web/client/PortalGinModule.java
Large diffs are not rendered by default.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
src/main/java/org/sagebionetworks/web/client/jsinterop/Promise.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package org.sagebionetworks.web.client.jsinterop; | ||
|
||
import jsinterop.annotations.JsConstructor; | ||
import jsinterop.annotations.JsFunction; | ||
import jsinterop.annotations.JsMethod; | ||
import jsinterop.annotations.JsPackage; | ||
import jsinterop.annotations.JsType; | ||
|
||
@JsType(isNative = true, namespace = JsPackage.GLOBAL) | ||
public class Promise<T> { | ||
|
||
@JsFunction | ||
public interface FunctionParam<T> { | ||
void exec(T o); | ||
} | ||
|
||
@JsFunction | ||
public interface ConstructorParam<T> { | ||
void exec(FunctionParam<T> resolve, FunctionParam<T> reject); | ||
} | ||
|
||
@JsConstructor | ||
public Promise(ConstructorParam parameters) {} | ||
|
||
public native Promise<T> then(FunctionParam<T> f); | ||
|
||
@JsMethod(name = "catch") | ||
public native Promise<T> catch_(FunctionParam<Object> f); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.