-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
239 changed files
with
24,490 additions
and
24,152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Telemetry | ||
|
||
on: push | ||
|
||
jobs: | ||
telemetry: | ||
name: Lint and build | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: telemetry | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.5.0 | ||
- name: Use Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
cache-dependency-path: telemetry/pnpm-lock.yaml | ||
|
||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Lint | ||
run: pnpm lint | ||
|
||
- name: Build | ||
run: pnpm build |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"vcs": { | ||
"enabled": true, | ||
"clientKind": "git", | ||
"useIgnoreFile": true, | ||
"defaultBranch": "main" | ||
}, | ||
"files": { | ||
"ignoreUnknown": false, | ||
"ignore": [] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "tab" | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "single" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,36 @@ | ||
{ | ||
"name": "@hyped/telemetry", | ||
"private": true, | ||
"scripts": { | ||
"preinstall": "npx only-allow pnpm", | ||
"start": "turbo run start", | ||
"dev": "turbo run dev", | ||
"dev:test": "turbo run dev:test", | ||
"ci": "turbo run build lint e2e:test", | ||
"lint": "turbo run lint --parallel", | ||
"lint:fix": "turbo run lint:fix --parallel", | ||
"format": "prettier --write \"**/*.{ts,tsx,md}\"", | ||
"e2e:test": "turbo run e2e:test", | ||
"format:check": "prettier --check \"**/*.{ts,tsx,md}\"", | ||
"build": "turbo run build" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.11.18", | ||
"prettier": "3.2.4", | ||
"turbo": "^1.11.3", | ||
"typescript": "^5.3.3" | ||
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@nestjs/common@9.4.2": "patches/@nestjs__common@9.4.2.patch", | ||
"nest-mqtt@0.2.0": "patches/nest-mqtt@0.2.0.patch", | ||
"openmct@3.2.0": "patches/openmct@3.2.0.patch" | ||
} | ||
} | ||
"name": "@hyped/telemetry", | ||
"private": true, | ||
"scripts": { | ||
"preinstall": "npx only-allow pnpm", | ||
"start": "turbo run start", | ||
"dev": "turbo run dev", | ||
"dev:test": "turbo run dev:test", | ||
"ci": "turbo run build lint e2e:test", | ||
"lint": "turbo run lint --parallel", | ||
"lint:fix": "turbo run lint:fix --parallel", | ||
"format": "prettier --write \"**/*.{ts,tsx,md}\"", | ||
"e2e:test": "turbo run e2e:test", | ||
"format:check": "prettier --check \"**/*.{ts,tsx,md}\"", | ||
"build": "turbo run build" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.9.4", | ||
"@types/node": "^18.11.18", | ||
"prettier": "3.2.4", | ||
"turbo": "^1.11.3", | ||
"typescript": "^5.3.3" | ||
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@nestjs/common@9.4.2": "patches/@nestjs__common@9.4.2.patch", | ||
"nest-mqtt@0.2.0": "patches/nest-mqtt@0.2.0.patch", | ||
"openmct@3.2.0": "patches/openmct@3.2.0.patch" | ||
} | ||
}, | ||
"engines": { | ||
"node": ">=18", | ||
"pnpm": ">=9" | ||
}, | ||
"packageManager": "pnpm@9.5.0" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": ["../../biome.json"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
{ | ||
"name": "@hyped/telemetry-constants", | ||
"private": true, | ||
"version": "1.0.0", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"module": "dist/telemetry-constants.esm.js", | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"scripts": { | ||
"start": "tsdx watch", | ||
"build": "tsdx build", | ||
"lint": "eslint \"src/**/*.ts\" --max-warnings 0 --report-unused-disable-directives", | ||
"lint:fix": "eslint \"src/**/*.ts\" --fix" | ||
}, | ||
"devDependencies": { | ||
"@hyped/telemetry-types": "workspace:*", | ||
"@hyped/eslint-config": "workspace:*", | ||
"@hyped/tsconfig": "workspace:*", | ||
"tsdx": "^0.14.1", | ||
"tslib": "^2.5.3", | ||
"typescript": "^5.3.3" | ||
} | ||
"name": "@hyped/telemetry-constants", | ||
"private": true, | ||
"version": "1.0.0", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"module": "dist/telemetry-constants.esm.js", | ||
"files": ["dist", "src"], | ||
"scripts": { | ||
"start": "dts watch", | ||
"build": "dts build", | ||
"lint": "biome lint .", | ||
"lint:fix": "biome check --write ." | ||
}, | ||
"devDependencies": { | ||
"@hyped/telemetry-types": "workspace:*", | ||
"@hyped/tsconfig": "workspace:*", | ||
"dts-cli": "^2.0.5", | ||
"tslib": "^2.5.3", | ||
"typescript": "^5.3.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export const FAULT_LEVEL = { | ||
WATCH: 'WATCH', | ||
WARNING: 'WARNING', | ||
CRITICAL: 'CRITICAL', | ||
WATCH: 'WATCH', | ||
WARNING: 'WARNING', | ||
CRITICAL: 'CRITICAL', | ||
} as const; | ||
|
||
export type FaultLevel = (typeof FAULT_LEVEL)[keyof typeof FAULT_LEVEL]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 50 additions & 50 deletions
100
telemetry/packages/constants/src/openmct/object-types/object-types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
import type { OpenMctObjectTypes } from '@hyped/telemetry-types'; | ||
|
||
export const openMctObjectTypes: OpenMctObjectTypes = [ | ||
{ | ||
id: 'temperature', | ||
name: 'Temperature', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'thermistor', | ||
name: 'Thermistor', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'acceleration', | ||
name: 'Acceleration', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'pressure', | ||
name: 'Pressure', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'hall_effect', | ||
name: 'Hall Effect', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'displacement', | ||
name: 'Displacement', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'velocity', | ||
name: 'Velocity', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'status', | ||
name: 'status', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'keyence', | ||
name: 'Keyence', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'brake_feedback', | ||
name: 'Brake Feedback', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'temperature', | ||
name: 'Temperature', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'thermistor', | ||
name: 'Thermistor', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'acceleration', | ||
name: 'Acceleration', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'pressure', | ||
name: 'Pressure', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'hall_effect', | ||
name: 'Hall Effect', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'displacement', | ||
name: 'Displacement', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'velocity', | ||
name: 'Velocity', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'status', | ||
name: 'status', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'keyence', | ||
name: 'Keyence', | ||
icon: 'icon-telemetry', | ||
}, | ||
{ | ||
id: 'brake_feedback', | ||
name: 'Brake Feedback', | ||
icon: 'icon-telemetry', | ||
}, | ||
]; |
Oops, something went wrong.