Added user type filters and applied them to all tools

This commit is contained in:
AshAnand34
2025-07-12 11:02:15 -07:00
parent 18ba3f70d8
commit 4a7e6299d9
76 changed files with 296 additions and 158 deletions

View File

@@ -7,8 +7,9 @@ export const tool = defineTool('time', {
icon: 'arcticons:calendar-simple-29',
description:
' You can check if a given calendar year is a leap year. You can enter one or many different years into the input field with one date per line and get the answer to the test question of whether the given year is a leap year.',
shortDescription: 'Convert days to hours easily.',
shortDescription: 'Check if a year is a leap year',
keywords: ['check', 'leap', 'years'],
longDescription: `This is a quick online utility for testing if the given year is a leap year. Just as a reminder, a leap year has 366 days, which is one more day than a common year. This extra day is added to the month of February and it falls on February 29th. There's a simple mathematical formula for calculating if the given year is a leap year. Leap years are those years that are divisible by 4 but not divisible by 100, as well as years that are divisible by 100 and 400 simultaneously. Our algorithm checks each input year using this formula and outputs the year's status. For example, if you enter the value "2025" as input, the program will display "2025 is not a leap year.", and for the value "2028", the status will be "2028 is a leap year.". You can also enter multiple years as the input in a column and get a matching column of statuses as the output.`,
userTypes: ['General Users', 'Students'],
component: lazy(() => import('./index'))
});

View File

@@ -2,14 +2,13 @@ import { defineTool } from '@tools/defineTool';
import { lazy } from 'react';
export const tool = defineTool('time', {
name: 'Convert days to hours',
path: 'convert-days-to-hours',
name: 'Convert Days to Hours',
icon: 'ri:24-hours-line',
icon: 'material-symbols:schedule',
description:
'With this browser-based application, you can calculate how many hours there are in the given number of days. The application takes the input values (days), multiplies them by 24 and that converts them into hours. It supports both integer and decimal day values and it can convert multiple values at the same time.',
'Convert days to hours with simple calculations. Useful for time tracking and scheduling.',
shortDescription: 'Convert days to hours easily.',
keywords: ['convert', 'days', 'hours'],
longDescription:
'This is a quick online utility for converting days to hours. One day is 24 hours and to convert days to hours, we simply do the multiplication operation: hours = days × 24. For example, 2 days is 2 × 24 = 48 hours and 5 days is 5 × 24 = 120 hours. You can convert not only full days to hours but also fractional day values. For example, 1.5 days is 1.5 × 24 = 36 hours and 4.6 days is 4.6 × 24 = 110.4 hours. You can enter multiple days in the input field (one value per line). In this case, they will all be computed in parallel and at once. The program also supports the postfix "days" or "d" for the input values and you can add the postfix "hours" to the output values. Timeabulous!',
keywords: ['days', 'hours', 'convert', 'time', 'calculation'],
userTypes: ['General Users', 'Students'],
component: lazy(() => import('./index'))
});

View File

@@ -2,14 +2,13 @@ import { defineTool } from '@tools/defineTool';
import { lazy } from 'react';
export const tool = defineTool('time', {
name: 'Convert hours to days',
path: 'convert-hours-to-days',
name: 'Convert Hours to Days',
icon: 'mdi:hours-24',
icon: 'material-symbols:schedule',
description:
'With this browser-based application, you can calculate how many days there are in the given number of hours. Given one or more hour values in the input, it converts them into days via the simple math formula: days = hours/24. It works with arbitrary large hour values and you can also customize the decimal day precision.',
'Convert hours to days with simple calculations. Useful for time tracking and scheduling.',
shortDescription: 'Convert hours to days easily.',
keywords: ['convert', 'hours', 'days'],
longDescription:
"This is a quick online utility for converting hours to days. To figure out the number of days in the specified hours, the program divides them by 24. For example, if the input hours value is 48, then by doing 48/24, it finds that there are 2 days, or if the hours value is 120, then it's 120/24 = 5 days. If the hours value is not divisible by 24, then the number of days is displayed as a decimal number. For example, 36 hours is 36/24 = 1.5 days and 100 hours is approximately 4.167 days. You can specify the precision of the decimal fraction calculation in the options. You can also enable the option that adds the postfix 'days' to all the output values. Timeabulous!",
keywords: ['hours', 'days', 'convert', 'time', 'calculation'],
userTypes: ['General Users', 'Students'],
component: lazy(() => import('./index'))
});

View File

@@ -2,14 +2,13 @@ import { defineTool } from '@tools/defineTool';
import { lazy } from 'react';
export const tool = defineTool('time', {
name: 'Convert seconds to time',
path: 'convert-seconds-to-time',
name: 'Convert Seconds to Time',
icon: 'fluent-mdl2:time-picker',
icon: 'material-symbols:schedule',
description:
'With this browser-based application, you can convert seconds to clock time. Given the seconds input value, it converts them into full hours (H), minutes (M), and seconds (S) and prints them in human-readable clock format (H:M:S or HH:MM:SS) in the output field.',
shortDescription: 'Quicky convert seconds to clock time in H:M:S format.',
keywords: ['convert', 'seconds', 'time', 'clock'],
longDescription:
'This is a quick online utility for converting seconds to H:M:S or HH:MM:SS digital clock time format. It calculates the number of full hours, full minutes, and remaining seconds from the input seconds and outputs regular clock time. For example, 100 seconds is 1 minute and 40 seconds so we get the clock time 00:01:40. To convert seconds to human-readable time we use the Euclidean division algorithm, also known as a division with remainder. If "n" is the input seconds value, then the hours "h" are calculated from the formula n = 3600×h + r, where r is the remainder of dividing n by 3600. Minutes "m" are calculated from the formula r = 60×m + s, and seconds "s" is the remainder of dividing r by 60. For example, if the input n = 4000, then 4000 = 3600×1 + 400. From here we find that the full hours value is 1. Next, the remaining 400 seconds are equal to 60×6 + 40. From here, there are 6 full minutes and 40 more remaining seconds. Thus, we find that 4000 seconds in human time 1 hour, 6 minutes, and 40 seconds. By default, the program outputs the clock time in a padded HH:MM:SS format (i.e. 01:06:40) but you can also disable the padding option and get just H:M:S (i.e. 1:6:40). Timeabulous!',
'Convert seconds to readable time format (HH:MM:SS). Useful for time calculations and formatting.',
shortDescription: 'Convert seconds to time format (HH:MM:SS)',
keywords: ['seconds', 'time', 'convert', 'format', 'HH:MM:SS'],
userTypes: ['General Users', 'Students'],
component: lazy(() => import('./index'))
});

