feat: Website (#15)
Add a basic website that shows the current flutgrid state Co-authored-by: Noa Aarts <noa@voorwaarts.nl>
This commit is contained in:
parent
6c9de45c6a
commit
7f04b39a15
12 changed files with 1095 additions and 75 deletions
|
|
@ -1,9 +1,11 @@
|
|||
use std::time::Duration;
|
||||
|
||||
pub const GRID_LENGTH: usize = 1;
|
||||
pub const HOST: &str = "0.0.0.0:7791";
|
||||
pub const HOST: &str = "127.0.0.1:7791";
|
||||
pub const WEB_HOST: &str = "127.0.0.1:3000";
|
||||
pub const IMAGE_SAVE_INTERVAL: Duration = Duration::from_secs(5);
|
||||
pub const JPEG_UPDATE_INTERVAL: Duration = Duration::from_millis(20);
|
||||
pub const JPEG_UPDATE_INTERVAL: Duration = Duration::from_millis(17);
|
||||
pub const WEB_UPDATE_INTERVAL: Duration = Duration::from_millis(50);
|
||||
|
||||
pub const HELP_TEXT: &[u8] = b"Flurry is a pixelflut implementation, this means you can use commands to get and set pixels in the canvas
|
||||
SIZE returns the size of the canvas
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue