Skip to content

Commit e238047

Browse files
committed
Parcel frontend starts from html instead of Vue
1 parent cbc8105 commit e238047

File tree

9 files changed

+33
-31
lines changed

9 files changed

+33
-31
lines changed

site/frontend/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,32 +32,32 @@
3232
},
3333
"targets": {
3434
"dashboard": {
35-
"source": "src/pages/dashboard.ts",
36-
"distDir": "dist/scripts"
35+
"source": "src/templates/dashboard.html",
36+
"distDir": "dist/"
3737
},
3838
"status": {
39-
"source": "src/pages/status.ts",
40-
"distDir": "dist/scripts"
39+
"source": "src/templates/status.html",
40+
"distDir": "dist/"
4141
},
4242
"bootstrap": {
43-
"source": "src/pages/bootstrap.ts",
44-
"distDir": "dist/scripts"
43+
"source": "src/templates/bootstrap.html",
44+
"distDir": "dist/"
4545
},
4646
"graphs": {
47-
"source": "src/pages/graphs.ts",
48-
"distDir": "dist/scripts"
47+
"source": "src/templates/graphs.html",
48+
"distDir": "dist/"
4949
},
5050
"compare": {
51-
"source": "src/pages/compare.ts",
52-
"distDir": "dist/scripts"
51+
"source": "src/templates/compare.html",
52+
"distDir": "dist/"
5353
},
5454
"detailed-query": {
55-
"source": "src/pages/detailed-query.ts",
56-
"distDir": "dist/scripts"
55+
"source": "src/templates/detailed-query.html",
56+
"distDir": "dist/"
5757
},
58-
"uplot": {
59-
"source": "node_modules/uplot/dist/uPlot.min.css",
60-
"distDir": "dist/styles"
58+
"layout": {
59+
"source": "src/templates/layout.html",
60+
"distDir": "dist/"
6161
}
6262
},
6363
"browserslist": "> 0.5%, last 3 years, not dead",

site/frontend/templates/pages/bootstrap.html renamed to site/frontend/src/templates/bootstrap.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends "layout.html" %}
22
{% block head %}
3-
<link rel="stylesheet" href="styles/uPlot.min.css">
3+
<link rel="stylesheet" href="../../node_modules/uplot/dist/uPlot.min.css">
44
<style>
55
.uplot {
66
display: inline-block;
@@ -48,5 +48,5 @@
4848
<div id="app"></div>
4949
{% endblock %}
5050
{% block script %}
51-
<script src="scripts/bootstrap.js"></script>
51+
<script type="module" src="../pages/bootstrap.ts"></script>
5252
{% endblock %}

site/frontend/templates/pages/compare.html renamed to site/frontend/src/templates/compare.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends "layout.html" %}
22
{% block head %}
3-
<link rel="stylesheet" href="styles/uPlot.min.css">
3+
<link rel="stylesheet" href="../../node_modules/uplot/dist/uPlot.min.css">
44

55
<style>
66
body {
@@ -71,13 +71,13 @@
7171
}
7272
</style>
7373

74-
<link rel="stylesheet" type="text/css" href="scripts/compare.css">
74+
<!-- <link rel="stylesheet" type="text/css" href="scripts/compare.css"> -->
7575
{% endblock %}
7676
{% block content %}
7777
{% raw %}
7878
<div id="app"></div>
7979
{% endraw %}
8080
{% endblock %}
8181
{% block script %}
82-
<script src="scripts/compare.js"></script>
82+
<script type="module" src="../pages/compare.ts"></script>
8383
{% endblock %}

site/frontend/templates/pages/dashboard.html renamed to site/frontend/src/templates/dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
<div id="as-of"></div>
1818
{% endblock %}
1919
{% block script %}
20-
<script src="scripts/dashboard.js"></script>
20+
<script type="module" src="../pages/dashboard.ts"></script>
2121
{% endblock %}

site/frontend/templates/pages/detailed-query.html renamed to site/frontend/src/templates/detailed-query.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ <h4>Artifact Size</h4>
103103
</div>
104104
{% endblock content %}
105105
{% block script %}
106-
<script src="scripts/detailed-query.js"></script>
106+
<script type="module" src="../pages/detailed-query.ts"></script>
107107
{% endblock script %}

site/frontend/templates/pages/graphs.html renamed to site/frontend/src/templates/graphs.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends "layout.html" %}
22
{% block head %}
3-
<link rel="stylesheet" href="styles/uPlot.min.css">
3+
<link rel="stylesheet" href="../../node_modules/uplot/dist/uPlot.min.css">
44
<style>
55
.uplot {
66
display: inline-block;
@@ -43,10 +43,12 @@
4343
margin: 0;
4444
}
4545
</style>
46+
<!-- <link rel="stylesheet" type="text/css" href="graphs.css"> -->
47+
4648
{% endblock %}
4749
{% block content %}
4850
<div id="app"></div>
4951
{% endblock %}
5052
{% block script %}
51-
<script src="scripts/graphs.js"></script>
53+
<script type="module" src="../pages/graphs.ts"></script>
5254
{% endblock %}

site/frontend/templates/layout.html renamed to site/frontend/src/templates/layout.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
44
<meta charset="utf-8">
55
<title>rustc performance data</title>
6-
<link rel="alternate icon" type="image/png" href="/favicon-32x32.png">
7-
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
8-
<link rel="stylesheet" type="text/css" href="styles/shared.css">
6+
<link rel="alternate icon" type="image/png" href="../../static/favicon.svg">
7+
<link rel="icon" type="image/svg+xml" href="../../static/favicon-32x32.png">
8+
<link rel="stylesheet" type="text/css" href="../../static/styles/shared.css">
99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
1010
{% block head %}{% endblock %}
1111
</head>
1212
<body class="container">
13-
<div>&gt; <a href="index.html">graphs</a>, <a href="compare.html">compare</a>,
13+
<div>&gt; <a href="graphs.html">graphs</a>, <a href="compare.html">compare</a>,
1414
<a href="dashboard.html">dashboard</a>, <a href="bootstrap.html">bootstrap</a>,
1515
<a href="status.html">status</a>, <a href="help.html">help</a>.
1616
</div>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{% extends "layout.html" %}
22
{% block head %}
3-
<link rel="stylesheet" type="text/css" href="scripts/status.css">
3+
<!-- <link rel="stylesheet" type="text/css" href="scripts/status.css"> -->
44
{% endblock %}
55
{% block content %}
66
<div id="app"></div>
77
{% endblock %}
88
{% block script %}
9-
<script src="scripts/status.js"></script>
9+
<script type="module" src="../pages/status.ts"></script>
1010
{% endblock %}

0 commit comments

Comments
 (0)