View File

@@ -2,14 +2,13 @@ import { defineTool } from '@tools/defineTool';
import { lazy } from 'react';
export const tool = defineTool('time', {
name: 'Convert time to seconds',
path: 'convert-time-to-seconds',
name: 'Convert Time to Seconds',
icon: 'ic:round-timer-10-select',
icon: 'material-symbols:schedule',
description:
'With this browser-based application, you can convert clock time provided in hours, minutes, and seconds into just seconds. Given a time in HH:MM:SS format, it calculates HH*3600 + MM*60 + SS and prints this value in the output box. It supports AM/PM time formats as well as clock times beyond 24 hours.',
shortDescription: 'Quickly convert clock time in H:M:S format to seconds.',
keywords: ['convert', 'seconds', 'time', 'clock'],
longDescription:
'This is a quick online utility for calculating how many seconds there are in the given time. When you input a full clock time in the input box (in format H:M:S), it gets split into hours, minutes, and seconds, and using the math formula hours×60×60 plus minutes×60 plus seconds, it finds the seconds. If seconds are missing (format is H:M), then the formula becomes hours×60×60 plus minutes×60. If minutes are also missing, then the formula becomes hours×60×60. As an extra feature, hours, minutes, and seconds are not limited to just 24 hours, 60 minutes, and 60 seconds. You can use any hours value, any minutes value, and any seconds value. For example, the input time "72:00:00" will find the number of seconds in three days (72 hours is 3×24 hours) and the input time "0:1000:0" will find seconds in 1000 minutes. Timeabulous!',
'Convert time format (HH:MM:SS) to total seconds. Useful for time calculations and programming.',
shortDescription: 'Convert time format (HH:MM:SS) to seconds',
keywords: ['time', 'seconds', 'convert', 'format', 'HH:MM:SS'],
userTypes: ['General Users', 'Students', 'Developers'],
component: lazy(() => import('./index'))
});

View File

@@ -20,5 +20,6 @@ export const tool = defineTool('time', {
],
longDescription:
'Enter a crontab expression (like "35 16 * * 0-5") to get a human-readable explanation and validation. Useful for understanding and debugging cron schedules. Inspired by crontab.guru.',
userTypes: ['Developers'],
component: lazy(() => import('./index'))
});

View File

@@ -6,17 +6,10 @@ export const tool = defineTool('time', {
path: 'time-between-dates',
icon: 'tabler:clock-minus',
description:
'Calculate the exact time difference between two dates and times, with support for different timezones. This tool provides a detailed breakdown of the time difference in various units (years, months, days, hours, minutes, and seconds).',
'Calculate the time difference between two dates with timezone support. Get days, hours, minutes, and seconds between dates.',
shortDescription:
'Calculate the precise time duration between two dates with timezone support.',
keywords: [
'time',
'dates',
'difference',
'duration',
'calculator',
'timezones',
'interval'
],
'Calculate time difference between two dates with timezone support',
keywords: ['time', 'dates', 'difference', 'calculate', 'between'],
userTypes: ['General Users', 'Students'],
component: lazy(() => import('./index'))
});

View File

@@ -9,7 +9,6 @@ export const tool = defineTool('time', {
'With this browser-based application, you can truncate a clock time and drop the minutes and/or seconds components from it. If you drop the seconds, you will be left with hours and minutes. For example, "13:23:45" will be truncated to "13:23". If you drop both minutes and seconds, you will be left with just hours. For example, "13:23:45" will be truncated to just "13". Additionally, in the options, you can add or remove the hours and minutes padding and also print the dropped time component as a zero if needed.',
shortDescription: 'Quickly convert clock time in H:M:S format to seconds.',
keywords: ['truncate', 'time', 'clock'],
longDescription:
'This is a quick online utility for truncating the given clock times or timer values. It allows you to get rid of the least significant time components such as seconds and minutes. For example, if you have an exact time of "09:45:37" and you are ok working with a less precise time that has just hours and minutes, then you can discard the seconds and get "09:45". Similarly, if you only need the hours in the output, then you can truncate the minutes as well and get "09". In general, if you have a clock time "hh:mm:ss", then removing the seconds will leave "hh:mm" and removing both minutes and seconds will leave just "hh". The program can truncate as many clock times as you need just enter them one per line in the input and the truncation result will be printed in the output where you can easily copy it from. By default, the truncated parts of the time are not displayed, but if necessary, you can print them as zeros. For example, if you drop minutes and seconds from "09:45:37" and you enable zero component printing, then the output will be "09:00:00". Finally, you can control the digit width of the clock display. For example, the time "09:00:00" has full zero-padding (the width is two digits for each time component) but if the padding is removed, then it will be shown as "9:0:0" (the width now is one digit). Timeabulous!',
userTypes: ['General Users', 'Students'],
component: lazy(() => import('./index'))
});