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