mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-10-08 07:19:30 +02:00
Descriptions and icons
This commit is contained in:
@@ -3,6 +3,7 @@ import type { GenericCalcType } from './types';
|
|||||||
const ohmsLawCalc: GenericCalcType = {
|
const ohmsLawCalc: GenericCalcType = {
|
||||||
title: "Ohm's Law",
|
title: "Ohm's Law",
|
||||||
name: 'ohms-law',
|
name: 'ohms-law',
|
||||||
|
description: 'Calculates voltage, current and resistance',
|
||||||
formula: 'V = I * R',
|
formula: 'V = I * R',
|
||||||
selections: [],
|
selections: [],
|
||||||
variables: [
|
variables: [
|
||||||
|
@@ -2,6 +2,7 @@ export interface GenericCalcType {
|
|||||||
title: string;
|
title: string;
|
||||||
name: string;
|
name: string;
|
||||||
formula: string;
|
formula: string;
|
||||||
|
description?: string;
|
||||||
|
|
||||||
extraOutputs?: {
|
extraOutputs?: {
|
||||||
title: string;
|
title: string;
|
||||||
|
@@ -3,6 +3,8 @@ const voltagedropinwire: GenericCalcType = {
|
|||||||
title: 'Round trip voltage drop in cable',
|
title: 'Round trip voltage drop in cable',
|
||||||
name: 'cable-voltage-drop',
|
name: 'cable-voltage-drop',
|
||||||
formula: 'x = (((p * L) / (A/10**6) ) *2) * I',
|
formula: 'x = (((p * L) / (A/10**6) ) *2) * I',
|
||||||
|
description:
|
||||||
|
'Calculates round trip voltage and power loss in a 2 conductor cable',
|
||||||
selections: [
|
selections: [
|
||||||
{
|
{
|
||||||
title: 'Material',
|
title: 'Material',
|
||||||
|
@@ -19,8 +19,8 @@ allGenericCalcs.forEach((x) => {
|
|||||||
defineTool('number', {
|
defineTool('number', {
|
||||||
name: x.title,
|
name: x.title,
|
||||||
path: 'generic-calc/' + x.name,
|
path: 'generic-calc/' + x.name,
|
||||||
icon: '',
|
icon: 'lsicon:number-filled',
|
||||||
description: '',
|
description: x.description || '',
|
||||||
shortDescription: '',
|
shortDescription: '',
|
||||||
keywords: ['generic', 'calc'],
|
keywords: ['generic', 'calc'],
|
||||||
longDescription: '',
|
longDescription: '',
|
||||||
|
Reference in New Issue
Block a user