-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
SWC-6930: replace synapse footer and homepage
- Loading branch information
Showing
13 changed files
with
204 additions
and
462 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
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
44 changes: 44 additions & 0 deletions
44
src/main/java/org/sagebionetworks/web/client/jsinterop/SynapseFooterProps.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,44 @@ | ||
package org.sagebionetworks.web.client.jsinterop; | ||
|
||
import jsinterop.annotations.JsFunction; | ||
import jsinterop.annotations.JsOverlay; | ||
import jsinterop.annotations.JsPackage; | ||
import jsinterop.annotations.JsType; | ||
|
||
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object") | ||
public class SynapseFooterProps extends ReactComponentProps { | ||
|
||
String portalVersion; | ||
String srcVersion; | ||
String repoVersion; | ||
|
||
@JsFunction | ||
public interface Callback { | ||
void run(); | ||
} | ||
|
||
@JsFunction | ||
public interface Callback2 { | ||
void run(String targetHref); | ||
} | ||
|
||
public Callback reportViolationCallback; | ||
public Callback2 gotoPlace; | ||
|
||
@JsOverlay | ||
public static SynapseFooterProps create( | ||
String portalVersion, | ||
String srcVersion, | ||
String repoVersion, | ||
Callback reportViolationCallback, | ||
Callback2 gotoPlace | ||
) { | ||
SynapseFooterProps props = new SynapseFooterProps(); | ||
props.portalVersion = portalVersion; | ||
props.srcVersion = srcVersion; | ||
props.repoVersion = repoVersion; | ||
props.reportViolationCallback = reportViolationCallback; | ||
props.gotoPlace = gotoPlace; | ||
return props; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/org/sagebionetworks/web/client/jsinterop/SynapseHomepageV2Props.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,24 @@ | ||
package org.sagebionetworks.web.client.jsinterop; | ||
|
||
import jsinterop.annotations.JsFunction; | ||
import jsinterop.annotations.JsOverlay; | ||
import jsinterop.annotations.JsPackage; | ||
import jsinterop.annotations.JsType; | ||
|
||
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object") | ||
public class SynapseHomepageV2Props extends ReactComponentProps { | ||
|
||
@JsFunction | ||
public interface Callback { | ||
void run(String targetHref); | ||
} | ||
|
||
public Callback gotoPlace; | ||
|
||
@JsOverlay | ||
public static SynapseHomepageV2Props create(Callback gotoPlace) { | ||
SynapseHomepageV2Props props = new SynapseHomepageV2Props(); | ||
props.gotoPlace = gotoPlace; | ||
return props; | ||
} | ||
} |
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
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.