From c5ac9b0df06e4b3afd46ca1b5d00aa6fcc8f1750 Mon Sep 17 00:00:00 2001 From: Brad Nelson Date: Fri, 23 Aug 2024 15:15:41 -0700 Subject: [PATCH] Adding quick web serial terminal. --- site/BUILD | 1 + site/app.yaml | 5 +++++ web/BUILD | 1 + web/serial.html | 29 +++++++++++++++++++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 web/serial.html diff --git a/site/BUILD b/site/BUILD index 6c55627..06dc993 100644 --- a/site/BUILD +++ b/site/BUILD @@ -24,6 +24,7 @@ DEPLOY_ITEMS = [] DEPLOY_ITEMS += [ Copy('$dst/deploy/.gcloudignore', '$src/site/.gcloudignore'), Copy('$dst/deploy/ueforth.js', '$dst/web/ueforth.js'), + Copy('$dst/deploy/serial.html', '$dst/web/serial.html'), Importation('$dst/deploy/index.html', '$src/site/index.html', options=ESP_OPTIONS), Importation('$dst/deploy/linux.html', '$src/site/linux.html', options=UE_OPTIONS), Importation('$dst/deploy/windows.html', '$src/site/windows.html', options=UE_OPTIONS), diff --git a/site/app.yaml b/site/app.yaml index ad8626e..8ccbde2 100644 --- a/site/app.yaml +++ b/site/app.yaml @@ -37,6 +37,11 @@ handlers: upload: (.*).html secure: always +- url: /serial + static_files: serial.html + upload: serial.html + secure: always + - url: /(.*).js static_files: \1.js upload: (.*).js diff --git a/web/BUILD b/web/BUILD index eeb5fb6..a9906d8 100644 --- a/web/BUILD +++ b/web/BUILD @@ -34,6 +34,7 @@ WEB_ITEMS = [ Copy('$dst/web/script_lite_test.html', '$src/web/script_lite_test.html'), Copy('$dst/web/script_test.html', '$src/web/script_test.html'), Copy('$dst/web/script_test.fs', '$src/web/script_test.fs'), + Copy('$dst/web/serial.html', '$src/web/serial.html'), ] if D8_AVAILABLE: diff --git a/web/serial.html b/web/serial.html new file mode 100644 index 0000000..999f61a --- /dev/null +++ b/web/serial.html @@ -0,0 +1,29 @@ + + + + +