feat: ability to create a project #9
12
.gitignore
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Generated by Cargo
|
||||||
|
# will have compiled files and executables
|
||||||
|
/target/
|
||||||
|
/dist/
|
||||||
|
/static/
|
||||||
|
/.dioxus/
|
||||||
|
|
||||||
|
# this file will generate by tailwind:
|
||||||
|
/assets/tailwind.css
|
||||||
|
|
||||||
|
# These are backup files generated by rustfmt
|
||||||
|
**/*.rs.bk
|
5
.idea/.gitignore
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
8
.idea/modules.xml
generated
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/todo_baggins.iml" filepath="$PROJECT_DIR$/.idea/todo_baggins.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
6
.idea/rust.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="RsVcsConfiguration">
|
||||||
|
<option name="rustFmt" value="true" />
|
||||||
|
</component>
|
||||||
|
</project>
|
13
.idea/todo_baggins.iml
generated
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="EMPTY_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/backend/src" isTestSource="false" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/backend/target" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
12
.idea/vcs.xml
generated
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="CommitMessageInspectionProfile">
|
||||||
|
<profile version="1.0">
|
||||||
|
<inspection_tool class="CommitFormat" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||||
|
<inspection_tool class="CommitNamingConvention" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||||
|
</profile>
|
||||||
|
</component>
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
2029
Cargo.lock
generated
Normal file
14
Cargo.toml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[package]
|
||||||
|
name = "todo-baggins"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = ["Matouš Volf <66163112+matous-volf@users.noreply.github.com>"]
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
|
||||||
|
dioxus = { version = "0.5", features = ["web", "router"] }
|
||||||
|
|
||||||
|
|||||||
|
# Debug
|
||||||
|
dioxus-logger = "0.5.1"
|
43
Dioxus.toml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
[application]
|
||||||
|
|
||||||
|
# App (Project) Name
|
||||||
|
name = "todo-baggins"
|
||||||
|
|
||||||
|
# Dioxus App Default Platform
|
||||||
|
# web, desktop, fullstack
|
||||||
|
default_platform = "web"
|
||||||
|
|
||||||
|
# `build` & `serve` dist path
|
||||||
|
out_dir = "dist"
|
||||||
![]()
Output directory path "dist" is not utilized in build scripts. The
Analysis chainVerify output directory path. Ensure that the Scripts executedThe following scripts were executed for the analysis: Script:
Length of output: 102 Script:
Length of output: 87 > [!TIP]
> Codebase Verification
**Output directory path "dist" is not utilized in build scripts.**
The `out_dir` setting in `Dioxus.toml` is not referenced in any build scripts or configuration files. This suggests that the "dist" directory might not be correctly set up in the build and deployment processes. Please ensure that the output directory is properly integrated into the build system.
- Location: `Dioxus.toml`
<details>
<summary>Analysis chain</summary>
**Verify output directory path.**
Ensure that the `out_dir` path "dist" is correctly set up in the build and deployment processes.
</details>
<details>
<summary>Scripts executed</summary>
The following scripts were executed for the analysis:
Script:
```shell
#!/bin/bash
# Description: Verify the existence and usage of the output directory path.
# Test: Search for the usage of the output directory in build scripts. Expect: Correct setup.
rg --type toml --type sh 'dist'
```
Length of output: 102
---
Script:
```shell
#!/bin/bash
# Description: Search for references to `out_dir` in the repository to verify its usage.
# Test: Look for usage of `out_dir` in build scripts and configuration files.
rg 'out_dir' --type toml --type sh --type json --type yaml
```
Length of output: 87
</details>
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
|
||||||
|
# resource (assets) file folder
|
||||||
|
asset_dir = "assets"
|
||||||
|
|
||||||
|
[web.app]
|
||||||
|
|
||||||
|
# HTML title tag content
|
||||||
|
title = "todo-baggins"
|
||||||
|
|
||||||
|
[web.watcher]
|
||||||
|
|
||||||
|
# when watcher trigger, regenerate the `index.html`
|
||||||
|
reload_html = true
|
||||||
|
|
||||||
|
# which files or dirs will be watcher monitoring
|
||||||
|
watch_path = ["src", "assets"]
|
||||||
|
|
||||||
|
# include `assets` in web platform
|
||||||
|
[web.resource]
|
||||||
|
|
||||||
|
# CSS style file
|
||||||
|
|
||||||
|
style = ["/tailwind.css"]
|
||||||
|
|
||||||
|
# Javascript code file
|
||||||
|
script = []
|
||||||
|
|
||||||
|
[web.resource.dev]
|
||||||
|
|
||||||
|
# Javascript code file
|
||||||
|
# serve: [dev-server] only
|
||||||
|
script = []
|
17
README.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Development
|
||||||
|
|
||||||
|
1. Install npm: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
|
||||||
|
2. Install the tailwind css cli: https://tailwindcss.com/docs/installation
|
||||||
|
3. Run the following command in the root of the project to start the tailwind CSS compiler:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npx tailwindcss -i ./input.css -o ./assets/tailwind.css --watch
|
||||||
|
```
|
||||||
|
|
||||||
|
Run the following command in the root of the project to start the Dioxus dev server:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
dx serve --hot-reload
|
||||||
|
```
|
||||||
|
|
||||||
|
- Open the browser to http://localhost:8080
|
BIN
assets/favicon.ico
Normal file
After Width: | Height: | Size: 130 KiB |
171
assets/header.svg
Normal file
After Width: | Height: | Size: 25 KiB |
40
assets/main.css
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
body {
|
||||||
|
background-color: #111216;
|
||||||
|
}
|
||||||
|
|
||||||
|
#main {
|
||||||
|
margin: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
|
||||||
|
}
|
||||||
|
|
||||||
|
#links {
|
||||||
|
width: 400px;
|
||||||
|
text-align: left;
|
||||||
|
font-size: x-large;
|
||||||
|
color: white;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
#links a {
|
||||||
|
color: white;
|
||||||
|
text-decoration: none;
|
||||||
|
margin-top: 20px;
|
||||||
|
margin: 10px;
|
||||||
|
border: white 1px solid;
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#links a:hover {
|
||||||
|
background-color: #1f1f1f;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header {
|
||||||
|
max-width: 1200px;
|
||||||
|
}
|
3
input.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
52
src/main.rs
Normal file
@ -0,0 +1,52 @@
|
|||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
#![allow(non_snake_case)]
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
use dioxus::prelude::*;
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
use dioxus_logger::tracing::{info, Level};
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
#[derive(Clone, Routable, Debug, PartialEq)]
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
enum Route {
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
#[route("/")]
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
Home {},
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
#[route("/blog/:id")]
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
Blog { id: i32 },
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
}
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
fn main() {
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
// Init logger
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
dioxus_logger::init(Level::INFO).expect("failed to init logger");
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
info!("starting app");
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
launch(App);
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
}
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
fn App() -> Element {
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
rsx! {
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
Router::<Route> {}
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
}
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
}
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
#[component]
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
fn Blog(id: i32) -> Element {
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
rsx! {
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
Link { to: Route::Home {}, "Go to counter" }
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
"Blog post {id}"
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
}
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
}
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
#[component]
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
fn Home() -> Element {
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
let mut count = use_signal(|| 0);
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
rsx! {
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
Link {
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
to: Route::Blog {
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
id: count()
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
},
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
"Go to blog"
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
}
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
div {
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
h1 { "High-Five counter: {count}" }
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
button { onclick: move |_| count += 1, "Up high!" }
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
button { onclick: move |_| count -= 1, "Down low!" }
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
}
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
}
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
}
|
||||||
![]() Question the use of The directive **Question the use of `#![allow(non_snake_case)]`.**
The directive `#![allow(non_snake_case)]` is generally discouraged in Rust as it goes against convention. Consider removing it unless there's a specific need.
<!-- This is an auto-generated comment by CodeRabbit -->
|
9
tailwind.config.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
![]() Consider adding custom theme extensions or plugins if needed. Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here. **Consider adding custom theme extensions or plugins if needed.**
Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here.
<!-- This is an auto-generated comment by CodeRabbit -->
![]() Consider adding custom theme extensions or plugins if needed. Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here. **Consider adding custom theme extensions or plugins if needed.**
Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
/** @type {import('tailwindcss').Config} */
|
||||||
![]() Consider adding custom theme extensions or plugins if needed. Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here. **Consider adding custom theme extensions or plugins if needed.**
Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
module.exports = {
|
||||||
![]() Consider adding custom theme extensions or plugins if needed. Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here. **Consider adding custom theme extensions or plugins if needed.**
Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
mode: "all",
|
||||||
![]() Consider adding custom theme extensions or plugins if needed. Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here. **Consider adding custom theme extensions or plugins if needed.**
Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
content: ["./src/**/*.{rs,html,css}", "./dist/**/*.html"],
|
||||||
![]() Consider adding custom theme extensions or plugins if needed. Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here. **Consider adding custom theme extensions or plugins if needed.**
Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
theme: {
|
||||||
![]() Consider adding custom theme extensions or plugins if needed. Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here. **Consider adding custom theme extensions or plugins if needed.**
Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
extend: {},
|
||||||
![]() Consider adding custom theme extensions or plugins if needed. Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here. **Consider adding custom theme extensions or plugins if needed.**
Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
},
|
||||||
![]() Consider adding custom theme extensions or plugins if needed. Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here. **Consider adding custom theme extensions or plugins if needed.**
Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
plugins: [],
|
||||||
![]() Consider adding custom theme extensions or plugins if needed. Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here. **Consider adding custom theme extensions or plugins if needed.**
Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here.
<!-- This is an auto-generated comment by CodeRabbit -->
|
|||||||
|
};
|
||||||
![]() Consider adding custom theme extensions or plugins if needed. Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here. **Consider adding custom theme extensions or plugins if needed.**
Currently, the theme extensions and plugins are empty. If there are specific design requirements or third-party plugins you plan to use, consider adding them here.
<!-- This is an auto-generated comment by CodeRabbit -->
|
Dioxus Router Feature May Be Unnecessary
The
router
feature of Dioxus does not appear to be used in the codebase. You might consider removing it from theCargo.toml
to simplify dependencies unless there are plans to use it in the future.Analysis chain
Confirm Dioxus features align with project needs.
Dioxus is configured with
fullstack
androuter
features. Ensure these features are necessary for your application.Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 900
Script:
Length of output: 30
Script:
Length of output: 166
Script:
Length of output: 51