mirror of
https://github.com/SinTan1729/chhoto-url
synced 2025-04-19 19:30:01 -05:00
Compare commits
No commits in common. "1ae00eb3a8d257f4505f490774c01520c8949110" and "c557b8b2626bef98ff661572502e246218735128" have entirely different histories.
1ae00eb3a8
...
c557b8b262
3 changed files with 3 additions and 8 deletions
|
@ -33,7 +33,7 @@ pub fn find_url(shortlink: &str, db: &Connection, needhits: bool) -> (Option<Str
|
||||||
// Get all URLs in DB
|
// Get all URLs in DB
|
||||||
pub fn getall(db: &Connection) -> Vec<DBRow> {
|
pub fn getall(db: &Connection) -> Vec<DBRow> {
|
||||||
let mut statement = db
|
let mut statement = db
|
||||||
.prepare_cached("SELECT * FROM urls ORDER BY id ASC")
|
.prepare_cached("SELECT * FROM urls")
|
||||||
.expect("Error preparing SQL statement for getall.");
|
.expect("Error preparing SQL statement for getall.");
|
||||||
|
|
||||||
let mut data = statement
|
let mut data = statement
|
||||||
|
|
|
@ -56,7 +56,7 @@ const refreshData = async () => {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let data = await res.json();
|
let data = await res.json();
|
||||||
displayData(data.reverse());
|
displayData(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -86,12 +86,7 @@ div[name="links-div"] {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#login-dialog {
|
dialog form {
|
||||||
border-radius: 10px;
|
|
||||||
border-width: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#login-dialog form {
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue