diff --git a/server/src/OctoPrintConnection.ts b/server/src/OctoPrintConnection.ts index 06d5eb2..fc32293 100644 --- a/server/src/OctoPrintConnection.ts +++ b/server/src/OctoPrintConnection.ts @@ -2,8 +2,8 @@ import * as WebSocket from 'ws'; import fetch from 'node-fetch'; import * as Mp4Frag from 'mp4frag'; -import {make_mp4frag} from './camera-stream'; -import {Message, StatusMessage, SettingsMessage} from '../../types/messages'; +import { make_mp4frag } from './camera-stream'; +import { Message, StatusMessage, SettingsMessage } from '../../types/messages'; import * as octoprint from '../../types/octoprint'; const PING_TIME = 10000; @@ -43,11 +43,11 @@ export default class OctoprintConnection { this.webcamStream = make_mp4frag(this.slug, webcamURL, settings.webcam); } this.settingsMessage = { - kind: "settings", + kind: 'settings', printer: this.slug, name: settings.appearance.name, color: settings.appearance.color, - } + }; this.broadcast(this.settingsMessage); // 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); let ext_event: StatusMessage = { - kind: "status", + kind: 'status', printer: this.slug, msg: event, }; diff --git a/server/src/mp4frag.d.ts b/server/src/mp4frag.d.ts index 9567670..9c2e3c4 100644 --- a/server/src/mp4frag.d.ts +++ b/server/src/mp4frag.d.ts @@ -1,5 +1,5 @@ -declare module "mp4frag" { - import { Transform } from "stream"; +declare module 'mp4frag' { + import { Transform } from 'stream'; namespace Mp4Frag { interface SegmentObject { diff --git a/src/App.vue b/src/App.vue index 907cf22..9765c7c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -11,12 +11,7 @@
diff --git a/src/index.ts b/src/index.ts index 0bb97fd..fbc69b7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ import * as Vue from 'vue'; -import "bootstrap/dist/css/bootstrap.min.css"; -import "bootstrap"; +import 'bootstrap/dist/css/bootstrap.min.css'; +import 'bootstrap'; import App from './App.vue';