Add redirect for legacy calculator paths

This commit is contained in:
Codex
2026-03-07 11:31:34 +00:00
parent 8d88fef0ce
commit d8f7b73e3d
3 changed files with 132 additions and 6 deletions

View File

@@ -44,9 +44,9 @@ export const calculators: CalculatorDef[] = [
{"slug": "acres-to-hectares", "name": "Acres to Hectares", "category": "area", "type": "standard", "teaser": "A 50-acre farm prompts the question: how many hectares does it include?", "labels": {"in1": "Acres", "in2": "Hectares"}, "factor": 0.404686},
{"slug": "acres-to-square-feet", "name": "Acres to Square Feet", "category": "length", "type": "standard", "teaser": "For the listing, convert 2 acres into square feet to describe the lot size.", "labels": {"in1": "Acres", "in2": "Square Feet"}, "factor": 43560.0},
{"slug": "acre-feet-to-liters", "name": "Acre-feet to Liters", "category": "length", "type": "standard", "teaser": "A lake holds 1 acre-foot; how many liters of water is that?", "labels": {"in1": "Acre-feet", "in2": "Liters"}, "factor": 1233481.8375476},
{"slug": "acres-to-square-kilometers", "name": "Acres to Square Kilometers", "category": "length", "type": "standard", "teaser": "How many square kilometers cover one acre?", "labels": {"in1": "Acres", "in2": "Square Kilometers"}, "factor": 0.0040468564224},
{"slug": "acres-to-square-kilometers", "name": "Acres to Square Kilometers", "category": "length", "type": "standard", "teaser": "How many square kilometers cover one acre?", "labels": {"in1": "Acres", "in2": "Square Kilometers"}, "factor": 0.0040468564224, "hidden": true},
{"slug": "acres-to-square-meters", "name": "Acres to Square Meters", "category": "length", "type": "standard", "teaser": "Convert a single acre into square meters.", "labels": {"in1": "Acres", "in2": "Square Meters"}, "factor": 4046.8564224},
{"slug": "acres-to-square-miles", "name": "Acres to Square Miles", "category": "length", "type": "standard", "teaser": "See how many square miles equal one acre.", "labels": {"in1": "Acres", "in2": "Square Miles"}, "factor": 0.0015625},
{"slug": "acres-to-square-miles", "name": "Acres to Square Miles", "category": "length", "type": "standard", "teaser": "See how many square miles equal one acre.", "labels": {"in1": "Acres", "in2": "Square Miles"}, "factor": 0.0015625, "hidden": true},
{"slug": "acres-to-square-yards", "name": "Acres to Square Yards", "category": "length", "type": "standard", "teaser": "Turn acre measurements into square yards.", "labels": {"in1": "Acres", "in2": "Square Yards"}, "factor": 4840.0},
{"slug": "angstroms-to-nanometers", "name": "Angstroms to Nanometers", "category": "length", "type": "standard", "teaser": "A materials scientist changes 25 angstroms into nanometers to describe a film thickness.", "labels": {"in1": "Angstroms", "in2": "Nanometers"}, "factor": 0.1, "hidden": true},
{"slug": "apothecary-ounces-to-grams", "name": "Apothecary Ounces to Grams", "category": "weight", "type": "standard", "teaser": "Preparing a tincture, how many grams are packed in 8 apothecary ounces?", "labels": {"in1": "Apothecary Ounces", "in2": "Grams"}, "factor": 31.1034768},
@@ -74,6 +74,7 @@ export const calculators: CalculatorDef[] = [
{"slug": "pascal-to-torr", "name": "Pascal to Torr", "category": "pressure", "type": "standard", "teaser": "Convert pascals into torr for vacuum work.", "labels": {"in1": "Pascal", "in2": "Torr"}, "factor": 0.00750062, "hidden": true},
{"slug": "pascal-seconds-to-centipoise", "name": "Pascal-seconds to Centipoise", "category": "pressure", "type": "standard", "teaser": "Convert Pascal-second viscosity into centipoise.", "labels": {"in1": "Pascal-seconds", "in2": "Centipoise"}, "factor": 1000.0},
{"slug": "poise-to-pascal-seconds", "name": "Poise to Pascal-seconds", "category": "pressure", "type": "standard", "teaser": "Express CGS poise viscosity in Pascal-seconds.", "labels": {"in1": "Poise", "in2": "Pascal-seconds"}, "factor": 0.1},
{"slug": "stokes-to-centistokes", "name": "Stokes to Centistokes", "category": "other", "type": "standard", "teaser": "Convert stokes into centistokes for viscosity scales.", "labels": {"in1": "Stokes", "in2": "Centistokes"}, "factor": 100.0},
{"slug": "becquerel-to-curie", "name": "Becquerel to Curie", "category": "radiation", "type": "standard", "labels": {"in1": "Becquerel", "in2": "Curie"}, "factor": 2.7027027e-11, "hidden": true},
{"slug": "becquerel-to-rutherford", "name": "Becquerel to Rutherford", "category": "radiation", "type": "standard", "labels": {"in1": "Becquerel", "in2": "Rutherford"}, "factor": 1e-06, "hidden": true},
{"slug": "bits-to-bytes", "name": "Bits to Bytes", "category": "data", "type": "standard", "labels": {"in1": "Bits", "in2": "Bytes"}, "factor": 0.1},
@@ -103,6 +104,9 @@ export const calculators: CalculatorDef[] = [
{"slug": "amps-to-kva", "name": "Amps to kVA", "category": "electrical", "type": "3col", "labels": {"in1": "Amps", "in2": "kVA", "in3": "Result"}},
{"slug": "ampere-turns-per-meter-to-oersted", "name": "Ampere-turns per meter to Oersted", "category": "length", "type": "standard", "teaser": "Convert magnetomotive force per meter into oersted units.", "labels": {"in1": "Ampere-turns per meter", "in2": "Oersted"}, "factor": 0.0125663706143592, "hidden": true},
{"slug": "oersted-to-ampere-turns-per-meter", "name": "Oersted to Ampere-turns per meter", "category": "length", "type": "standard", "teaser": "Flip the CGS oersted field scale back into ampere-turns per meter.", "labels": {"in1": "Oersted", "in2": "Ampere-turns per meter"}, "factor": 79.57747154594767},
{"slug": "tesla-to-gauss", "name": "Tesla to Gauss", "category": "other", "type": "standard", "teaser": "Express teslas as gauss for high-field comparisons.", "labels": {"in1": "Tesla", "in2": "Gauss"}, "factor": 10000.0},
{"slug": "tesla-to-milligauss", "name": "Tesla to Milligauss", "category": "other", "type": "standard", "teaser": "Convert teslas down into milligauss units.", "labels": {"in1": "Tesla", "in2": "Milligauss"}, "factor": 10000000.0},
{"slug": "tesla-to-millitesla", "name": "Tesla to Millitesla", "category": "other", "type": "standard", "teaser": "Translate teslas into milliteslas for electronics.", "labels": {"in1": "Tesla", "in2": "Millitesla"}, "factor": 1000.0},
{"slug": "amps-to-milliamps", "name": "Amps to Milliamps", "category": "electrical", "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},
@@ -330,11 +334,17 @@ export const calculators: CalculatorDef[] = [
{"slug": "torr-to-pascal", "name": "Torr to Pascal", "category": "pressure", "type": "standard", "labels": {"in1": "Torr", "in2": "Pascal"}, "factor": 133.322},
{"slug": "tons-to-pounds", "name": "Tons to pounds", "category": "weight", "type": "standard", "labels": {"in1": "Tons", "in2": "pounds"}, "factor": 2000.0},
{"slug": "tons-of-refrigeration-to-kilowatts", "name": "Tons of refrigeration to kilowatts", "category": "weight", "type": "standard", "labels": {"in1": "Tons of refrigeration", "in2": "kilowatts"}, "factor": 3.51685},
{"slug": "ton-of-tnt-to-joules", "name": "Ton of TNT to Joules", "category": "weight", "type": "standard", "teaser": "Convert a ton of TNT into joules for ordnance calculations.", "labels": {"in1": "Ton of TNT", "in2": "Joules"}, "factor": 4184000000.0},
{"slug": "tons-of-refrigeration-to-btu-hour", "name": "Tons of Refrigeration to BTU/hour", "category": "weight", "type": "standard", "teaser": "Turn refrigeration tons into BTU per hour ratings.", "labels": {"in1": "Tons of Refrigeration", "in2": "BTU/hour"}, "factor": 12000.0},
{"slug": "tons-of-refrigeration-to-horsepower", "name": "Tons of Refrigeration to Horsepower", "category": "weight", "type": "standard", "teaser": "Express refrigeration tons as horsepower.", "labels": {"in1": "Tons of Refrigeration", "in2": "Horsepower"}, "factor": 3.5168525},
{"slug": "terabytes-to-petabytes", "name": "Terabytes to petabytes", "category": "data", "type": "standard", "labels": {"in1": "Terabytes", "in2": "petabytes"}, "factor": 0.001},
{"slug": "terabytes-to-gigabytes", "name": "Terabytes to gigabytes", "category": "data", "type": "standard", "labels": {"in1": "Terabytes", "in2": "gigabytes"}, "factor": 1000.0},
{"slug": "teaspoons-to-milliliters", "name": "Teaspoons to milliliters", "category": "volume", "type": "standard", "labels": {"in1": "Teaspoons", "in2": "milliliters"}, "factor": 4.92892},
{"slug": "tablespoons-to-milliliters", "name": "Tablespoons to milliliters", "category": "volume", "type": "standard", "labels": {"in1": "Tablespoons", "in2": "milliliters"}, "factor": 14.78676},
{"slug": "sticks-of-butter-to-cups", "name": "Sticks of Butter to Cups", "category": "volume", "type": "standard", "teaser": "Convert sticks of butter into cups for baking.", "labels": {"in1": "Sticks of Butter", "in2": "Cups"}, "factor": 0.5},
{"slug": "sticks-of-butter-to-tablespoons", "name": "Sticks of Butter to Tablespoons", "category": "volume", "type": "standard", "teaser": "Translate butter sticks into tablespoons.", "labels": {"in1": "Sticks of Butter", "in2": "Tablespoons"}, "factor": 8.0},
{"slug": "stones-to-pounds", "name": "Stones to pounds", "category": "weight", "type": "standard", "labels": {"in1": "Stones", "in2": "pounds"}, "factor": 14.0},
{"slug": "stones-to-kilograms", "name": "Stones to Kilograms", "category": "weight", "type": "standard", "teaser": "Convert stones into kilograms for weight discussions.", "labels": {"in1": "Stones", "in2": "Kilograms"}, "factor": 6.35029318},
{"slug": "square-yards-to-square-miles", "name": "Square yards to square miles", "category": "length", "type": "standard", "labels": {"in1": "Square yards", "in2": "square miles"}, "factor": 3.228e-07, "hidden": true},
{"slug": "square-miles-to-square-yards", "name": "Square miles to square yards", "category": "length", "type": "standard", "labels": {"in1": "Square miles", "in2": "square yards"}, "factor": 3097600.0},
{"slug": "square-meters-to-square-kilometers", "name": "Square meters to square kilometers", "category": "length", "type": "standard", "labels": {"in1": "Square meters", "in2": "square kilometers"}, "factor": 1e-06, "hidden": true},
@@ -344,6 +354,29 @@ export const calculators: CalculatorDef[] = [
{"slug": "square-feet-to-square-meters", "name": "Square feet to square meters", "category": "length", "type": "standard", "labels": {"in1": "Square feet", "in2": "square meters"}, "factor": 0.092903, "hidden": true},
{"slug": "square-feet-to-acres", "name": "Square feet to acres", "category": "length", "type": "standard", "labels": {"in1": "Square feet", "in2": "acres"}, "factor": 2.295e-05, "hidden": true},
{"slug": "square-centimeters-to-square-inches", "name": "Square centimeters to square inches", "category": "length", "type": "standard", "labels": {"in1": "Square centimeters", "in2": "square inches"}, "factor": 0.155, "hidden": true},
{"slug": "square-centimeters-to-square-meters", "name": "Square Centimeters to Square Meters", "category": "length", "type": "standard", "teaser": "Turn tiny square-centimeter patches into square meters.", "labels": {"in1": "Square Centimeters", "in2": "Square Meters"}, "factor": 0.0001, "hidden": true},
{"slug": "square-feet-to-square-inches", "name": "Square Feet to Square Inches", "category": "length", "type": "standard", "teaser": "Break square feet into square inches when detailing layouts.", "labels": {"in1": "Square Feet", "in2": "Square Inches"}, "factor": 144.0},
{"slug": "square-feet-to-square-yards", "name": "Square Feet to Square Yards", "category": "length", "type": "standard", "teaser": "Describe a backyard in square yards instead of square feet.", "labels": {"in1": "Square Feet", "in2": "Square Yards"}, "factor": 0.1111111111, "hidden": true},
{"slug": "square-inches-to-square-feet", "name": "Square Inches to Square Feet", "category": "length", "type": "standard", "teaser": "Turn square inches into square feet for tile planning.", "labels": {"in1": "Square Inches", "in2": "Square Feet"}, "factor": 0.006944444444444444, "hidden": true},
{"slug": "square-kilometers-to-acres", "name": "Square Kilometers to Acres", "category": "length", "type": "standard", "teaser": "Convert square kilometers into acres for acreage reports.", "labels": {"in1": "Square Kilometers", "in2": "Acres"}, "factor": 247.105381},
{"slug": "square-kilometers-to-hectares", "name": "Square Kilometers to Hectares", "category": "length", "type": "standard", "teaser": "Switch between square kilometers and hectares.", "labels": {"in1": "Square Kilometers", "in2": "Hectares"}, "factor": 100.0},
{"slug": "square-kilometers-to-square-miles", "name": "Square Kilometers to Square Miles", "category": "length", "type": "standard", "teaser": "Compare square kilometers with square miles.", "labels": {"in1": "Square Kilometers", "in2": "Square Miles"}, "factor": 0.386102159, "hidden": true},
{"slug": "square-meters-to-acres", "name": "Square Meters to Acres", "category": "length", "type": "standard", "teaser": "Translate square meters into acres for large parcels.", "labels": {"in1": "Square Meters", "in2": "Acres"}, "factor": 0.000247105381, "hidden": true},
{"slug": "square-meters-to-ares", "name": "Square Meters to Ares", "category": "length", "type": "standard", "teaser": "Convert square meters into ares when talking metric land units.", "labels": {"in1": "Square Meters", "in2": "Ares"}, "factor": 0.01},
{"slug": "square-meters-to-barns", "name": "Square Meters to Barns", "category": "length", "type": "standard", "teaser": "Express square meters as barns for particle physics scales.", "labels": {"in1": "Square Meters", "in2": "Barns"}, "factor": 1e+28},
{"slug": "square-meters-to-hectares", "name": "Square Meters to Hectares", "category": "length", "type": "standard", "teaser": "Turn square meters into hectares on property summaries.", "labels": {"in1": "Square Meters", "in2": "Hectares"}, "factor": 0.0001, "hidden": true},
{"slug": "square-meters-to-square-centimeters", "name": "Square Meters to Square Centimeters", "category": "length", "type": "standard", "teaser": "Break square meters into square centimeters for precision.", "labels": {"in1": "Square Meters", "in2": "Square Centimeters"}, "factor": 10000.0},
{"slug": "square-meters-to-square-yards", "name": "Square Meters to Square Yards", "category": "length", "type": "standard", "teaser": "Translate square meters into square yards.", "labels": {"in1": "Square Meters", "in2": "Square Yards"}, "factor": 1.1959900463},
{"slug": "square-miles-to-acres", "name": "Square Miles to Acres", "category": "length", "type": "standard", "teaser": "Convert square miles into acres for field maps.", "labels": {"in1": "Square Miles", "in2": "Acres"}, "factor": 640.0},
{"slug": "square-miles-to-square-feet", "name": "Square Miles to Square Feet", "category": "length", "type": "standard", "teaser": "Expand square miles into square feet for big-picture math.", "labels": {"in1": "Square Miles", "in2": "Square Feet"}, "factor": 27878400.0},
{"slug": "square-miles-to-square-kilometers", "name": "Square Miles to Square Kilometers", "category": "length", "type": "standard", "teaser": "Compare square miles with square kilometers.", "labels": {"in1": "Square Miles", "in2": "Square Kilometers"}, "factor": 2.58998811},
{"slug": "square-miles-to-square-meters", "name": "Square Miles to Square Meters", "category": "length", "type": "standard", "teaser": "Show square miles in square meters.", "labels": {"in1": "Square Miles", "in2": "Square Meters"}, "factor": 2589988.110336},
{"slug": "square-mils-to-circular-mils", "name": "Square Mils to Circular Mils", "category": "area", "type": "standard", "teaser": "Convert square mils into circular mils for wire specs.", "labels": {"in1": "Square Mils", "in2": "Circular Mils"}, "factor": 1.273239544735163},
{"slug": "square-yards-to-acres", "name": "Square Yards to Acres", "category": "length", "type": "standard", "teaser": "Turn square yards into acres when sizing plots.", "labels": {"in1": "Square Yards", "in2": "Acres"}, "factor": 0.00020661157024793388, "hidden": true},
{"slug": "square-yards-to-square-feet", "name": "Square Yards to Square Feet", "category": "length", "type": "standard", "teaser": "Convert square yards into square feet.", "labels": {"in1": "Square Yards", "in2": "Square Feet"}, "factor": 9.0},
{"slug": "square-yards-to-square-inches", "name": "Square Yards to Square Inches", "category": "length", "type": "standard", "teaser": "Convert square yards into square inches.", "labels": {"in1": "Square Yards", "in2": "Square Inches"}, "factor": 1296.0},
{"slug": "square-yards-to-square-meters", "name": "Square Yards to Square Meters", "category": "length", "type": "standard", "teaser": "Convert square yards into square meters.", "labels": {"in1": "Square Yards", "in2": "Square Meters"}, "factor": 0.83612736, "hidden": true},
{"slug": "townships-to-square-miles", "name": "Townships to Square Miles", "category": "length", "type": "standard", "teaser": "Translate a township into square miles (36 square miles).", "labels": {"in1": "Townships", "in2": "Square Miles"}, "factor": 36.0},
{"slug": "slugs-to-kilograms", "name": "Slugs to kilograms", "category": "weight", "type": "standard", "labels": {"in1": "Slugs", "in2": "kilograms"}, "factor": 14.5939},
{"slug": "sievert-to-rem", "name": "Sievert to rem", "category": "radiation", "type": "standard", "labels": {"in1": "Sievert", "in2": "rem"}, "factor": 100.0},
{"slug": "seconds-to-minutes", "name": "Seconds to minutes", "category": "time", "type": "standard", "labels": {"in1": "Seconds", "in2": "minutes"}, "factor": 0.016667, "hidden": true},
@@ -364,6 +397,11 @@ export const calculators: CalculatorDef[] = [
{"slug": "psi-to-pascal", "name": "PSI to Pascals", "category": "pressure", "type": "standard", "teaser": "Convert PSI into pascals for SI clarity.", "labels": {"in1": "PSI", "in2": "Pascals"}, "factor": 6894.76},
{"slug": "psi-to-mmhg", "name": "PSI to mmHg", "category": "pressure", "type": "standard", "teaser": "Express PSI in millimeters of mercury.", "labels": {"in1": "PSI", "in2": "mmHg"}, "factor": 51.7149},
{"slug": "psi-to-torr", "name": "PSI to Torr", "category": "pressure", "type": "standard", "teaser": "Express PSI in torr for vacuum work.", "labels": {"in1": "PSI", "in2": "Torr"}, "factor": 51.7149},
{"slug": "torr-to-atmosphere", "name": "Torr to Atmosphere", "category": "pressure", "type": "standard", "teaser": "Convert torr into atmospheres.", "labels": {"in1": "Torr", "in2": "Atmosphere"}, "factor": 0.0013157894736842105, "hidden": true},
{"slug": "torr-to-bar", "name": "Torr to Bar", "category": "pressure", "type": "standard", "teaser": "Express torr as bars.", "labels": {"in1": "Torr", "in2": "Bar"}, "factor": 0.00133322368421},
{"slug": "torr-to-cmhg", "name": "Torr to cmHg", "category": "pressure", "type": "standard", "teaser": "Convert torr into centimeters of mercury.", "labels": {"in1": "Torr", "in2": "cmHg"}, "factor": 0.1},
{"slug": "torr-to-kpa", "name": "Torr to kPa", "category": "pressure", "type": "standard", "teaser": "Convert torr into kilopascals.", "labels": {"in1": "Torr", "in2": "kPa"}, "factor": 0.13332236842105263},
{"slug": "torr-to-psi", "name": "Torr to PSI", "category": "pressure", "type": "standard", "teaser": "Convert torr into pounds per square inch.", "labels": {"in1": "Torr", "in2": "PSI"}, "factor": 0.019336776, "hidden": true},
{"slug": "ppi-to-dpi", "name": "PPI to DPI", "category": "other", "type": "standard", "labels": {"in1": "PPI", "in2": "DPI"}},
{"slug": "pounds-to-tons", "name": "Pounds to tons", "category": "weight", "type": "standard", "labels": {"in1": "Pounds", "in2": "tons"}, "factor": 0.0005, "hidden": true},
{"slug": "pounds-to-stones", "name": "Pounds to stones", "category": "weight", "type": "standard", "labels": {"in1": "Pounds", "in2": "stones"}, "factor": 0.071428, "hidden": true},
@@ -403,13 +441,14 @@ export const calculators: CalculatorDef[] = [
{"slug": "metric-tons-to-long-tons", "name": "Metric tons to long tons", "category": "weight", "type": "standard", "labels": {"in1": "Metric tons", "in2": "long tons"}, "factor": 0.9842},
{"slug": "lumens-to-candela", "name": "Lumens to candela", "category": "light", "type": "standard", "labels": {"in1": "Lumens", "in2": "candela"}, "factor": 0.079577, "hidden": true},
{"slug": "gsm-to-ounces-per-sq-yard", "name": "GSM to Ounces per sq yard", "category": "length", "type": "standard", "teaser": "Convert GSM to Ounces per sq yard instantly.", "labels": {"in1": "GSM", "in2": "Ounces per sq yard"}, "factor": 0.02952, "hidden": true},
{"slug": "tex-to-denier", "name": "Tex to Denier", "category": "other", "type": "standard", "teaser": "Convert tex into denier for yarn weights.", "labels": {"in1": "Tex", "in2": "Denier"}, "factor": 9.0},
{"slug": "ounces-per-sq-yard-to-gsm", "name": "Ounces per sq yard to GSM", "category": "length", "type": "standard", "teaser": "Convert fabric weight from ounces per square yard into grams per square meter.", "labels": {"in1": "Ounces per sq yard", "in2": "GSM"}, "factor": 33.906074},
{"slug": "hands-to-centimeters", "name": "Hands to Centimeters", "category": "length", "type": "standard", "teaser": "Convert Hands to Centimeters instantly.", "labels": {"in1": "Hands", "in2": "Centimeters"}, "factor": 10.16},
{"slug": "hands-to-inches", "name": "Hands to Inches", "category": "length", "type": "standard", "teaser": "Convert Hands to Inches instantly.", "labels": {"in1": "Hands", "in2": "Inches"}, "factor": 4.0},
{"slug": "hartree-to-electron-volts", "name": "Hartree to Electron-volts", "category": "energy", "type": "standard", "teaser": "Convert Hartree to Electron-volts instantly.", "labels": {"in1": "Hartree", "in2": "Electron-volts"}, "factor": 27.2114},
{"slug": "hectares-to-ares", "name": "Hectares to Ares", "category": "area", "type": "standard", "teaser": "Convert Hectares to Ares instantly.", "labels": {"in1": "Hectares", "in2": "Ares"}, "factor": 100.0},
{"slug": "hectares-to-square-feet", "name": "Hectares to Square Feet", "category": "length", "type": "standard", "teaser": "Convert Hectares to Square Feet instantly.", "labels": {"in1": "Hectares", "in2": "Square Feet"}, "factor": 107639.0},
{"slug": "hectares-to-square-kilometers", "name": "Hectares to Square Kilometers", "category": "length", "type": "standard", "teaser": "Convert Hectares to Square Kilometers instantly.", "labels": {"in1": "Hectares", "in2": "Square Kilometers"}, "factor": 0.01},
{"slug": "hectares-to-square-kilometers", "name": "Hectares to Square Kilometers", "category": "length", "type": "standard", "teaser": "Convert Hectares to Square Kilometers instantly.", "labels": {"in1": "Hectares", "in2": "Square Kilometers"}, "factor": 0.01, "hidden": true},
{"slug": "hectares-to-square-meters", "name": "Hectares to Square Meters", "category": "length", "type": "standard", "teaser": "Convert Hectares to Square Meters instantly.", "labels": {"in1": "Hectares", "in2": "Square Meters"}, "factor": 10000.0},
{"slug": "hectopascals-to-atmosphere", "name": "Hectopascals to Atmosphere", "category": "pressure", "type": "standard", "teaser": "Convert Hectopascals to Atmosphere instantly.", "labels": {"in1": "Hectopascals", "in2": "Atmosphere"}, "factor": 0.000986923},
{"slug": "hectopascals-to-bar", "name": "Hectopascals to Bar", "category": "pressure", "type": "standard", "teaser": "Convert Hectopascals to Bar instantly.", "labels": {"in1": "Hectopascals", "in2": "Bar"}, "factor": 0.001},
@@ -422,7 +461,7 @@ export const calculators: CalculatorDef[] = [
{"slug": "hex-to-octal", "name": "Hex to Octal", "category": "number-systems", "type": "base", "teaser": "Convert Hex to Octal instantly.", "labels": {"in1": "Hex", "in2": "Octal"}, "fromBase": 16, "toBase": 8},
{"slug": "hogshead-to-liters", "name": "Hogshead to Liters", "category": "volume", "type": "standard", "teaser": "Convert Hogshead (US) to Liters instantly.", "labels": {"in1": "Hogshead", "in2": "Liters"}, "factor": 238.481},
{"slug": "horsepower-to-btuhour", "name": "Horsepower to BTU/hour", "category": "energy", "type": "standard", "teaser": "Convert Horsepower to BTU/hour instantly.", "labels": {"in1": "Horsepower", "in2": "BTU/hour"}, "factor": 2544.43},
{"slug": "horsepower-to-tons-of-refrigeration", "name": "Horsepower to Tons of Refrigeration", "category": "weight", "type": "standard", "teaser": "Convert Horsepower to Tons of Refrigeration instantly.", "labels": {"in1": "Horsepower", "in2": "Tons of Refrigeration"}, "factor": 0.284345},
{"slug": "horsepower-to-tons-of-refrigeration", "name": "Horsepower to Tons of Refrigeration", "category": "weight", "type": "standard", "teaser": "Convert Horsepower to Tons of Refrigeration instantly.", "labels": {"in1": "Horsepower", "in2": "Tons of Refrigeration"}, "factor": 0.284345, "hidden": true},
{"slug": "horsepower-to-watts", "name": "Horsepower to Watts", "category": "power", "type": "standard", "teaser": "Convert Horsepower to Watts instantly.", "labels": {"in1": "Horsepower", "in2": "Watts"}, "factor": 745.7},
{"slug": "hours-to-seconds", "name": "Hours to Seconds", "category": "time", "type": "standard", "teaser": "Convert Hours to Seconds instantly.", "labels": {"in1": "Hours", "in2": "Seconds"}, "factor": 3600.0},
{"slug": "hours-to-weeks", "name": "Hours to Weeks", "category": "time", "type": "standard", "teaser": "Convert Hours to Weeks instantly.", "labels": {"in1": "Hours", "in2": "Weeks"}, "factor": 0.00595238},
@@ -430,6 +469,7 @@ export const calculators: CalculatorDef[] = [
{"slug": "imperial-fl-oz-to-us-fl-oz", "name": "Imperial fl oz to US fl oz", "category": "other", "type": "standard", "teaser": "Convert Imperial fl oz to US fl oz instantly.", "labels": {"in1": "Imperial fl oz", "in2": "US fl oz"}, "factor": 1.20095},
{"slug": "imperial-gallons-to-liters", "name": "Imperial gallons to Liters", "category": "volume", "type": "standard", "teaser": "Convert Imperial gallons to Liters instantly.", "labels": {"in1": "Imperial gallons", "in2": "Liters"}, "factor": 4.54609},
{"slug": "imperial-gallons-to-us-gallons", "name": "Imperial gallons to US gallons", "category": "volume", "type": "standard", "teaser": "Convert Imperial gallons to US gallons instantly.", "labels": {"in1": "Imperial gallons", "in2": "US gallons"}, "factor": 1.20095},
{"slug": "us-gallons-to-imperial-gallons", "name": "US gallons to Imperial gallons", "category": "volume", "type": "standard", "teaser": "Flip US gallons into Imperial gallons for volume swaps.", "labels": {"in1": "US gallons", "in2": "Imperial gallons"}, "factor": 0.832674, "hidden": true},
{"slug": "imperial-pints-to-us-pints", "name": "Imperial pints to US pints", "category": "volume", "type": "standard", "teaser": "Convert Imperial pints to US pints instantly.", "labels": {"in1": "Imperial pints", "in2": "US pints"}, "factor": 1.20095},
{"slug": "inch-pounds-to-foot-pounds", "name": "Inch-Pounds to Foot-Pounds", "category": "force", "type": "standard", "teaser": "Convert Inch-Pounds to Foot-Pounds instantly.", "labels": {"in1": "Inch-Pounds", "in2": "Foot-Pounds"}, "factor": 0.0833333, "hidden": true},
{"slug": "inch-pounds-to-newton-meters", "name": "Inch-Pounds to Newton-Meters", "category": "force", "type": "standard", "teaser": "Convert Inch-Pounds to Newton-Meters instantly.", "labels": {"in1": "Inch-Pounds", "in2": "Newton-Meters"}, "factor": 0.112985, "hidden": true},
@@ -464,8 +504,8 @@ export const calculators: CalculatorDef[] = [
{"slug": "gallons-to-pints", "name": "Gallons to Pints", "category": "volume", "type": "standard", "teaser": "Pouring one gallon equals how many pints for serving?", "labels": {"in1": "Gallons", "in2": "Pints"}, "factor": 8.0},
{"slug": "gallons-to-quarts", "name": "Gallons to Quarts", "category": "volume", "type": "standard", "teaser": "Four gallons convert to how many quarts for canning?", "labels": {"in1": "Gallons", "in2": "Quarts"}, "factor": 4.0},
{"slug": "gamma-mass-to-micrograms", "name": "Gamma (mass) to Micrograms", "category": "weight", "type": "standard", "teaser": "A lab note shows gamma units; what is that in micrograms?", "labels": {"in1": "Gamma (mass)", "in2": "Micrograms"}},
{"slug": "gauss-to-tesla", "name": "Gauss to Tesla", "category": "other", "type": "standard", "teaser": "A field reads five thousand gauss; what is that in tesla?", "labels": {"in1": "Gauss", "in2": "Tesla"}, "factor": 0.0001},
{"slug": "millitesla-to-tesla", "name": "Millitesla to Tesla", "category": "other", "type": "standard", "teaser": "Convert milliteslas into teslas for electromagnetism work.", "labels": {"in1": "Millitesla", "in2": "Tesla"}, "factor": 0.001},
{"slug": "gauss-to-tesla", "name": "Gauss to Tesla", "category": "other", "type": "standard", "teaser": "A field reads five thousand gauss; what is that in tesla?", "labels": {"in1": "Gauss", "in2": "Tesla"}, "factor": 0.0001, "hidden": true},
{"slug": "millitesla-to-tesla", "name": "Millitesla to Tesla", "category": "other", "type": "standard", "teaser": "Convert milliteslas into teslas for electromagnetism work.", "labels": {"in1": "Millitesla", "in2": "Tesla"}, "factor": 0.001, "hidden": true},
{"slug": "gbps-to-mbps", "name": "Gbps to Mbps", "category": "other", "type": "standard", "teaser": "A fiber uplink reports 10 Gbps; how many megabits per second of capacity is that?", "labels": {"in1": "Gbps", "in2": "Mbps"}, "factor": 1000.0},
{"slug": "gibibytes-to-gigabytes", "name": "Gibibytes to Gigabytes", "category": "data", "type": "standard", "teaser": "A backup file is 2 GiB; how many gigabytes will the storage quota show?", "labels": {"in1": "Gibibytes", "in2": "Gigabytes"}, "factor": 1.073741824},
{"slug": "gigabits-to-megabits", "name": "Gigabits to Megabits", "category": "data", "type": "standard", "teaser": "A carrier promises 3 gigabits per second; how many megabits is the link rated for?", "labels": {"in1": "Gigabits", "in2": "Megabits"}, "factor": 1000.0},

View File

@@ -0,0 +1,6 @@
import { redirect } from '@sveltejs/kit';
import type { PageServerLoad } from './$types';
export const load: PageServerLoad = ({ params }) => {
throw redirect(301, `/${params.slug}`);
};