Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Angular 17 and other minor changes #334

Merged
merged 27 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
8087e42
chore: updates in package-lock.json
4gray Nov 9, 2023
56f2d14
chore: use @angular-builders/jest
4gray Nov 9, 2023
d5de8b1
chore: update angular to v17
4gray Nov 9, 2023
c4f2bdf
test: update test
4gray Nov 15, 2023
4a6298c
chore: remove deprecated eslint rule
4gray Nov 15, 2023
70d66ef
docs: update features list in readme file
4gray Nov 15, 2023
f3961a7
ci: update dependency
4gray Nov 15, 2023
93a379e
ci: update node.js version in github action files
4gray Nov 15, 2023
d007d30
chore: update ngrx packages
4gray Nov 15, 2023
07858dd
fix(xtream): vlc player for series
4gray Nov 22, 2023
ef0dc47
chore: remove debug related code
4gray Nov 22, 2023
68f0734
chore: update dependencies
4gray Nov 22, 2023
6ad1aab
fix(settings): init settings issue
4gray Nov 22, 2023
ba03dcd
chore: update dependencies
4gray Nov 26, 2023
a2e315e
refactor: improve error handling
4gray Nov 26, 2023
eef4706
refactor: convert to standalone components
4gray Nov 26, 2023
fe09a34
refactor: add new translation strings
4gray Nov 26, 2023
7d3747d
refactor(radio): play radio stations in iptvnator
4gray Nov 26, 2023
b37f0e4
refactor: add new dialog
4gray Nov 26, 2023
6238749
refactor: some improvements in url-upload dialog
4gray Nov 26, 2023
1c7d14d
refactor: replace tabs by mat-menu
4gray Nov 26, 2023
fb07060
style: adapt container height
4gray Dec 6, 2023
fc3e3ac
chore: add rx-angular dependency
4gray Dec 6, 2023
2131ba2
fix: improve big playlists handling
4gray Dec 6, 2023
8fb8dac
refactor: code style improvements
4gray Dec 6, 2023
d7926fd
chore: update ng-mocks
4gray Dec 8, 2023
dd8574b
test: update spec
4gray Dec 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/no-duplicate-imports": ["error"],
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-unsafe-argument": 0,
"@typescript-eslint/no-var-requires": 0,
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18.10'
node-version: '18'
- run: git config --global url."https://${{ secrets.PAT }}@github.com/".insteadOf ssh://git@github.com/
- run: npm ci
- run: npm test -- --coverage
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18.10'
node-version: '18'
- run: git config --global url."https://${{ secrets.PAT }}@github.com/".insteadOf ssh://git@github.com/
- run: npm ci
# env:
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: '18.10'
node-version: '18'

- name: Build Electron app
uses: samuelmeuli/action-electron-builder@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v2
with:
node-version: '18.10'
node-version: '18'

- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v2
Expand Down
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

npx stylelint "**/*.scss"
npx --no-install commitlint --edit
npm test -- --coverage
npm test
npx eslint src/**/*.ts
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ The application is a cross-platform and open source project based on Electron an
## Features

- M3u and M3u8 playlists support 📺
- Upload playlists from a file system 📂
- Add remote playlists via URL 🔗
- Playlists auto-update feature
- Open playlist from the file system
- Xtream Code (XC) and Stalker portal (STB) support
- External player support - mvp, VLC
- Add playlists from file system or from remote URL 📂
- Playlists auto-update feature on app startup
- Search for channels 🔍
- EPG support (TV Guide) with detailed info
- TV archive/catchup/timeshift
- Group-based channels list
- Save channels as favorites
- Global favorites aggregated from all playlists
- HTML video player with hls.js support or Video.js based player
- Internalization, currently 7 languages are supported (en, ru, de, ko, es, zh, fr)
- Internalization, currently 8 languages are supported (en, ru, de, ko, es, zh, fr, it)
- Set custom "User Agent" header for a playlist
- Re-fetch/auto-update playlists
- Light and Dark theme
- Version for self-hosted docker is available

## Screenshots:

Expand Down
17 changes: 7 additions & 10 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,32 +95,29 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "iptvnator:build"
"buildTarget": "iptvnator:build"
},
"configurations": {
"dev": {
"browserTarget": "iptvnator:build:dev"
"buildTarget": "iptvnator:build:dev"
},
"web": {
"browserTarget": "iptvnator:build:web"
"buildTarget": "iptvnator:build:web"
},
"production": {
"browserTarget": "iptvnator:build:production"
"buildTarget": "iptvnator:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "iptvnator:build"
"buildTarget": "iptvnator:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:jest",
"options": {
"tsConfig": "tsconfig.spec.json",
"polyfills": ["zone.js", "zone.js/testing"]
}
"builder": "@angular-builders/jest:run",
"options": {}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
Expand Down
6 changes: 6 additions & 0 deletions electron/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ export class Api {
event.sender.send(PLAYLIST_PARSE_RESPONSE, {
payload: playlistObject,
});
})
.catch((err) => {
event.sender.send(ERROR, {
message: err.response.statusText,
status: err.response.status,
});
});
} catch (err) {
event.sender.send(ERROR, {
Expand Down
14 changes: 1 addition & 13 deletions electron/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-useless-catch */
import { app, BrowserWindow, Menu, session } from 'electron';
import { app, BrowserWindow, Menu } from 'electron';
import * as path from 'path';
import * as url from 'url';
import { Api } from './api';
Expand Down Expand Up @@ -146,18 +146,6 @@ try {
app.on('before-quit', () => {
if (win) store.set(WINDOW_BOUNDS, win.getNormalBounds());
});

if (serve && process.platform === 'darwin') {
// add redux dev tools extension
const reduxDevToolsPath = path.join(
os.homedir(),
'Library/Application Support/Google/Chrome/Default/Extensions/lmhkpmbekcpmknklioeibfkpmmfibljd/3.0.19_14'
);

app.whenReady().then(async () => {
await session.defaultSession.loadExtension(reduxDevToolsPath);
});
}
} catch (e) {
// Catch Error
throw e;
Expand Down
8 changes: 0 additions & 8 deletions jest.config.js

This file was deleted.

Loading
Loading