From 54a688ba91693e4d085401332fa762d936fc3555 Mon Sep 17 00:00:00 2001 From: Christopher Biscardi Date: Fri, 1 Mar 2024 01:05:56 -0800 Subject: [PATCH] prepare/fmt --- ...462da09aaf35f69f4f1dc7ed92d5c4c3d606b.json | 157 ------------------ ...780d7ca70c8afb7ba1b4961515dfb3bdcd71.json} | 15 +- ...6c4a452a1714a9c3928217ad1e9dea0ed1c51.json | 157 ++++++++++++++++++ src/app/routes/admin/issues.rs | 6 +- src/app/routes/index.rs | 3 +- src/app/routes/issue.rs | 5 +- 6 files changed, 176 insertions(+), 167 deletions(-) delete mode 100644 .sqlx/query-3a99709952b467a4a565209ddfe462da09aaf35f69f4f1dc7ed92d5c4c3d606b.json rename .sqlx/{query-f719d40d94941523124d7c671d5b8ba5533745ff117ee62a4062fae2ae563663.json => query-7fad14c65cb976e0d9db8f41fc22780d7ca70c8afb7ba1b4961515dfb3bdcd71.json} (69%) create mode 100644 .sqlx/query-9e1317fed350a790b43f6be49706c4a452a1714a9c3928217ad1e9dea0ed1c51.json diff --git a/.sqlx/query-3a99709952b467a4a565209ddfe462da09aaf35f69f4f1dc7ed92d5c4c3d606b.json b/.sqlx/query-3a99709952b467a4a565209ddfe462da09aaf35f69f4f1dc7ed92d5c4c3d606b.json deleted file mode 100644 index 0cd67bf..0000000 --- a/.sqlx/query-3a99709952b467a4a565209ddfe462da09aaf35f69f4f1dc7ed92d5c4c3d606b.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "db_name": "MySQL", - "query": "SELECT\n slug,\n issue_date,\n cloudinary_public_id,\n display_name,\n description,\n youtube_id,\n showcases as \"showcases: Json>\",\n crate_releases as \"crate_releases: Json>\",\n devlogs as \"devlogs: Json>\",\n educationals as \"educationals: Json>\",\n new_github_issues as \"new_github_issues: Json>\",\n new_pull_requests as \"new_pull_requests: Json>\",\n merged_pull_requests as \"merged_pull_requests: Json>\"\nFROM\n issue\n LEFT JOIN (\n SELECT\n issue_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"title\",\n scase.title,\n \"url\",\n scase.url,\n \"discord_url\",\n scase.discord_url,\n \"description\",\n scase.description,\n \"images\",\n scase.images\n )\n ) AS showcases\n FROM\n issue__showcase\n LEFT JOIN (\n SELECT\n id,\n title,\n url,\n description,\n discord_url,\n images\n from\n showcase\n LEFT JOIN (\n SELECT\n showcase_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"id\",\n TO_BASE64(image.id),\n \"description\",\n description,\n \"cloudinary_public_id\",\n cloudinary_public_id\n )\n ) AS images\n FROM\n showcase__image\n LEFT JOIN image ON showcase__image.image_id = image.id\n GROUP BY\n showcase_id\n ) as i on i.showcase_id = showcase.id\n ) as scase ON scase.id = issue__showcase.showcase_id\n GROUP BY\n issue_id\n ) AS s ON s.issue_id = issue.id\n LEFT JOIN (\n SELECT\n issue_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"title\",\n crelease.title,\n \"url\",\n crelease.url,\n \"discord_url\",\n crelease.discord_url,\n \"description\",\n crelease.description,\n \"images\",\n crelease.images\n )\n ) AS crate_releases\n FROM\n issue__crate_release\n LEFT JOIN (\n SELECT\n id,\n title,\n url,\n description,\n discord_url,\n images\n from\n crate_release\n LEFT JOIN (\n SELECT\n crate_release_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"id\",\n TO_BASE64(image.id),\n \"description\",\n description,\n \"cloudinary_public_id\",\n cloudinary_public_id\n )\n ) AS images\n FROM\n crate_release__image\n LEFT JOIN image ON crate_release__image.image_id = image.id\n GROUP BY\n crate_release_id\n ) as i on i.crate_release_id = crate_release.id\n ) as crelease ON crelease.id = issue__crate_release.crate_release_id\n GROUP BY\n issue_id\n ) AS cr ON cr.issue_id = issue.id\n LEFT JOIN (\n SELECT\n issue_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"title\",\n dlog.title,\n \"post_url\",\n dlog.post_url,\n \"video_url\",\n dlog.video_url,\n \"discord_url\",\n dlog.discord_url,\n \"description\",\n dlog.description,\n \"images\",\n dlog.images\n )\n ) AS devlogs\n FROM\n issue__devlog\n LEFT JOIN (\n SELECT\n id,\n title,\n post_url,\n video_url,\n description,\n discord_url,\n images\n from\n devlog\n LEFT JOIN (\n SELECT\n devlog_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"id\",\n TO_BASE64(image.id),\n \"description\",\n description,\n \"cloudinary_public_id\",\n cloudinary_public_id\n )\n ) AS images\n FROM\n devlog__image\n LEFT JOIN image ON devlog__image.image_id = image.id\n GROUP BY\n devlog_id\n ) as i on i.devlog_id = devlog.id\n ) as dlog ON dlog.id = issue__devlog.devlog_id\n GROUP BY\n issue_id\n ) AS d ON d.issue_id = issue.id\n LEFT JOIN (\n SELECT\n issue_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"title\",\n edu.title,\n \"post_url\",\n edu.post_url,\n \"video_url\",\n edu.video_url,\n \"discord_url\",\n edu.discord_url,\n \"description\",\n edu.description,\n \"images\",\n edu.images\n )\n ) AS educationals\n FROM\n issue__educational\n LEFT JOIN (\n SELECT\n id,\n title,\n post_url,\n video_url,\n description,\n discord_url,\n images\n from\n educational\n LEFT JOIN (\n SELECT\n educational_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"id\",\n TO_BASE64(image.id),\n \"description\",\n description,\n \"cloudinary_public_id\",\n cloudinary_public_id\n )\n ) AS images\n FROM\n educational__image\n LEFT JOIN image ON educational__image.image_id = image.id\n GROUP BY\n educational_id\n ) as i on i.educational_id = educational.id\n ) as edu ON edu.id = issue__educational.educational_id\n GROUP BY\n issue_id\n ) AS e ON e.issue_id = issue.id\n LEFT JOIN (\n SELECT\n issue_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"title\",\n title,\n \"url\",\n url,\n \"gh_created_at\",\n gh_created_at,\n \"author\",\n author,\n \"author_url\",\n author_url\n )\n ) AS new_github_issues\n FROM\n issue__new_github_issue\n LEFT JOIN new_github_issue ON new_github_issue.id = issue__new_github_issue.github_issue_id\n GROUP BY\n issue_id\n ) AS ngis ON ngis.issue_id = issue.id\n LEFT JOIN (\n SELECT\n issue_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"title\",\n title,\n \"url\",\n url,\n \"gh_created_at\",\n gh_created_at,\n \"author\",\n author,\n \"author_url\",\n author_url\n )\n ) AS new_pull_requests\n FROM\n issue__new_pull_request\n LEFT JOIN new_pull_request ON new_pull_request.id = issue__new_pull_request.pull_request_id\n GROUP BY\n issue_id\n ) AS new_prs ON new_prs.issue_id = issue.id\n LEFT JOIN (\n SELECT\n issue_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"title\",\n title,\n \"url\",\n url,\n \"merged_at_date\",\n merged_at_date,\n \"author\",\n author,\n \"author_url\",\n author_url\n )\n ) AS merged_pull_requests\n FROM\n issue__merged_pull_request\n LEFT JOIN merged_pull_request ON merged_pull_request.id = issue__merged_pull_request.merged_pull_request_id\n GROUP BY\n issue_id\n ) AS merged_prs ON merged_prs.issue_id = issue.id\nWHERE\n issue_date = ?;", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "slug", - "type_info": { - "type": "VarString", - "flags": "NOT_NULL | UNIQUE_KEY | NO_DEFAULT_VALUE", - "char_set": 255, - "max_size": 800 - } - }, - { - "ordinal": 1, - "name": "issue_date", - "type_info": { - "type": "Date", - "flags": "NOT_NULL | BINARY | NO_DEFAULT_VALUE", - "char_set": 63, - "max_size": 10 - } - }, - { - "ordinal": 2, - "name": "cloudinary_public_id", - "type_info": { - "type": "VarString", - "flags": "NOT_NULL", - "char_set": 255, - "max_size": 800 - } - }, - { - "ordinal": 3, - "name": "display_name", - "type_info": { - "type": "VarString", - "flags": "NOT_NULL", - "char_set": 255, - "max_size": 400 - } - }, - { - "ordinal": 4, - "name": "description", - "type_info": { - "type": "VarString", - "flags": "NOT_NULL", - "char_set": 255, - "max_size": 20000 - } - }, - { - "ordinal": 5, - "name": "youtube_id", - "type_info": { - "type": "VarString", - "flags": "NOT_NULL", - "char_set": 255, - "max_size": 400 - } - }, - { - "ordinal": 6, - "name": "showcases: Json>", - "type_info": { - "type": "Json", - "flags": "BLOB | BINARY", - "char_set": 63, - "max_size": 4294967295 - } - }, - { - "ordinal": 7, - "name": "crate_releases: Json>", - "type_info": { - "type": "Json", - "flags": "BLOB | BINARY", - "char_set": 63, - "max_size": 4294967295 - } - }, - { - "ordinal": 8, - "name": "devlogs: Json>", - "type_info": { - "type": "Json", - "flags": "BLOB | BINARY", - "char_set": 63, - "max_size": 4294967295 - } - }, - { - "ordinal": 9, - "name": "educationals: Json>", - "type_info": { - "type": "Json", - "flags": "BLOB | BINARY", - "char_set": 63, - "max_size": 4294967295 - } - }, - { - "ordinal": 10, - "name": "new_github_issues: Json>", - "type_info": { - "type": "Json", - "flags": "BLOB | BINARY", - "char_set": 63, - "max_size": 4294967295 - } - }, - { - "ordinal": 11, - "name": "new_pull_requests: Json>", - "type_info": { - "type": "Json", - "flags": "BLOB | BINARY", - "char_set": 63, - "max_size": 4294967295 - } - }, - { - "ordinal": 12, - "name": "merged_pull_requests: Json>", - "type_info": { - "type": "Json", - "flags": "BLOB | BINARY", - "char_set": 63, - "max_size": 4294967295 - } - } - ], - "parameters": { - "Right": 1 - }, - "nullable": [ - false, - false, - false, - false, - false, - false, - true, - true, - true, - true, - true, - true, - true - ] - }, - "hash": "3a99709952b467a4a565209ddfe462da09aaf35f69f4f1dc7ed92d5c4c3d606b" -} diff --git a/.sqlx/query-f719d40d94941523124d7c671d5b8ba5533745ff117ee62a4062fae2ae563663.json b/.sqlx/query-7fad14c65cb976e0d9db8f41fc22780d7ca70c8afb7ba1b4961515dfb3bdcd71.json similarity index 69% rename from .sqlx/query-f719d40d94941523124d7c671d5b8ba5533745ff117ee62a4062fae2ae563663.json rename to .sqlx/query-7fad14c65cb976e0d9db8f41fc22780d7ca70c8afb7ba1b4961515dfb3bdcd71.json index cebd251..712d9cf 100644 --- a/.sqlx/query-f719d40d94941523124d7c671d5b8ba5533745ff117ee62a4062fae2ae563663.json +++ b/.sqlx/query-7fad14c65cb976e0d9db8f41fc22780d7ca70c8afb7ba1b4961515dfb3bdcd71.json @@ -1,6 +1,6 @@ { "db_name": "MySQL", - "query": "SELECT\n id,\n display_name,\n status\nFROM issue\nORDER BY status, issue_date DESC", + "query": "SELECT\n id,\n display_name,\n status,\n issue_date\nFROM issue\nORDER BY status, issue_date DESC", "describe": { "columns": [ { @@ -32,16 +32,27 @@ "char_set": 255, "max_size": 200 } + }, + { + "ordinal": 3, + "name": "issue_date", + "type_info": { + "type": "Date", + "flags": "NOT_NULL | BINARY | NO_DEFAULT_VALUE", + "char_set": 63, + "max_size": 10 + } } ], "parameters": { "Right": 0 }, "nullable": [ + false, false, false, false ] }, - "hash": "f719d40d94941523124d7c671d5b8ba5533745ff117ee62a4062fae2ae563663" + "hash": "7fad14c65cb976e0d9db8f41fc22780d7ca70c8afb7ba1b4961515dfb3bdcd71" } diff --git a/.sqlx/query-9e1317fed350a790b43f6be49706c4a452a1714a9c3928217ad1e9dea0ed1c51.json b/.sqlx/query-9e1317fed350a790b43f6be49706c4a452a1714a9c3928217ad1e9dea0ed1c51.json new file mode 100644 index 0000000..418b5ea --- /dev/null +++ b/.sqlx/query-9e1317fed350a790b43f6be49706c4a452a1714a9c3928217ad1e9dea0ed1c51.json @@ -0,0 +1,157 @@ +{ + "db_name": "MySQL", + "query": "SELECT\n slug,\n issue_date,\n cloudinary_public_id,\n display_name,\n description,\n youtube_id,\n showcases as \"showcases: Json>\",\n crate_releases as \"crate_releases: Json>\",\n devlogs as \"devlogs: Json>\",\n educationals as \"educationals: Json>\",\n new_github_issues as \"new_github_issues: Json>\",\n new_pull_requests as \"new_pull_requests: Json>\",\n merged_pull_requests as \"merged_pull_requests: Json>\"\nFROM\n issue\n LEFT JOIN (\n SELECT\n issue_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"title\",\n scase.title,\n \"url\",\n scase.url,\n \"discord_url\",\n scase.discord_url,\n \"description\",\n scase.description,\n \"images\",\n scase.images\n )\n ) AS showcases\n FROM\n issue__showcase\n LEFT JOIN (\n SELECT\n id,\n title,\n url,\n description,\n discord_url,\n images\n from\n showcase\n LEFT JOIN (\n SELECT\n showcase_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"id\",\n TO_BASE64(image.id),\n \"description\",\n description,\n \"cloudinary_public_id\",\n cloudinary_public_id\n )\n ) AS images\n FROM\n showcase__image\n LEFT JOIN image ON showcase__image.image_id = image.id\n GROUP BY\n showcase_id\n ) as i on i.showcase_id = showcase.id\n ) as scase ON scase.id = issue__showcase.showcase_id\n GROUP BY\n issue_id\n ) AS s ON s.issue_id = issue.id\n LEFT JOIN (\n SELECT\n issue_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"title\",\n crelease.title,\n \"url\",\n crelease.url,\n \"discord_url\",\n crelease.discord_url,\n \"description\",\n crelease.description,\n \"images\",\n crelease.images\n )\n ) AS crate_releases\n FROM\n issue__crate_release\n LEFT JOIN (\n SELECT\n id,\n title,\n url,\n description,\n discord_url,\n images\n from\n crate_release\n LEFT JOIN (\n SELECT\n crate_release_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"id\",\n TO_BASE64(image.id),\n \"description\",\n description,\n \"cloudinary_public_id\",\n cloudinary_public_id\n )\n ) AS images\n FROM\n crate_release__image\n LEFT JOIN image ON crate_release__image.image_id = image.id\n GROUP BY\n crate_release_id\n ) as i on i.crate_release_id = crate_release.id\n ) as crelease ON crelease.id = issue__crate_release.crate_release_id\n GROUP BY\n issue_id\n ) AS cr ON cr.issue_id = issue.id\n LEFT JOIN (\n SELECT\n issue_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"title\",\n dlog.title,\n \"post_url\",\n dlog.post_url,\n \"video_url\",\n dlog.video_url,\n \"discord_url\",\n dlog.discord_url,\n \"description\",\n dlog.description,\n \"images\",\n dlog.images\n )\n ) AS devlogs\n FROM\n issue__devlog\n LEFT JOIN (\n SELECT\n id,\n title,\n post_url,\n video_url,\n description,\n discord_url,\n images\n from\n devlog\n LEFT JOIN (\n SELECT\n devlog_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"id\",\n TO_BASE64(image.id),\n \"description\",\n description,\n \"cloudinary_public_id\",\n cloudinary_public_id\n )\n ) AS images\n FROM\n devlog__image\n LEFT JOIN image ON devlog__image.image_id = image.id\n GROUP BY\n devlog_id\n ) as i on i.devlog_id = devlog.id\n ) as dlog ON dlog.id = issue__devlog.devlog_id\n GROUP BY\n issue_id\n ) AS d ON d.issue_id = issue.id\n LEFT JOIN (\n SELECT\n issue_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"title\",\n edu.title,\n \"post_url\",\n edu.post_url,\n \"video_url\",\n edu.video_url,\n \"discord_url\",\n edu.discord_url,\n \"description\",\n edu.description,\n \"images\",\n edu.images\n )\n ) AS educationals\n FROM\n issue__educational\n LEFT JOIN (\n SELECT\n id,\n title,\n post_url,\n video_url,\n description,\n discord_url,\n images\n from\n educational\n LEFT JOIN (\n SELECT\n educational_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"id\",\n TO_BASE64(image.id),\n \"description\",\n description,\n \"cloudinary_public_id\",\n cloudinary_public_id\n )\n ) AS images\n FROM\n educational__image\n LEFT JOIN image ON educational__image.image_id = image.id\n GROUP BY\n educational_id\n ) as i on i.educational_id = educational.id\n ) as edu ON edu.id = issue__educational.educational_id\n GROUP BY\n issue_id\n ) AS e ON e.issue_id = issue.id\n LEFT JOIN (\n SELECT\n issue_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"title\",\n title,\n \"url\",\n url,\n \"gh_created_at\",\n gh_created_at,\n \"author\",\n author,\n \"author_url\",\n author_url\n )\n ) AS new_github_issues\n FROM\n issue__new_github_issue\n LEFT JOIN new_github_issue ON new_github_issue.id = issue__new_github_issue.github_issue_id\n GROUP BY\n issue_id\n ) AS ngis ON ngis.issue_id = issue.id\n LEFT JOIN (\n SELECT\n issue_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"title\",\n title,\n \"url\",\n url,\n \"gh_created_at\",\n gh_created_at,\n \"author\",\n author,\n \"author_url\",\n author_url\n )\n ) AS new_pull_requests\n FROM\n issue__new_pull_request\n LEFT JOIN new_pull_request ON new_pull_request.id = issue__new_pull_request.pull_request_id\n GROUP BY\n issue_id\n ) AS new_prs ON new_prs.issue_id = issue.id\n LEFT JOIN (\n SELECT\n issue_id,\n JSON_ARRAYAGG(\n JSON_OBJECT(\n \"title\",\n title,\n \"url\",\n url,\n \"merged_at_date\",\n merged_at_date,\n \"author\",\n author,\n \"author_url\",\n author_url\n )\n ) AS merged_pull_requests\n FROM\n issue__merged_pull_request\n LEFT JOIN merged_pull_request ON merged_pull_request.id = issue__merged_pull_request.merged_pull_request_id\n GROUP BY\n issue_id\n ) AS merged_prs ON merged_prs.issue_id = issue.id\nWHERE\n issue_date = ?;", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "slug", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL | UNIQUE_KEY | NO_DEFAULT_VALUE", + "char_set": 255, + "max_size": 800 + } + }, + { + "ordinal": 1, + "name": "issue_date", + "type_info": { + "type": "Date", + "flags": "NOT_NULL | BINARY | NO_DEFAULT_VALUE", + "char_set": 63, + "max_size": 10 + } + }, + { + "ordinal": 2, + "name": "cloudinary_public_id", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL", + "char_set": 255, + "max_size": 800 + } + }, + { + "ordinal": 3, + "name": "display_name", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL", + "char_set": 255, + "max_size": 400 + } + }, + { + "ordinal": 4, + "name": "description", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL", + "char_set": 255, + "max_size": 20000 + } + }, + { + "ordinal": 5, + "name": "youtube_id", + "type_info": { + "type": "VarString", + "flags": "NOT_NULL", + "char_set": 255, + "max_size": 400 + } + }, + { + "ordinal": 6, + "name": "showcases: Json>", + "type_info": { + "type": "Json", + "flags": "BLOB | BINARY", + "char_set": 63, + "max_size": 4294967295 + } + }, + { + "ordinal": 7, + "name": "crate_releases: Json>", + "type_info": { + "type": "Json", + "flags": "BLOB | BINARY", + "char_set": 63, + "max_size": 4294967295 + } + }, + { + "ordinal": 8, + "name": "devlogs: Json>", + "type_info": { + "type": "Json", + "flags": "BLOB | BINARY", + "char_set": 63, + "max_size": 4294967295 + } + }, + { + "ordinal": 9, + "name": "educationals: Json>", + "type_info": { + "type": "Json", + "flags": "BLOB | BINARY", + "char_set": 63, + "max_size": 4294967295 + } + }, + { + "ordinal": 10, + "name": "new_github_issues: Json>", + "type_info": { + "type": "Json", + "flags": "BLOB | BINARY", + "char_set": 63, + "max_size": 4294967295 + } + }, + { + "ordinal": 11, + "name": "new_pull_requests: Json>", + "type_info": { + "type": "Json", + "flags": "BLOB | BINARY", + "char_set": 63, + "max_size": 4294967295 + } + }, + { + "ordinal": 12, + "name": "merged_pull_requests: Json>", + "type_info": { + "type": "Json", + "flags": "BLOB | BINARY", + "char_set": 63, + "max_size": 4294967295 + } + } + ], + "parameters": { + "Right": 1 + }, + "nullable": [ + false, + false, + false, + false, + false, + false, + true, + true, + true, + true, + true, + true, + true + ] + }, + "hash": "9e1317fed350a790b43f6be49706c4a452a1714a9c3928217ad1e9dea0ed1c51" +} diff --git a/src/app/routes/admin/issues.rs b/src/app/routes/admin/issues.rs index 872805a..c19646f 100644 --- a/src/app/routes/admin/issues.rs +++ b/src/app/routes/admin/issues.rs @@ -100,7 +100,7 @@ struct SqlIssueShort { id: Vec, display_name: String, status: String, - issue_date: time::Date + issue_date: time::Date, } #[derive(Deserialize, Serialize, Clone)] @@ -108,7 +108,7 @@ pub struct IssueShort { id: String, display_name: String, status: String, - issue_date: time::Date + issue_date: time::Date, } #[cfg(feature = "ssr")] @@ -125,7 +125,7 @@ impl From for IssueShort { id: id_str.to_string(), display_name: value.display_name, status: value.status, - issue_date: value.issue_date + issue_date: value.issue_date, } } } diff --git a/src/app/routes/index.rs b/src/app/routes/index.rs index f184eb7..9a26c22 100644 --- a/src/app/routes/index.rs +++ b/src/app/routes/index.rs @@ -1,7 +1,7 @@ use crate::app::components::Container; use leptos::*; -use serde::{Deserialize, Serialize}; use leptos_meta::*; +use serde::{Deserialize, Serialize}; #[component] fn PauseIcon( @@ -84,7 +84,6 @@ fn IssueEntry(issue: IssueShort) -> impl IntoView { #[component] pub fn Home() -> impl IntoView { - let issues = create_resource(move || {}, |_| fetch_issues()); diff --git a/src/app/routes/issue.rs b/src/app/routes/issue.rs index bd2187a..24f911a 100644 --- a/src/app/routes/issue.rs +++ b/src/app/routes/issue.rs @@ -1,12 +1,12 @@ use crate::app::components::{Container, Divider}; use itertools::Itertools; use leptos::*; +use leptos_meta::*; use leptos_router::*; use serde::{Deserialize, Serialize}; #[cfg(feature = "ssr")] use sqlx::types::Json; use std::ops::Not; -use leptos_meta::*; #[derive(Clone, Serialize, Deserialize)] pub struct Issue { @@ -243,8 +243,7 @@ struct SqlIssue { display_name: String, description: String, youtube_id: String, - showcases: - Option>>, + showcases: Option>>, crate_releases: Option>>, devlogs: Option>>,