Loading .vscode/settings.json +2 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,8 @@ "Demuxer", "Deserialization", "DESERIALIZERS", "diskstats", "dumpsys", "ebml", "Embedder", "entrypoints", Loading apps/cli/src/index.ts +2 −0 Original line number Diff line number Diff line /// <reference types="node" /> import "source-map-support/register.js"; import { Adb, AdbServerClient } from "@yume-chan/adb"; Loading apps/demo/next.config.js +3 −3 Original line number Diff line number Diff line Loading @@ -24,9 +24,8 @@ function pipe(value, ...callbacks) { return value; } /** @type {import('next').NextConfig} */ module.exports = pipe( { /** @type {import('next').NextConfig} */ ({ basePath, pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"], reactStrictMode: false, Loading Loading @@ -72,7 +71,8 @@ module.exports = pipe( }, ]; }, }, poweredByHeader: false, }), withBundleAnalyzer, withPwa, withMDX Loading apps/demo/package.json +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ "private": true, "scripts": { "postinstall": "fetch-scrcpy-server 2.1 && node scripts/manifest.mjs", "dev": "next dev", "dev": "next dev -p 5000", "build": "next build", "start": "next start", "lint": "next lint" Loading apps/demo/src/components/scrcpy/settings.tsx +8 −8 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ import { import { makeStyles } from "@griffel/react"; import { AdbSyncError } from "@yume-chan/adb"; import { AdbScrcpyClient, AdbScrcpyOptionsLatest } from "@yume-chan/adb-scrcpy"; import { VERSION } from "@yume-chan/fetch-scrcpy-server"; import { DEFAULT_SERVER_PATH, ScrcpyDisplay, Loading @@ -26,8 +27,7 @@ import { ScrcpyVideoDecoderConstructor, TinyH264Decoder, } from "@yume-chan/scrcpy-decoder-tinyh264"; import { VERSION } from "@yume-chan/fetch-scrcpy-server"; import { DecodeUtf8Stream, GatherStringStream } from "@yume-chan/stream-extra"; import { ConcatStringStream, DecodeUtf8Stream } from "@yume-chan/stream-extra"; import { autorun, computed, Loading Loading @@ -223,12 +223,12 @@ autorun(() => { (async () => { const sync = await GLOBAL_STATE.adb!.sync(); try { const content = new GatherStringStream(); const settings = JSON.parse( await sync .read(SCRCPY_SETTINGS_FILENAME) .pipeThrough(new DecodeUtf8Stream()) .pipeTo(content); const settings = JSON.parse(content.result); .pipeThrough(new ConcatStringStream()) ); runInAction(() => { SETTING_STATE.settings = { ...DEFAULT_SETTINGS, Loading Loading
.vscode/settings.json +2 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,8 @@ "Demuxer", "Deserialization", "DESERIALIZERS", "diskstats", "dumpsys", "ebml", "Embedder", "entrypoints", Loading
apps/cli/src/index.ts +2 −0 Original line number Diff line number Diff line /// <reference types="node" /> import "source-map-support/register.js"; import { Adb, AdbServerClient } from "@yume-chan/adb"; Loading
apps/demo/next.config.js +3 −3 Original line number Diff line number Diff line Loading @@ -24,9 +24,8 @@ function pipe(value, ...callbacks) { return value; } /** @type {import('next').NextConfig} */ module.exports = pipe( { /** @type {import('next').NextConfig} */ ({ basePath, pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"], reactStrictMode: false, Loading Loading @@ -72,7 +71,8 @@ module.exports = pipe( }, ]; }, }, poweredByHeader: false, }), withBundleAnalyzer, withPwa, withMDX Loading
apps/demo/package.json +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ "private": true, "scripts": { "postinstall": "fetch-scrcpy-server 2.1 && node scripts/manifest.mjs", "dev": "next dev", "dev": "next dev -p 5000", "build": "next build", "start": "next start", "lint": "next lint" Loading
apps/demo/src/components/scrcpy/settings.tsx +8 −8 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ import { import { makeStyles } from "@griffel/react"; import { AdbSyncError } from "@yume-chan/adb"; import { AdbScrcpyClient, AdbScrcpyOptionsLatest } from "@yume-chan/adb-scrcpy"; import { VERSION } from "@yume-chan/fetch-scrcpy-server"; import { DEFAULT_SERVER_PATH, ScrcpyDisplay, Loading @@ -26,8 +27,7 @@ import { ScrcpyVideoDecoderConstructor, TinyH264Decoder, } from "@yume-chan/scrcpy-decoder-tinyh264"; import { VERSION } from "@yume-chan/fetch-scrcpy-server"; import { DecodeUtf8Stream, GatherStringStream } from "@yume-chan/stream-extra"; import { ConcatStringStream, DecodeUtf8Stream } from "@yume-chan/stream-extra"; import { autorun, computed, Loading Loading @@ -223,12 +223,12 @@ autorun(() => { (async () => { const sync = await GLOBAL_STATE.adb!.sync(); try { const content = new GatherStringStream(); const settings = JSON.parse( await sync .read(SCRCPY_SETTINGS_FILENAME) .pipeThrough(new DecodeUtf8Stream()) .pipeTo(content); const settings = JSON.parse(content.result); .pipeThrough(new ConcatStringStream()) ); runInAction(() => { SETTING_STATE.settings = { ...DEFAULT_SETTINGS, Loading