Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bechma committed Nov 17, 2023
1 parent a5568bd commit 7706293
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 48 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Sample application with:
You need to have [rust](https://www.rust-lang.org/) installed.

```bash
export DATABASE_URL=DATABASE_URL=sqlite://./todosdb.sqlite
export DATABASE_URL=sqlite://./todosdb.sqlite
cargo run
```

Expand Down Expand Up @@ -53,10 +53,6 @@ You will need to keep the `assets` and `templates` folders relative to the binar
│   ├── fontawesome.js
│   ├── htmx.org@1.9.5_dist_htmx.min.js
│   └── hyperscript.org@0.9.11_dist__hyperscript.min.js
├── templates
│   ├── components
│   │   └── todo.html
│   ├── index.html
│   └── input.css
├── todosdb.sqlite
└── todox
```
83 changes: 43 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"prod": "npx tailwindcss -i ./templates/input.css -o ./assets/css/main.css --minify"
},
"devDependencies": {
"tailwindcss": "^3.3.3"
"tailwindcss": "^3.3.5"
}
}
2 changes: 1 addition & 1 deletion templates/components/todo.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<i class="fa-regular fa-square{% if done %}-check{% endif %} fa-lg"></i>
</button>
<div class="w-4/6">
<p id="todo_text{{id}}" class="text-lg pl-2 pr-2 pt-1 pb-1">{{text}}</p>
<p id="todo_text{{id}}" class="text-lg pl-2 pr-2 pt-1 pb-1{% if done %} line-through{% endif %}">{{text}}</p>
<form id="todo_change{{id}}"
_="on htmx:afterRequest
if event.detail.failed
Expand Down

0 comments on commit 7706293

Please sign in to comment.