feat: ability to create a project #9

Merged
matous-volf merged 50 commits from feat/project-create into main 2024-08-18 21:36:06 +00:00
16 changed files with 2434 additions and 0 deletions
Showing only changes of commit 9e38fdbbeb - Show all commits

12
.gitignore vendored Normal file
View 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
View File

@ -0,0 +1,5 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/

8
.idea/modules.xml generated Normal file
View 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
View 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
View 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
View 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

File diff suppressed because it is too large Load Diff

14
Cargo.toml Normal file
View 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"] }
coderabbitai[bot] commented 2024-08-17 10:53:11 +00:00 (Migrated from github.com)
Review

Tip

Codebase Verification

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 the Cargo.toml to simplify dependencies unless there are plans to use it in the future.

  • No imports or usage of Dioxus's router feature were found in the codebase.
Analysis chain

Confirm Dioxus features align with project needs.

Dioxus is configured with fullstack and router features. Ensure these features are necessary for your application.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify Dioxus features configuration in the codebase.

# Test: Search for Dioxus usage. Expect: Only necessary features are enabled.
rg --type rust 'dioxus'

Length of output: 900


Script:

#!/bin/bash
# Description: Verify the usage of Dioxus router feature in the codebase.

# Search for Dioxus router usage in the codebase.
rg --type rust 'dioxus_router'

Length of output: 30


Script:

#!/bin/bash
# Description: Broaden the search for routing-related functionality in the codebase.

# Search for terms related to routing that might indicate the use of Dioxus router.
rg --type rust 'route|router|navigate|switch|link|redirect'

Length of output: 166


Script:

#!/bin/bash
# Description: Check for specific imports or usage of Dioxus's router feature.

# Search for Dioxus router module or related imports.
rg --type rust 'use dioxus::router|dioxus_router'

Length of output: 51

> [!TIP] > Codebase Verification **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 the `Cargo.toml` to simplify dependencies unless there are plans to use it in the future. - No imports or usage of Dioxus's router feature were found in the codebase. <details> <summary>Analysis chain</summary> **Confirm Dioxus features align with project needs.** Dioxus is configured with `fullstack` and `router` features. Ensure these features are necessary for your application. </details> <details> <summary>Scripts executed</summary> The following scripts were executed for the analysis: Script: ```shell #!/bin/bash # Description: Verify Dioxus features configuration in the codebase. # Test: Search for Dioxus usage. Expect: Only necessary features are enabled. rg --type rust 'dioxus' ``` Length of output: 900 --- Script: ```shell #!/bin/bash # Description: Verify the usage of Dioxus router feature in the codebase. # Search for Dioxus router usage in the codebase. rg --type rust 'dioxus_router' ``` Length of output: 30 --- Script: ```shell #!/bin/bash # Description: Broaden the search for routing-related functionality in the codebase. # Search for terms related to routing that might indicate the use of Dioxus router. rg --type rust 'route|router|navigate|switch|link|redirect' ``` Length of output: 166 --- Script: ```shell #!/bin/bash # Description: Check for specific imports or usage of Dioxus's router feature. # Search for Dioxus router module or related imports. rg --type rust 'use dioxus::router|dioxus_router' ``` Length of output: 51 </details> <!-- This is an auto-generated comment by CodeRabbit -->
# Debug
dioxus-logger = "0.5.1"

43
Dioxus.toml Normal file
View 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"
coderabbitai[bot] commented 2024-08-16 22:39:20 +00:00 (Migrated from github.com)
Review

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
Analysis chain

Verify output directory path.

Ensure that the out_dir path "dist" is correctly set up in the build and deployment processes.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/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:

#!/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

> [!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
View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

171
assets/header.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 25 KiB

40
assets/main.css Normal file
View 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
View File

@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

52
src/main.rs Normal file
View File

@ -0,0 +1,52 @@
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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)]
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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::*;
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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};
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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)]
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 {
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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("/")]
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 {},
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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")]
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 },
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
}
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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() {
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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");
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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");
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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);
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
}
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 {
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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! {
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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> {}
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
}
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
}
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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]
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 {
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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! {
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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" }
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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}"
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
}
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
}
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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]
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 {
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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);
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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! {
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 {
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 {
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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()
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
},
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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"
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
}
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 {
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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}" }
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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!" }
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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!" }
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
}
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
}
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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 -->
}
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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.

**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
View File

@ -0,0 +1,9 @@
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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 -->
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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} */
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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 = {
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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",
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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"],
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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: {
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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: {},
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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 -->
},
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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: [],
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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 -->
};
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

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 -->