mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Remove unnecessary "use strict" directives
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import type { Channel } from "castv2";
|
import type { Channel } from "castv2";
|
||||||
|
|
||||||
import messaging from "../../messaging";
|
import messaging from "../../messaging";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import { Channel, Client } from "castv2";
|
import { Channel, Client } from "castv2";
|
||||||
|
|
||||||
import type { ReceiverMessage, SenderMessage } from "./types";
|
import type { ReceiverMessage, SenderMessage } from "./types";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import mdns from "mdns";
|
import mdns from "mdns";
|
||||||
|
|
||||||
import type { ReceiverDevice } from "../../messagingTypes";
|
import type { ReceiverDevice } from "../../messagingTypes";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import messaging, { Message } from "../../messaging";
|
import messaging, { Message } from "../../messaging";
|
||||||
|
|
||||||
import Session from "./Session";
|
import Session from "./Session";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import CastClient from "./client";
|
import CastClient from "./client";
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
export interface Image {
|
export interface Image {
|
||||||
url: string;
|
url: string;
|
||||||
height: Nullable<number>;
|
height: Nullable<number>;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import http from "http";
|
import http from "http";
|
||||||
import os from "os";
|
import os from "os";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import messaging, { Message } from "./messaging";
|
import messaging, { Message } from "./messaging";
|
||||||
|
|
||||||
import { handleCastMessage } from "./components/cast";
|
import { handleCastMessage } from "./components/cast";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import { TypedEmitter } from "tiny-typed-emitter";
|
import { TypedEmitter } from "tiny-typed-emitter";
|
||||||
|
|
||||||
import { DecodeTransform, EncodeTransform } from "../transforms";
|
import { DecodeTransform, EncodeTransform } from "../transforms";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
Image,
|
Image,
|
||||||
ReceiverStatus,
|
ReceiverStatus,
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import http, { IncomingMessage } from "http";
|
import http, { IncomingMessage } from "http";
|
||||||
import WebSocket from "ws";
|
import WebSocket from "ws";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import yargs from "yargs";
|
import yargs from "yargs";
|
||||||
import { applicationName, applicationVersion } from "../config.json";
|
import { applicationName, applicationVersion } from "../config.json";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import { Transform, TransformCallback } from "stream";
|
import { Transform, TransformCallback } from "stream";
|
||||||
import type { Message } from "./bridge/messaging";
|
import type { Message } from "./bridge/messaging";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import logger from "../lib/logger";
|
import logger from "../lib/logger";
|
||||||
import messaging, { Port, Message } from "../messaging";
|
import messaging, { Port, Message } from "../messaging";
|
||||||
import options from "../lib/options";
|
import options from "../lib/options";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import defaultOptions from "../defaultOptions";
|
import defaultOptions from "../defaultOptions";
|
||||||
import logger from "../lib/logger";
|
import logger from "../lib/logger";
|
||||||
import options from "../lib/options";
|
import options from "../lib/options";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import bridge from "../lib/bridge";
|
import bridge from "../lib/bridge";
|
||||||
import {
|
import {
|
||||||
BaseConfig,
|
BaseConfig,
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import bridge from "../lib/bridge";
|
import bridge from "../lib/bridge";
|
||||||
import logger from "../lib/logger";
|
import logger from "../lib/logger";
|
||||||
import { TypedEventTarget } from "../lib/TypedEventTarget";
|
import { TypedEventTarget } from "../lib/TypedEventTarget";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import logger from "../lib/logger";
|
import logger from "../lib/logger";
|
||||||
import options from "../lib/options";
|
import options from "../lib/options";
|
||||||
import { stringify } from "../lib/utils";
|
import { stringify } from "../lib/utils";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import logger from "../lib/logger";
|
import logger from "../lib/logger";
|
||||||
import options from "../lib/options";
|
import options from "../lib/options";
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-namespace */
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
import type { TypedMessagePort } from "../lib/TypedMessagePort";
|
import type { TypedMessagePort } from "../lib/TypedMessagePort";
|
||||||
import messaging, { Message } from "../messaging";
|
import messaging, { Message } from "../messaging";
|
||||||
import type { ReceiverDevice } from "../types";
|
import type { ReceiverDevice } from "../types";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
const _ = browser.i18n.getMessage;
|
const _ = browser.i18n.getMessage;
|
||||||
|
|
||||||
export interface KnownApp {
|
export interface KnownApp {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import { v4 as uuid } from "uuid";
|
import { v4 as uuid } from "uuid";
|
||||||
|
|
||||||
import { Logger } from "../../lib/logger";
|
import { Logger } from "../../lib/logger";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import type Session from "./Session";
|
import type Session from "./Session";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
export enum AutoJoinPolicy {
|
export enum AutoJoinPolicy {
|
||||||
TAB_AND_ORIGIN_SCOPED = "tab_and_origin_scoped",
|
TAB_AND_ORIGIN_SCOPED = "tab_and_origin_scoped",
|
||||||
ORIGIN_SCOPED = "origin_scoped",
|
ORIGIN_SCOPED = "origin_scoped",
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import { Logger } from "../../lib/logger";
|
import { Logger } from "../../lib/logger";
|
||||||
|
|
||||||
import type { Message } from "../../messaging";
|
import type { Message } from "../../messaging";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import { v4 as uuid } from "uuid";
|
import { v4 as uuid } from "uuid";
|
||||||
|
|
||||||
import { Logger } from "../../../lib/logger";
|
import { Logger } from "../../../lib/logger";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import type { Image, Volume } from "../classes";
|
import type { Image, Volume } from "../classes";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
export enum ContainerType {
|
export enum ContainerType {
|
||||||
GENERIC_CONTAINER,
|
GENERIC_CONTAINER,
|
||||||
AUDIOBOOK_CONTAINER
|
AUDIOBOOK_CONTAINER
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
export * from "./enums";
|
export * from "./enums";
|
||||||
export * from "./classes";
|
export * from "./classes";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Keep in sync with bridge types at:
|
* Keep in sync with bridge types at:
|
||||||
* app/src/bridge/components/cast/types.ts
|
* app/src/bridge/components/cast/types.ts
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import options from "../../lib/options";
|
import options from "../../lib/options";
|
||||||
import { Logger } from "../../lib/logger";
|
import { Logger } from "../../lib/logger";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cast Chrome Sender SDK loader script.
|
* Cast Chrome Sender SDK loader script.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import type { WhitelistItemData } from "./background/whitelist";
|
import type { WhitelistItemData } from "./background/whitelist";
|
||||||
|
|
||||||
export interface Options {
|
export interface Options {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
interface TypedEvents {
|
interface TypedEvents {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides a typed interface to MessagePort objects.
|
* Provides a typed interface to MessagePort objects.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides a typed interface to runtime.Port objects.
|
* Provides a typed interface to runtime.Port objects.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allows typed access to a StorageArea.
|
* Allows typed access to a StorageArea.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import semver from "semver";
|
import semver from "semver";
|
||||||
|
|
||||||
import logger from "./logger";
|
import logger from "./logger";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
export class Logger {
|
export class Logger {
|
||||||
constructor(private prefix: string) {}
|
constructor(private prefix: string) {}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
const WILDCARD_SCHEMES = ["http", "https", "ws", "wss"];
|
const WILDCARD_SCHEMES = ["http", "https", "ws", "wss"];
|
||||||
|
|
||||||
export const REMOTE_MATCH_PATTERN_REGEX =
|
export const REMOTE_MATCH_PATTERN_REGEX =
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import logger from "./logger";
|
import logger from "./logger";
|
||||||
import options from "./options";
|
import options from "./options";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import defaultOptions, { Options } from "../defaultOptions";
|
import defaultOptions, { Options } from "../defaultOptions";
|
||||||
export { Options };
|
export { Options };
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
const PLATFORM_MAC = "Macintosh; Intel Mac OS X 12_5";
|
const PLATFORM_MAC = "Macintosh; Intel Mac OS X 12_5";
|
||||||
const PLATFORM_MAC_HYBRID = "Macintosh; Intel Mac OS X 12_5; rv:103.0";
|
const PLATFORM_MAC_HYBRID = "Macintosh; Intel Mac OS X 12_5; rv:103.0";
|
||||||
const PLATFORM_WIN = "Windows NT 10.0; Win64; x64";
|
const PLATFORM_WIN = "Windows NT 10.0; Win64; x64";
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import { ReceiverSelectorMediaType } from "../types";
|
import { ReceiverSelectorMediaType } from "../types";
|
||||||
|
|
||||||
export function getNextEllipsis(ellipsis: string): string {
|
export function getNextEllipsis(ellipsis: string): string {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import type { TypedPort } from "./lib/TypedPort";
|
import type { TypedPort } from "./lib/TypedPort";
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import type { SessionRequest } from "./cast/sdk/classes";
|
import type { SessionRequest } from "./cast/sdk/classes";
|
||||||
import type { MediaStatus, ReceiverStatus } from "./cast/sdk/types";
|
import type { MediaStatus, ReceiverStatus } from "./cast/sdk/types";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
import Options from "./Options.svelte";
|
import Options from "./Options.svelte";
|
||||||
|
|
||||||
// macOS styles
|
// macOS styles
|
||||||
|
|||||||
Reference in New Issue
Block a user