Scott Shawcroft
1a7082ff1d
Add newline for pre-commit
2022-07-26 08:37:33 -07:00
foamyguy
0ef6871a93
save with ctrl-s
2022-07-25 19:30:44 -05:00
foamyguy
d0782b60cb
Merge branch 'main' into webflow_edit_page
...
# Conflicts:
# supervisor/shared/web_workflow/web_workflow.c
2022-07-25 19:20:05 -05:00
foamyguy
a33985a73f
change to basic <textarea> version
2022-07-25 19:15:43 -05:00
Neradoc
09915ab0b9
compare all static ok hosts with port, add 127.0.0.1 and localhost to it
...
use strncmp rather than memcmp, one of the strings coul be smaller than the other
2022-07-24 15:15:10 +02:00
Neradoc
6575598ae6
HTTP headers and methods are not case sensitive
...
had the issue where Firefox would send "authorization" in lower case
2022-07-24 14:28:01 +02:00
Neradoc
9a6c3884a7
do options unauthenticated first, fix testing localhost
2022-07-24 14:28:01 +02:00
Neradoc
40cb0aac7c
CORS preflight: allow OPTIONS without authentication
...
check for 127.0.0.1 without a port specified
2022-07-24 14:28:01 +02:00
foamyguy
541e448100
set the href for edit links in the directory list
2022-07-15 19:56:29 -05:00
foamyguy
584e27139e
add back /edit/ handler and specify ES6 quote chars for jsmin
2022-07-15 19:49:03 -05:00
foamyguy
a46a44db26
adding edit page
2022-07-15 16:25:57 -05:00
Scott Shawcroft
e9dd254127
Add socket select task to wake CP
...
This fixes the web workflow on boards without a display.
Fixes #6552
2022-07-13 17:35:35 -07:00
Scott Shawcroft
031c124a81
Tweak serial page to work better in Chrome
2022-07-12 14:12:39 -07:00
Scott Shawcroft
15fe386457
Fix build and minify html and js
2022-07-12 11:13:17 -07:00
Scott Shawcroft
425a0efeca
A bit more cleanup
2022-07-11 14:53:20 -07:00
Scott Shawcroft
8cfdfb95f7
Remove extra logging, auth /cp/serial and add doc
2022-07-11 14:32:28 -07:00
Scott Shawcroft
557e35469f
Make serial page work ok including on mobile
2022-07-08 16:57:19 -07:00
Scott Shawcroft
8d9c995298
Support ping & close. Refine html and js for serial
2022-07-07 16:55:04 -07:00
Scott Shawcroft
a4035aa1f7
websocket serial kinda works
2022-07-06 17:05:14 -07:00
Scott Shawcroft
07b2697ae3
WIP websocket to serial
2022-07-01 16:57:10 -07:00
Scott Shawcroft
7589e53fea
WIP websocket accept and hashlib
2022-07-01 10:18:33 -07:00
Scott Shawcroft
a59b52bd43
Add USB warning
2022-06-30 16:54:06 -07:00
Scott Shawcroft
95d3289df6
Doc tweak and add vararg send helpers
2022-06-30 16:37:51 -07:00
Scott Shawcroft
08c93ad0ce
Fix creator ID and build order
2022-06-27 14:40:38 -07:00
Scott Shawcroft
d19270e318
Add docs and 404 in file PUT into non-existent dir
2022-06-27 13:39:09 -07:00
Scott Shawcroft
41039445c9
Clean up and add docs
2022-06-27 13:39:09 -07:00
Scott Shawcroft
7acc5ebeb9
Add logo for going to home. Fix origin check
2022-06-27 13:39:09 -07:00
Scott Shawcroft
3cd05291d0
Static files + welcome page
2022-06-27 13:39:09 -07:00
Scott Shawcroft
7543dd9af0
CORS works and autoreload too
2022-06-27 13:39:08 -07:00
Scott Shawcroft
eeb9b7881e
Disable/enable buttons
2022-06-27 13:39:08 -07:00
Scott Shawcroft
d6eaaafee8
Basic JS
2022-06-27 13:39:08 -07:00
Scott Shawcroft
964828398e
JSON directory API
2022-06-27 13:39:08 -07:00
Scott Shawcroft
847ac60dce
Fix wifi but not ble builds. Add DELETE and PUT support
2022-06-27 13:39:06 -07:00
Scott Shawcroft
92593aa7a1
Fix bind, remove hard coded ip
2022-06-27 13:34:13 -07:00
Scott Shawcroft
35045f0eab
Auth works
2022-06-27 13:34:13 -07:00
Scott Shawcroft
4f0a7aedfd
WIP adding devices.json and auth
2022-06-27 13:34:13 -07:00
Scott Shawcroft
77cecdbe2a
Turn on mdns service
2022-06-27 13:34:13 -07:00
Scott Shawcroft
32478345f8
more tweaks
2022-06-27 13:34:13 -07:00
Scott Shawcroft
0882cbf823
web server kinda works
2022-06-27 13:34:13 -07:00
Scott Shawcroft
61d0f7947b
WIP doesn't flush response before closing
2022-06-27 13:34:13 -07:00
Scott Shawcroft
301f3e0456
Start of web server
2022-06-27 13:34:13 -07:00
Scott Shawcroft
dc794f91c0
Speed up auto-wifi with wrong password
...
This adds basic timeout support to connect by preventing subsequent
retries if over time. The first connect may still take more than
the timeout.
2022-06-13 15:38:19 -07:00
Scott Shawcroft
6446010753
Wi-Fi autoconnect and title bar status
...
This adds support for CIRCUITPY_WIFI_SSID and CIRCUITPY_WIFI_PASSWORD
in `/.env`. When both are defined, CircuitPython will attempt to
connect to the network even when user code isn't running. If the
user code attempts to a network with the same SSID, it will return
immediately. Connecting to another SSID will disconnect from the
auto-connected network. If the user code initiates the connection,
then it will be shutdown after user code exits. (Should match <8
behavior.)
This PR also reworks the default displayio terminal. It now supports
a title bar TileGrid in addition to the (newly renamed) scroll area.
The default title bar is the top row of the display and is positioned
to the right of the Blinka logo when it is enabled. The scroll area
is now below the Blinka logo.
The Wi-Fi auto-connect code now uses the title bar to show its
state including the IP address when connected. It does this through
the "standard" OSC control sequence `ESC ] 0 ; <s> ESC \` where <s>
is the title bar string. This is commonly supported by terminals
so it should work over USB and UART as well.
Related to #6174
2022-06-09 14:55:54 -07:00