Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit d5054c1

Browse files
committed
Remove playwright
Signed-off-by: Sahil Gupte <ovenoboyo@gmail.com>
1 parent a0f1d21 commit d5054c1

6 files changed

Lines changed: 10 additions & 91 deletions

File tree

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"@imengyu/vue3-context-menu": "^1.3.3",
3030
"@napi-rs/cli": "^2.16.2",
3131
"@openid/appauth": "^1.3.1",
32-
"@playwright/test": "^1.35.1",
3332
"@types/adm-zip": "^0.5.0",
3433
"@types/better-sqlite3": "^7.6.4",
3534
"@types/electron-devtools-installer": "^2.2.2",
@@ -99,7 +98,6 @@
9998
"node-stream-zip": "^1.15.0",
10099
"node-youtube-music": "^0.10.3",
101100
"patch-package": "^8.0.0",
102-
"playwright": "^1.36.2",
103101
"prettier": "3.0.1",
104102
"qs": "^6.11.2",
105103
"reflect-metadata": "^0.1.13",
@@ -165,8 +163,6 @@
165163
"node-abi": "^3.45.0",
166164
"webpack": "^5.88.2",
167165
"better-sqlite3": "^8.5.0",
168-
"playwright": "^1.25.1",
169-
"playwright-core": "^1.25.1",
170166
"nan": "^2.17.0",
171167
"@vue/cli-service": "^5.0.8",
172168
"@achrinza/node-ipc": "^10.1.9"

src/background.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,21 @@
1111

1212
import 'threads/register'
1313

14-
import { WindowHandler, _windowHandler, setIsQuitting } from './utils/main/windowManager'
1514
import { BrowserWindow, app, protocol, session } from 'electron'
16-
import { resolve } from 'path'
15+
import { WindowHandler, _windowHandler, setIsQuitting } from './utils/main/windowManager'
16+
import { getExtensionHostChannel, registerIpcChannels } from '@/utils/main/ipc'
17+
import { loadPreferences, setInitialPreferences, shouldWatchFileChanges } from './utils/main/db/preferences'
18+
import { migrateThemes, setupDefaultThemes, setupSystemThemes } from './utils/main/themes/preferences'
19+
import { setupScanTask, setupScrapeTask } from '@/utils/main/scheduler/index'
1720

1821
import { createFavoritesPlaylist } from './utils/main/db'
19-
import { loadPreferences, setInitialPreferences, shouldWatchFileChanges } from './utils/main/db/preferences'
22+
import { createProtocol } from 'vue-cli-plugin-electron-builder/lib'
23+
import { exit } from 'process'
2024
import { loadSelectiveArrayPreference } from './utils/main/db/preferences'
2125
import { logger } from './utils/main/logger/index'
22-
import { migrateThemes, setupDefaultThemes, setupSystemThemes } from './utils/main/themes/preferences'
23-
import { getExtensionHostChannel, registerIpcChannels } from '@/utils/main/ipc'
2426
import { oauthHandler } from '@/utils/main/oauth/handler'
25-
import { setupScanTask, setupScrapeTask } from '@/utils/main/scheduler/index'
27+
import { resolve } from 'path'
2628
import { setupUpdateCheckTask } from '@/utils/main/scheduler/index'
27-
import { exit } from 'process'
28-
import pie from 'puppeteer-in-electron'
29-
import { createProtocol } from 'vue-cli-plugin-electron-builder/lib'
3029

3130
if (process.defaultApp) {
3231
if (process.argv.length >= 2) {
@@ -58,7 +57,6 @@ if (isDevelopment) {
5857

5958
overrideConsole()
6059
_windowHandler.setHardwareAcceleration()
61-
pie.initialize(app)
6260

6361
process.on('uncaughtException', (err) => {
6462
console.error(err)

src/utils/main/windowManager.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ import { nativeTheme } from 'electron'
3333
import { access, readFile } from 'fs/promises'
3434
import { ButtonEnum, PlayerButtons } from 'media-controller'
3535
import path from 'path'
36-
import puppeteer from 'puppeteer-core'
37-
import pie from 'puppeteer-in-electron'
3836
import { Readable } from 'stream'
3937

4038
export class WindowHandler {

tests/electron/common.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/electron/window/index.test.ts

Lines changed: 0 additions & 44 deletions
This file was deleted.

yarn.lock

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2654,16 +2654,6 @@
26542654
picocolors "^1.0.0"
26552655
tslib "^2.6.0"
26562656

2657-
"@playwright/test@^1.35.1":
2658-
version "1.35.1"
2659-
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.35.1.tgz#a596b61e15b980716696f149cc7a2002f003580c"
2660-
integrity sha512-b5YoFe6J9exsMYg0pQAobNDR85T1nLumUYgUTtKm4d21iX2L7WqKq9dW8NGJ+2vX0etZd+Y7UeuqsxDXm9+5ZA==
2661-
dependencies:
2662-
"@types/node" "*"
2663-
playwright-core "1.35.1"
2664-
optionalDependencies:
2665-
fsevents "2.3.2"
2666-
26672657
"@polka/url@^1.0.0-next.20":
26682658
version "1.0.0-next.21"
26692659
resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.21.tgz#5de5a2385a35309427f6011992b544514d559aa1"
@@ -7318,7 +7308,7 @@ fs.realpath@^1.0.0:
73187308
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
73197309
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
73207310

7321-
fsevents@2.3.2, fsevents@^2.3.2, fsevents@~2.3.2:
7311+
fsevents@^2.3.2, fsevents@~2.3.2:
73227312
version "2.3.2"
73237313
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
73247314
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
@@ -10683,25 +10673,11 @@ pkg-up@^3.1.0:
1068310673
dependencies:
1068410674
find-up "^3.0.0"
1068510675

10686-
playwright-core@1.32.3, playwright-core@1.35.1, playwright-core@1.36.2, playwright-core@^1.17.1, playwright-core@^1.25.1:
10676+
playwright-core@^1.17.1:
1068710677
version "1.32.3"
1068810678
resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.32.3.tgz#e6dc7db0b49e9b6c0b8073c4a2d789a96f519c48"
1068910679
integrity sha512-SB+cdrnu74ZIn5Ogh/8278ngEh9NEEV0vR4sJFmK04h2iZpybfbqBY0bX6+BLYWVdV12JLLI+JEFtSnYgR+mWg==
1069010680

10691-
playwright@^1.25.1:
10692-
version "1.32.3"
10693-
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.32.3.tgz#88583167880e42ca04fa8c4cc303680f4ff457d0"
10694-
integrity sha512-h/ylpgoj6l/EjkfUDyx8cdOlfzC96itPpPe8BXacFkqpw/YsuxkpPyVbzEq4jw+bAJh5FLgh31Ljg2cR6HV3uw==
10695-
dependencies:
10696-
playwright-core "1.32.3"
10697-
10698-
playwright@^1.36.2:
10699-
version "1.36.2"
10700-
resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.36.2.tgz#4f25272209a31ad1138d7b9868e0325159f003e3"
10701-
integrity sha512-4Fmlq3KWsl85Bl4InJw1NC21aeQV0iSZuFvTDcy1F8zVmXmgQRe89GxF8zMSRt/KIS+2tUolak7EXVl9aC+JdA==
10702-
dependencies:
10703-
playwright-core "1.36.2"
10704-
1070510681
plist@^3.0.4, plist@^3.0.5:
1070610682
version "3.0.6"
1070710683
resolved "https://registry.yarnpkg.com/plist/-/plist-3.0.6.tgz#7cfb68a856a7834bca6dbfe3218eb9c7740145d3"

0 commit comments

Comments
 (0)