Skip to content

Commit c97f357

Browse files
committed
use relative path
Signed-off-by: Alex Chi <[email protected]>
1 parent b7f8695 commit c97f357

File tree

7 files changed

+16
-13
lines changed

7 files changed

+16
-13
lines changed

bpt-printer/index.html

+6-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
.terminal::after {
4242
content: "";
43-
background-image: url("/bpt-printer/bustub.svg");
43+
background-image: url("bustub.svg");
4444
opacity: 0.02;
4545
top: -50%;
4646
left: -50%;
@@ -69,11 +69,12 @@
6969
}
7070
</style>
7171

72-
<script src="/bpt-printer/bustub-wasm-bpt-printer.js"></script>
72+
<script src="bustub-wasm-bpt-printer.js"></script>
7373

7474
<script type="text/javascript">
75-
const BUSTUB_PUBLIC_VERSION_VAR = "a9e80b8"
76-
const BUSTUB_PRIVATE_VERSION_VAR = "9621a72"
75+
const BUSTUB_PUBLIC_VERSION_VAR = "91a6ae6"
76+
const BUSTUB_PRIVATE_VERSION_VAR = "ca5a776"
77+
const BUSTUB_BUILD_TIME_VAR = "20221024"
7778
const viz = new Viz()
7879

7980
Module['onRuntimeInitialized'] = function () {
@@ -152,7 +153,7 @@
152153
BusTub is a relational database management system built at Carnegie Mellon University for the Introduction to Database Systems (15-445/645) course. This system was developed for educational purposes and should not be used in production environments. [[!;;;;https://github.com/cmu-db/bustub]BusTub on GitHub] [[!;;;;https://15445.courses.cs.cmu.edu/]Course Website] [[!;;;;https://github.com/cmu-db/bustub/issues/new]Report Bugs]
153154
154155
${helpMessage}
155-
This is BusTub reference solution running in your browser. Solution Version: ${BUSTUB_PRIVATE_VERSION_VAR}, BusTub Version: ${BUSTUB_PUBLIC_VERSION_VAR}.
156+
This is BusTub reference solution running in your browser. Solution Version: ${BUSTUB_PRIVATE_VERSION_VAR}, BusTub Version: ${BUSTUB_PUBLIC_VERSION_VAR}, built at ${BUSTUB_BUILD_TIME_VAR}.
156157
`,
157158
prompt: () => initialized ? "[[b;;]printer> ]" : "leaf_max_size and internal_max_size? (e.g., 3 3) "
158159
})

shell/bustub-wasm-shell.js renamed to bustub/bustub-wasm-shell.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bustub/bustub-wasm-shell.wasm

1.02 MB
Binary file not shown.
File renamed without changes.

shell/index.html renamed to bustub/index.html

+6-5
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
.terminal::after {
3737
content: "";
38-
background-image: url("/shell/bustub.svg");
38+
background-image: url("bustub.svg");
3939
opacity: 0.02;
4040
top: -50%;
4141
left: -50%;
@@ -57,11 +57,12 @@
5757
}
5858
</style>
5959

60-
<script src="/shell/bustub-wasm-shell.js"></script>
60+
<script src="bustub-wasm-shell.js"></script>
6161

6262
<script type="text/javascript">
63-
const BUSTUB_PUBLIC_VERSION_VAR = "a9e80b8"
64-
const BUSTUB_PRIVATE_VERSION_VAR = "9621a72"
63+
const BUSTUB_PUBLIC_VERSION_VAR = "91a6ae6"
64+
const BUSTUB_PRIVATE_VERSION_VAR = "ca5a776"
65+
const BUSTUB_BUILD_TIME_VAR = "20221024"
6566

6667
Module['onRuntimeInitialized'] = function () {
6768
const executeQuery = Module.cwrap('BustubExecuteQuery', 'number', ['string', 'number', 'number'])
@@ -110,7 +111,7 @@
110111
111112
Use \\help to learn about the usage. Use \\clear to clear the page.
112113
113-
This is BusTub reference solution running in your browser. Solution Version: ${BUSTUB_PRIVATE_VERSION_VAR}, BusTub Version: ${BUSTUB_PUBLIC_VERSION_VAR}.
114+
This is BusTub reference solution running in your browser. Solution Version: ${BUSTUB_PRIVATE_VERSION_VAR}, BusTub Version: ${BUSTUB_PUBLIC_VERSION_VAR}, built at ${BUSTUB_BUILD_TIME_VAR}.
114115
`,
115116
prompt: () => line.length == 0 ? "[[b;;]bustub> ]" : "[[b;;]... ]"
116117
})

shell/bustub-wasm-shell.wasm

-1000 KB
Binary file not shown.

vercel.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"redirects": [
66
{
77
"source": "/",
8-
"destination": "/shell/"
8+
"destination": "/bustub/"
99
}
10-
]
10+
],
11+
"trailingSlash": true
1112
}

0 commit comments

Comments
 (0)