mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
refactor: remove outdated dependencies
This commit is contained in:
1 parent
737d4be387
commit
58306c9a08
4 files changed
+21
-2555
No files matched your search
Generated
+17
-2530
File diff suppressed because it is too large.
Load diff
@@ -21,24 +21,12 @@
|
||||
"main": "electron/main.js",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"postinstall": "electron-builder install-app-deps && husky install",
|
||||
"ng": "ng",
|
||||
"start": "npm-run-all -p electron:serve ng:serve",
|
||||
"build": "npm run electron:serve-tsc && ng build --base-href ./",
|
||||
"build:electron": "npm run electron:serve-tsc",
|
||||
"build:dev": "npm run build -- -c dev",
|
||||
"build:prod": "npm run build -- -c production",
|
||||
"build:web": "npm run build -- -c web",
|
||||
"ng:build": "ng build -c production",
|
||||
"ng:serve": "ng serve -c dev",
|
||||
"ng:serve:web": "ng serve -c web -o",
|
||||
"electron:serve-tsc": "tsc -p tsconfig.serve.json",
|
||||
"electron:serve": "wait-on tcp:4200 && npm run electron:serve-tsc && npx electron . --serve --inspect",
|
||||
"electron:local": "npm run build:prod && npx electron .",
|
||||
"electron:build": "npm run build:prod && electron-builder build",
|
||||
"electron:build:mac": "npm run build:prod && electron-builder build -m",
|
||||
"electron:build:linux": "npm run build:prod && electron-builder build -l --x64 --ia32 --arm64 --armv7l",
|
||||
"electron:build:windows": "npm run build:prod && electron-builder build -w",
|
||||
"test": "ng test",
|
||||
"test:watch": "ng test --watch",
|
||||
"e2e": "npm run build:electron && npx playwright test --retries 3",
|
||||
@@ -56,7 +44,6 @@
|
||||
"@angular/animations": "18.2.1",
|
||||
"@angular/cdk": "18.2.1",
|
||||
"@angular/material": "18.2.1",
|
||||
"@electron/remote": "2.1.0",
|
||||
"@ngrx/component-store": "18.0.2",
|
||||
"@ngrx/effects": "18.0.2",
|
||||
"@ngrx/entity": "18.0.2",
|
||||
@@ -77,14 +64,9 @@
|
||||
"@tauri-apps/plugin-window-state": "2.0.0",
|
||||
"@videojs/http-streaming": "2.15.0",
|
||||
"@yangkghjh/videojs-aspect-ratio-panel": "0.0.1",
|
||||
"about-window": "1.15.2",
|
||||
"axios": "1.6.2",
|
||||
"custom-electron-titlebar": "4.2.8",
|
||||
"date-fns": "2.29.3",
|
||||
"electron-context-menu": "3.6.1",
|
||||
"electron-store": "8.1.0",
|
||||
"epg-parser": "0.1.6",
|
||||
"fix-path": "3.0.0",
|
||||
"hls.js": "1.4.12",
|
||||
"iptv-playlist-parser": "github:4gray/iptv-playlist-parser",
|
||||
"lodash": "4.17.21",
|
||||
@@ -142,8 +124,6 @@
|
||||
"@typescript-eslint/eslint-plugin-tslint": "7.0.2",
|
||||
"@typescript-eslint/parser": "^8.2.0",
|
||||
"conventional-changelog-cli": "5.0.0",
|
||||
"electron": "27.1.0",
|
||||
"electron-builder": "24.6.4",
|
||||
"eslint": "^9.9.1",
|
||||
"eslint-plugin-import": "2.29.1",
|
||||
"globals": "15.9.0",
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
import { ipcRenderer } from 'electron';
|
||||
export abstract class DataService {
|
||||
get isElectron(): boolean {
|
||||
return !!(window && window.process && (window.process as any).type);
|
||||
}
|
||||
get remote() {
|
||||
return this.isElectron ? window.require('@electron/remote') : null;
|
||||
return null;
|
||||
}
|
||||
get ipcRenderer(): typeof ipcRenderer {
|
||||
return this.isElectron ? window.require('electron').ipcRenderer : null;
|
||||
get ipcRenderer() {
|
||||
return null;
|
||||
}
|
||||
abstract getAppVersion(): string;
|
||||
abstract sendIpcEvent(type: string, payload?: unknown);
|
||||
|
||||
@@ -63,7 +63,7 @@ export class AddPlaylistDialogComponent {
|
||||
uploadType: 'FILE',
|
||||
playlist,
|
||||
title: payload.file.name,
|
||||
path: payload.file.path,
|
||||
path: (payload.file as any).path,
|
||||
})
|
||||
);
|
||||
this.closeDialog();
|
||||
|
||||
Reference in new issue
Block a user