From 2a6e583d385b26e368c4a848ec8bfd25f581f89d Mon Sep 17 00:00:00 2001 From: rishu ray Date: Fri, 17 Apr 2026 12:21:26 +0530 Subject: [PATCH] feat: add Tip Calculator and Bill Splitter tool "Tip Calculator & Bill Splitter" tool to the Maths category. It allows users to calculate gratuity and split bills among multiple people with a clean, responsive UI. Closes #1778 Co-authored-by: ShareVB --- locales/en.yml | 5 ++ src/tools/tip-calculator/index.ts | 14 ++++ src/tools/tip-calculator/tip-calculator.vue | 72 +++++++++++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 src/tools/tip-calculator/index.ts create mode 100644 src/tools/tip-calculator/tip-calculator.vue diff --git a/locales/en.yml b/locales/en.yml index a0bff0fd..d267da0f 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -162,6 +162,11 @@ tools: tag-x-is-what-percent-of-y: X is what percent of Y tag-is-what-percent-of: is what percent of tag-what-is-the-percentage-increase-decrease: What is the percentage increase/decrease + + tip-calculator: + title: Tip calculator + description: Calculate the tip for a bill and split it among multiple people. + svg-placeholder-generator: title: SVG placeholder generator description: Generate svg images to use as a placeholder in your applications. diff --git a/src/tools/tip-calculator/index.ts b/src/tools/tip-calculator/index.ts new file mode 100644 index 00000000..1a2e6e88 --- /dev/null +++ b/src/tools/tip-calculator/index.ts @@ -0,0 +1,14 @@ +import { Calculator } from '@vicons/tabler'; +import { defineTool } from '../tool'; +import { translate as t } from '@/plugins/i18n.plugin'; + +export const tool = defineTool({ + name: t('tools.tip-calculator.title'), + path: '/tip-calculator', + description: t('tools.tip-calculator.description'), + keywords: ['tip', 'calculator', 'bill', 'split', 'restaurant', 'money', 'payment'], + component: () => import('./tip-calculator.vue'), + icon: Calculator, + createdAt: new Date('2024-04-17'), + category: 'Maths', +}); diff --git a/src/tools/tip-calculator/tip-calculator.vue b/src/tools/tip-calculator/tip-calculator.vue new file mode 100644 index 00000000..466ab9d1 --- /dev/null +++ b/src/tools/tip-calculator/tip-calculator.vue @@ -0,0 +1,72 @@ + + +