Remove capital from octoprint widget
remove add
This commit is contained in:
parent
01eea51555
commit
d27b795d81
5 changed files with 16 additions and 16 deletions
|
@ -424,7 +424,7 @@
|
||||||
"print_progress": "Progress",
|
"print_progress": "Progress",
|
||||||
"layers": "Layers"
|
"layers": "Layers"
|
||||||
},
|
},
|
||||||
"octoPrint": {
|
"octoprint": {
|
||||||
"printer_state": "Status",
|
"printer_state": "Status",
|
||||||
"temp_tool": "Tool temp",
|
"temp_tool": "Tool temp",
|
||||||
"temp_bed": "Bed temp",
|
"temp_bed": "Bed temp",
|
||||||
|
|
|
@ -30,7 +30,7 @@ const components = {
|
||||||
nextdns: dynamic(() => import("./nextdns/component")),
|
nextdns: dynamic(() => import("./nextdns/component")),
|
||||||
npm: dynamic(() => import("./npm/component")),
|
npm: dynamic(() => import("./npm/component")),
|
||||||
nzbget: dynamic(() => import("./nzbget/component")),
|
nzbget: dynamic(() => import("./nzbget/component")),
|
||||||
octoPrint: dynamic(() => import("./octoPrint/component")),
|
octoprint: dynamic(() => import("./octoprint/component")),
|
||||||
omada: dynamic(() => import("./omada/component")),
|
omada: dynamic(() => import("./omada/component")),
|
||||||
ombi: dynamic(() => import("./ombi/component")),
|
ombi: dynamic(() => import("./ombi/component")),
|
||||||
opnsense: dynamic(() => import("./opnsense/component")),
|
opnsense: dynamic(() => import("./opnsense/component")),
|
||||||
|
|
|
@ -23,7 +23,7 @@ export default function Component({ service }) {
|
||||||
if (!printerStats || !state || !tempTool || !tempBed) {
|
if (!printerStats || !state || !tempTool || !tempBed) {
|
||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
<Block label="octoPrint.printer_state" />
|
<Block label="octoprint.printer_state" />
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -36,29 +36,29 @@ export default function Component({ service }) {
|
||||||
if (!jobStats || !completion) {
|
if (!jobStats || !completion) {
|
||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
<Block label="octoPrint.printer_state" />
|
<Block label="octoprint.printer_state" />
|
||||||
<Block label="octoPrint.temp_tool" />
|
<Block label="octoprint.temp_tool" />
|
||||||
<Block label="octoPrint.temp_bed" />
|
<Block label="octoprint.temp_bed" />
|
||||||
<Block label="octoPrint.job_completion" />
|
<Block label="octoprint.job_completion" />
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
<Block label="octoPrint.printer_state" value={printerStats.state.text} />
|
<Block label="octoprint.printer_state" value={printerStats.state.text} />
|
||||||
<Block label="octoPrint.temp_tool" value={`${printerStats.temperature.tool0.actual} °C`} />
|
<Block label="octoprint.temp_tool" value={`${printerStats.temperature.tool0.actual} °C`} />
|
||||||
<Block label="octoPrint.temp_bed" value={`${printerStats.temperature.bed.actual} °C`} />
|
<Block label="octoprint.temp_bed" value={`${printerStats.temperature.bed.actual} °C`} />
|
||||||
<Block label="octoPrint.job_completion" value={`${completion.toFixed(2)}%`} />
|
<Block label="octoprint.job_completion" value={`${completion.toFixed(2)}%`} />
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
<Block label="octoPrint.printer_state" value={printerStats.state.text} />
|
<Block label="octoprint.printer_state" value={printerStats.state.text} />
|
||||||
<Block label="octoPrint.temp_tool" value={`${printerStats.temperature.tool0.actual} °C`} />
|
<Block label="octoprint.temp_tool" value={`${printerStats.temperature.tool0.actual} °C`} />
|
||||||
<Block label="octoPrint.temp_bed" value={`${printerStats.temperature.bed.actual} °C`} />
|
<Block label="octoprint.temp_bed" value={`${printerStats.temperature.bed.actual} °C`} />
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
|
@ -24,7 +24,7 @@ import navidrome from "./navidrome/widget";
|
||||||
import nextdns from "./nextdns/widget";
|
import nextdns from "./nextdns/widget";
|
||||||
import npm from "./npm/widget";
|
import npm from "./npm/widget";
|
||||||
import nzbget from "./nzbget/widget";
|
import nzbget from "./nzbget/widget";
|
||||||
import octoPrint from "./octoPrint/widget";
|
import octoprint from "./octoprint/widget";
|
||||||
import omada from "./omada/widget";
|
import omada from "./omada/widget";
|
||||||
import ombi from "./ombi/widget";
|
import ombi from "./ombi/widget";
|
||||||
import opnsense from "./opnsense/widget";
|
import opnsense from "./opnsense/widget";
|
||||||
|
@ -84,7 +84,7 @@ const widgets = {
|
||||||
nextdns,
|
nextdns,
|
||||||
npm,
|
npm,
|
||||||
nzbget,
|
nzbget,
|
||||||
octoPrint,
|
octoprint,
|
||||||
omada,
|
omada,
|
||||||
ombi,
|
ombi,
|
||||||
opnsense,
|
opnsense,
|
||||||
|
|
Loading…
Add table
Reference in a new issue