diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-10-28 19:37:17 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-10-28 19:37:17 +0200 |
commit | 960662954d0c4ba6ce07e18cc0236d6aadce42c8 (patch) | |
tree | b599cb946123b7a882302d36091b141c095d476e | |
parent | Crawler: Only accept HTTP_STATUS_CODE: 200 as success in crawl_url() (diff) | |
download | OSSE-960662954d0c4ba6ce07e18cc0236d6aadce42c8.tar.gz OSSE-960662954d0c4ba6ce07e18cc0236d6aadce42c8.tar.bz2 OSSE-960662954d0c4ba6ce07e18cc0236d6aadce42c8.zip |
Frontend: Show result website's title and description
-rw-r--r-- | frontend/src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/frontend/src/main.rs b/frontend/src/main.rs index 2d7cf3a..46b9232 100644 --- a/frontend/src/main.rs +++ b/frontend/src/main.rs @@ -13,7 +13,9 @@ use yew::prelude::*; #[derive(Debug, Clone, Deserialize)] struct CrawledResource { url: String, - priority: u32, //how do we even calculate this + title: String, + description: String, + priority: u32, word: Arc<String>, } @@ -72,7 +74,7 @@ fn osse() -> Html { html! { <div key={r.url.to_owned()}> //Show page title and description - <a href={r.url.to_owned()}>{r.url.to_owned()}</a> + <a href={r.url.to_owned()}>{r.url.to_owned()}{"--"}{r.title.to_owned()}{"----"}{r.description.to_owned()}</a> </div> } }) |