Repo cleanup

This commit is contained in:
Sacha Weatherstone
2023-11-16 10:22:16 +10:00
parent 3038889a2b
commit e2cc25a9b0
18 changed files with 1532 additions and 1224 deletions
-27
View File
@@ -1,27 +0,0 @@
name: Nightly
on:
schedule:
- cron: 0 8 * * 1-5
workflow_dispatch: {}
jobs:
trunk_check:
name: Trunk Check Upload
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: latest
- name: Install Dependencies
run: pnpm install
- name: Trunk Check
uses: trunk-io/trunk-action@v1
with:
trunk-token: ${{ secrets.TRUNK_TOKEN }}
-7
View File
@@ -1,7 +0,0 @@
*out
*logs
*actions
*notifications
plugins
user_trunk.yaml
user.yaml
-10
View File
@@ -1,10 +0,0 @@
# Autoformatter friendly markdownlint config (all formatting rules disabled)
default: true
blank_lines: false
bullet: false
html: false
indentation: false
line_length: false
spaces: false
url: false
whitespace: false
-4
View File
@@ -1,4 +0,0 @@
# Ignore artifacts:
dist
pnpm-lock.yaml
stats.html
-4
View File
@@ -1,4 +0,0 @@
module.exports = {
trailingComma: "none",
plugins: [require("prettier-plugin-tailwindcss")]
};
-14
View File
@@ -1,14 +0,0 @@
module.exports = {
plugins: [
{
name: "preset-default",
params: {
overrides: {
removeViewBox: false, // https://github.com/svg/svgo/issues/1128
sortAttrs: true,
removeOffCanvasPaths: true
}
}
}
]
};
-26
View File
@@ -1,26 +0,0 @@
version: 0.1
cli:
version: 1.3.2
plugins:
sources:
- id: trunk
ref: v0.0.8
uri: https://github.com/trunk-io/plugins
lint:
enabled:
- markdownlint@0.33.0
- prettier@2.8.3
- git-diff-check
- actionlint@1.6.23
- gitleaks@8.15.3
runtimes:
enabled:
- go@1.18.3
- node@18.12.1
actions:
disabled:
- trunk-announce
- trunk-check-pre-push
- trunk-fmt-pre-commit
enabled:
- trunk-upgrade-available
+1 -1
View File
@@ -1,3 +1,3 @@
{
"recommendations": ["bradlc.vscode-tailwindcss"]
"recommendations": ["bradlc.vscode-tailwindcss", "biomejs.biome"]
}
+2 -2
View File
@@ -1,4 +1,4 @@
{
"editor.defaultFormatter": "rome.rome",
"editor.formatOnSave": true
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true
}
+18
View File
@@ -0,0 +1,18 @@
{
"$schema": "https://biomejs.dev/schemas/1.3.3/schema.json",
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"all": true
}
}
}
-12
View File
@@ -1,12 +0,0 @@
import react from "eslint-plugin-react";
export default [
"eslint:all",
{
files: ["src/**/*.{ts,tsx}"],
rules: {
semi: "error",
"prefer-const": "error"
}
}
];
+20 -20
View File
@@ -23,7 +23,7 @@
"@emeraldpay/hashicon-react": "^0.5.2",
"@hookform/error-message": "^2.0.1",
"@hookform/resolvers": "^3.3.2",
"@meshtastic/meshtasticjs": "2.2.12-0",
"@meshtastic/meshtasticjs": "2.2.13-1",
"@preact/signals-react": "^1.3.6",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-checkbox": "^1.0.4",
@@ -42,50 +42,50 @@
"@tailwindcss/typography": "^0.5.10",
"@turf/turf": "^6.5.0",
"base64-js": "^1.5.1",
"biome": "^0.3.3",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"cmdk": "^0.2.0",
"esptool-js": "^0.3.1",
"esptool-js": "^0.3.2",
"geodesy": "^2.4.0",
"immer": "^10.0.3",
"jszip": "^3.10.1",
"lucide-react": "^0.288.0",
"lucide-react": "^0.292.0",
"mapbox-gl": "npm:empty-npm-package@^1.0.0",
"maplibre-gl": "3.5.1",
"maplibre-gl": "3.6.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.47.0",
"react-hook-form": "^7.48.2",
"react-map-gl": "7.1.6",
"react-qrcode-logo": "^2.9.0",
"rfc4648": "^1.5.2",
"tailwind-merge": "^1.14.0",
"rfc4648": "^1.5.3",
"tailwind-merge": "^2.0.0",
"tailwindcss-animate": "^1.0.7",
"timeago-react": "^3.0.6",
"zustand": "4.4.4"
"zustand": "4.4.6"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.6",
"@types/chrome": "^0.0.248",
"@types/geodesy": "^2.2.6",
"@types/node": "^20.8.8",
"@types/react": "^18.2.31",
"@types/react-dom": "^18.2.14",
"@types/w3c-web-serial": "^1.0.5",
"@types/web-bluetooth": "^0.0.19",
"@vitejs/plugin-react": "^4.1.0",
"@tailwindcss/forms": "^0.5.7",
"@types/chrome": "^0.0.251",
"@types/geodesy": "^2.2.7",
"@types/node": "^20.9.0",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@types/w3c-web-serial": "^1.0.6",
"@types/web-bluetooth": "^0.0.20",
"@vitejs/plugin-react": "^4.1.1",
"autoprefixer": "^10.4.16",
"gzipper": "^7.2.0",
"postcss": "^8.4.31",
"rollup-plugin-visualizer": "^5.9.2",
"rome": "^12.1.3",
"tailwindcss": "^3.3.3",
"tailwindcss": "^3.3.5",
"tar": "^6.2.0",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"vite": "^4.5.0",
"vite-plugin-environment": "^1.1.3",
"vite-plugin-pwa": "^0.16.5"
"vite-plugin-pwa": "^0.16.7"
}
}
+1462 -1072
View File
File diff suppressed because it is too large Load Diff
-23
View File
@@ -1,23 +0,0 @@
{
"$schema": "./node_modules/rome/configuration_schema.json",
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentSize": 2
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"organizeImports": {
"enabled": true
},
"files": {
"ignore": [
"node_modules",
"dist"
]
}
}
@@ -53,7 +53,7 @@ export const BLE = (): JSX.Element => {
onClick={() => {
void navigator.bluetooth
.requestDevice({
filters: [{ services: [Constants.serviceUUID] }],
filters: [{ services: [Constants.ServiceUuid] }],
})
.then((device) => {
const exists = bleDevices.findIndex((d) => d.id === device.id);
@@ -74,6 +74,24 @@ export const Telemetry = (): JSX.Element => {
label: "Air Quality Update Interval",
description: "How often to send Air Quality data over the mesh",
},
{
type: "toggle",
name: "powerMeasurementEnabled",
label: "Power Measurement Enabled",
description: "Enable the Power Measurement Telemetry",
},
{
type: "number",
name: "powerUpdateInterval",
label: "Power Update Interval",
description: "How often to send Power data over the mesh",
},
{
type: "text",
name: "powerScreenEnabled",
label: "Power Screen Enabled",
description: "Enable the Power Telemetry Screen",
},
],
},
]}
+1 -1
View File
@@ -99,4 +99,4 @@
img {
-drag: none;
-webkit-user-drag: none;
}
}
+9
View File
@@ -26,4 +26,13 @@ export class TelemetryValidation
@IsInt()
airQualityInterval: number;
@IsBoolean()
powerMeasurementEnabled: boolean;
@IsInt()
powerUpdateInterval: number;
@IsBoolean()
powerScreenEnabled: boolean;
}