[PR #956] [MERGED] Add calculator widget #1029

Closed
opened 2026-02-25 20:37:26 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/benbusby/whoogle-search/pull/956
Author: @ellieeet123
Created: 2/13/2023
Status: Merged
Merged: 2/21/2023
Merged by: @benbusby

Base: mainHead: main


📝 Commits (3)

  • ea9e73d Add calculator widget
  • 6de6f05 Specify font color for light themes
  • a06f2bf Fix / keyboard shortcut in calculator

📊 Changes

6 files changed (+348 additions, -53 deletions)

View changed files

📝 app/routes.py (+13 -5)
📝 app/static/js/keyboard.js (+4 -0)
app/static/widgets/calculator.html (+260 -0)
📝 app/utils/results.py (+0 -38)
📝 app/utils/search.py (+6 -10)
app/utils/widgets.py (+65 -0)

📄 Description

This PR adds a simple calculator widget, somewhat similar to the one presented when searching calculator on Google. It is definitely not as fancy as Google's, and probably has a couple bugs that I wasn't able to find, but it works for the most part.

Also, it adds somewhat of a template for making the addition of new widgets easier via the app/utils/widgets.py file. My eventual plan is to use this to create more widgets that appear in Google, such as a color picker, timer, etc.

Also as you probably have noticed this is my first PR here and I'm not too familiar with the code base. So if you see anything that doesn't look up to standards or out of place feel free to let me know.

Thanks!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/benbusby/whoogle-search/pull/956 **Author:** [@ellieeet123](https://github.com/ellieeet123) **Created:** 2/13/2023 **Status:** ✅ Merged **Merged:** 2/21/2023 **Merged by:** [@benbusby](https://github.com/benbusby) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`ea9e73d`](https://github.com/benbusby/whoogle-search/commit/ea9e73dd771a0b9b351914a4fa6b6ad19980f147) Add calculator widget - [`6de6f05`](https://github.com/benbusby/whoogle-search/commit/6de6f0536d6fc7585dfedc02c99deb37dda1a8ca) Specify font color for light themes - [`a06f2bf`](https://github.com/benbusby/whoogle-search/commit/a06f2bfd5385245436146057ee4b7cf9d867752b) Fix `/` keyboard shortcut in calculator ### 📊 Changes **6 files changed** (+348 additions, -53 deletions) <details> <summary>View changed files</summary> 📝 `app/routes.py` (+13 -5) 📝 `app/static/js/keyboard.js` (+4 -0) ➕ `app/static/widgets/calculator.html` (+260 -0) 📝 `app/utils/results.py` (+0 -38) 📝 `app/utils/search.py` (+6 -10) ➕ `app/utils/widgets.py` (+65 -0) </details> ### 📄 Description This PR adds a simple calculator widget, somewhat similar to the one presented when searching `calculator` on Google. It is definitely not as fancy as Google's, and probably has a couple bugs that I wasn't able to find, but it works for the most part. Also, it adds somewhat of a template for making the addition of new widgets easier via the `app/utils/widgets.py` file. My eventual plan is to use this to create more widgets that appear in Google, such as a color picker, timer, etc. Also as you probably have noticed this is my first PR here and I'm not too familiar with the code base. So if you see anything that doesn't look up to standards or out of place feel free to let me know. Thanks! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 20:37:26 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#1029
No description provided.