Stash commit
This commit is contained in:
4
frontend/Trunk.toml
Normal file
4
frontend/Trunk.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[build]
|
||||
minify = "on_release"
|
||||
[clean]
|
||||
cargo = true
|
@@ -1,4 +1,4 @@
|
||||
|
||||
pub mod models;
|
||||
|
||||
pub static BASE: &'static str = env!("BASE");
|
||||
pub static BASE: &'static str = "/api";
|
||||
|
@@ -45,7 +45,7 @@ impl Component for Chat {
|
||||
</div>
|
||||
<form class="chat">
|
||||
<div>
|
||||
<input type="textfield" required=true />
|
||||
<textarea type="textfield" autofocus=true required=true />
|
||||
</div>
|
||||
<div>
|
||||
<button onclick={
|
||||
|
@@ -8,16 +8,16 @@ use allpaca::log;
|
||||
#[function_component]
|
||||
fn App() -> Html {
|
||||
html! {
|
||||
<>
|
||||
<div class="navbar">
|
||||
<nav::Bar></nav::Bar>
|
||||
</div>
|
||||
<models::List></models::List>
|
||||
<Chat></Chat>
|
||||
<div>
|
||||
<Fetcher></Fetcher>
|
||||
</div>
|
||||
</>
|
||||
<center>
|
||||
<div class="navbar">
|
||||
<nav::Bar></nav::Bar>
|
||||
</div>
|
||||
<models::List></models::List>
|
||||
<Chat></Chat>
|
||||
<div>
|
||||
<Fetcher></Fetcher>
|
||||
</div>
|
||||
</center>
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -3,10 +3,20 @@ body {
|
||||
color: lime;
|
||||
}
|
||||
|
||||
.navbar, .model-list {
|
||||
ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.model-list > li {
|
||||
margin: 1vh;
|
||||
}
|
||||
|
||||
.chat textarea {
|
||||
resize: none;
|
||||
width: 69vw;
|
||||
height: 3vh;
|
||||
}
|
||||
|
||||
.chat {
|
||||
align-content: center;
|
||||
}
|
||||
|
Reference in New Issue
Block a user