Expand magnetism and fluid calculators
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
This document tracks the calculators currently shipped by the Svelte site.
|
||||
The active table below is the source of truth for `migrate.py`; legacy WordPress IDs and Kadence element references have been removed.
|
||||
The registry currently contains 1265 unique calculator slugs.
|
||||
The registry currently contains 1305 unique calculator slugs.
|
||||
|
||||
| Calculator Name | Slug | Category | Conversion Factor |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
@@ -125,6 +125,26 @@ The registry currently contains 1265 unique calculator slugs.
|
||||
| Tesla to Ampere-turns per meter – Translate flux density into magnetomotive force per meter when vacuum permeability is provided. | tesla-to-ampere-turns-per-meter | length | Multi-Variable |
|
||||
| Tesla to Maxwell – Convert tesla values into maxwell flux when area or length units are entered. | tesla-to-maxwell | magnetism | Multi-Variable |
|
||||
| Tesla to Oersted – Rephrase teslas as oersteds by leveraging the vacuum field relationship. | tesla-to-oersted | magnetism | Multi-Variable |
|
||||
| Tesla to Microtesla – Scale Tesla fields down into microtesla for sensor-level data. | tesla-to-microtesla | magnetism | 1000000 |
|
||||
| Microtesla to Tesla – Turn microtesla readings back into the Tesla base unit. | microtesla-to-tesla | magnetism | 0.000001 |
|
||||
| Tesla to Nanotesla – Express Tesla fields in highly sensitive nanotesla units. | tesla-to-nanotesla | magnetism | 1000000000 |
|
||||
| Nanotesla to Tesla – Convert nanotesla back into Tesla-scale magnetism. | nanotesla-to-tesla | magnetism | 0.000000001 |
|
||||
| Gauss to Microtesla – Translate magnetic flux from Gauss into microtesla for instrumentation. | gauss-to-microtesla | magnetism | 100 |
|
||||
| Microtesla to Gauss – Bring microtesla data into Gauss when studying legacy equipment. | microtesla-to-gauss | magnetism | 0.01 |
|
||||
| Gauss to Nanotesla – Convert Gauss values into high-resolution nanotesla. | gauss-to-nanotesla | magnetism | 100000 |
|
||||
| Nanotesla to Gauss – Return nanotesla measurements back into Gauss. | nanotesla-to-gauss | magnetism | 0.00001 |
|
||||
| Webers per square meter to Teslas – A Weber per square meter is exactly one Tesla. | webers-per-square-meter-to-teslas | magnetism | 1 |
|
||||
| Teslas to Webers per square meter – Each Tesla equals one Weber per square meter. | teslas-to-webers-per-square-meter | magnetism | 1 |
|
||||
| Webers per square centimeter to Gauss – Scale the small-area flux into Gauss. | webers-per-square-centimeter-to-gauss | magnetism | 100000000 |
|
||||
| Gauss to Webers per square centimeter – Convert Gauss back into Weber per square centimeter. | gauss-to-webers-per-square-centimeter | magnetism | 0.00000001 |
|
||||
| Oersted to Gauss – In vacuum, the numeric values for Oersted and Gauss match. | oersted-to-gauss | magnetism | 1 |
|
||||
| Gauss to Oersted – Translate the flux density version back into the magnetizing force scale. | gauss-to-oersted | magnetism | 1 |
|
||||
| Kilogauss to Microtesla – A kilogauss field equals 100,000 microtesla. | kilogauss-to-microtesla | magnetism | 100000 |
|
||||
| Microtesla to Kilogauss – Convert microtesla readings into kilogauss. | microtesla-to-kilogauss | magnetism | 0.00001 |
|
||||
| Kilogauss to Nanotesla – Express kilogauss values in nanotesla for sensitive instrumentation. | kilogauss-to-nanotesla | magnetism | 100000000 |
|
||||
| Nanotesla to Kilogauss – Turn nanotesla data into kilogauss for powerful magnets. | nanotesla-to-kilogauss | magnetism | 0.00000001 |
|
||||
| Tesla to Kilotesla – Measure extremely strong fields in kilotesla units. | tesla-to-kilotesla | magnetism | 0.001 |
|
||||
| Kilotesla to Tesla – Return kilotesla numbers to the base Tesla scale. | kilotesla-to-tesla | magnetism | 1000 |
|
||||
| Amps to Milliamps – Translate amperes into milliamperes when tuning circuit currents. | amps-to-milliamps | angle | 1000.0 |
|
||||
| Carats to Grams | carats-to-grams | weight | 0.2 |
|
||||
| Celsius to Fahrenheit | celsius-to-fahrenheit | temperature | Linear Offset (1.8x + 32) |
|
||||
@@ -977,6 +997,26 @@ The registry currently contains 1265 unique calculator slugs.
|
||||
| Furlongs to Miles – A course covers eight furlongs; how far is that in miles? | furlongs-to-miles | length | 0.125 |
|
||||
| Gallons per minute to CFS – A pump pushes 200 gpm; what is that flow rate in cubic feet per second? | gallons-per-minute-to-cubic-feet-per-second | fluids | 0.00222801 |
|
||||
| Gallons per minute to Liters per minute – A faucet flows at three gpm; what is that in liters per minute? | gallons-per-minute-to-liters-per-minute | fluids | 3.78541 |
|
||||
| Cubic meters per hour to Liters per minute – Convert plant-level m³/h readings into L/min for instrumentation. | cubic-meters-per-hour-to-liters-per-minute | fluids | 16.6666667 |
|
||||
| Liters per minute to Cubic meters per hour – Return the metric flow rate to cubic meters per hour. | liters-per-minute-to-cubic-meters-per-hour | fluids | 0.06 |
|
||||
| Cubic feet per minute to Liters per minute – Convert air-volume flow into liters per minute for fans. | cubic-feet-per-minute-to-liters-per-minute | fluids | 28.3168 |
|
||||
| Liters per minute to Cubic feet per minute – Translate liquid flow into cubic feet per minute when designing HVAC ducts. | liters-per-minute-to-cubic-feet-per-minute | fluids | 0.0353147 |
|
||||
| Cubic feet per hour to Gallons per minute – Express a slow flow in gallons per minute from cubic feet per hour. | cubic-feet-per-hour-to-gallons-per-minute | fluids | 0.124675 |
|
||||
| Gallons per minute to Cubic feet per hour – Turn pump output into cubic feet per hour for reservoir sizing. | gallons-per-minute-to-cubic-feet-per-hour | fluids | 8.02082 |
|
||||
| Barrels per day to Gallons per minute – Convert coarse barrels per day totals into a minute-level gallon flow. | barrels-per-day-to-gallons-per-minute | fluids | 0.0291667 |
|
||||
| Gallons per minute to Barrels per day – Translate gpm values into the oil-industry barrels-per-day metric. | gallons-per-minute-to-barrels-per-day | fluids | 34.2857143 |
|
||||
| Liters per second to Cubic meters per hour – Expand L/s flows into m³/h for engineering summaries. | liters-per-second-to-cubic-meters-per-hour | fluids | 3.6 |
|
||||
| Cubic meters per hour to Liters per second – Reduce m³/h values down to L/s for laboratory calibration. | cubic-meters-per-hour-to-liters-per-second | fluids | 0.2777778 |
|
||||
| Liters per second to Gallons per hour – Convert a steady L/s flow into US gallons per hour. | liters-per-second-to-gallons-per-hour | fluids | 951.01938 |
|
||||
| Gallons per hour to Liters per second – Bring gallon-hour figures into liters per second. | gallons-per-hour-to-liters-per-second | fluids | 0.001051503 |
|
||||
| Cubic meters per minute to Gallons per minute – Translate large metric flow into US gallons per minute. | cubic-meters-per-minute-to-gallons-per-minute | fluids | 264.172052 |
|
||||
| Gallons per minute to Cubic meters per minute – Return gallons to cubic meters per minute for industrial pumps. | gallons-per-minute-to-cubic-meters-per-minute | fluids | 0.00378541 |
|
||||
| Cubic meters per minute to Cubic feet per minute – Turn metric volume per minute into the imperial cubic feet per minute unit. | cubic-meters-per-minute-to-cubic-feet-per-minute | fluids | 35.3147 |
|
||||
| Cubic feet per minute to Cubic meters per minute – Convert CFD data into cubic meters per minute for process controls. | cubic-feet-per-minute-to-cubic-meters-per-minute | fluids | 0.0283168 |
|
||||
| Liters per minute to Cubic meters per minute – Reduce liters per minute into cubic meters per minute for SI reporting. | liters-per-minute-to-cubic-meters-per-minute | fluids | 0.001 |
|
||||
| Cubic meters per minute to Liters per minute – Expand a cubic meter per minute flow into liters per minute. | cubic-meters-per-minute-to-liters-per-minute | fluids | 1000 |
|
||||
| Cubic inches per minute to Liters per minute – Convert small flow rates into metric liters for chemistry. | cubic-inches-per-minute-to-liters-per-minute | fluids | 0.016387064 |
|
||||
| Liters per minute to Cubic inches per minute – Express liters per minute in cubic inches per minute. | liters-per-minute-to-cubic-inches-per-minute | fluids | 61.0237441 |
|
||||
| Gallons to Barrel (US oil) – A tanker carries 840 gallons; how many US oil barrels is that? | gallons-to-barrel-us-oil | volume | 0.0238095238 |
|
||||
| Gallons to Cubic Feet – A tank holds fifty gallons; how many cubic feet does that represent? | gallons-to-cubic-feet | length | 0.133681 |
|
||||
| Gallons to Cubic Meters – A reservoir stores 1,200 gallons; what is the cubic meter value? | gallons-to-cubic-meters | length | 0.00378541 |
|
||||
|
||||
@@ -39,29 +39,6 @@ export const categories: Record<string, { label: string; icon: string }> = {
|
||||
other: { label: 'Other', icon: '🔄' },
|
||||
};
|
||||
|
||||
export const categoryOrder = [
|
||||
'length',
|
||||
'weight',
|
||||
'temperature',
|
||||
'volume',
|
||||
'fluids',
|
||||
'area',
|
||||
'speed',
|
||||
'pressure',
|
||||
'energy',
|
||||
'magnetism',
|
||||
'power',
|
||||
'data',
|
||||
'time',
|
||||
'angle',
|
||||
'number-systems',
|
||||
'radiation',
|
||||
'electrical',
|
||||
'force',
|
||||
'light',
|
||||
'other',
|
||||
] as const;
|
||||
|
||||
export const calculators: CalculatorDef[] = [
|
||||
{"slug": "inches-to-feet", "name": "Inches to Feet", "category": "length", "type": "standard", "teaser": "If a shelf spans 36 inches, how many feet of trim does it cover?", "labels": {"in1": "Inches", "in2": "Feet"}, "factor": 12.0},
|
||||
{"slug": "kilograms-to-pounds", "name": "Kilograms to Pounds", "category": "weight", "type": "standard", "labels": {"in1": "Kilograms", "in2": "Pounds"}, "factor": 2.20462262},
|
||||
@@ -182,6 +159,26 @@ export const calculators: CalculatorDef[] = [
|
||||
{"slug": "tesla-to-ampere-turns-per-meter", "name": "Tesla to Ampere-turns per meter", "category": "length", "type": "3col", "teaser": "Translate flux density into magnetomotive force per meter when vacuum permeability is provided.", "labels": {"in1": "Tesla", "in2": "Ampere-turns per meter", "in3": "Result"}, "hidden": true},
|
||||
{"slug": "tesla-to-maxwell", "name": "Tesla to Maxwell", "category": "magnetism", "type": "3col", "teaser": "Convert tesla values into maxwell flux when area or length units are entered.", "labels": {"in1": "Tesla", "in2": "Maxwell", "in3": "Result"}},
|
||||
{"slug": "tesla-to-oersted", "name": "Tesla to Oersted", "category": "magnetism", "type": "3col", "teaser": "Rephrase teslas as oersteds by leveraging the vacuum field relationship.", "labels": {"in1": "Tesla", "in2": "Oersted", "in3": "Result"}},
|
||||
{"slug": "tesla-to-microtesla", "name": "Tesla to Microtesla", "category": "magnetism", "type": "standard", "teaser": "Scale Tesla fields down into microtesla for sensor-level data.", "labels": {"in1": "Tesla", "in2": "Microtesla"}, "factor": 1000000.0},
|
||||
{"slug": "microtesla-to-tesla", "name": "Microtesla to Tesla", "category": "magnetism", "type": "standard", "teaser": "Turn microtesla readings back into the Tesla base unit.", "labels": {"in1": "Microtesla", "in2": "Tesla"}, "factor": 1e-06, "hidden": true},
|
||||
{"slug": "tesla-to-nanotesla", "name": "Tesla to Nanotesla", "category": "magnetism", "type": "standard", "teaser": "Express Tesla fields in highly sensitive nanotesla units.", "labels": {"in1": "Tesla", "in2": "Nanotesla"}, "factor": 1000000000.0},
|
||||
{"slug": "nanotesla-to-tesla", "name": "Nanotesla to Tesla", "category": "magnetism", "type": "standard", "teaser": "Convert nanotesla back into Tesla-scale magnetism.", "labels": {"in1": "Nanotesla", "in2": "Tesla"}, "factor": 1e-09, "hidden": true},
|
||||
{"slug": "gauss-to-microtesla", "name": "Gauss to Microtesla", "category": "magnetism", "type": "standard", "teaser": "Translate magnetic flux from Gauss into microtesla for instrumentation.", "labels": {"in1": "Gauss", "in2": "Microtesla"}, "factor": 100.0},
|
||||
{"slug": "microtesla-to-gauss", "name": "Microtesla to Gauss", "category": "magnetism", "type": "standard", "teaser": "Bring microtesla data into Gauss when studying legacy equipment.", "labels": {"in1": "Microtesla", "in2": "Gauss"}, "factor": 0.01, "hidden": true},
|
||||
{"slug": "gauss-to-nanotesla", "name": "Gauss to Nanotesla", "category": "magnetism", "type": "standard", "teaser": "Convert Gauss values into high-resolution nanotesla.", "labels": {"in1": "Gauss", "in2": "Nanotesla"}, "factor": 100000.0},
|
||||
{"slug": "nanotesla-to-gauss", "name": "Nanotesla to Gauss", "category": "magnetism", "type": "standard", "teaser": "Return nanotesla measurements back into Gauss.", "labels": {"in1": "Nanotesla", "in2": "Gauss"}, "factor": 1e-05, "hidden": true},
|
||||
{"slug": "webers-per-square-meter-to-teslas", "name": "Webers per square meter to Teslas", "category": "magnetism", "type": "standard", "teaser": "A Weber per square meter is exactly one Tesla.", "labels": {"in1": "Webers per square meter", "in2": "Teslas"}, "hidden": true},
|
||||
{"slug": "teslas-to-webers-per-square-meter", "name": "Teslas to Webers per square meter", "category": "magnetism", "type": "standard", "teaser": "Each Tesla equals one Weber per square meter.", "labels": {"in1": "Teslas", "in2": "Webers per square meter"}},
|
||||
{"slug": "webers-per-square-centimeter-to-gauss", "name": "Webers per square centimeter to Gauss", "category": "magnetism", "type": "standard", "teaser": "Scale the small-area flux into Gauss.", "labels": {"in1": "Webers per square centimeter", "in2": "Gauss"}, "factor": 100000000.0},
|
||||
{"slug": "gauss-to-webers-per-square-centimeter", "name": "Gauss to Webers per square centimeter", "category": "magnetism", "type": "standard", "teaser": "Convert Gauss back into Weber per square centimeter.", "labels": {"in1": "Gauss", "in2": "Webers per square centimeter"}, "factor": 1e-08, "hidden": true},
|
||||
{"slug": "oersted-to-gauss", "name": "Oersted to Gauss", "category": "magnetism", "type": "standard", "teaser": "In vacuum, the numeric values for Oersted and Gauss match.", "labels": {"in1": "Oersted", "in2": "Gauss"}, "hidden": true},
|
||||
{"slug": "gauss-to-oersted", "name": "Gauss to Oersted", "category": "magnetism", "type": "standard", "teaser": "Translate the flux density version back into the magnetizing force scale.", "labels": {"in1": "Gauss", "in2": "Oersted"}},
|
||||
{"slug": "kilogauss-to-microtesla", "name": "Kilogauss to Microtesla", "category": "magnetism", "type": "standard", "teaser": "A kilogauss field equals 100,000 microtesla.", "labels": {"in1": "Kilogauss", "in2": "Microtesla"}, "factor": 100000.0},
|
||||
{"slug": "microtesla-to-kilogauss", "name": "Microtesla to Kilogauss", "category": "magnetism", "type": "standard", "teaser": "Convert microtesla readings into kilogauss.", "labels": {"in1": "Microtesla", "in2": "Kilogauss"}, "factor": 1e-05, "hidden": true},
|
||||
{"slug": "kilogauss-to-nanotesla", "name": "Kilogauss to Nanotesla", "category": "magnetism", "type": "standard", "teaser": "Express kilogauss values in nanotesla for sensitive instrumentation.", "labels": {"in1": "Kilogauss", "in2": "Nanotesla"}, "factor": 100000000.0},
|
||||
{"slug": "nanotesla-to-kilogauss", "name": "Nanotesla to Kilogauss", "category": "magnetism", "type": "standard", "teaser": "Turn nanotesla data into kilogauss for powerful magnets.", "labels": {"in1": "Nanotesla", "in2": "Kilogauss"}, "factor": 1e-08, "hidden": true},
|
||||
{"slug": "tesla-to-kilotesla", "name": "Tesla to Kilotesla", "category": "magnetism", "type": "standard", "teaser": "Measure extremely strong fields in kilotesla units.", "labels": {"in1": "Tesla", "in2": "Kilotesla"}, "factor": 0.001, "hidden": true},
|
||||
{"slug": "kilotesla-to-tesla", "name": "Kilotesla to Tesla", "category": "magnetism", "type": "standard", "teaser": "Return kilotesla numbers to the base Tesla scale.", "labels": {"in1": "Kilotesla", "in2": "Tesla"}, "factor": 1000.0},
|
||||
{"slug": "amps-to-milliamps", "name": "Amps to Milliamps", "category": "angle", "type": "standard", "teaser": "Translate amperes into milliamperes when tuning circuit currents.", "labels": {"in1": "Amps", "in2": "Milliamps"}, "factor": 1000.0},
|
||||
{"slug": "carats-to-grams", "name": "Carats to Grams", "category": "weight", "type": "standard", "labels": {"in1": "Carats", "in2": "Grams"}, "factor": 0.2, "hidden": true},
|
||||
{"slug": "celsius-to-fahrenheit", "name": "Celsius to Fahrenheit", "category": "temperature", "type": "standard", "labels": {"in1": "Celsius", "in2": "Fahrenheit"}, "factor": 1.8, "offset": 32.0},
|
||||
@@ -1034,6 +1031,26 @@ export const calculators: CalculatorDef[] = [
|
||||
{"slug": "furlongs-to-miles", "name": "Furlongs to Miles", "category": "length", "type": "standard", "teaser": "A course covers eight furlongs; how far is that in miles?", "labels": {"in1": "Furlongs", "in2": "Miles"}, "factor": 0.125, "hidden": true},
|
||||
{"slug": "gallons-per-minute-to-cubic-feet-per-second", "name": "Gallons per minute to CFS", "category": "fluids", "type": "standard", "teaser": "A pump pushes 200 gpm; what is that flow rate in cubic feet per second?", "labels": {"in1": "Gallons per minute", "in2": "CFS"}, "factor": 0.00222801},
|
||||
{"slug": "gallons-per-minute-to-liters-per-minute", "name": "Gallons per minute to Liters per minute", "category": "fluids", "type": "standard", "teaser": "A faucet flows at three gpm; what is that in liters per minute?", "labels": {"in1": "Gallons per minute", "in2": "Liters per minute"}, "factor": 3.78541},
|
||||
{"slug": "cubic-meters-per-hour-to-liters-per-minute", "name": "Cubic meters per hour to Liters per minute", "category": "fluids", "type": "standard", "teaser": "Convert plant-level m\u00b3/h readings into L/min for instrumentation.", "labels": {"in1": "Cubic meters per hour", "in2": "Liters per minute"}, "factor": 16.6666667},
|
||||
{"slug": "liters-per-minute-to-cubic-meters-per-hour", "name": "Liters per minute to Cubic meters per hour", "category": "fluids", "type": "standard", "teaser": "Return the metric flow rate to cubic meters per hour.", "labels": {"in1": "Liters per minute", "in2": "Cubic meters per hour"}, "factor": 0.06, "hidden": true},
|
||||
{"slug": "cubic-feet-per-minute-to-liters-per-minute", "name": "Cubic feet per minute to Liters per minute", "category": "fluids", "type": "standard", "teaser": "Convert air-volume flow into liters per minute for fans.", "labels": {"in1": "Cubic feet per minute", "in2": "Liters per minute"}, "factor": 28.3168},
|
||||
{"slug": "liters-per-minute-to-cubic-feet-per-minute", "name": "Liters per minute to Cubic feet per minute", "category": "fluids", "type": "standard", "teaser": "Translate liquid flow into cubic feet per minute when designing HVAC ducts.", "labels": {"in1": "Liters per minute", "in2": "Cubic feet per minute"}, "factor": 0.0353147, "hidden": true},
|
||||
{"slug": "cubic-feet-per-hour-to-gallons-per-minute", "name": "Cubic feet per hour to Gallons per minute", "category": "fluids", "type": "standard", "teaser": "Express a slow flow in gallons per minute from cubic feet per hour.", "labels": {"in1": "Cubic feet per hour", "in2": "Gallons per minute"}, "factor": 0.124675, "hidden": true},
|
||||
{"slug": "gallons-per-minute-to-cubic-feet-per-hour", "name": "Gallons per minute to Cubic feet per hour", "category": "fluids", "type": "standard", "teaser": "Turn pump output into cubic feet per hour for reservoir sizing.", "labels": {"in1": "Gallons per minute", "in2": "Cubic feet per hour"}, "factor": 8.02082},
|
||||
{"slug": "barrels-per-day-to-gallons-per-minute", "name": "Barrels per day to Gallons per minute", "category": "fluids", "type": "standard", "teaser": "Convert coarse barrels per day totals into a minute-level gallon flow.", "labels": {"in1": "Barrels per day", "in2": "Gallons per minute"}, "factor": 0.0291667, "hidden": true},
|
||||
{"slug": "gallons-per-minute-to-barrels-per-day", "name": "Gallons per minute to Barrels per day", "category": "fluids", "type": "standard", "teaser": "Translate gpm values into the oil-industry barrels-per-day metric.", "labels": {"in1": "Gallons per minute", "in2": "Barrels per day"}, "factor": 34.2857143},
|
||||
{"slug": "liters-per-second-to-cubic-meters-per-hour", "name": "Liters per second to Cubic meters per hour", "category": "fluids", "type": "standard", "teaser": "Expand L/s flows into m\u00b3/h for engineering summaries.", "labels": {"in1": "Liters per second", "in2": "Cubic meters per hour"}, "factor": 3.6},
|
||||
{"slug": "cubic-meters-per-hour-to-liters-per-second", "name": "Cubic meters per hour to Liters per second", "category": "fluids", "type": "standard", "teaser": "Reduce m\u00b3/h values down to L/s for laboratory calibration.", "labels": {"in1": "Cubic meters per hour", "in2": "Liters per second"}, "factor": 0.2777778, "hidden": true},
|
||||
{"slug": "liters-per-second-to-gallons-per-hour", "name": "Liters per second to Gallons per hour", "category": "fluids", "type": "standard", "teaser": "Convert a steady L/s flow into US gallons per hour.", "labels": {"in1": "Liters per second", "in2": "Gallons per hour"}, "factor": 951.01938},
|
||||
{"slug": "gallons-per-hour-to-liters-per-second", "name": "Gallons per hour to Liters per second", "category": "fluids", "type": "standard", "teaser": "Bring gallon-hour figures into liters per second.", "labels": {"in1": "Gallons per hour", "in2": "Liters per second"}, "factor": 0.001051503, "hidden": true},
|
||||
{"slug": "cubic-meters-per-minute-to-gallons-per-minute", "name": "Cubic meters per minute to Gallons per minute", "category": "fluids", "type": "standard", "teaser": "Translate large metric flow into US gallons per minute.", "labels": {"in1": "Cubic meters per minute", "in2": "Gallons per minute"}, "factor": 264.172052},
|
||||
{"slug": "gallons-per-minute-to-cubic-meters-per-minute", "name": "Gallons per minute to Cubic meters per minute", "category": "fluids", "type": "standard", "teaser": "Return gallons to cubic meters per minute for industrial pumps.", "labels": {"in1": "Gallons per minute", "in2": "Cubic meters per minute"}, "factor": 0.00378541, "hidden": true},
|
||||
{"slug": "cubic-meters-per-minute-to-cubic-feet-per-minute", "name": "Cubic meters per minute to Cubic feet per minute", "category": "fluids", "type": "standard", "teaser": "Turn metric volume per minute into the imperial cubic feet per minute unit.", "labels": {"in1": "Cubic meters per minute", "in2": "Cubic feet per minute"}, "factor": 35.3147},
|
||||
{"slug": "cubic-feet-per-minute-to-cubic-meters-per-minute", "name": "Cubic feet per minute to Cubic meters per minute", "category": "fluids", "type": "standard", "teaser": "Convert CFD data into cubic meters per minute for process controls.", "labels": {"in1": "Cubic feet per minute", "in2": "Cubic meters per minute"}, "factor": 0.0283168, "hidden": true},
|
||||
{"slug": "liters-per-minute-to-cubic-meters-per-minute", "name": "Liters per minute to Cubic meters per minute", "category": "fluids", "type": "standard", "teaser": "Reduce liters per minute into cubic meters per minute for SI reporting.", "labels": {"in1": "Liters per minute", "in2": "Cubic meters per minute"}, "factor": 0.001, "hidden": true},
|
||||
{"slug": "cubic-meters-per-minute-to-liters-per-minute", "name": "Cubic meters per minute to Liters per minute", "category": "fluids", "type": "standard", "teaser": "Expand a cubic meter per minute flow into liters per minute.", "labels": {"in1": "Cubic meters per minute", "in2": "Liters per minute"}, "factor": 1000.0},
|
||||
{"slug": "cubic-inches-per-minute-to-liters-per-minute", "name": "Cubic inches per minute to Liters per minute", "category": "fluids", "type": "standard", "teaser": "Convert small flow rates into metric liters for chemistry.", "labels": {"in1": "Cubic inches per minute", "in2": "Liters per minute"}, "factor": 0.016387064, "hidden": true},
|
||||
{"slug": "liters-per-minute-to-cubic-inches-per-minute", "name": "Liters per minute to Cubic inches per minute", "category": "fluids", "type": "standard", "teaser": "Express liters per minute in cubic inches per minute.", "labels": {"in1": "Liters per minute", "in2": "Cubic inches per minute"}, "factor": 61.0237441},
|
||||
{"slug": "gallons-to-barrel-us-oil", "name": "Gallons to Barrel (US oil)", "category": "volume", "type": "standard", "teaser": "A tanker carries 840 gallons; how many US oil barrels is that?", "labels": {"in1": "Gallons", "in2": "Barrel (US oil)"}, "factor": 0.0238095238},
|
||||
{"slug": "gallons-to-cubic-feet", "name": "Gallons to Cubic Feet", "category": "length", "type": "standard", "teaser": "A tank holds fifty gallons; how many cubic feet does that represent?", "labels": {"in1": "Gallons", "in2": "Cubic Feet"}, "factor": 0.133681, "hidden": true},
|
||||
{"slug": "gallons-to-cubic-meters", "name": "Gallons to Cubic Meters", "category": "length", "type": "standard", "teaser": "A reservoir stores 1,200 gallons; what is the cubic meter value?", "labels": {"in1": "Gallons", "in2": "Cubic Meters"}, "factor": 0.00378541},
|
||||
@@ -1342,14 +1359,11 @@ export function getCalculatorsByCategory(category: string): CalculatorDef[] {
|
||||
}
|
||||
|
||||
export function getCategoriesWithCounts(): { key: string; label: string; icon: string; count: number }[] {
|
||||
return categoryOrder
|
||||
.map(key => {
|
||||
const meta = categories[key];
|
||||
if (!meta) return null;
|
||||
const count = calculators.filter(c => c.category === key && !c.hidden).length;
|
||||
return { key, ...meta, count };
|
||||
})
|
||||
.filter(Boolean) as { key: string; label: string; icon: string; count: number }[];
|
||||
return Object.entries(categories).map(([key, meta]) => ({
|
||||
key,
|
||||
...meta,
|
||||
count: calculators.filter(c => c.category === key && !c.hidden).length,
|
||||
}));
|
||||
}
|
||||
|
||||
export function searchCalculators(query: string): CalculatorDef[] {
|
||||
|
||||
Reference in New Issue
Block a user