mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 12:15:50 +03:00
[PR #535] [MERGED] Improve rendering of the tabs #907
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#907
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/benbusby/whoogle-search/pull/535
Author: @jacr13
Created: 11/17/2021
Status: ✅ Merged
Merged: 2/7/2022
Merged by: @benbusby
Base:
main← Head:dev-header-tabs📝 Commits (10+)
c4edbadadd default content for tabsfb4a135add translation for english onlydd5321aadd function that updates default content527ca25add full_query to the class attributs597847dchange default imageresults template0adbb23update header.html with tabs3f2d395load default header tabs content6df326frender header with tabsbcdf557add styling to headerb1b9f6aremove existing tabs form raw response📊 Changes
14 files changed (+821 additions, -138 deletions)
View changed files
📝
app/__init__.py(+3 -0)📝
app/filter.py(+51 -15)➕
app/models/g_classes.py(+16 -0)📝
app/routes.py(+14 -7)📝
app/static/css/dark-theme.css(+5 -0)📝
app/static/css/header.css(+115 -0)📝
app/static/css/light-theme.css(+6 -0)📝
app/static/css/search.css(+12 -1)➕
app/static/settings/header_tabs.json(+38 -0)📝
app/static/settings/translations.json(+112 -16)📝
app/templates/header.html(+43 -5)📝
app/templates/imageresults.html(+368 -94)📝
app/utils/results.py(+37 -0)📝
app/utils/search.py(+1 -0)📄 Description
The rendering is similar in all the tabs.
In addition, the tab disposition is the same across all the tabs.
If the translation is not present, the default names will be displayed (in English), some effort needs to be made here to add translation for all supported languages. It shouldn't be very hard to translate since they are very basic words.
This probably fixes #298. I intentionally removed the shopping tab because it requires some effort to render correctly (#136).
The header should be extended to add an extra row with different parameters to choice from (#322 and possibly #192)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.