Commit Graph

14 Commits

Author SHA1 Message Date
Ben Busby
59566c780a
Pull tbm tab class from new enum
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.
2022-02-07 10:24:07 -07:00
Ben Busby
f38ada589e
Fix missing header background color, add translations 2022-02-04 17:06:01 -07:00
jacr13
fc8c90c87c fix input when in images tab (desktop) 2022-01-24 18:26:53 +01:00
jacr13
200fac9050 add mobile tabs and rework css classes 2022-01-24 18:18:15 +01:00
jacr13
2aff5ac7ef replace google name classes 2022-01-24 16:49:06 +01:00
Joao A. Candido Ramos
143c14a25b
Remove unnecessary color 2021-11-19 09:54:38 +01:00
Joao A. Candido Ramos
ca1ff8e119
fix typo
Co-authored-by: Ben Busby <noreply+git@benbusby.com>
2021-11-19 09:32:38 +01:00
jacr13
558d6269ed update header styling 2021-11-17 13:23:21 +01:00
jacr13
bcdf5578eb add styling to header 2021-11-17 13:20:40 +01:00
Ben Busby
c41e0fc239
Allow theme to mirror user system settings
Introduces a new config element and environment variable
(WHOOGLE_CONFIG_THEME) for setting the theme of the app. Rather than
just having either light or dark, this allows a user to have their
instance use their current system light/dark preference to determine the
theme to use.

As a result, the dark mode setting (and WHOOGLE_CONFIG_DARK) have been
deprecated, but will still work as expected until a system theme has
been chosen.
2021-06-28 10:26:51 -04:00
Ben Busby
f56e913521
Remove gap between input and result types
Enforces 0 margin for the search input form on the result page, which
removes the weird gap that is seen by default.

Also made minor changes to the border styling. Desktop searches now have
a single bottom border in dark mode rather than an all around border,
and the border around the mobile search result input was removed
entirely.
2021-04-22 16:24:43 -04:00
Tomasz Borychowski
5538ac862e add basic keyboard support 2021-04-05 11:00:56 -04:00
Ben Busby
2bbc649903
Add support for UPS/USPS/FedEx tracking queries
Introduces a new javascript "utils" file, which includes a check for
matching the query against a set of tracking number regexes on page
load. If a match is found, the script prepends a link to the
(presumably) appropriate tracking page.

Referenced in #98
2020-12-27 18:00:35 -05:00
Ben Busby
21012f5265
Feature: autocomplete/search suggestions (#72)
Basic autocomplete/search suggestion functionality added

* Adds new GET and POST routes for '/autocomplete' that accept a string query and returns an array of suggestions

* Adds new autoscript.js file for handling queries on the main page and results view

* Updated requests class to include autocomplete method

* Updated opensearch template to handle search suggestions

* Added header template to allow for autocomplete on results view

* Updated readme to mention autocomplete feature
2020-05-24 14:03:11 -06:00