mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-19 19:08:11 +08:00
* Fix for favicon with --dataroot * fix static assets in hosted cxg The web proxy at aws eb was not finding the static assets. The solution here is very simple: just copy the directory containing the static assets to the top level of the artifact.zip. This is not really the ideal solution. According to the AWS docs you can make a mapping to the correct location in an an ebextentions config file. I tried this and many combinations but was not able to get this to work following that pattern. Since we control the construction of the zip file, the solution here isn't bad, but it could probably be made better.
43 lines
1.1 KiB
HTML
43 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>cell×gene</title>
|
|
<style>
|
|
html, body, p, h1, h2, h3, h4, h5, h6, span, button, input, label, text, div {
|
|
font-family: 'Roboto Condensed', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
|
|
font-size: 14px;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
</style>
|
|
<link rel="shortcut icon" href="static/img/favicon.png">
|
|
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript">
|
|
window.CELLXGENE = {};
|
|
window.CELLXGENE.API = {
|
|
prefix: window.location.href + "api/",
|
|
version: "v0.2/"
|
|
};
|
|
</script>
|
|
<noscript>If you're seeing this message, that means <strong>JavaScript has been disabled on your browser</strong>,
|
|
please <strong>enable JS</strong> to make this app work.
|
|
</noscript>
|
|
|
|
<div id="root"></div>
|
|
{% for script in SCRIPTS %}
|
|
<script type="text/javascript" src="{{script | safe}}"></script>
|
|
{% endfor %}
|
|
</body>
|
|
</html>
|