Skip to content

Commit

Permalink
Dev (#36)
Browse files Browse the repository at this point in the history
* Bump simple-get from 4.0.0 to 4.0.1 (#9)

Bumps [simple-get](https://github.com/feross/simple-get) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/feross/simple-get/releases)
- [Commits](feross/simple-get@v4.0.0...v4.0.1)

---
updated-dependencies:
- dependency-name: simple-get
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump follow-redirects from 1.14.6 to 1.14.8 (#10)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.6 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](follow-redirects/follow-redirects@v1.14.6...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump url-parse from 1.5.3 to 1.5.10 (#12)

Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.3 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](unshiftio/url-parse@1.5.3...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump minimist from 1.2.5 to 1.2.6 (#14)

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump eventsource from 1.1.0 to 1.1.1 (#15)

Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](EventSource/eventsource@v1.1.0...v1.1.1)

---
updated-dependencies:
- dependency-name: eventsource
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump ansi-regex from 4.1.0 to 5.0.1 (#19)

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v4.1.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump electron from 13.6.3 to 18.3.7 (#18)

Bumps [electron](https://github.com/electron/electron) from 13.6.3 to 18.3.7.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](electron/electron@v13.6.3...v18.3.7)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump terser from 4.8.0 to 4.8.1 (#17)

Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump nanoid from 3.1.30 to 3.3.4 (#21)

Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.3.4.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@3.1.30...3.3.4)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump plist from 3.0.4 to 3.0.6 (#20)

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.6.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Updating project dependencies and migrating react to vite

* fixing build issues and adding build configuration for linux

* fixing asets paths

* setting up eslint

* adding serve react buld server for production

* asset added

* adding taskbar icon for linux

* adding cross platform packages

* Movie player error

* upgrading plyr to latest and solving some bugs

* Adding throttleing torrent and client download/upload speed

* improving readme

* icon bug fix

* updating package-lock.json

* updating packages

* updating dependencies and updating stream server issues

* updating package.json

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
iambpn and dependabot[bot] committed Mar 1, 2024
1 parent 127cd9d commit f64a70d
Show file tree
Hide file tree
Showing 9 changed files with 3,601 additions and 9,091 deletions.
8 changes: 6 additions & 2 deletions electron/components/DownloaderWindow.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { BrowserWindow } from 'electron';
import isDev from 'electron-is-dev';
import path from 'path';
import { get__dirname } from '../configs.js';

export default class DownloaderWindow extends BrowserWindow {
constructor(url: string) {
Expand All @@ -12,12 +13,15 @@ export default class DownloaderWindow extends BrowserWindow {
backgroundColor: '#060606',
title: 'Downloader',
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
preload: path.join(get__dirname(import.meta.url), 'preload.js'),
backgroundThrottling: false,
},
icon:
process.platform === 'linux'
? path.join(__dirname, '../assets/icons/256x256.png')
? path.join(
get__dirname(import.meta.url),
'../assets/icons/256x256.png'
)
: undefined,
});
this.setMenuBarVisibility(false);
Expand Down
7 changes: 4 additions & 3 deletions electron/components/MainWindow.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { BrowserWindow } from 'electron';
import path from 'path';
import windowStateKeeper from 'electron-window-state';
import path from 'path';
import { get__dirname } from '../configs.js';

class MainWindow extends BrowserWindow {
constructor(url: string, state: windowStateKeeper.State) {
Expand All @@ -15,12 +16,12 @@ class MainWindow extends BrowserWindow {
backgroundColor: '#060606',
title: 'YTS-Streaming',
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
preload: path.join(get__dirname(import.meta.url), 'preload.cjs'),
backgroundThrottling: false,
},
icon:
process.platform === 'linux'
? path.join(__dirname, '../assets/icons/256x256.png')
? path.join(get__dirname(import.meta.url), '../assets/icons/256x256.png')
: undefined,
});
this.loadURL(url);
Expand Down
6 changes: 5 additions & 1 deletion electron/components/VideoPlayerWindow.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { BrowserWindow, Menu, shell } from 'electron';
import path from 'path';
import { get__dirname } from '../configs.js';

class VideoPlayerWindow extends BrowserWindow {
constructor(url: string) {
Expand All @@ -15,7 +16,10 @@ class VideoPlayerWindow extends BrowserWindow {
webPreferences: {},
icon:
process.platform === 'linux'
? path.join(__dirname, '../assets/icons/256x256.png')
? path.join(
get__dirname(import.meta.url),
'../assets/icons/256x256.png'
)
: undefined,
});
this.setMenu(
Expand Down
File renamed without changes.
59 changes: 59 additions & 0 deletions electron/configs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import path from 'path';
import { fileURLToPath } from 'url';

export const ROOT_PATH = process.cwd(); // Current working directory: from where it is called

export const get__dirname = (fileUrl: string) =>
path.dirname(fileURLToPath(fileUrl));

export const ASSETS_PATHs = {
PLYR_JS: path.join(
get__dirname(import.meta.url),
'assets/video_player/plyr3.7.3.polyfilled.min.js'
),
PLYR_CSS: path.join(
get__dirname(import.meta.url),
'assets/video_player/plyr3.7.3.min.css'
),
BOOTSTRAP: path.join(
get__dirname(import.meta.url),
'assets/bootstrap/bootstrap.min.css'
),
VIDEO_HTML_PATH: path.join(
get__dirname(import.meta.url),
'views/html/video.html'
),
REACT_BUILD: path.join(get__dirname(import.meta.url), 'assets'),
};

export const WINDOW_PATHs = {
DOWNLOAD_WINDOW_HTML: path.join(
get__dirname(import.meta.url),
'views/html/download.html'
),
MAIN_WINDOW_HTML: path.join(get__dirname(import.meta.url), 'index.html'),
};

export const DEV_SERVER = {
host: 'localhost',
port: '3000',
};

export const PROD_SERVER = {
host: 'localhost',
port: '18080',
};

export const STREAM_SERVER = {
host: 'localhost',
port: '19000',
};

/* Const Variable */
export const MB = 1e6;

/* Setup caption config */
export const captionConf = path.join(ROOT_PATH, '.CaptionConf');
export const defaultCaptionFont = {
fontSize: { small: 13, medium: 15, large: 21 },
};
Loading

0 comments on commit f64a70d

Please sign in to comment.