Commit Graph

396 Commits

Author SHA1 Message Date
Ben Busby ff885e4fde Disable autocomplete via WHOOGLE_AUTOCOMPLETE var
Setting WHOOGLE_AUTOCOMPLETE to 0 now disables the autocomplete/search
suggestion feature.

Closes #462
2021-10-14 18:59:10 -06:00
Ben Busby 18688705be Update libraries 2021-10-14 17:57:05 -06:00
Ben Busby c1d8a0c625 Add build status badge to readme 2021-10-13 21:09:29 -06:00
Ben Busby a76d39ec86 Fix missing translations in config menu
Closes #374
2021-10-13 21:07:42 -06:00
Ben Busby 9097c3ae23 Add /home endpoint to header template
Used in header templates for navigating back to the home page when
behind a reverse proxy config where the app is running from a subpath of
a domain (i.e. "https://something/whoogle/")

Fixes #403
2021-10-13 20:55:26 -06:00
Ben Busby 20976f2ab9 Exclude test dir from docker actions 2021-10-11 21:13:59 -06:00
Ben Busby c6716e6d46 Enable tag builds for pypi and buildx workflows v0.6.0 2021-10-11 20:22:29 -06:00
Ben Busby 60b36c3b19 Update buildx workflow
Buildx workflow now waits for tests to pass before building/uploading
new images.

There's also a separate step for building a properly formatted tag image
if triggered by a new tag.
2021-10-11 20:11:31 -06:00
Ben Busby 334aabacb7 Bump version to 0.6.0 2021-10-11 17:44:57 -06:00
Albony Cal c89353cfec Add hindi translation (#448) 2021-10-11 14:32:03 -06:00
rn83 f18400b1f1 Strip SKIP_PREFIX for SITE_ALTS only (#452)
Domain prefixes (www, mobile, m) are now striped for site alternatives only.
2021-10-11 14:25:21 -06:00
Ben Busby 2dd86fcf97 Update systemd instructions
Fixes #453
2021-10-11 14:22:11 -06:00
Ben Busby 002e2103ad Simplify buildx workflow
There doesn't really need to be a 'develop' branch anymore, since all
work is committed directly to 'main', with tags to indicate
production-ready builds.

As a result, the buildx-dev workflow is pretty pointless.
2021-09-29 20:54:48 -06:00
Ben Busby b189ea3963 Fix hardcoded search method in header template
Should use GET if user has configured "GET only" in their config

Closes #446
2021-09-29 20:40:56 -06:00
Oscar 57a7bf6e95 Remove whoogle.silkky.cloud public instance (#443) 2021-09-29 20:33:50 -06:00
Ben Busby 1729324fbd Run pep8 check on PRs 2021-09-27 20:40:51 -06:00
BorislavGeorgiev 10b60d9373 Add Bulgarian translation (#440) 2021-09-27 20:39:38 -06:00
BlissOWL f12b0e62c5 Make bang searches case insensitive (#438)
Bang searches now ignore the capitalization of the operator

Co-authored-by: Ben Busby <noreply+git@benbusby.com>
2021-09-27 19:39:58 -06:00
Ben Busby 27d978f232 Hide overflow on all result divs
Mostly addresses the small amount of visible overflow on sections like
"Top Stories".
2021-09-18 21:19:05 -06:00
drugal 46da74fe8a Add search language to public instances table (#431) 2021-09-16 16:30:56 -06:00
Kang-min Liu c3fd84b942 Update name of "Taiwan" in country list (#429) 2021-09-16 16:22:44 -06:00
Ben Busby 817b51eb48 Document WHOOGLE_CONFIG_NEAR env var
Fixes #406
2021-09-15 16:00:36 -06:00
Kang-min Liu 5289b4ceb3 Add zh-TW translations (#428)
There are a few conventional choices but this one should be friendly
and generally accepted by local reader.

Previous version is still comprehensible but lesser users (perhaps
used in Japanese documents) and may give local users a pause.
2021-09-15 15:30:53 -06:00
Peter Dave Hello ed963933d9 Add ini highlighting to readme (#426) 2021-09-15 15:27:50 -06:00
Ben Busby b4e2add146 Run GH action tests on PRs 2021-09-15 15:27:11 -06:00
FlawCra 598b58a43d Update location of public instance (#425)
https://search.flawcra.cc -> DE
2021-09-15 15:25:51 -06:00
Flux Industries f093fd26c1 Add public instance to readme (#423)
search.flux.industries
2021-09-15 15:25:00 -06:00
Ben Busby d1e0a06ebd Move timestamp for dev builds into build process 2021-08-31 09:34:28 -06:00
Ben Busby c298b8447c Split PyPI action into separate jobs 2021-08-31 09:18:07 -06:00
Ben Busby 5d86326ae6 Append timestamp to TestPyPI build versions
This should allow the same "version" to be uploaded for each commit.
2021-08-31 09:00:55 -06:00
Ben Busby 118c9da813 Remove ARM specific Docker tag note from readme
ARM devices can now use the `latest` tag, so the `buildx-experimental`
tag is no longer necessary.
2021-08-31 08:15:28 -06:00
Ben Busby 4ad4ed5ff7 Publish to PyPI using GitHub Actions
Regular commits are all built and publish to TestPyPI, tagged commits
are published to PyPI.

This should finish the process of moving away from Travis CI, now that
both testing and PyPI deployments are handled in github actions.
2021-08-31 08:03:08 -06:00
Ben Busby 9f84a8ad83 Remove form action from csp
Restricting form-action to 'self' in the content security policy
prevented Chrome (and likely other browsers) from using !bangs on the
home page.

Fixes #408
2021-08-31 07:57:50 -06:00
Ben Busby ad2b2554c1 Use UTF-8 encoding when loading languages json
Fixes #371
2021-08-30 17:23:19 -06:00
Ben Busby 9320d8e230 Remove travis yml, update readme test badge 2021-08-30 16:47:49 -06:00
Ben Busby 648a540126 Move all testing to github actions
The Travis CI folks are updating stuff and broke my tests, so I'm moving
over to github actions instead since that is (hopefully) less likely to
change moving forward.

Will need to move PyPi deployment to github actions as well.
2021-08-30 16:39:52 -06:00
alefvanoon 981c7d28f8 Add persian (farsi) translation (#400) 2021-08-30 16:17:14 -06:00
davidfrickert 71070ee921 Fix portuguese translations (#405) 2021-08-30 16:11:32 -06:00
alefvanoon be3714f074 Fix rtl lang problem in search box (#399)
Adds auto dir to index, search and header input html
2021-08-30 16:10:07 -06:00
alefvanoon 388f51cfb7 Add table for public instances (#398)
Includes new "Country" and "Cloudflare" columns
2021-08-30 16:07:23 -06:00
Trottel f34490d4f1 Add Czech translation (#397) 2021-08-30 16:05:19 -06:00
Ben Busby b44762d157 Split buildx action into main and dev builds
Since Docker Hub no longer allows automated builds for free tier users,
the build process for new images needs to be moved to GitHub Actions.
The existing buildx workflow has worked pretty well for the most part,
but was only enabled for the develop branch and only pushed the
buildx-experimental tag. This addition allows pushes to the main branch
to build updates for the "latest" tag as well, which is more commonly
used I think.
2021-08-24 09:38:35 -06:00
Darkempire 4f5ed37c0a Add French translation (#391) 2021-08-24 09:12:34 -06:00
alefvanoon 14a5e63ad9 Remove dead instance, add new public instance (#387)
https://s.alefvanboon.xyz
2021-08-24 09:10:38 -06:00
gripped 8d24f8abdd Fix white background on dropdown for result selectors, time etc (#384) 2021-08-24 09:07:34 -06:00
Laurent le Beau-Martin 1a3790c7b1 Only open external links in a new tab (#380) 2021-08-24 09:06:41 -06:00
සයුරි | Sayuri 8e91564600 Update translations (#373) 2021-07-22 09:13:09 -06:00
KokoTheBest a69ec74cfd Make replit install all requirements first (#378)
* Make replit install all requirements first

This should install all requirements from requirements.txt. It makes this a one click experience, without the user having to run `pip install -r requirements.txt` and then tap the run button. I myself had to first run that command in my repl, so I have made this change so others don't have to do the same.

repl.it also runs on linux based systems, so `&&` is the correct bash syntax.

* Running in Bash

I applied the same change I made on onBoot to the run variable, and made the language bash as the syntax `./` and `&&` belong to bash.
2021-07-22 09:11:08 -06:00
Ben Busby 694642ccb3 Set bg color for "top stories" elements 2021-07-05 00:18:28 -04:00
Ben Busby 38c38a772f Find valid parent element when collapsing result content
Previously if a result element marked for collapsing didn't have a valid
"parent" element, the collapsing was skipped altogether. This loops
through child elements until a valid parent is found (or if one isn't
found, the element will not be collapsed).
2021-07-04 15:20:19 -04:00