whoogle-search/app
Joao A. Candido Ramos 11099f7b1d
Use consistent header for all result types (#535)
Introduces a header for switching between result types (i.e. "All", "News",
etc) that is consistent between the different result types. Previously, image
results had a tab header that was formatted in a drastically different manner,
which was jarring when switching from a different result page to the Images
page.

Created a G class enum to reference class names returned in search
results. As noted in the class doc, this should only be used/updated as
a last resort, as class names change frequently. For some instances,
such as replacing the tbm tab, it's a lot easier to just replace by
header name than attempting to replace it based on how the element is
structured.

Also updated a few styles to revert the latest styling changes being
applied by Google.

Co-authored-by: jacr13 <ramos.joao@protonmail.com>
Co-authored-by: Ben Busby <contact@benbusby.com>
2022-02-07 10:47:25 -07:00
..
models Use consistent header for all result types (#535) 2022-02-07 10:47:25 -07:00
static Use consistent header for all result types (#535) 2022-02-07 10:47:25 -07:00
templates Use consistent header for all result types (#535) 2022-02-07 10:47:25 -07:00
utils Use consistent header for all result types (#535) 2022-02-07 10:47:25 -07:00
__init__.py Use consistent header for all result types (#535) 2022-02-07 10:47:25 -07:00
__main__.py Swap out Flask's default web server for Waitress (#32) 2020-05-12 17:14:55 -06:00
filter.py Use consistent header for all result types (#535) 2022-02-07 10:47:25 -07:00
request.py Catch invalid XML in suggestion response 2021-12-28 11:38:18 -07:00
routes.py Use consistent header for all result types (#535) 2022-02-07 10:47:25 -07:00