mirror of
https://github.com/ad1217/PrinterStatus
synced 2024-11-21 23:13:49 -05:00
Apply prettier
This commit is contained in:
parent
310344a450
commit
d288af13aa
@ -43,11 +43,11 @@ export default class OctoprintConnection {
|
|||||||
this.webcamStream = make_mp4frag(this.slug, webcamURL, settings.webcam);
|
this.webcamStream = make_mp4frag(this.slug, webcamURL, settings.webcam);
|
||||||
}
|
}
|
||||||
this.settingsMessage = {
|
this.settingsMessage = {
|
||||||
kind: "settings",
|
kind: 'settings',
|
||||||
printer: this.slug,
|
printer: this.slug,
|
||||||
name: settings.appearance.name,
|
name: settings.appearance.name,
|
||||||
color: settings.appearance.color,
|
color: settings.appearance.color,
|
||||||
}
|
};
|
||||||
this.broadcast(this.settingsMessage);
|
this.broadcast(this.settingsMessage);
|
||||||
|
|
||||||
// do passive login to get a session key from the API key
|
// do passive login to get a session key from the API key
|
||||||
@ -74,7 +74,7 @@ export default class OctoprintConnection {
|
|||||||
const event: octoprint.Message = JSON.parse(data as string);
|
const event: octoprint.Message = JSON.parse(data as string);
|
||||||
|
|
||||||
let ext_event: StatusMessage = {
|
let ext_event: StatusMessage = {
|
||||||
kind: "status",
|
kind: 'status',
|
||||||
printer: this.slug,
|
printer: this.slug,
|
||||||
msg: event,
|
msg: event,
|
||||||
};
|
};
|
||||||
|
4
server/src/mp4frag.d.ts
vendored
4
server/src/mp4frag.d.ts
vendored
@ -1,5 +1,5 @@
|
|||||||
declare module "mp4frag" {
|
declare module 'mp4frag' {
|
||||||
import { Transform } from "stream";
|
import { Transform } from 'stream';
|
||||||
|
|
||||||
namespace Mp4Frag {
|
namespace Mp4Frag {
|
||||||
interface SegmentObject {
|
interface SegmentObject {
|
||||||
|
@ -11,12 +11,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-else
|
v-else
|
||||||
class="
|
class="row row-cols-1 row-cols-md-2 row-cols-xxl-3 m-1 m-md-3 g-4 justify-content-center"
|
||||||
row row-cols-1 row-cols-md-2 row-cols-xxl-3
|
|
||||||
m-1 m-md-3
|
|
||||||
g-4
|
|
||||||
justify-content-center
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<div class="col" v-for="(printer, slug) in printers" :key="slug">
|
<div class="col" v-for="(printer, slug) in printers" :key="slug">
|
||||||
<PrinterCard :slug="slug as string" v-bind="printer" :now="now">
|
<PrinterCard :slug="slug as string" v-bind="printer" :now="now">
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import * as Vue from 'vue';
|
import * as Vue from 'vue';
|
||||||
|
|
||||||
import "bootstrap/dist/css/bootstrap.min.css";
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||||
import "bootstrap";
|
import 'bootstrap';
|
||||||
|
|
||||||
import App from './App.vue';
|
import App from './App.vue';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user