forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backend): structured properties and forms (datahub-project#9626)
Co-authored-by: Chris Collins <[email protected]> Co-authored-by: RyanHolstien <[email protected]>
- Loading branch information
1 parent
1d16e42
commit 943bb57
Showing
492 changed files
with
15,378 additions
and
1,931 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package controllers; | ||
|
||
import config.ConfigurationProvider; | ||
import javax.inject.Inject; | ||
import javax.inject.Singleton; | ||
import play.mvc.Controller; | ||
import play.mvc.Http; | ||
import play.mvc.Result; | ||
|
||
@Singleton | ||
public class RedirectController extends Controller { | ||
|
||
@Inject ConfigurationProvider config; | ||
|
||
public Result favicon(Http.Request request) { | ||
if (config.getVisualConfig().getAssets().getFaviconUrl().startsWith("http")) { | ||
return permanentRedirect(config.getVisualConfig().getAssets().getFaviconUrl()); | ||
} else { | ||
final String prefix = config.getVisualConfig().getAssets().getFaviconUrl().startsWith("/") ? "/public" : "/public/"; | ||
return ok(Application.class.getResourceAsStream( | ||
prefix + config.getVisualConfig().getAssets().getFaviconUrl())) | ||
.as("image/x-icon"); | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../datahub-web-react/public |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.