mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-26 09:29:30 +02:00
Descriptions and icons
This commit is contained in:
@@ -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: [
|
||||
|
@@ -2,6 +2,7 @@ export interface GenericCalcType {
|
||||
title: string;
|
||||
name: string;
|
||||
formula: string;
|
||||
description?: string;
|
||||
|
||||
extraOutputs?: {
|
||||
title: string;
|
||||
|
@@ -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',
|
||||
|
@@ -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: '',
|
||||
|
Reference in New Issue
Block a user