mirror of
https://github.com/ad1217/PrinterStatus
synced 2024-11-10 18:45:08 -05:00
Apply prettier
This commit is contained in:
parent
310344a450
commit
d288af13aa
@ -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,
|
||||
};
|
||||
|
4
server/src/mp4frag.d.ts
vendored
4
server/src/mp4frag.d.ts
vendored
@ -1,5 +1,5 @@
|
||||
declare module "mp4frag" {
|
||||
import { Transform } from "stream";
|
||||
declare module 'mp4frag' {
|
||||
import { Transform } from 'stream';
|
||||
|
||||
namespace Mp4Frag {
|
||||
interface SegmentObject {
|
||||
|
@ -11,12 +11,7 @@
|
||||
</div>
|
||||
<div
|
||||
v-else
|
||||
class="
|
||||
row row-cols-1 row-cols-md-2 row-cols-xxl-3
|
||||
m-1 m-md-3
|
||||
g-4
|
||||
justify-content-center
|
||||
"
|
||||
class="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">
|
||||
<PrinterCard :slug="slug as string" v-bind="printer" :now="now">
|
||||
|
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user