Skip to content

Commit

Permalink
Moved static html page to client/app
Browse files Browse the repository at this point in the history
  • Loading branch information
ranbena committed Mar 26, 2019
1 parent 659c032 commit 3d114d6
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 26 deletions.
2 changes: 1 addition & 1 deletion client/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Redash</title>
<script>
function onIE() {
window.location.href = '/unsupported';
window.location.href = '/static/unsupported';
}
if (
navigator.userAgent.match('MSIE') || // IE10
Expand Down
2 changes: 1 addition & 1 deletion client/app/multi_org.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>Redash</title>
<script>
function onIE() {
window.location.href = '/unsupported';
window.location.href = '/static/unsupported';
}
if (
navigator.userAgent.match('MSIE') || // IE10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</head>
<body>
<div>
<a href="https://redash.io"><img src="/static/images/redash_icon_small.png" width="40" height="40"></a>
<a href="https://redash.io"><img src="images/redash_icon_small.png" width="40" height="40"></a>
<h3>Whoops... Redash doesn't support your browser</h3>
</div>
<div class="tiled">
Expand Down
38 changes: 19 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions redash/handlers/static.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ def render_index():
return response


@routes.route(org_scoped_rule('/unsupported'))
def unsupported():
return render_template("unsupported.html")

@routes.route(org_scoped_rule('/<path:path>'))
@routes.route(org_scoped_rule('/'))
@login_required
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const config = {
}),
new CopyWebpackPlugin([
{ from: "client/app/assets/robots.txt" },
{ from: "client/app/unsupported.html" },
{ from: "client/app/assets/css/*.css", to: "styles/", flatten: true },
{ from: "node_modules/jquery/dist/jquery.min.js", to: "js/jquery.min.js" }
])
Expand Down

0 comments on commit 3d114d6

Please sign in to comment.