diff --git a/src/pages/tools/number/generic-calc/data/ohms_law.ts b/src/pages/tools/number/generic-calc/data/ohms_law.ts index 25bbc66..28b458f 100644 --- a/src/pages/tools/number/generic-calc/data/ohms_law.ts +++ b/src/pages/tools/number/generic-calc/data/ohms_law.ts @@ -3,6 +3,7 @@ import type { GenericCalcType } from './types'; const ohmsLawCalc: GenericCalcType = { title: "Ohm's Law", name: 'ohms-law', + description: 'Calculates voltage, current and resistance', formula: 'V = I * R', selections: [], variables: [ diff --git a/src/pages/tools/number/generic-calc/data/types.ts b/src/pages/tools/number/generic-calc/data/types.ts index 3be9b75..25ded86 100644 --- a/src/pages/tools/number/generic-calc/data/types.ts +++ b/src/pages/tools/number/generic-calc/data/types.ts @@ -2,6 +2,7 @@ export interface GenericCalcType { title: string; name: string; formula: string; + description?: string; extraOutputs?: { title: string; diff --git a/src/pages/tools/number/generic-calc/data/wire_voltage_drop.ts b/src/pages/tools/number/generic-calc/data/wire_voltage_drop.ts index 2609b02..9dcf9fe 100644 --- a/src/pages/tools/number/generic-calc/data/wire_voltage_drop.ts +++ b/src/pages/tools/number/generic-calc/data/wire_voltage_drop.ts @@ -3,6 +3,8 @@ const voltagedropinwire: GenericCalcType = { title: 'Round trip voltage drop in cable', name: 'cable-voltage-drop', formula: 'x = (((p * L) / (A/10**6) ) *2) * I', + description: + 'Calculates round trip voltage and power loss in a 2 conductor cable', selections: [ { title: 'Material', diff --git a/src/pages/tools/number/generic-calc/meta.ts b/src/pages/tools/number/generic-calc/meta.ts index 3254deb..3a23c13 100644 --- a/src/pages/tools/number/generic-calc/meta.ts +++ b/src/pages/tools/number/generic-calc/meta.ts @@ -19,8 +19,8 @@ allGenericCalcs.forEach((x) => { defineTool('number', { name: x.title, path: 'generic-calc/' + x.name, - icon: '', - description: '', + icon: 'lsicon:number-filled', + description: x.description || '', shortDescription: '', keywords: ['generic', 'calc'], longDescription: '',