Skip to content

Commit

Permalink
[ui] associate with github
Browse files Browse the repository at this point in the history
  • Loading branch information
torymur committed Aug 14, 2024
1 parent 53b689b commit 4a84a6b
Show file tree
Hide file tree
Showing 8 changed files with 1,905 additions and 8 deletions.
Binary file added ui/assets/favicon.ico
Binary file not shown.
Binary file added ui/assets/github-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui/assets/github-mark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,863 changes: 1,863 additions & 0 deletions ui/assets/tailwind.css

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions ui/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>sqlite-repr</title>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
<link rel="stylesheet" href="/tailwind.css">

</head>
<body>
<div id="main"></div>
<script type="module" class="superspecial">
import init from "assets/dioxus/sqlite-repr.js";
init("assets/dioxus/sqlite-repr_bg.wasm").then(wasm => {
if (wasm.__wbindgen_start == undefined) {
wasm.main();
}
});
</script>

</body>
</html>
10 changes: 5 additions & 5 deletions ui/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 ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"devDependencies": {
"@tailwindcss/typography": "^0.5.13",
"@tailwindcss/typography": "^0.5.14",
"daisyui": "^4.12.10"
}
}
15 changes: 13 additions & 2 deletions ui/src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ pub fn Header() -> Element {
class: "text-xl font-bold tracking-tighter pl-4",
"SQLite File Format",
}
div {
class: "pl-4 tooltip tooltip-right",
"data-tip": "Like the project? Give us a star ☆",
a {
href: "https://github.com/torymur/sqlite-repr",
img {
class: "h-6 object-scale-down",
src: "./github-mark.png"
}
}
}
div { class: "flex-grow" }
div {
class: "join",
Expand Down Expand Up @@ -125,15 +136,15 @@ pub fn Description() -> Element {
None => {
rsx! {
div {
class: "p-4 h-72 w-full overflow-auto",
class: "p-4 h-80 w-full overflow-auto",
"{selected_part().desc()}"
}
}
}
Some(field) => {
rsx! {
div {
class: "p-4 h-72 w-full overflow-auto ",
class: "p-4 h-80 w-full overflow-auto ",
div {
"{selected_part().desc()}"
}
Expand Down

0 comments on commit 4a84a6b

Please sign in to comment.