Skip to content

Commit f33d2ea

Browse files
committed
chore: update deps and add comments
1 parent 804f653 commit f33d2ea

10 files changed

Lines changed: 98 additions & 75 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ jobs:
3333
pages: write
3434
id-token: write
3535
steps:
36-
- uses: actions/deploy-pages@v4
36+
- uses: actions/deploy-pages@v5
3737
id: deployment

app/components/source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class SourceUI {
2424

2525
initialize(src: string) {
2626
this.reset();
27-
const lines = src.replace("\r", "").split("\n");
27+
const lines = src.replaceAll("\r", "").split("\n");
2828
for (const [lineIndex, line] of lines.entries()) {
2929
let checkbox: undefined | HTMLInputElement = undefined;
3030
const lineTrim = line.trimStart();

app/components/toggle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const makeSVG = (pathStr: string) => {
1313

1414
const getStart = () => {
1515
const div = document.createElement("div");
16-
// https://icons.getbootstrap.com/icons/play/
16+
// https://icons.getbootstrap.com/icons/play/ Copyright (c) 2011-2026 The Bootstrap Authors. MIT license.
1717
div.innerHTML = makeSVG(
1818
`<path stroke="currentColor" stroke-width="1" d="M10.804 8 5 4.633v6.734L10.804 8zm.792-.696a.802.802 0 0 1 0 1.392l-6.363 3.692C4.713 12.69 4 12.345 4 11.692V4.308c0-.653.713-.998 1.233-.696l6.363 3.692z"/>`,
1919
) + RUN;
@@ -24,7 +24,7 @@ const start = getStart();
2424

2525
const getStop = () => {
2626
const div = document.createElement("div");
27-
// https://icons.getbootstrap.com/icons/stop/
27+
// https://icons.getbootstrap.com/icons/stop/ Copyright (c) 2011-2026 The Bootstrap Authors. MIT license.
2828
div.innerHTML = makeSVG(
2929
`<path stroke="currentColor" stroke-width="1" d="M3.5 5A1.5 1.5 0 0 1 5 3.5h6A1.5 1.5 0 0 1 12.5 5v6a1.5 1.5 0 0 1-1.5 1.5H5A1.5 1.5 0 0 1 3.5 11V5zM5 4.5a.5.5 0 0 0-.5.5v6a.5.5 0 0 0 .5.5h6a.5.5 0 0 0 .5-.5V5a.5.5 0 0 0-.5-.5H5z"/>`,
3030
) + STOP;

app/index.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ <h1 class="text-center">323 Web Emulator</h1>
4040
<noscript class="alert alert-danger" role="alert">
4141
This application requires JavaScript to be enabled.
4242
</noscript>
43-
<input id="select-file" type="file" class="d-none" accept=".323,.txt" />
43+
<input id="select-file" type="file" class="d-none" accept=".323, .txt" />
4444
<label for="select-file" class="mb-2 btn btn-primary btn-sm">
45-
<!-- https://icons.getbootstrap.com/icons/upload/ -->
45+
<!-- https://icons.getbootstrap.com/icons/upload/ Copyright (c) 2011-2026 The Bootstrap Authors. MIT license. -->
4646
<svg
4747
xmlns="http://www.w3.org/2000/svg"
4848
width="16"
@@ -113,7 +113,7 @@ <h1 class="text-center">323 Web Emulator</h1>
113113
class="btn btn-primary"
114114
disabled
115115
>
116-
<!-- https://icons.getbootstrap.com/icons/arrow-clockwise/ -->
116+
<!-- https://icons.getbootstrap.com/icons/arrow-clockwise/ Copyright (c) 2011-2026 The Bootstrap Authors. MIT license. -->
117117
<svg
118118
xmlns="http://www.w3.org/2000/svg"
119119
width="16"
@@ -165,7 +165,7 @@ <h1 class="text-center">323 Web Emulator</h1>
165165
data-bs-toggle="modal"
166166
data-bs-target="#config_modal"
167167
>
168-
<!-- https://icons.getbootstrap.com/icons/gear/ -->
168+
<!-- https://icons.getbootstrap.com/icons/gear/ Copyright (c) 2011-2026 The Bootstrap Authors. MIT license. -->
169169
<svg
170170
xmlns="http://www.w3.org/2000/svg"
171171
width="16"
@@ -269,6 +269,7 @@ <h1 class="text-center">323 Web Emulator</h1>
269269
</svg>
270270
</button>
271271
</div>
272+
<!-- https://icons.getbootstrap.com/icons/arrow-left/ Copyright (c) 2011-2026 The Bootstrap Authors. MIT license. -->
272273
<div class="arrow-row">
273274
<button aria-label="Left" id="key-left" class="btn btn-light">
274275
<svg
@@ -391,6 +392,7 @@ <h1 class="text-center">323 Web Emulator</h1>
391392
</details>
392393
</section>
393394
</main>
395+
394396
<!-- Config Modal -->
395397
<div
396398
class="modal fade"
@@ -403,7 +405,7 @@ <h1 class="text-center">323 Web Emulator</h1>
403405
<div class="modal-content" id="config_modal_content">
404406
<div class="modal-header">
405407
<h2 class="modal-title fs-5" id="config_modal_label">
406-
<!-- https://icons.getbootstrap.com/icons/gear/ -->
408+
<!-- https://icons.getbootstrap.com/icons/gear/ Copyright (c) 2011-2026 The Bootstrap Authors. MIT license. -->
407409
<svg
408410
xmlns="http://www.w3.org/2000/svg"
409411
width="16"
@@ -458,6 +460,7 @@ <h2 class="modal-title fs-5" id="config_modal_label">
458460
</div>
459461
</div>
460462
<!-- End Config Modal -->
463+
461464
<footer class="mt-3">
462465
<section>
463466
<h2 class="fs-4 mt-3">Links</h2>

deno.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
"@deno/esbuild-plugin": "jsr:@deno/esbuild-plugin@^1.2.1",
3939
"@std/assert": "jsr:@std/assert@^1.0.10",
4040
"@std/http": "jsr:@std/http@^1.0.25",
41-
"esbuild": "npm:esbuild@^0.25.10"
41+
"esbuild": "npm:esbuild@^0.28.0"
4242
}
4343
}

deno.lock

Lines changed: 65 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assembler/assemble.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ import {
1414
import { assemble } from "./assemble.ts";
1515
import { ErrorWithLineContext } from "./core.ts";
1616

17-
function split(u32: number) {
17+
/**
18+
* Split 32 bits number to lower 16 bits and upper 16 bits
19+
*/
20+
function split(u32: number): [lower: number, upper: number] {
1821
return [u32 & 0xffff, u32 >>> 16];
1922
}
2023

0 commit comments

Comments
 (0)