removed unused depends and qr code depend as not necessary
This commit is contained in:
parent
34e447f990
commit
8f5a123412
2 changed files with 1 additions and 12 deletions
|
@ -30,13 +30,11 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sentry/electron": "^2.5.4",
|
"@sentry/electron": "^2.5.4",
|
||||||
"@sentry/integrations": "^6.17.4",
|
"@sentry/integrations": "^6.17.4",
|
||||||
"castv2-client": "^1.2.0",
|
|
||||||
"discord-rpc": "^4.0.1",
|
"discord-rpc": "^4.0.1",
|
||||||
"ejs": "^3.1.6",
|
"ejs": "^3.1.6",
|
||||||
"electron-fetch": "^1.7.4",
|
"electron-fetch": "^1.7.4",
|
||||||
"electron-log": "^4.4.5",
|
"electron-log": "^4.4.5",
|
||||||
"electron-notarize": "^1.1.1",
|
"electron-notarize": "^1.1.1",
|
||||||
"electron-packager": "^15.4.0",
|
|
||||||
"electron-store": "^8.0.1",
|
"electron-store": "^8.0.1",
|
||||||
"electron-updater": "^4.6.1",
|
"electron-updater": "^4.6.1",
|
||||||
"electron-window-state": "^5.0.3",
|
"electron-window-state": "^5.0.3",
|
||||||
|
@ -48,18 +46,13 @@
|
||||||
"mpris-service": "^2.1.2",
|
"mpris-service": "^2.1.2",
|
||||||
"music-metadata": "^7.11.4",
|
"music-metadata": "^7.11.4",
|
||||||
"node-gyp": "^8.4.1",
|
"node-gyp": "^8.4.1",
|
||||||
"node-ssdp": "^4.0.1",
|
|
||||||
"qrcode": "^1.5.0",
|
"qrcode": "^1.5.0",
|
||||||
"qrcode-terminal": "^0.12.0",
|
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
"run-script-os": "^1.1.6",
|
"run-script-os": "^1.1.6",
|
||||||
"source-map-support": "^0.5.21",
|
"source-map-support": "^0.5.21",
|
||||||
"tsc": "^2.0.4",
|
|
||||||
"typescript": "^4.5.5",
|
"typescript": "^4.5.5",
|
||||||
"upnp-mediarenderer-client": "^1.4.0",
|
|
||||||
"v8-compile-cache": "^2.3.0",
|
"v8-compile-cache": "^2.3.0",
|
||||||
"wavefile": "^11.0.0",
|
|
||||||
"ws": "^8.4.2",
|
"ws": "^8.4.2",
|
||||||
"xml2js": "^0.4.23",
|
"xml2js": "^0.4.23",
|
||||||
"youtube-search-without-api-key": "^1.0.7"
|
"youtube-search-without-api-key": "^1.0.7"
|
||||||
|
|
|
@ -6,8 +6,7 @@ import * as getPort from "get-port";
|
||||||
import {search} from "youtube-search-without-api-key";
|
import {search} from "youtube-search-without-api-key";
|
||||||
import {existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync} from "fs";
|
import {existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync} from "fs";
|
||||||
import {Stream} from "stream";
|
import {Stream} from "stream";
|
||||||
import {generate as generateQR} from "qrcode-terminal";
|
import {networkInterfaces} from "os";
|
||||||
import {hostname, networkInterfaces} from "os";
|
|
||||||
import * as mm from 'music-metadata';
|
import * as mm from 'music-metadata';
|
||||||
import fetch from 'electron-fetch'
|
import fetch from 'electron-fetch'
|
||||||
import {wsapi} from "./wsapi";
|
import {wsapi} from "./wsapi";
|
||||||
|
@ -287,9 +286,6 @@ export class BrowserWindow {
|
||||||
this.broadcastRemote()
|
this.broadcastRemote()
|
||||||
remote.listen(this.remotePort, () => {
|
remote.listen(this.remotePort, () => {
|
||||||
console.log(`Cider remote port: ${this.remotePort}`);
|
console.log(`Cider remote port: ${this.remotePort}`);
|
||||||
if (firstRequest) {
|
|
||||||
generateQR(`http://${hostname}:${this.remotePort}`);
|
|
||||||
}
|
|
||||||
firstRequest = false;
|
firstRequest = false;
|
||||||
})
|
})
|
||||||
remote.get("/", (_req, res) => {
|
remote.get("/", (_req, res) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue