From 88d50b71d6dd041d7901a60a886ac40983e33293 Mon Sep 17 00:00:00 2001 From: AnthonyMichaelTDM <68485672+AnthonyMichaelTDM@users.noreply.github.com> Date: Mon, 13 Mar 2023 18:13:40 -0700 Subject: [PATCH 1/3] clippy fix --- create-rust-app_cli/qsync/src/hook.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/create-rust-app_cli/qsync/src/hook.rs b/create-rust-app_cli/qsync/src/hook.rs index 7a38ebf9..1d2d0504 100644 --- a/create-rust-app_cli/qsync/src/hook.rs +++ b/create-rust-app_cli/qsync/src/hook.rs @@ -226,7 +226,6 @@ impl Hook { .endpoint_url .trim_start_matches("/api/") .split('/') - .into_iter() .map(|t| { // in actix-web, paths which have {} denote a path param if t.starts_with('{') && t.ends_with('}') { From b4c359266cebe7e73d49473f96881968c430d497 Mon Sep 17 00:00:00 2001 From: AnthonyMichaelTDM <68485672+AnthonyMichaelTDM@users.noreply.github.com> Date: Mon, 13 Mar 2023 18:14:02 -0700 Subject: [PATCH 2/3] fix for Wulf#168 --- create-rust-app/src/util/actix_web_utils.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/create-rust-app/src/util/actix_web_utils.rs b/create-rust-app/src/util/actix_web_utils.rs index 2fcff93b..c72ffa7f 100644 --- a/create-rust-app/src/util/actix_web_utils.rs +++ b/create-rust-app/src/util/actix_web_utils.rs @@ -50,9 +50,6 @@ pub async fn render_views(req: HttpRequest) -> HttpResponse { let path = req.path(); #[cfg(debug_assertions)] - if path.eq("/__vite_ping") { - println!("The vite dev server seems to be down..."); - } { // Catch viteJS ping requests and try to handle them gracefully // Request the browser to refresh the page (maybe the server is up but the browser just can't reconnect) @@ -84,6 +81,9 @@ pub async fn render_views(req: HttpRequest) -> HttpResponse { *count = 0; } } + if path.eq("/__vite_ping") { + println!("The vite dev server seems to be down..."); + } let mut template_path = to_template_name(req.path()); // try and render from your ./backend/views From a04d0b88f7a6ea06ef41e669c2452eedf534a241 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 15 Mar 2023 16:06:50 +0000 Subject: [PATCH 3/3] Bump @types/node in /create-rust-app_cli/template/frontend Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.13.0 to 18.15.3. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- create-rust-app_cli/template/frontend/package-lock.json | 6 +++--- create-rust-app_cli/template/frontend/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/create-rust-app_cli/template/frontend/package-lock.json b/create-rust-app_cli/template/frontend/package-lock.json index 32d424e7..3c2a8698 100644 --- a/create-rust-app_cli/template/frontend/package-lock.json +++ b/create-rust-app_cli/template/frontend/package-lock.json @@ -483,9 +483,9 @@ "integrity": "sha512-t54ONhl/h75X94SWsHGQ4G/ZrCEguKSRQr7DrjTciJXW0YU1QhlwYeycvK5JgkzlxmvrK7wq1NB/PLtHxoiDcA==" }, "@types/node": { - "version": "18.13.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz", - "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==", + "version": "18.15.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.3.tgz", + "integrity": "sha512-p6ua9zBxz5otCmbpb5D3U4B5Nanw6Pk3PPyX05xnxbB/fRv71N7CPmORg7uAD5P70T0xmx1pzAx/FUfa5X+3cw==", "dev": true }, "@types/prop-types": { diff --git a/create-rust-app_cli/template/frontend/package.json b/create-rust-app_cli/template/frontend/package.json index cbdb871a..a2a284f0 100644 --- a/create-rust-app_cli/template/frontend/package.json +++ b/create-rust-app_cli/template/frontend/package.json @@ -37,7 +37,7 @@ }, "devDependencies": { "@playwright/test": "^1.30.0", - "@types/node": "^18.13.0", + "@types/node": "^18.15.3", "@types/react": "^18.0.27", "@types/react-dom": "^18.0.10", "@vitejs/plugin-react": "^3.0.1",