about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* Frontend: Handle and show API errorsBaitinq2022-11-011-32/+71
|
* Misc: Cargo fmtBaitinq2022-10-305-25/+30
|
* Indexer: Use kuchiki to split html content into wordsBaitinq2022-10-303-6/+32
| | | | This is better than html2text when using non-ascii characters.
* Crawler: Set 4 as the maximum "crawl depth"Baitinq2022-10-301-0/+1
| | | | Its not really crawl depth as we just count the path segments.
* Crawler: Accept max_queue_size as an argument for crawler()Baitinq2022-10-301-3/+5
| | | | | | | We also now set the max queue size to the max of the root url list or the max_queue_size. This is useful because if someone changes the root url list the crawler would previously hang if it had more entries than the max_queue_size.
* Frontend: Change navbar linksBaitinq2022-10-301-4/+4
| | | | Now logo points to / and "Made by Baitinq" to the project's git
* Indexer: Transform all queries into lowercaseBaitinq2022-10-301-0/+3
| | | | | This is because currently then reverse index only contains lowercase words as it transforms them when inserting them.
* Frontend: URL encode and decode the search_queryBaitinq2022-10-303-2/+10
|
* Frontend: Implement support for searching with /search/* routesBaitinq2022-10-302-6/+37
| | | | | | | We now immediately search if we are in a /search/* route. This implementation is not that good as we have to duplicate the code that runs both when creating the component in /search/* route and when submitting a search query.
* Frontend: Update yew to follow masterBaitinq2022-10-304-45/+130
| | | | This enables us to use the new Router API
* Frontend: Setup skeleton route supportBaitinq2022-10-304-3/+78
| | | | | We now have the / and /search/ route boilerplate. This will allow us to switch to the /search/ route when searching.
* Frontend: Move app-specific code to app.rsBaitinq2022-10-303-184/+181
|
* Misc: Remove unneeded dependenciesBaitinq2022-10-306-12/+3
|
* Misc: Add local lib crate to share common structsBaitinq2022-10-3010-83/+77
|
* Frontend: Add props to the OSSE ComponentBaitinq2022-10-301-3/+9
| | | | We can now set the API endpoint in the props.
* Frontend: Change OSSE component into a struct componentBaitinq2022-10-301-76/+88
| | | | I think this improves readability for components with state.
* Crawler+Indexer+Frontend: Rename structs to follow logical relationsBaitinq2022-10-293-24/+31
| | | | | | Now Resource is CrawledResource as it is created by the crawler, and the previous CrawledResource is now IndexedResource as its created by the indexer.
* Frontend: Use ResultComponent to display search resultsBaitinq2022-10-291-3/+14
|
* Indexer: Implement basic priority calculation of words in a siteBaitinq2022-10-291-7/+6
| | | | | We just calculate priority to be the number of occurences of the word in the site. This is very basic and should be changed:))
* Frontend: Show results in reverse order with priorityBaitinq2022-10-281-2/+2
|
* Frontend: Show result website's title and descriptionBaitinq2022-10-281-2/+4
|
* Crawler: Only accept HTTP_STATUS_CODE: 200 as success in crawl_url()Baitinq2022-10-281-3/+4
|
* Indexer: Add website title and description to the CrawledResourceBaitinq2022-10-283-1/+26
| | | | We now parse the HTML and extract the title and description of the site.
* Frontend: Refactor search_word_in_db() to not need explicit lifetimesBaitinq2022-10-281-6/+6
|
* Frontend: Improve responsive layoutBaitinq2022-10-281-34/+37
| | | | | We now kinda use flexbox i think? Needs lots of work regarding centering the search box. Kind of functional for now:)
* Frontend: Make the results state OptionalBaitinq2022-10-281-15/+27
| | | | | We now return "No result!" if the user has actually searched for something and no results were found.
* Misc: Add TODOsBaitinq2022-10-283-1/+3
|
* Frontend: Html: Set footer at the bottom of the pageBaitinq2022-10-281-36/+38
|
* Frontend: Logically structure htmlBaitinq2022-10-281-35/+39
|
* Frontend: Add local bootstrap filesBaitinq2022-10-283-5/+18
|
* Fronted: Order search results by priorityBaitinq2022-10-273-2/+20
| | | | | | We do this by implementing the PartialOrd and Ord traits into the CrawledResource struct and then using Itertools::sorted() on the display iterator.
* Frontend: Use display_results() function for rendering CrawledResourcesBaitinq2022-10-271-5/+14
|
* Frontend: Fetch results from indexerBaitinq2022-10-273-33/+53
|
* Crawler: Abstract database word fetching with search_word_in_db()Baitinq2022-10-271-2/+10
|
* Indexer: Add /search with no query endpointBaitinq2022-10-271-0/+6
| | | | Just returns [].
* Crawler: Replace String::from with .to_string()Baitinq2022-10-271-3/+6
|
* Indexer: Setup permissive CORSBaitinq2022-10-273-1/+21
|
* Indexer: Return json from the /search endpointBaitinq2022-10-273-7/+6
|
* Frontend: Add results field to the state and set dummy resultsBaitinq2022-10-261-2/+46
|
* Frontend: Add basic search_query stateBaitinq2022-10-263-8/+158
|
* Frontend: Add basic layoutBaitinq2022-10-262-1/+43
|
* Frontend: Update index.html to include boostrapBaitinq2022-10-251-3/+16
| | | | Also setup viewport and title.
* Crawler: Fix bad error handling with match handlingBaitinq2022-10-251-6/+9
|
* Crawler: Use async ClientBaitinq2022-10-254-48/+152
|
* Indexer: Use CrawledResource structure as values in the reverse index dbBaitinq2022-10-253-11/+45
| | | | This will allow us to integrate priorities and other improvements.
* Indexer: Add "correct" error handlingBaitinq2022-10-251-7/+7
|
* Crawler: Shuffle crawled urlsBaitinq2022-10-253-4/+5
|
* Crawler: Add "correct" error handlingBaitinq2022-10-251-21/+23
|
* Crawler: Parse urls with the "url" crateBaitinq2022-10-253-25/+26
| | | | | This fixes relative urls, makes url filtering and validation better, and many other improvements.
* Crawler: Add crawled url filterBaitinq2022-10-241-1/+8
| | | | This filters hrefs such as "/", "#" or "javascript:"