diff --git a/Cargo.lock b/Cargo.lock index 2a0aab7..8e02690 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -477,15 +477,6 @@ dependencies = [ "twoway", ] -[[package]] -name = "nanoid" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ffa00dec017b5b1a8b7cf5e2c008bfda1aa7e0697ac1508b491fdf2622fb4d8" -dependencies = [ - "rand 0.8.4", -] - [[package]] name = "ntapi" version = "0.3.6" @@ -632,19 +623,18 @@ dependencies = [ "libc", "rand_chacha 0.2.2", "rand_core 0.5.1", - "rand_hc 0.2.0", + "rand_hc", ] [[package]] name = "rand" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", "rand_chacha 0.3.1", "rand_core 0.6.3", - "rand_hc 0.3.1", ] [[package]] @@ -694,15 +684,6 @@ dependencies = [ "rand_core 0.5.1", ] -[[package]] -name = "rand_hc" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7" -dependencies = [ - "rand_core 0.6.3", -] - [[package]] name = "redox_syscall" version = "0.2.10" @@ -851,7 +832,7 @@ checksum = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22" dependencies = [ "cfg-if", "libc", - "rand 0.8.4", + "rand 0.8.5", "redox_syscall", "remove_dir_all", "winapi", @@ -987,7 +968,7 @@ dependencies = [ "httparse", "input_buffer", "log", - "rand 0.8.4", + "rand 0.8.5", "sha-1", "url", "utf-8", @@ -1119,8 +1100,8 @@ version = "0.1.0" dependencies = [ "futures", "futures-util", - "nanoid", "once_cell", + "rand 0.8.5", "serde", "serde_json", "tokio", diff --git a/Cargo.toml b/Cargo.toml index 611c036..029da94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,15 +1,15 @@ -[package] -name = "watch-party" -version = "0.1.0" -edition = "2021" - -[dependencies] -futures = "0.3.17" -futures-util = "0.3.17" -once_cell = "1.8.0" -serde = { version = "1.0.130", features = ["derive"] } -serde_json = "1.0.68" -tokio = { version = "1.12.0", features = ["full"] } -tokio-stream = { version = "0.1.7", features = ["fs"] } -warp = "0.3.1" -nanoid = "0.4.0" \ No newline at end of file +[package] +name = "watch-party" +version = "0.1.0" +edition = "2021" + +[dependencies] +futures = "0.3.17" +futures-util = "0.3.17" +once_cell = "1.8.0" +serde = { version = "1.0.130", features = ["derive"] } +serde_json = "1.0.68" +tokio = { version = "1.12.0", features = ["full"] } +tokio-stream = { version = "0.1.7", features = ["fs"] } +warp = "0.3.1" +rand = "0.8.5" diff --git a/frontend/create.html b/frontend/create.html index bd5d16c..0ac19fb 100644 --- a/frontend/create.html +++ b/frontend/create.html @@ -3,7 +3,7 @@ watch party :D - + @@ -38,6 +38,14 @@ id="create-session-subs-name" placeholder="English" /> + + + +

@@ -47,6 +55,6 @@ - + diff --git a/frontend/create.mjs b/frontend/create.mjs index eab9f4c..719a440 100644 --- a/frontend/create.mjs +++ b/frontend/create.mjs @@ -1,7 +1,7 @@ -import { setupCreateSessionForm } from "./lib/create-session.mjs?v=bfdcf2"; +import { setupCreateSessionForm } from "./lib/create-session.mjs?v=bfdcf21"; -const main = () => { - setupCreateSessionForm(); +const main = async () => { + await setupCreateSessionForm(); }; if (document.readyState === "complete") { diff --git a/frontend/index.html b/frontend/index.html index 44eaf2d..200dfc0 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,7 +3,7 @@ watch party :D - + @@ -66,7 +66,7 @@ - +