Skip to content

Commit

Permalink
many small updates
Browse files Browse the repository at this point in the history
- reduce runtime testing for single tests at config load (thanks thomasloven) - more to go
- work in progress relative to hunt of update sequence that's crashing (causing exception)
- clean up card layout (move to percent of width!) (#36)
- adjust coloring of indicators (less yellow) (#36)
  • Loading branch information
ironsheep committed Feb 12, 2023
1 parent 4c04b46 commit cfd7a2e
Show file tree
Hide file tree
Showing 5 changed files with 302 additions and 313 deletions.
119 changes: 54 additions & 65 deletions dist/rpi-monitor-card.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions rollup.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import resolve from '@rollup/plugin-node-resolve';
import typescript from 'rollup-plugin-typescript2';
import babel from '@rollup/plugin-babel';
import serve from 'rollup-plugin-serve';
import { terser } from 'rollup-plugin-terser';
//import { terser } from 'rollup-plugin-terser';
import json from '@rollup/plugin-json';

export default {
Expand All @@ -19,7 +19,7 @@ export default {
exclude: 'node_modules/**',
babelHelpers: 'runtime',
}),
terser(),
// terser(),
serve({
contentBase: './dist',
host: '0.0.0.0',
Expand Down
2 changes: 1 addition & 1 deletion src/action-handler-directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const actionHandler = directive(
return noChange;
}

// eslint-disable-next-line @typescript-eslint/no-empty-function
// eslint-disable-next-line @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars
render(_options?: ActionHandlerOptions) {}
},
);
2 changes: 2 additions & 0 deletions src/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const CARD_VERSION = '1.3.1';
"temp_gpu_c": 40.1,
"temp_cpu_c": 40.1,
"reporter": "ISP-RPi-mqtt-daemon v1.5.4",
"reporter_releases": "v1.7.2,v1.6.2",
"report_interval": 5
}
}*/
Expand All @@ -68,6 +69,7 @@ export const RPI_FS_USED_PERCENT_KEY = 'fs_free_prcnt';
export const RPI_NETWORKING_KEY = 'networking';
export const RPI_TEMPERATURE_IN_C_KEY = 'temperature_c';
export const RPI_SCRIPT_VER_KEY = 'reporter';
export const RPI_SCRIPT_RELEASE_LIST = 'reporter_releases';
export const RPI_SCRIPT_INTERVAL_KEY = 'report_interval';

export const SHOW_OS_PARTS_VALUE = 'show-os-parts';
Expand Down
Loading

0 comments on commit cfd7a2e

Please sign in to comment.