mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-06-27 18:40:31 +02:00
Add import order prettier plugin
This commit is contained in:
@ -1,8 +1,7 @@
|
||||
import './shared';
|
||||
|
||||
import type { Match } from '~/lib/match';
|
||||
import { getMatch, type Match } from '~/lib/match';
|
||||
import { Redirect, UrlReferer } from '~/lib/settings';
|
||||
import { getMatch } from '~/lib/match';
|
||||
|
||||
chrome.webRequest.onBeforeSendHeaders.addListener(
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { getMatch, type Match, MatchMediaType } from '~/lib/match';
|
||||
import { getMatch, MatchMediaType, type Match } from '~/lib/match';
|
||||
import { Other, Redirect } from '~/lib/settings';
|
||||
|
||||
async function main() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { play } from '~/entries/player/player';
|
||||
import { onMount } from 'svelte';
|
||||
import { play } from '~/entries/player/player';
|
||||
|
||||
let errorMessage: string | null = $state(null);
|
||||
|
||||
|
@ -6,8 +6,8 @@
|
||||
</head>
|
||||
<body>
|
||||
<script type="module">
|
||||
import Player from '~/entries/player/Player.svelte';
|
||||
import { mount } from 'svelte';
|
||||
import Player from '~/entries/player/Player.svelte';
|
||||
|
||||
mount(Player, {
|
||||
target: document.body
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { matches, MatchMediaType } from '~/lib/match';
|
||||
import Hls from 'hls.js';
|
||||
import { matches, MatchMediaType } from '~/lib/match';
|
||||
import { UrlReferer } from '~/lib/settings';
|
||||
|
||||
async function playNative(url: string, domain: string, videoElem: HTMLVideoElement) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { type Match, matches } from '~/lib/match';
|
||||
import { matches, type Match } from '~/lib/match';
|
||||
import { Hosters, Other } from '~/lib/settings';
|
||||
import Toggle from './toggle.svelte';
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
</head>
|
||||
<body style="overflow-y: scroll">
|
||||
<script type="module">
|
||||
import Popup from '~/entries/popup/Popup.svelte';
|
||||
import { mount } from 'svelte';
|
||||
import Popup from '~/entries/popup/Popup.svelte';
|
||||
|
||||
mount(Popup, {
|
||||
target: document.body
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { unpack } from './util/userspace';
|
||||
import { Hosters, Redirect, TmpHost } from './settings';
|
||||
import { lastPathSegment } from './util/extract';
|
||||
import { unpack } from './util/userspace';
|
||||
|
||||
export interface Match {
|
||||
name: string;
|
||||
|
@ -1,5 +1,4 @@
|
||||
import type { Match } from './match';
|
||||
import { matches } from './match';
|
||||
import { matches, type Match } from './match';
|
||||
|
||||
export const Hosters = {
|
||||
getDisabled: async () => {
|
||||
|
Reference in New Issue
Block a user