mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-22 06:13:22 -07:00
Merge branch 'Ombi-app:develop' into add-postgres-provider
This commit is contained in:
commit
b2ffef63f8
58 changed files with 7597 additions and 10777 deletions
650
CHANGELOG.md
650
CHANGELOG.md
|
@ -1,3 +1,40 @@
|
|||
## [4.43.14](https://github.com/Ombi-app/Ombi/compare/v4.43.13...v4.43.14) (2024-03-06)
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* ⚡ Improve render performance on the discover, movie and tv pages ([#5084](https://github.com/Ombi-app/Ombi/issues/5084)) ([71c86a8](https://github.com/Ombi-app/Ombi/commit/71c86a8db9e63bf0ab779f9a8b5d62a42c246392))
|
||||
|
||||
|
||||
|
||||
## [4.43.13](https://github.com/Ombi-app/Ombi/compare/v4.43.12...v4.43.13) (2024-03-05)
|
||||
|
||||
|
||||
|
||||
## [4.43.12](https://github.com/Ombi-app/Ombi/compare/v4.43.11...v4.43.12) (2024-03-05)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* src/Ombi/ClientApp/package.json & src/Ombi/ClientApp/yarn.lock to reduce vulnerabilities ([#5040](https://github.com/Ombi-app/Ombi/issues/5040)) [skip ci] ([955a742](https://github.com/Ombi-app/Ombi/commit/955a742fae1d0a3983c59cf77eb1a2d222f18b48))
|
||||
* src/Ombi/ClientApp/package.json & src/Ombi/ClientApp/yarn.lock to reduce vulnerabilities ([#5072](https://github.com/Ombi-app/Ombi/issues/5072)) [skip ci] ([af6a986](https://github.com/Ombi-app/Ombi/commit/af6a9867719deb7b651a6a78352a8ce0df7a0cf0))
|
||||
* src/Ombi/Ombi.csproj to reduce vulnerabilities ([#5066](https://github.com/Ombi-app/Ombi/issues/5066)) [skip ci] ([71df058](https://github.com/Ombi-app/Ombi/commit/71df05886512b8589f193a5cda0166c694438fc0))
|
||||
* upgrade @fortawesome/fontawesome-free from 6.4.2 to 6.5.0 ([#5053](https://github.com/Ombi-app/Ombi/issues/5053)) [skip ci] ([5017e38](https://github.com/Ombi-app/Ombi/commit/5017e38f87e32821adb744935fffcb2d76927e2c))
|
||||
* upgrade @types/jquery from 3.5.27 to 3.5.28 ([#5049](https://github.com/Ombi-app/Ombi/issues/5049)) [skip ci] ([2c8fe80](https://github.com/Ombi-app/Ombi/commit/2c8fe8087aea227e7425e82392ad9ccb3f8261b4))
|
||||
* upgrade moment from 2.29.4 to 2.30.1 ([#5075](https://github.com/Ombi-app/Ombi/issues/5075)) [skip ci] ([460fa39](https://github.com/Ombi-app/Ombi/commit/460fa39bb95c73bafcd65fcc394fecca04d3ac49))
|
||||
* upgrade multiple dependencies with Snyk ([#5073](https://github.com/Ombi-app/Ombi/issues/5073)) [skip ci] ([a27b459](https://github.com/Ombi-app/Ombi/commit/a27b4592471c58fca9ad5193b979171fa7c5e66d))
|
||||
|
||||
|
||||
|
||||
## [4.43.11](https://github.com/Ombi-app/Ombi/compare/v4.43.10...v4.43.11) (2024-01-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **emby:** Add more logging on the PlaySync to check for Tv Shows without a valid TMDB ([08eb13b](https://github.com/Ombi-app/Ombi/commit/08eb13b788582d576a0e1befdb8e84ef7ff0d2f3))
|
||||
|
||||
|
||||
|
||||
## [4.43.10](https://github.com/Ombi-app/Ombi/compare/v4.43.9...v4.43.10) (2023-11-20)
|
||||
|
||||
|
||||
|
@ -1844,616 +1881,3 @@
|
|||
|
||||
|
||||
|
||||
## [4.35.12](https://github.com/Ombi-app/Ombi/compare/v4.35.10...v4.35.12) (2023-03-25)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **sonarr:** :bug: Improved the error handling in the sonarr settings page in the UI ([fcd78fe](https://github.com/Ombi-app/Ombi/commit/fcd78fee619d10ec7d78e8c8ec6c3ac4b0a361a1)), closes [#4877](https://github.com/Ombi-app/Ombi/issues/4877)
|
||||
|
||||
|
||||
|
||||
## [4.35.9](https://github.com/Ombi-app/Ombi/compare/v4.35.8...v4.35.9) (2023-02-24)
|
||||
|
||||
|
||||
|
||||
## [4.35.8](https://github.com/Ombi-app/Ombi/compare/v4.35.7...v4.35.8) (2023-02-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **plex-oauth:** 🐛 Fixed an issue where using OAuth you could log in as a Ombi Local user [#4835](https://github.com/Ombi-app/Ombi/issues/4835) ([4098da3](https://github.com/Ombi-app/Ombi/commit/4098da305aaea9dae9a552644268a4fed7204cfe))
|
||||
|
||||
|
||||
|
||||
## [4.35.7](https://github.com/Ombi-app/Ombi/compare/v4.35.6...v4.35.7) (2023-02-10)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **wizard:** :bug: Stop access to the wizard when you have already setup ombi ([#4866](https://github.com/Ombi-app/Ombi/issues/4866)) ([353de98](https://github.com/Ombi-app/Ombi/commit/353de981a462e1753288d225ec4644a44a62d2bc))
|
||||
|
||||
|
||||
|
||||
## [4.35.6](https://github.com/Ombi-app/Ombi/compare/v4.35.5...v4.35.6) (2023-01-31)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Fixed the issue where the login page is still present after logging in with oauth ([aca4ee3](https://github.com/Ombi-app/Ombi/commit/aca4ee37915a28200e5233be3dc711ccc4a5aee9))
|
||||
|
||||
|
||||
|
||||
## [4.35.5](https://github.com/Ombi-app/Ombi/compare/v4.35.4...v4.35.5) (2023-01-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **radarr-settings:** 🐛 Fixed a typo ([4a50a00](https://github.com/Ombi-app/Ombi/commit/4a50a00d4729d99f4359874b9af4dbc58a0c220b))
|
||||
|
||||
|
||||
|
||||
## [4.35.4](https://github.com/Ombi-app/Ombi/compare/v4.35.3...v4.35.4) (2023-01-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **discover:** :bug: Fixed the default poster not taking into account the base url in some scenarios [#4845](https://github.com/Ombi-app/Ombi/issues/4845) ([8eda250](https://github.com/Ombi-app/Ombi/commit/8eda250367953183daec03ccb5cdf9fe94275b27))
|
||||
* **Hide music from navbar and request list when not enabled:** :bug: ([5123a76](https://github.com/Ombi-app/Ombi/commit/5123a76954e9f81d58c05e31afc7a29aec19cb7a))
|
||||
|
||||
|
||||
|
||||
## [4.35.3](https://github.com/Ombi-app/Ombi/compare/v4.35.2...v4.35.3) (2023-01-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **#4847:** Invalid Discord request fixed, also fixed an issue where App Only users would not show as logged in on the user management page ([#4848](https://github.com/Ombi-app/Ombi/issues/4848)) ([f229d88](https://github.com/Ombi-app/Ombi/commit/f229d88bd744bc5253b5d3db69ae5ef22d014230))
|
||||
|
||||
|
||||
|
||||
## [4.35.2](https://github.com/Ombi-app/Ombi/compare/v4.35.1...v4.35.2) (2023-01-08)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **database:** Just some tweaks, shouldn't notice any difference, maybe a less error in the log ([67fb992](https://github.com/Ombi-app/Ombi/commit/67fb9921c0c025025286eb6c0a9d09fd01b18465))
|
||||
|
||||
|
||||
|
||||
## [4.35.1](https://github.com/Ombi-app/Ombi/compare/v4.35.0...v4.35.1) (2023-01-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **plex-watchlist:** Index out of bounds error ([8cd556e](https://github.com/Ombi-app/Ombi/commit/8cd556e268931596b9c1d1ae0ce533bfaaf330f4))
|
||||
|
||||
|
||||
|
||||
# [4.35.0](https://github.com/Ombi-app/Ombi/compare/v4.34.1...v4.35.0) (2023-01-04)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Add the option for header authentication to create users ([#4841](https://github.com/Ombi-app/Ombi/issues/4841)) ([e6c9ce5](https://github.com/Ombi-app/Ombi/commit/e6c9ce5ad0056608ecda8273fb8124ed292e2942))
|
||||
|
||||
|
||||
|
||||
## [4.34.1](https://github.com/Ombi-app/Ombi/compare/v4.34.0...v4.34.1) (2023-01-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **plex-watchlist:** Lookup the ID from different sources when Plex doesn't contain the metadata ([#4843](https://github.com/Ombi-app/Ombi/issues/4843)) ([a2cc23b](https://github.com/Ombi-app/Ombi/commit/a2cc23b351c4a568c44e6c855f94db9f71ad084a))
|
||||
|
||||
|
||||
|
||||
# [4.34.0](https://github.com/Ombi-app/Ombi/compare/v4.33.1...v4.34.0) (2023-01-04)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Radarr tags ([#4815](https://github.com/Ombi-app/Ombi/issues/4815)) ([6fa5064](https://github.com/Ombi-app/Ombi/commit/6fa506491fe867cdeef9df79991ae49319d71c3d))
|
||||
|
||||
|
||||
|
||||
## [4.33.1](https://github.com/Ombi-app/Ombi/compare/v4.33.0...v4.33.1) (2022-12-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **plex:** Added the watchlist request whole show back into the settings ([10701c4](https://github.com/Ombi-app/Ombi/commit/10701c4a0b6190eebb75c5d8b18224f3d0bc8502))
|
||||
|
||||
|
||||
|
||||
# [4.33.0](https://github.com/Ombi-app/Ombi/compare/v4.32.3...v4.33.0) (2022-12-01)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Angular 15 and Dependency upgrades ([#4818](https://github.com/Ombi-app/Ombi/issues/4818)) ([4816acf](https://github.com/Ombi-app/Ombi/commit/4816acf6f94443d23ebef6091d4cfcbca580f9ca))
|
||||
|
||||
|
||||
|
||||
## [4.32.3](https://github.com/Ombi-app/Ombi/compare/v4.32.2...v4.32.3) (2022-11-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **sonarr:** V4 actually works this time around ([f62e70f](https://github.com/Ombi-app/Ombi/commit/f62e70fc493c7971da5e4508ce10522f5df0bbf7))
|
||||
|
||||
|
||||
|
||||
## [4.32.2](https://github.com/Ombi-app/Ombi/compare/v4.32.1...v4.32.2) (2022-11-23)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **sonarr:** :bug: Sonarr V4 should work now ([#4810](https://github.com/Ombi-app/Ombi/issues/4810)) ([37655af](https://github.com/Ombi-app/Ombi/commit/37655aff9d3d133b42f5664bc9445d6571e966d6))
|
||||
|
||||
|
||||
|
||||
## [4.32.1](https://github.com/Ombi-app/Ombi/compare/v4.32.0...v4.32.1) (2022-11-21)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **plex:** :bug: Fixed the issue where you couldn't add a new server on a fresh setup after the settings page rework ([187b18d](https://github.com/Ombi-app/Ombi/commit/187b18d5c01f6a13831e4a410b5d7c349e27d847))
|
||||
|
||||
|
||||
|
||||
# [4.32.0](https://github.com/Ombi-app/Ombi/compare/v4.31.0...v4.32.0) (2022-11-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **translations:** 🌐 New translations from Crowdin [skip ci] ([#4801](https://github.com/Ombi-app/Ombi/issues/4801)) ([4692003](https://github.com/Ombi-app/Ombi/commit/46920032baed04675b2ffbe1700afdc0740a4ac4))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **plex:** Rework the Plex Settings page ([#4805](https://github.com/Ombi-app/Ombi/issues/4805)) ([1b8c47f](https://github.com/Ombi-app/Ombi/commit/1b8c47f3163f618851d4904732cb07015e1e93ff))
|
||||
|
||||
|
||||
|
||||
# [4.31.0](https://github.com/Ombi-app/Ombi/compare/v4.30.0...v4.31.0) (2022-11-18)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **sonarr:** Added the ability to add default tags when sending to Sonarr ([#4803](https://github.com/Ombi-app/Ombi/issues/4803)) ([ecfbb8e](https://github.com/Ombi-app/Ombi/commit/ecfbb8eda91e1a90239dcf8be847afcc2394a78e))
|
||||
|
||||
|
||||
|
||||
# [4.30.0](https://github.com/Ombi-app/Ombi/compare/v4.29.3...v4.30.0) (2022-11-17)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **sonarr:** :sparkles: Add the username to a Sonarr tag when sent to Sonarr ([#4802](https://github.com/Ombi-app/Ombi/issues/4802)) ([1d5fabd](https://github.com/Ombi-app/Ombi/commit/1d5fabd317e3ce8f6dd31f06d15dc81277f39dbd))
|
||||
|
||||
|
||||
|
||||
## [4.29.3](https://github.com/Ombi-app/Ombi/compare/v4.29.2...v4.29.3) (2022-11-14)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **notifications:** Fixed the Partially TV notifications going to the admin [#4797](https://github.com/Ombi-app/Ombi/issues/4797) ([#4799](https://github.com/Ombi-app/Ombi/issues/4799)) ([bcb3e7f](https://github.com/Ombi-app/Ombi/commit/bcb3e7f00380a4c4278f59dc55febf43e6d05d47))
|
||||
* Only log error messages from Microsoft ([#4787](https://github.com/Ombi-app/Ombi/issues/4787)) ([c614e0c](https://github.com/Ombi-app/Ombi/commit/c614e0ca5fe5023cbe7ced326145273cd75be85d))
|
||||
|
||||
|
||||
|
||||
## [4.29.2](https://github.com/Ombi-app/Ombi/compare/v4.29.1...v4.29.2) (2022-10-24)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **plex:** Fixed an issue where sometimes the availability checker would throw an exception when checking episodes ([17ba202](https://github.com/Ombi-app/Ombi/commit/17ba2020ee0950c2c0e0e03fdb7835b579da75a9))
|
||||
|
||||
|
||||
|
||||
## [4.29.1](https://github.com/Ombi-app/Ombi/compare/v4.29.0...v4.29.1) (2022-10-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Consistently reset loading flag when requesting movies on discover page. ([#4777](https://github.com/Ombi-app/Ombi/issues/4777)) ([a40ab5c](https://github.com/Ombi-app/Ombi/commit/a40ab5cddf769d4147696eca50c1610b466ab99b))
|
||||
* **sonarr:** :bug: Fixed an issue where the language list didn't correctly load for power users in the advanced options [#4782](https://github.com/Ombi-app/Ombi/issues/4782) ([2173670](https://github.com/Ombi-app/Ombi/commit/217367047d1568070dd507e54ad3fd2c68f05b88))
|
||||
|
||||
|
||||
|
||||
# [4.29.0](https://github.com/Ombi-app/Ombi/compare/v4.28.1...v4.29.0) (2022-10-19)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Partially Available prevents further TV requests ([#4768](https://github.com/Ombi-app/Ombi/issues/4768)) ([#4779](https://github.com/Ombi-app/Ombi/issues/4779)) ([031e2b9](https://github.com/Ombi-app/Ombi/commit/031e2b9283b239827cabaca4e35f69f2f93a4d7b))
|
||||
* Unable to Delete Jellyfin Server ([#4705](https://github.com/Ombi-app/Ombi/issues/4705)) ([#4780](https://github.com/Ombi-app/Ombi/issues/4780)) ([76a0d0d](https://github.com/Ombi-app/Ombi/commit/76a0d0d26893bd480fea4735f77522ac6261a425))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Provide a flag for missing users on Plex Server ([#4688](https://github.com/Ombi-app/Ombi/issues/4688)) ([#4778](https://github.com/Ombi-app/Ombi/issues/4778)) ([b4a14c2](https://github.com/Ombi-app/Ombi/commit/b4a14c2d28218409390e517b226130e3e84efee1))
|
||||
|
||||
|
||||
|
||||
## [4.28.1](https://github.com/Ombi-app/Ombi/compare/v4.28.0...v4.28.1) (2022-10-19)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **plex:** :bug: Fixed not being able to enable watchlist requests in the Plex settings ([3e5158e](https://github.com/Ombi-app/Ombi/commit/3e5158ef9cda58ea2dd3be143f07aa5433691d79))
|
||||
* Reworked the version check ([#4719](https://github.com/Ombi-app/Ombi/issues/4719)) ([#4781](https://github.com/Ombi-app/Ombi/issues/4781)) ([55855c5](https://github.com/Ombi-app/Ombi/commit/55855c5adda3cd1c51b7fbd0c19b469fc813f98e))
|
||||
|
||||
|
||||
|
||||
# [4.28.0](https://github.com/Ombi-app/Ombi/compare/v4.27.8...v4.28.0) (2022-10-07)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **plex:** ✨ Added the ability to configure the watchlist to request the whole TV show rather than latest season ([#4774](https://github.com/Ombi-app/Ombi/issues/4774)) ([fa65712](https://github.com/Ombi-app/Ombi/commit/fa65712bd570fe8d5d21b8ca0abe182b84960017))
|
||||
|
||||
|
||||
|
||||
## [4.27.8](https://github.com/Ombi-app/Ombi/compare/v4.27.7...v4.27.8) (2022-10-07)
|
||||
|
||||
|
||||
|
||||
## [4.27.7](https://github.com/Ombi-app/Ombi/compare/v4.27.6...v4.27.7) (2022-10-07)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Fixes default image for recently requested items. ([#4767](https://github.com/Ombi-app/Ombi/issues/4767)) ([2e6f35f](https://github.com/Ombi-app/Ombi/commit/2e6f35f89abb3dd3685ec8289f8620c7ef7072cd))
|
||||
|
||||
|
||||
|
||||
## [4.27.6](https://github.com/Ombi-app/Ombi/compare/v4.27.5...v4.27.6) (2022-10-01)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **notifications:** Fixed the error when sending multiple test notifications. Added more logging when Discord complains the message is invalid ([fc14780](https://github.com/Ombi-app/Ombi/commit/fc14780bd354483119ddcbb55a8c382e1890a783))
|
||||
|
||||
|
||||
|
||||
## [4.27.5](https://github.com/Ombi-app/Ombi/compare/v4.27.4...v4.27.5) (2022-09-30)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **importer:** 🐛 Allow you to only import Plex Admins without the Plex Users ([8c9ad9b](https://github.com/Ombi-app/Ombi/commit/8c9ad9b414fdc6c88bdb911d6057ae5d38783b98))
|
||||
|
||||
|
||||
|
||||
## [4.27.4](https://github.com/Ombi-app/Ombi/compare/v4.27.3...v4.27.4) (2022-09-30)
|
||||
|
||||
|
||||
|
||||
## [4.27.3](https://github.com/Ombi-app/Ombi/compare/v4.27.2...v4.27.3) (2022-09-30)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **availability:** 🐛 Fixed a issue with the availability checker after the previous update. Added full test coverage around that area ([28e2480](https://github.com/Ombi-app/Ombi/commit/28e248046ad56390595f84172bbd5f5961325b4d))
|
||||
|
||||
|
||||
|
||||
## [4.27.2](https://github.com/Ombi-app/Ombi/compare/v4.27.1...v4.27.2) (2022-09-29)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **sonarr:** :bug: Cleaned up and removed Sonarr v3 option, sonarr v3 is now the default. This allows us to get ready for the upcoming Sonarr v4 ([#4764](https://github.com/Ombi-app/Ombi/issues/4764)) ([2cddec7](https://github.com/Ombi-app/Ombi/commit/2cddec759004b6490f686ff74cb092238e3dc946))
|
||||
|
||||
|
||||
|
||||
## [4.27.1](https://github.com/Ombi-app/Ombi/compare/v4.27.0...v4.27.1) (2022-09-20)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **plex:** stop the plex sync from deleting episodes when we can't find the plex key ([66b05e5](https://github.com/Ombi-app/Ombi/commit/66b05e5a85dbfe1fec5f9366e80987f2cfa1f4fe))
|
||||
|
||||
|
||||
|
||||
# [4.27.0](https://github.com/Ombi-app/Ombi/compare/v4.26.0...v4.27.0) (2022-09-14)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Recently requested improvements ([#4755](https://github.com/Ombi-app/Ombi/issues/4755)) ([ff04d87](https://github.com/Ombi-app/Ombi/commit/ff04d875343604c77c391bf55d0968977e480281))
|
||||
|
||||
|
||||
|
||||
# [4.26.0](https://github.com/Ombi-app/Ombi/compare/v4.25.1...v4.26.0) (2022-09-07)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **notifications:** Add more curly variables for partially available notification ([66aa101](https://github.com/Ombi-app/Ombi/commit/66aa101019c4c4b34e186db9d303049d02b9c781))
|
||||
|
||||
|
||||
|
||||
## [4.25.1](https://github.com/Ombi-app/Ombi/compare/v4.25.0...v4.25.1) (2022-09-07)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **webhook:** Remove added trailing slash from webhook URL [#4710](https://github.com/Ombi-app/Ombi/issues/4710) ([369eb33](https://github.com/Ombi-app/Ombi/commit/369eb339171671101be219486e2aab27a20f3d74))
|
||||
|
||||
|
||||
|
||||
# [4.25.0](https://github.com/Ombi-app/Ombi/compare/v4.24.0...v4.25.0) (2022-08-23)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fixed stats controller ([#4742](https://github.com/Ombi-app/Ombi/issues/4742)) ([47ea64b](https://github.com/Ombi-app/Ombi/commit/47ea64b5a401770f1943b575ca40f84d515e96b3))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Watchlist history errors([#4741](https://github.com/Ombi-app/Ombi/issues/4741)) ([c222f1a](https://github.com/Ombi-app/Ombi/commit/c222f1a945e944ef34e68cad2b61f40e57cab823))
|
||||
|
||||
|
||||
|
||||
# [4.24.0](https://github.com/Ombi-app/Ombi/compare/v4.23.2...v4.24.0) (2022-08-22)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add crew on movie page ([#4722](https://github.com/Ombi-app/Ombi/issues/4722)) ([1d53261](https://github.com/Ombi-app/Ombi/commit/1d532613823804b25984bd1d223d081a54ad143d))
|
||||
|
||||
|
||||
|
||||
## [4.23.2](https://github.com/Ombi-app/Ombi/compare/v4.23.1...v4.23.2) (2022-08-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Fix conflicting property name for Swagger ([#4733](https://github.com/Ombi-app/Ombi/issues/4733)) ([d661f32](https://github.com/Ombi-app/Ombi/commit/d661f32e8a9e105faab6380b4b7b642896b98163))
|
||||
|
||||
|
||||
|
||||
## [4.23.1](https://github.com/Ombi-app/Ombi/compare/v4.23.0...v4.23.1) (2022-08-12)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Localize recently requested on discover page ([#4729](https://github.com/Ombi-app/Ombi/issues/4729)) ([bf65c76](https://github.com/Ombi-app/Ombi/commit/bf65c76ff9ce38f65a9e5feb872734e8d8e35eb6))
|
||||
|
||||
|
||||
|
||||
# [4.23.0](https://github.com/Ombi-app/Ombi/compare/v4.22.5...v4.23.0) (2022-08-09)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Log Microsoft warnings to log file ([#4723](https://github.com/Ombi-app/Ombi/issues/4723)) ([26ac75f](https://github.com/Ombi-app/Ombi/commit/26ac75f0c223c2a91e3471797ae46ede3fde89cc))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* ✨ Recently Requested on Discover Page ([#4387](https://github.com/Ombi-app/Ombi/issues/4387)) ([44d38fb](https://github.com/Ombi-app/Ombi/commit/44d38fbaae521dbb467b61c7471b2384015ac52e))
|
||||
|
||||
|
||||
|
||||
## [4.22.4](https://github.com/Ombi-app/Ombi/compare/v4.22.3...v4.22.4) (2022-08-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* :bug: Fixed missing externals ([#4712](https://github.com/Ombi-app/Ombi/issues/4712)) ([fcc1eaa](https://github.com/Ombi-app/Ombi/commit/fcc1eaaa377683dcdc81d62a2a688fb0c4490c7b))
|
||||
* fixed trakt image not loading when base url present ([#4711](https://github.com/Ombi-app/Ombi/issues/4711)) ([f102dcf](https://github.com/Ombi-app/Ombi/commit/f102dcf751c2eb62ebfe30f9f8e4b2ad863c3b0d))
|
||||
* **translations:** 🌐 New translations from Crowdin [skip ci] ([#4713](https://github.com/Ombi-app/Ombi/issues/4713)) ([ff142b0](https://github.com/Ombi-app/Ombi/commit/ff142b09abbb2f9540387284222552e6e12639fe))
|
||||
|
||||
|
||||
|
||||
## [4.22.3](https://github.com/Ombi-app/Ombi/compare/v4.22.2...v4.22.3) (2022-07-28)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Override Sonarr V3 Profiles endpoint ([#4678](https://github.com/Ombi-app/Ombi/issues/4678)) ([875da95](https://github.com/Ombi-app/Ombi/commit/875da959f353119b05138d68ee6d32a49e14b91e))
|
||||
|
||||
|
||||
|
||||
## [4.22.2](https://github.com/Ombi-app/Ombi/compare/v4.22.1...v4.22.2) (2022-07-25)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fixed an issue where I broke images for some users ([81ddc85](https://github.com/Ombi-app/Ombi/commit/81ddc8553b9094c3f6843b036daebb2eb9262e00))
|
||||
|
||||
|
||||
|
||||
## [4.22.1](https://github.com/Ombi-app/Ombi/compare/v4.22.0...v4.22.1) (2022-07-25)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **discover:** :bug: Created new Image component to handle 429's from TMDB ([#4698](https://github.com/Ombi-app/Ombi/issues/4698)) and fixed [#4635](https://github.com/Ombi-app/Ombi/issues/4635) ([#4699](https://github.com/Ombi-app/Ombi/issues/4699)) ([f22d3da](https://github.com/Ombi-app/Ombi/commit/f22d3da765799365455b919027f7563e52b347c3))
|
||||
|
||||
|
||||
|
||||
# [4.22.0](https://github.com/Ombi-app/Ombi/compare/v4.21.2...v4.22.0) (2022-07-22)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **discover:** ✨ Added infinite scroll on advanced search results ([898bc89](https://github.com/Ombi-app/Ombi/commit/898bc89fa78245c1f3de9481f6c724f087a16e39))
|
||||
|
||||
|
||||
|
||||
## [4.21.2](https://github.com/Ombi-app/Ombi/compare/v4.21.1...v4.21.2) (2022-07-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* Landing and Login page improvements ([#4690](https://github.com/Ombi-app/Ombi/issues/4690)) ([6d423b5](https://github.com/Ombi-app/Ombi/commit/6d423b5447c52c5e59d8d2bd92a23b47468eb736))
|
||||
|
||||
|
||||
|
||||
## [4.21.1](https://github.com/Ombi-app/Ombi/compare/v4.21.0...v4.21.1) (2022-07-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **images:** Retry images with a backoff when we get a Too Many requests from TheMovieDb [#4685](https://github.com/Ombi-app/Ombi/issues/4685) ([3f1f35d](https://github.com/Ombi-app/Ombi/commit/3f1f35df3164db6739691cdda8f925c296239791))
|
||||
|
||||
|
||||
|
||||
# [4.21.0](https://github.com/Ombi-app/Ombi/compare/v4.20.4...v4.21.0) (2022-06-22)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Upgrade to Angular14 ([#4668](https://github.com/Ombi-app/Ombi/issues/4668)) ([b9d55a4](https://github.com/Ombi-app/Ombi/commit/b9d55a469b412558cbf67c1e25db7fdda5964cd8))
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* stop populating obsolete subscribe fields ([#4625](https://github.com/Ombi-app/Ombi/issues/4625)) ([9a73463](https://github.com/Ombi-app/Ombi/commit/9a734637665f671b17c2bb440d93b35a891c142b))
|
||||
|
||||
|
||||
|
||||
## [4.20.4](https://github.com/Ombi-app/Ombi/compare/v4.20.3...v4.20.4) (2022-06-15)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fixed build ([f877921](https://github.com/Ombi-app/Ombi/commit/f8779219146051ea74f8b6408658ff7975afb88b))
|
||||
|
||||
|
||||
|
||||
## [4.20.3](https://github.com/Ombi-app/Ombi/compare/v4.20.2...v4.20.3) (2022-06-05)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **plex:** 🐛 Fixed an issue with the Plex Sync ([ab1a11a](https://github.com/Ombi-app/Ombi/commit/ab1a11af78efbe9d37bd55aa80a640796c138a98))
|
||||
|
||||
|
||||
|
||||
## [4.20.2](https://github.com/Ombi-app/Ombi/compare/v4.20.1...v4.20.2) (2022-06-03)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* :bug: Fixed the Request on Behalf of having blanks ([#4667](https://github.com/Ombi-app/Ombi/issues/4667)) ([7dd9b1c](https://github.com/Ombi-app/Ombi/commit/7dd9b1cac07f571dd35b362544e4fe0226c4b817))
|
||||
|
||||
|
||||
|
||||
## [4.20.1](https://github.com/Ombi-app/Ombi/compare/v4.20.0...v4.20.1) (2022-05-27)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* added media type tag to media type text ([#4638](https://github.com/Ombi-app/Ombi/issues/4638)) ([fe501d3](https://github.com/Ombi-app/Ombi/commit/fe501d34a0c36ac9f000b107eca49dbc6694d006))
|
||||
* **API:** Fix pagination in some edge cases ([#4649](https://github.com/Ombi-app/Ombi/issues/4649)) ([a70bf8f](https://github.com/Ombi-app/Ombi/commit/a70bf8f46c76d74c9dfdf908c53bd9955ca0a35d))
|
||||
* **discover:** Carousel touch not working when scrolling page and recommendations and similar movie navigation ([#4633](https://github.com/Ombi-app/Ombi/issues/4633)) ([d5ef1d5](https://github.com/Ombi-app/Ombi/commit/d5ef1d53e5f77d19dba8b8059c80b538a3e14f2a))
|
||||
* Improve Swagger documentation ([#4652](https://github.com/Ombi-app/Ombi/issues/4652)) ([181892b](https://github.com/Ombi-app/Ombi/commit/181892bcfe88e6d76febf49ef57745d04552d08e))
|
||||
* Missing Poster broken link fix ([#4637](https://github.com/Ombi-app/Ombi/issues/4637)) ([4070f0d](https://github.com/Ombi-app/Ombi/commit/4070f0d093b1c92487a1c80cabad8283a9650f51))
|
||||
* **sickrage:** Fixed issue with incorrect handling of SiCKRAGE episode results returned during episode status changes, now expects array of objects from data path if present ([#4648](https://github.com/Ombi-app/Ombi/issues/4648)) ([6d16442](https://github.com/Ombi-app/Ombi/commit/6d16442d4d714920367df065a3ced42b729f4233))
|
||||
* **sync:** Emby+Jellyfin - sync multi-episode files of 3+ episodes ([bd8fd89](https://github.com/Ombi-app/Ombi/commit/bd8fd890554c9d85d6da4d2cee813e82ce698e52))
|
||||
|
||||
|
||||
|
||||
# [4.20.0](https://github.com/Ombi-app/Ombi/compare/v4.19.1...v4.20.0) (2022-04-28)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **discover:** Show more relevant shows in upcoming TV ([8357819](https://github.com/Ombi-app/Ombi/commit/8357819b53b8c675c0b246d7006b5a778bdba33f))
|
||||
|
||||
|
||||
|
||||
## [4.19.1](https://github.com/Ombi-app/Ombi/compare/v4.19.0...v4.19.1) (2022-04-27)
|
||||
|
||||
|
||||
|
||||
# [4.19.0](https://github.com/Ombi-app/Ombi/compare/v4.18.0...v4.19.0) (2022-04-27)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **sync:** Detect reidentified movies in Emby and Jellyfin ([5938077](https://github.com/Ombi-app/Ombi/commit/5938077d82a5357f79c07b218b3986557a5816e8))
|
||||
* **sync:** Detect reidentified series in Emby and Jellyfin ([9096e91](https://github.com/Ombi-app/Ombi/commit/9096e91d55d268819bce22831f8a8b27f2a1776b))
|
||||
|
||||
|
||||
|
||||
# [4.18.0](https://github.com/Ombi-app/Ombi/compare/v4.17.0...v4.18.0) (2022-04-26)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **discover:** Fix cache mix up ([03d9422](https://github.com/Ombi-app/Ombi/commit/03d94220c7eaafb50c6c80a6ed1150794b873ac3))
|
||||
* **discover:** Fix new trending feature detection ([6794b88](https://github.com/Ombi-app/Ombi/commit/6794b887f6544fb41528bdd9728b7824b65e47ee))
|
||||
* **settings:** Allow toggling features when there are more than one ([a373359](https://github.com/Ombi-app/Ombi/commit/a373359ae8e6bad42b558a6e01a8ff2840d3bbaa))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **discover:** Add new trending source experimental feature ([1a0823c](https://github.com/Ombi-app/Ombi/commit/1a0823ca80559417c67323aaeaa1ef5243e98031))
|
||||
* **discover:** Default trending source to new logic ([4f12939](https://github.com/Ombi-app/Ombi/commit/4f12939e22020a67a5ee75e2907923faea136e8d))
|
||||
|
||||
|
||||
|
||||
# [4.17.0](https://github.com/Ombi-app/Ombi/compare/v4.16.17...v4.17.0) (2022-04-25)
|
||||
|
||||
|
||||
|
||||
## [4.16.17](https://github.com/Ombi-app/Ombi/compare/v4.16.16...v4.16.17) (2022-04-25)
|
||||
|
||||
|
||||
|
||||
## [4.16.16](https://github.com/Ombi-app/Ombi/compare/v4.16.15...v4.16.16) (2022-04-25)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **4616:** :bug: fixed mandatory fields ([d8f2260](https://github.com/Ombi-app/Ombi/commit/d8f2260c7ae3ed48386743b7adbd06e284487034))
|
||||
|
||||
|
||||
|
||||
## [4.16.15](https://github.com/Ombi-app/Ombi/compare/v4.16.14...v4.16.15) (2022-04-24)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **discover:** Add original language filter ([ef7ec86](https://github.com/Ombi-app/Ombi/commit/ef7ec861d8aede2a4817752c990617f583805391))
|
||||
|
||||
|
||||
|
||||
## [4.16.14](https://github.com/Ombi-app/Ombi/compare/v4.16.13...v4.16.14) (2022-04-19)
|
||||
|
||||
|
||||
|
||||
## [4.16.13](https://github.com/Ombi-app/Ombi/compare/v4.16.12...v4.16.13) (2022-04-19)
|
||||
|
||||
|
||||
|
||||
## [4.35.10](https://github.com/Ombi-app/Ombi/compare/v4.35.9...v4.35.10) (2023-02-25)
|
||||
|
||||
|
||||
|
||||
## [4.35.9](https://github.com/Ombi-app/Ombi/compare/v4.35.8...v4.35.9) (2023-02-24)
|
||||
|
||||
|
||||
|
||||
## [4.22.5](https://github.com/Ombi-app/Ombi/compare/v4.22.4...v4.22.5) (2022-08-05)
|
||||
|
||||
|
||||
|
||||
## [4.35.8](https://github.com/Ombi-app/Ombi/compare/v4.35.7...v4.35.8) (2023-02-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **plex-oauth:** 🐛 Fixed an issue where using OAuth you could log in as a Ombi Local user [#4835](https://github.com/Ombi-app/Ombi/issues/4835) ([4098da3](https://github.com/Ombi-app/Ombi/commit/4098da305aaea9dae9a552644268a4fed7204cfe))
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -118,39 +118,39 @@
|
|||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="NewAlbums" xml:space="preserve">
|
||||
<value>New Albums</value>
|
||||
<value>Novos álbuns</value>
|
||||
</data>
|
||||
<data name="NewMovies" xml:space="preserve">
|
||||
<value>New Movies</value>
|
||||
<value>Novos filmes</value>
|
||||
</data>
|
||||
<data name="NewTV" xml:space="preserve">
|
||||
<value>New TV</value>
|
||||
<value>Novas séries</value>
|
||||
</data>
|
||||
<data name="GenresLabel" xml:space="preserve">
|
||||
<value>Gêneros:</value>
|
||||
</data>
|
||||
<data name="AlbumTypeLabel" xml:space="preserve">
|
||||
<value>Type:</value>
|
||||
<value>Tipo:</value>
|
||||
</data>
|
||||
<data name="SeasonLabel" xml:space="preserve">
|
||||
<value>Temporada:</value>
|
||||
<value>Temporadas:</value>
|
||||
</data>
|
||||
<data name="EpisodesLabel" xml:space="preserve">
|
||||
<value>Episodes:</value>
|
||||
<value>Episódios:</value>
|
||||
</data>
|
||||
<data name="PoweredBy" xml:space="preserve">
|
||||
<value>Powered by</value>
|
||||
<value>Distribuído por</value>
|
||||
</data>
|
||||
<data name="Unsubscribe" xml:space="preserve">
|
||||
<value>Unsubscribe</value>
|
||||
<value>Cancelar subscrição</value>
|
||||
</data>
|
||||
<data name="Album" xml:space="preserve">
|
||||
<value>Album</value>
|
||||
<value>Álbum</value>
|
||||
</data>
|
||||
<data name="Movie" xml:space="preserve">
|
||||
<value>Movie</value>
|
||||
<value>Filmes</value>
|
||||
</data>
|
||||
<data name="TvShow" xml:space="preserve">
|
||||
<value>TV Show</value>
|
||||
<value>Séries</value>
|
||||
</data>
|
||||
</root>
|
|
@ -174,13 +174,18 @@ namespace Ombi.Schedule.Jobs.Emby
|
|||
}
|
||||
if (parent.TheMovieDbId.IsNullOrEmpty())
|
||||
{
|
||||
_logger.LogWarning($"Episode {episode.Name} is not linked to a TMDB series. Skipping.");
|
||||
_logger.LogWarning($"Episode {episode.Name} for Tv Show {parent.Title} Doesn't have a valid TheMovieDbId. Skipping.");
|
||||
return;
|
||||
}
|
||||
if (!int.TryParse(parent.TheMovieDbId, out var parentMovieDb))
|
||||
{
|
||||
_logger.LogWarning($"Episode {episode.Name} for Tv Show {parent.Title} Doesn't have a valid TheMovieDbId. Skipping.");
|
||||
return;
|
||||
}
|
||||
|
||||
await AddToContent(content, new UserPlayedEpisode()
|
||||
{
|
||||
TheMovieDbId = int.Parse(parent.TheMovieDbId),
|
||||
TheMovieDbId = parentMovieDb,
|
||||
SeasonNumber = episode.ParentIndexNumber,
|
||||
EpisodeNumber = episode.IndexNumber,
|
||||
UserId = user.Id
|
||||
|
@ -196,7 +201,7 @@ namespace Ombi.Schedule.Jobs.Emby
|
|||
|
||||
await AddToContent(content, new UserPlayedEpisode()
|
||||
{
|
||||
TheMovieDbId = int.Parse(parent.TheMovieDbId),
|
||||
TheMovieDbId = parentMovieDb,
|
||||
SeasonNumber = episode.ParentIndexNumber,
|
||||
EpisodeNumber = episodeNumber,
|
||||
UserId = user.Id
|
||||
|
|
18
src/Ombi/ClientApp/.prettierrc.js
Normal file
18
src/Ombi/ClientApp/.prettierrc.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
module.exports = {
|
||||
...require('@exclaimer/prettier-config'),
|
||||
overrides: [
|
||||
{
|
||||
files: ['*.yaml', '*.yml'],
|
||||
options: {
|
||||
tabWidth: 2,
|
||||
singleQuote: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
files: 'index.html',
|
||||
options: {
|
||||
parser: 'html',
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
|
@ -82,22 +82,22 @@
|
|||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"options": {
|
||||
"browserTarget": "ombi:build"
|
||||
"buildTarget": "ombi:build"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"browserTarget": "ombi:build:production"
|
||||
"buildTarget": "ombi:build:production"
|
||||
},
|
||||
"hmr": {
|
||||
"hmr": true,
|
||||
"browserTarget": "ombi:build:hmr"
|
||||
"buildTarget": "ombi:build:hmr"
|
||||
}
|
||||
}
|
||||
},
|
||||
"extract-i18n": {
|
||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||
"options": {
|
||||
"browserTarget": "ombi:build"
|
||||
"buildTarget": "ombi:build"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ombi",
|
||||
"version": "3.0.0",
|
||||
"version": "4.0.0",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve --port 3578 --configuration hmr",
|
||||
|
@ -13,17 +13,17 @@
|
|||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@angular/animations": "^15.2.10",
|
||||
"@angular/cdk": "^14.2.7",
|
||||
"@angular/common": "^15.2.10",
|
||||
"@angular/compiler": "^15.2.10",
|
||||
"@angular/core": "^15.2.10",
|
||||
"@angular/forms": "^15.2.10",
|
||||
"@angular/animations": "^17.1.3",
|
||||
"@angular/cdk": "16.2.14",
|
||||
"@angular/common": "^17.1.3",
|
||||
"@angular/compiler": "^17.1.3",
|
||||
"@angular/core": "^17.1.3",
|
||||
"@angular/forms": "^17.1.3",
|
||||
"@angular/material": "^14.2.7",
|
||||
"@angular/platform-browser": "^15.2.10",
|
||||
"@angular/platform-browser-dynamic": "^15.2.10",
|
||||
"@angular/platform-server": "^15.2.10",
|
||||
"@angular/router": "^15.2.10",
|
||||
"@angular/platform-browser": "^17.1.3",
|
||||
"@angular/platform-browser-dynamic": "^17.1.3",
|
||||
"@angular/platform-server": "^17.1.3",
|
||||
"@angular/router": "^17.1.3",
|
||||
"@angularclass/hmr": "^3.0.0",
|
||||
"@auth0/angular-jwt": "^5.0.2",
|
||||
"@fortawesome/fontawesome-free": "^6.4.2",
|
||||
|
@ -34,33 +34,34 @@
|
|||
"@ngxs/store": "3.8.1",
|
||||
"@types/jquery": "^3.5.23",
|
||||
"@yellowspot/ng-truncate": "^2.0.0",
|
||||
"angularx-qrcode": "^15.0.0",
|
||||
"angularx-qrcode": "^16.0.0",
|
||||
"bootstrap": "^4.2.1",
|
||||
"core-js": "^2.5.4",
|
||||
"date-fns": "3.3.1",
|
||||
"jquery": "3.7.1",
|
||||
"lodash": "^4.17.21",
|
||||
"moment": "^2.29.1",
|
||||
"lodash-es": "^4.17.21",
|
||||
"ng2-cookies": "^1.0.12",
|
||||
"ngx-clipboard": "^12.1.0",
|
||||
"ngx-infinite-scroll": "^9.0.0",
|
||||
"ngx-moment": "^3.0.1",
|
||||
"ngx-order-pipe": "^2.2.0",
|
||||
"ngx-clipboard": "^16.0.0",
|
||||
"ngx-date-fns": "^11.0.0",
|
||||
"ngx-infinite-scroll": "^17.0.0",
|
||||
"popper.js": "^1.14.3",
|
||||
"primeicons": "^6.0.1",
|
||||
"primeng": "^15.4.1",
|
||||
"primeng": "^17.6.0",
|
||||
"rxjs": "^7.5.4",
|
||||
"ts-md5": "^1.2.7",
|
||||
"zone.js": "~0.13.2"
|
||||
"zone.js": "0.14.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "^15.0.2",
|
||||
"@angular/cli": "^15.0.2",
|
||||
"@angular/compiler-cli": "^15.0.4",
|
||||
"@angular-devkit/build-angular": "^17.1.3",
|
||||
"@angular/cli": "^17.1.3",
|
||||
"@angular/compiler-cli": "^17.1.3",
|
||||
"@babel/core": "^7.18.9",
|
||||
"@compodoc/compodoc": "^1.1.19",
|
||||
"@storybook/angular": "^6.5.9",
|
||||
"@storybook/angular": "7.6.14",
|
||||
"@types/node": "^20.11.17",
|
||||
"chromatic": "^6.7.1",
|
||||
"typescript": "~4.8.4"
|
||||
"typescript": "5.2.2"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"protractor": "~5.4.0",
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
|
||||
import { Injectable } from "@angular/core";
|
||||
import { Router } from "@angular/router";
|
||||
import { CanActivate } from "@angular/router";
|
||||
|
||||
import { AuthService } from "./auth.service";
|
||||
import { StorageService } from "../shared/storage/storage-service";
|
||||
|
||||
@Injectable()
|
||||
export class AuthGuard implements CanActivate {
|
||||
export class AuthGuard {
|
||||
|
||||
constructor(private auth: AuthService, private router: Router,
|
||||
private store: StorageService) { }
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<p id="detailed-request-requestedby-{{request.mediaId}}">{{'MediaDetails.RequestedBy' | translate}} {{request.username}}</p>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<p id="detailed-request-date-{{request.mediaId}}">{{'MediaDetails.OnDate' | translate}} {{request.requestDate | amFromUtc | amLocal | amUserLocale | amDateFormat: 'l LT'}}</p>
|
||||
<p id="detailed-request-date-{{request.mediaId}}">{{'MediaDetails.OnDate' | translate}} {{request.requestDate | ombiDate: 'Ppp'}}</p>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<p id="detailed-request-status-{{request.mediaId}}">{{'MediaDetails.Status' | translate}} <span class="badge badge-{{getClass(request)}}">{{getStatus(request) | translate}}</span></p>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { OmbiCommonModules } from "../modules";
|
||||
import { Component, OnDestroy, OnInit } from "@angular/core";
|
||||
import { DomSanitizer } from "@angular/platform-browser";
|
||||
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
|
||||
import { ImageService } from "../../services";
|
||||
import { fadeInOutAnimation } from "app/animations/fadeinout";
|
||||
import { OmbiCommonModules } from '../modules';
|
||||
import { Component, OnDestroy, OnInit } from '@angular/core';
|
||||
import { DomSanitizer } from '@angular/platform-browser';
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { ImageService } from '../../services';
|
||||
import { fadeInOutAnimation } from 'app/animations/fadeinout';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
|
@ -15,10 +15,9 @@ import { fadeInOutAnimation } from "app/animations/fadeinout";
|
|||
animations: [fadeInOutAnimation],
|
||||
})
|
||||
export class ImageBackgroundComponent implements OnInit, OnDestroy {
|
||||
|
||||
public background: any;
|
||||
public name: string;
|
||||
private timer: NodeJS.Timeout;
|
||||
private timer: any;
|
||||
|
||||
constructor(private images: ImageService, private sanitizer: DomSanitizer) {}
|
||||
|
||||
|
@ -36,7 +35,7 @@ import { fadeInOutAnimation } from "app/animations/fadeinout";
|
|||
|
||||
private cycleBackground() {
|
||||
this.images.getRandomBackgroundWithInfo().subscribe((x) => {
|
||||
this.background = this.sanitizer.bypassSecurityTrustStyle("url(" + x.url + ")");
|
||||
this.background = this.sanitizer.bypassSecurityTrustStyle('url(' + x.url + ')');
|
||||
this.name = x.name;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { CommonModule } from "@angular/common";
|
||||
import { MomentModule } from "ngx-moment";
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
export const OmbiCommonModules = [ CommonModule, MomentModule ];
|
||||
export const OmbiCommonModules = [CommonModule];
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
$primary-colour: #df691a;
|
||||
$primary-colour-outline: #ff761b;
|
||||
$bg-colour: #333333;
|
||||
$bg-colour-disabled: #252424;
|
|
@ -6,7 +6,6 @@ import { CustomPageService, NotificationService } from "../services";
|
|||
|
||||
@Component({
|
||||
templateUrl: "./custompage.component.html",
|
||||
styleUrls: ["./custompage.component.scss"],
|
||||
})
|
||||
export class CustomPageComponent implements OnInit {
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
<p-skeleton id="cardLoading{{result.id}}" *ngIf="!fullyLoaded" width="100%" height="315px"></p-skeleton>
|
||||
|
||||
<div id="result{{result.id}}" *ngIf="fullyLoaded" class="ombi-card dark-card c" [style.display]="hide ? 'none' : 'block'">
|
||||
<div class="card-top-info">
|
||||
|
@ -43,8 +42,5 @@
|
|||
</button>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
|
@ -1,7 +1,12 @@
|
|||
<div class="small-middle-container">
|
||||
<div class="section">
|
||||
@defer (on viewport; prefetch on idle) {
|
||||
<h2 id="genreHeading" data-toggle="collapse" href="#genreCollapse" role="button">{{ 'Discovery.Genres' | translate }}</h2>
|
||||
<genre-button-select class="collapse show" id="genreCollapse"></genre-button-select>
|
||||
}
|
||||
@placeholder {
|
||||
<p-skeleton width="100%" height="2rem"></p-skeleton>
|
||||
}
|
||||
</div>
|
||||
<div class="section">
|
||||
<h2>{{ 'Discovery.RecentlyRequestedTab' | translate }}</h2>
|
||||
|
@ -10,10 +15,16 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="section" [hidden]="!showSeasonal">
|
||||
<h2>{{ 'Discovery.SeasonalTab' | translate }}</h2>
|
||||
<div>
|
||||
<carousel-list [id]="'seasonal'" [isAdmin]="isAdmin" [discoverType]="DiscoverType.Seasonal" (movieCount)="setSeasonalMovieCount($event)"></carousel-list>
|
||||
<carousel-list
|
||||
[id]="'seasonal'"
|
||||
[isAdmin]="isAdmin"
|
||||
[discoverType]="DiscoverType.Seasonal"
|
||||
(movieCount)="setSeasonalMovieCount($event)"
|
||||
></carousel-list>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -22,7 +33,6 @@
|
|||
<div>
|
||||
<carousel-list [id]="'popular'" [isAdmin]="isAdmin" [discoverType]="DiscoverType.Popular"></carousel-list>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
|
@ -30,7 +40,6 @@
|
|||
<div>
|
||||
<carousel-list [id]="'trending'" [isAdmin]="isAdmin" [discoverType]="DiscoverType.Trending"></carousel-list>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
|
@ -39,5 +48,4 @@
|
|||
<carousel-list [id]="'upcoming'" [isAdmin]="isAdmin" [discoverType]="DiscoverType.Upcoming"></carousel-list>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
|
@ -3,6 +3,7 @@
|
|||
<p-carousel #carousel [value]="requests" [numVisible]="3" [numScroll]="1"
|
||||
[responsiveOptions]="responsiveOptions" [page]="0">
|
||||
<ng-template let-result pTemplate="item">
|
||||
@defer (on viewport; prefetch on idle) {
|
||||
<ombi-detailed-card
|
||||
[request]="result"
|
||||
[isAdmin]="isAdmin"
|
||||
|
@ -10,6 +11,10 @@
|
|||
(onApprove)="approve(result)"
|
||||
(onDeny)="deny(result)">
|
||||
</ombi-detailed-card>
|
||||
}
|
||||
@placeholder {
|
||||
<p-skeleton width="100%" height="315px"></p-skeleton>
|
||||
}
|
||||
</ng-template>
|
||||
</p-carousel>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<mat-card class="issue-card" *ngIf="!deleted">
|
||||
<mat-card-header>
|
||||
<mat-card-title>{{ issue.subject }}</mat-card-title>
|
||||
<mat-card-subtitle>{{'Issues.UserOnDate' | translate: { user: issue.userReported?.userName, date: issue.createdDate | amLocal | amUserLocale | amDateFormat: 'LL' } }}</mat-card-subtitle>
|
||||
<mat-card-subtitle>{{
|
||||
'Issues.UserOnDate' | translate: { user: issue.userReported?.userName, date: issue.createdDate | ombiDate: 'PP' }
|
||||
}}</mat-card-subtitle>
|
||||
<mat-card-subtitle>{{ issue.issueCategory.value }}</mat-card-subtitle>
|
||||
</mat-card-header>
|
||||
<mat-card-content>
|
||||
|
@ -11,18 +13,30 @@
|
|||
</mat-card-content>
|
||||
<mat-card-actions>
|
||||
<button mat-raised-button (click)="openChat(issue)" color="accent"><i class="far fa-comments"></i> {{ 'Issues.Chat' | translate }}</button>
|
||||
<div *ngIf="isAdmin && settings;then content else empty"></div>
|
||||
<div *ngIf="isAdmin && settings; then content; else empty"></div>
|
||||
<ng-template #content>
|
||||
<button mat-raised-button color="accent"
|
||||
<button
|
||||
mat-raised-button
|
||||
color="accent"
|
||||
*ngIf="issue.status === IssueStatus.Pending && settings.enableInProgress"
|
||||
(click)="inProgress(issue)">{{'Issues.MarkInProgress' | translate }}</button>
|
||||
(click)="inProgress(issue)"
|
||||
>
|
||||
{{ 'Issues.MarkInProgress' | translate }}
|
||||
</button>
|
||||
|
||||
<button mat-raised-button color="accent"
|
||||
*ngIf="issue.status === IssueStatus.Pending && !settings.enableInProgress || issue.status == IssueStatus.InProgress"
|
||||
(click)="resolve(issue)">{{'Issues.MarkResolved' | translate}}</button>
|
||||
<button
|
||||
mat-raised-button
|
||||
color="accent"
|
||||
*ngIf="(issue.status === IssueStatus.Pending && !settings.enableInProgress) || issue.status == IssueStatus.InProgress"
|
||||
(click)="resolve(issue)"
|
||||
>
|
||||
{{ 'Issues.MarkResolved' | translate }}
|
||||
</button>
|
||||
|
||||
<button mat-raised-button color="warn" (click)="delete(issue)"><i class="far fa-times-circle"></i> {{'Issues.Delete' | translate}}</button></ng-template>
|
||||
<button mat-raised-button color="warn" (click)="delete(issue)">
|
||||
<i class="far fa-times-circle"></i> {{ 'Issues.Delete' | translate }}
|
||||
</button></ng-template
|
||||
>
|
||||
<ng-template #empty></ng-template>
|
||||
</mat-card-actions>
|
||||
</mat-card>
|
||||
|
||||
|
|
|
@ -1,18 +1,24 @@
|
|||
<div *ngIf="issue">
|
||||
<div class="row issue-details">
|
||||
<div class="myBg backdrop" [style.background-image]="backgroundPath"></div>
|
||||
<div class="tint" style="background-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.6) 100%);"></div>
|
||||
<div class="tint" style="background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%)"></div>
|
||||
<h1>{{ issue.title }}</h1>
|
||||
<div class="col-md-6">
|
||||
<img class="img-responsive poster" src="{{posterPath}}" alt="poster">
|
||||
<img class="img-responsive poster" src="{{ posterPath }}" alt="poster" />
|
||||
|
||||
<div class="issue-status">
|
||||
<span *ngIf="issue.status === IssueStatus.Pending" id="pendingLabel" class="label label-warning">{{IssueStatus[issue.status]}}</span>
|
||||
<span *ngIf="issue.status === IssueStatus.InProgress" id="inprogressLabel" class="label label-info">{{IssueStatus[issue.status]}}</span>
|
||||
<span *ngIf="issue.status === IssueStatus.Resolved" id="resolvedLabel" class="label label-success">{{IssueStatus[issue.status]}}</span>
|
||||
<span *ngIf="issue.status === IssueStatus.Pending" id="pendingLabel" class="label label-warning">{{
|
||||
IssueStatus[issue.status]
|
||||
}}</span>
|
||||
<span *ngIf="issue.status === IssueStatus.InProgress" id="inprogressLabel" class="label label-info">{{
|
||||
IssueStatus[issue.status]
|
||||
}}</span>
|
||||
<span *ngIf="issue.status === IssueStatus.Resolved" id="resolvedLabel" class="label label-success">{{
|
||||
IssueStatus[issue.status]
|
||||
}}</span>
|
||||
</div>
|
||||
<span class="label label-success">{{ issue.issueCategory.value }}</span>
|
||||
<br>
|
||||
<br />
|
||||
<span class="reported-by">
|
||||
<h3 *ngIf="issue.userReported?.alias">{{ 'Issues.ReportedBy' | translate }}:</h3>
|
||||
<h3 *ngIf="!issue.userReported?.alias">{{ 'Issues.ReportedBy' | translate }}:</h3>
|
||||
|
@ -21,59 +27,82 @@
|
|||
<h3 *ngIf="issue.userReported?.alias">{{ issue.userReported.alias }}</h3>
|
||||
<h3 *ngIf="!issue.userReported?.alias">{{ issue.userReported.userName }}</h3>
|
||||
</span>
|
||||
<br>
|
||||
<span class="subject-category"><h3 *ngIf="issue.subject">{{'Issues.Subject' | translate}}:</h3></span>
|
||||
<span class="subject"><h3 *ngIf="issue.subject">{{issue.subject}}</h3></span>
|
||||
<br>
|
||||
<br />
|
||||
<span class="subject-category"
|
||||
><h3 *ngIf="issue.subject">{{ 'Issues.Subject' | translate }}:</h3></span
|
||||
>
|
||||
<span class="subject"
|
||||
><h3 *ngIf="issue.subject">{{ issue.subject }}</h3></span
|
||||
>
|
||||
<br />
|
||||
<div class="form-group">
|
||||
<label for="description" class="control-label" [translate]="'Issues.Description'"></label>
|
||||
<div>
|
||||
<textarea class="form-control-custom form-control" disabled="disabled" [(ngModel)]="issue.description" rows="5" type="text"></textarea>
|
||||
<textarea
|
||||
class="form-control-custom form-control"
|
||||
disabled="disabled"
|
||||
[(ngModel)]="issue.description"
|
||||
rows="5"
|
||||
type="text"
|
||||
></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row chat-window col-xs-7 col-md-5" id="chat_window_1" style="margin-left:10px;">
|
||||
<div class="row chat-window col-xs-7 col-md-5" id="chat_window_1" style="margin-left: 10px">
|
||||
<div class="col-xs-12 col-md-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading top-bar">
|
||||
<div class="col-md-8 col-xs-8">
|
||||
<h3 class="panel-title">
|
||||
<span class="glyphicon glyphicon-comment"></span> {{'Issues.Comments' | translate}}
|
||||
</h3>
|
||||
<h3 class="panel-title"><span class="glyphicon glyphicon-comment"></span> {{ 'Issues.Comments' | translate }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngIf="comments" class="panel-body msg_container_base">
|
||||
<div *ngIf="comments.length <= 0" class="row msg_container base_receive">
|
||||
<div class="col-md-10 col-xs-10">
|
||||
|
||||
<div class="messages msg_sent">
|
||||
<p [translate]="'Issues.NoComments'"></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div *ngFor="let comment of comments" class="row msg_container" [ngClass]="{'base_sent': comment.adminComment, 'base_receive': !comment.adminComment}">
|
||||
<div
|
||||
*ngFor="let comment of comments"
|
||||
class="row msg_container"
|
||||
[ngClass]="{ base_sent: comment.adminComment, base_receive: !comment.adminComment }"
|
||||
>
|
||||
<div class="col-md-10 col-xs-10">
|
||||
|
||||
<div class="messages msg_sent"> <i *ngIf="isAdmin" style="float:right;" class="fas fa-times" aria-hidden="true" (click)="deleteComment(comment.id)"></i>
|
||||
<div class="messages msg_sent">
|
||||
<i
|
||||
*ngIf="isAdmin"
|
||||
style="float: right"
|
||||
class="fas fa-times"
|
||||
aria-hidden="true"
|
||||
(click)="deleteComment(comment.id)"
|
||||
></i>
|
||||
<p>{{ comment.comment }}</p>
|
||||
<time>{{comment.username}} • {{comment.date | amFromUtc | amLocal | amUserLocale | amDateFormat: 'l LT'}}</time>
|
||||
<time>{{ comment.username }} • {{ comment.date | ombiDate: 'Ppp' }}</time>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<div class="input-group">
|
||||
<input id="btn-input" type="text" class="form-control input-sm chat_input" [(ngModel)]="newComment.comment" [attr.placeholder]="'Issues.WriteMessagePlaceholder' | translate" />
|
||||
<input
|
||||
id="btn-input"
|
||||
type="text"
|
||||
class="form-control input-sm chat_input"
|
||||
[(ngModel)]="newComment.comment"
|
||||
[attr.placeholder]="'Issues.WriteMessagePlaceholder' | translate"
|
||||
/>
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-primary btn-sm" id="btn-chat" (click)="addComment()" [translate]="'Issues.SendMessageButton'"></button>
|
||||
<button
|
||||
class="btn btn-primary btn-sm"
|
||||
id="btn-chat"
|
||||
(click)="addComment()"
|
||||
[translate]="'Issues.SendMessageButton'"
|
||||
></button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -86,7 +115,7 @@
|
|||
<div *ngIf="issue.status === IssueStatus.Pending && settings.enableInProgress">
|
||||
<button class="btn btn-primary btn-sm bottom-btn" (click)="inProgress()">{{ 'Issues.MarkInProgress' | translate }}</button>
|
||||
</div>
|
||||
<div *ngIf="issue.status === IssueStatus.Pending && !settings.enableInProgress || issue.status == IssueStatus.InProgress">
|
||||
<div *ngIf="(issue.status === IssueStatus.Pending && !settings.enableInProgress) || issue.status == IssueStatus.InProgress">
|
||||
<button class="btn btn-primary btn-sm bottom-btn" (click)="resolve()" [translate]="'Issues.MarkResolved'"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,47 +1,34 @@
|
|||
import { NgModule } from "@angular/core";
|
||||
import { RouterModule, Routes } from "@angular/router";
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
// import { NbChatModule, NbThemeModule } from '@nebular/theme';
|
||||
|
||||
import { OrderModule } from "ngx-order-pipe";
|
||||
import { AuthGuard } from '../auth/auth.guard';
|
||||
|
||||
import { AuthGuard } from "../auth/auth.guard";
|
||||
import { SharedModule } from '../shared/shared.module';
|
||||
|
||||
import { SharedModule } from "../shared/shared.module";
|
||||
import { IssueDetailsComponent } from './issueDetails.component';
|
||||
import { IssuesComponent } from './issues.component';
|
||||
import { IssuesTableComponent } from './issuestable.component';
|
||||
import { IssuesDetailsComponent } from './components/details/details.component';
|
||||
|
||||
import { IssueDetailsComponent } from "./issueDetails.component";
|
||||
import { IssuesComponent } from "./issues.component";
|
||||
import { IssuesTableComponent } from "./issuestable.component";
|
||||
import { IssuesDetailsComponent } from "./components/details/details.component";
|
||||
import { PipeModule } from '../pipes/pipe.module';
|
||||
|
||||
import { PipeModule } from "../pipes/pipe.module";
|
||||
|
||||
import * as fromComponents from "./components";
|
||||
import * as fromComponents from './components';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: "", component: IssuesComponent, canActivate: [AuthGuard] },
|
||||
{ path: ":providerId", component: IssuesDetailsComponent, canActivate: [AuthGuard] },
|
||||
{ path: '', component: IssuesComponent, canActivate: [AuthGuard] },
|
||||
{ path: ':providerId', component: IssuesDetailsComponent, canActivate: [AuthGuard] },
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild(routes),
|
||||
OrderModule,
|
||||
PipeModule,
|
||||
SharedModule,
|
||||
// NbChatModule,
|
||||
],
|
||||
declarations: [
|
||||
IssuesComponent,
|
||||
IssueDetailsComponent,
|
||||
IssuesTableComponent,
|
||||
...fromComponents.components
|
||||
],
|
||||
exports: [
|
||||
RouterModule,
|
||||
],
|
||||
providers: [
|
||||
...fromComponents.providers
|
||||
],
|
||||
|
||||
declarations: [IssuesComponent, IssueDetailsComponent, IssuesTableComponent, ...fromComponents.components],
|
||||
exports: [RouterModule],
|
||||
providers: [...fromComponents.providers],
|
||||
})
|
||||
export class IssuesModule {}
|
||||
|
|
|
@ -3,67 +3,112 @@
|
|||
</div>
|
||||
|
||||
<div *ngIf="movie" class="main-content-container">
|
||||
|
||||
<top-banner [background]="movie.background" [available]="movie.available" [title]="movie.title"
|
||||
[releaseDate]="movie.releaseDate" [tagline]="movie.tagline"></top-banner>
|
||||
<top-banner
|
||||
[background]="movie.background"
|
||||
[available]="movie.available"
|
||||
[title]="movie.title"
|
||||
[releaseDate]="movie.releaseDate"
|
||||
[tagline]="movie.tagline"
|
||||
></top-banner>
|
||||
<div class="social-icons-container">
|
||||
|
||||
<social-icons [homepage]="movie.homepage" [theMoviedbId]="movie.id"
|
||||
[hasTrailer]="movie.videos?.results?.length > 0" [imdbId]="movie.imdbId"
|
||||
[twitter]="movie.externalIds?.twitterId" [facebook]="movie.externalIds?.facebookId"
|
||||
[instagram]="movie.externalIds?.instagramId" [available]="movie.available" [isAdmin]="isAdmin"
|
||||
[canShowAdvanced]="showAdvanced && movieRequest" [type]="requestType" [has4KRequest]="movie.has4KRequest"
|
||||
(openTrailer)="openDialog()" (onAdvancedOptions)="openAdvancedOptions()"
|
||||
(onReProcessRequest)="reProcessRequest(false)" (onReProcess4KRequest)="reProcessRequest(true)">
|
||||
<social-icons
|
||||
[homepage]="movie.homepage"
|
||||
[theMoviedbId]="movie.id"
|
||||
[hasTrailer]="movie.videos?.results?.length > 0"
|
||||
[imdbId]="movie.imdbId"
|
||||
[twitter]="movie.externalIds?.twitterId"
|
||||
[facebook]="movie.externalIds?.facebookId"
|
||||
[instagram]="movie.externalIds?.instagramId"
|
||||
[available]="movie.available"
|
||||
[isAdmin]="isAdmin"
|
||||
[canShowAdvanced]="showAdvanced && movieRequest"
|
||||
[type]="requestType"
|
||||
[has4KRequest]="movie.has4KRequest"
|
||||
(openTrailer)="openDialog()"
|
||||
(onAdvancedOptions)="openAdvancedOptions()"
|
||||
(onReProcessRequest)="reProcessRequest(false)"
|
||||
(onReProcess4KRequest)="reProcessRequest(true)"
|
||||
>
|
||||
</social-icons>
|
||||
|
||||
</div>
|
||||
<section id="info-wrapper">
|
||||
<div class="small-middle-container">
|
||||
|
||||
<div class="row justify-content-center justify-content-sm-start header-container">
|
||||
<div class="details-poster-container">
|
||||
<media-poster [posterPath]=movie.posterPath></media-poster>
|
||||
<media-poster [posterPath]="movie.posterPath"></media-poster>
|
||||
</div>
|
||||
|
||||
<!--Next to poster-->
|
||||
<div class="details-button-container">
|
||||
<div class="col-12 media-row">
|
||||
<span *ngIf="movie.available || movie.available4K">
|
||||
<a id="viewOnPlexButton" *ngIf="movie.plexUrl" href="{{movie.plexUrl}}" mat-raised-button
|
||||
target="_blank" class="btn-spacing viewon-btn plex">
|
||||
<a
|
||||
id="viewOnPlexButton"
|
||||
*ngIf="movie.plexUrl"
|
||||
href="{{ movie.plexUrl }}"
|
||||
mat-raised-button
|
||||
target="_blank"
|
||||
class="btn-spacing viewon-btn plex"
|
||||
>
|
||||
{{ 'Search.ViewOnPlex' | translate }}
|
||||
<i class="far fa-play-circle fa-2x"></i>
|
||||
</a>
|
||||
<a id="viewOnEmbyButton" *ngIf="movie.embyUrl" href="{{movie.embyUrl}}" mat-raised-button
|
||||
target="_blank" class="btn-spacing viewon-btn emby">
|
||||
<a
|
||||
id="viewOnEmbyButton"
|
||||
*ngIf="movie.embyUrl"
|
||||
href="{{ movie.embyUrl }}"
|
||||
mat-raised-button
|
||||
target="_blank"
|
||||
class="btn-spacing viewon-btn emby"
|
||||
>
|
||||
{{ 'Search.ViewOnEmby' | translate }}
|
||||
<i class="far fa-play-circle fa-2x"></i>
|
||||
</a>
|
||||
<a id="viewOnJellyfinButton" *ngIf="movie.jellyfinUrl" href="{{movie.jellyfinUrl}}"
|
||||
mat-raised-button target="_blank" class="btn-spacing viewon-btn jellyfin">
|
||||
<a
|
||||
id="viewOnJellyfinButton"
|
||||
*ngIf="movie.jellyfinUrl"
|
||||
href="{{ movie.jellyfinUrl }}"
|
||||
mat-raised-button
|
||||
target="_blank"
|
||||
class="btn-spacing viewon-btn jellyfin"
|
||||
>
|
||||
{{ 'Search.ViewOnJellyfin' | translate }}
|
||||
<i class="far fa-play-circle fa-2x"></i>
|
||||
</a>
|
||||
</span>
|
||||
<!-- Regular Movie Status -->
|
||||
<button mat-raised-button class="btn-green btn-spacing" id="availableBtn"
|
||||
*ngIf="movie.available && !movie.plexUrl && !movie.embyUrl && !movie.jellyfinUrl"> {{
|
||||
'Common.Available' | translate }}</button>
|
||||
<button
|
||||
mat-raised-button
|
||||
class="btn-green btn-spacing"
|
||||
id="availableBtn"
|
||||
*ngIf="movie.available && !movie.plexUrl && !movie.embyUrl && !movie.jellyfinUrl"
|
||||
>
|
||||
{{ 'Common.Available' | translate }}
|
||||
</button>
|
||||
<span *ngIf="!movie.available">
|
||||
<span
|
||||
*ngIf="movie.requested || movie.approved; then requestedBtn else notRequestedBtn"></span>
|
||||
<span *ngIf="movie.requested || movie.approved; then requestedBtn; else notRequestedBtn"></span>
|
||||
<ng-template #requestedBtn>
|
||||
<button id="requestedBtn" mat-raised-button
|
||||
*ngIf="!hasRequest || hasRequest && movieRequest && !movieRequest.denied"
|
||||
class="btn-spacing" color="warn" [disabled]>
|
||||
<button
|
||||
id="requestedBtn"
|
||||
mat-raised-button
|
||||
*ngIf="!hasRequest || (hasRequest && movieRequest && !movieRequest.denied)"
|
||||
class="btn-spacing"
|
||||
color="warn"
|
||||
[disabled]
|
||||
>
|
||||
<i class="fas fa-check"></i>
|
||||
{{ 'Common.Requested' | translate }}
|
||||
</button>
|
||||
</ng-template>
|
||||
<ng-template #notRequestedBtn>
|
||||
<button *ngIf="!movie.requested" id="requestBtn" mat-raised-button class="btn-spacing"
|
||||
color="primary" (click)="request(false)">
|
||||
<button
|
||||
*ngIf="!movie.requested"
|
||||
id="requestBtn"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="primary"
|
||||
(click)="request(false)"
|
||||
>
|
||||
<i *ngIf="movie.requestProcessing" class="fas fa-circle-notch fa-spin fa-fw"></i>
|
||||
<i *ngIf="!movie.requestProcessing && !movie.processed" class="fas fa-plus"></i>
|
||||
<i *ngIf="movie.processed && !movie.requestProcessing" class="fas fa-check"></i>
|
||||
|
@ -75,31 +120,37 @@
|
|||
<!-- 4k Status -->
|
||||
<span *ngIf="is4KEnabled">
|
||||
<span *permission="roleName4k">
|
||||
<button mat-raised-button class="btn-green btn-spacing" id="availableBtn4k"
|
||||
*ngIf="movie.available4K"> {{
|
||||
'Common.Available4K' | translate }}
|
||||
<button mat-raised-button class="btn-green btn-spacing" id="availableBtn4k" *ngIf="movie.available4K">
|
||||
{{ 'Common.Available4K' | translate }}
|
||||
</button>
|
||||
|
||||
<span *ngIf="!movie.available4K">
|
||||
<span
|
||||
*ngIf="movie.has4KRequest || movie.approved4K; then requestedBtn4K else notRequestedBtn4K"></span>
|
||||
<span *ngIf="movie.has4KRequest || movie.approved4K; then requestedBtn4K; else notRequestedBtn4K"></span>
|
||||
<ng-template #requestedBtn4K>
|
||||
<button id="requestedBtn4K" mat-raised-button
|
||||
*ngIf="movieRequest && !movieRequest.denied4K" class="btn-spacing"
|
||||
color="warn" [disabled]>
|
||||
<button
|
||||
id="requestedBtn4K"
|
||||
mat-raised-button
|
||||
*ngIf="movieRequest && !movieRequest.denied4K"
|
||||
class="btn-spacing"
|
||||
color="warn"
|
||||
[disabled]
|
||||
>
|
||||
<i class="fas fa-check"></i>
|
||||
{{ 'Common.Requested4K' | translate }}
|
||||
</button>
|
||||
</ng-template>
|
||||
<ng-template #notRequestedBtn4K>
|
||||
<button *ngIf="!movie.has4KRequest" id="requestBtn4k" mat-raised-button
|
||||
class="btn-spacing" color="primary" (click)="request(true)">
|
||||
<i *ngIf="movie.requestProcessing"
|
||||
class="fas fa-circle-notch fa-spin fa-fw"></i>
|
||||
<i *ngIf="!movie.requestProcessing && !movie.processed"
|
||||
class="fas fa-plus"></i>
|
||||
<i *ngIf="movie.processed && !movie.requestProcessing"
|
||||
class="fas fa-check"></i>
|
||||
<button
|
||||
*ngIf="!movie.has4KRequest"
|
||||
id="requestBtn4k"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="primary"
|
||||
(click)="request(true)"
|
||||
>
|
||||
<i *ngIf="movie.requestProcessing" class="fas fa-circle-notch fa-spin fa-fw"></i>
|
||||
<i *ngIf="!movie.requestProcessing && !movie.processed" class="fas fa-plus"></i>
|
||||
<i *ngIf="movie.processed && !movie.requestProcessing" class="fas fa-check"></i>
|
||||
{{ 'Common.Request4K' | translate }}
|
||||
</button>
|
||||
</ng-template>
|
||||
|
@ -108,67 +159,115 @@
|
|||
</span>
|
||||
|
||||
<span *ngIf="movieRequest?.showSubscribe">
|
||||
<button *ngIf="!movieRequest?.subscribed" (click)="notify()" id="notifyBtn"
|
||||
mat-raised-button class="btn-spacing"> <i class="fas fa-bell"></i>
|
||||
{{ 'Requests.Notify' | translate }}</button>
|
||||
<button *ngIf="movieRequest?.subscribed" (click)="unNotify()" id="unnotifyBtn"
|
||||
mat-raised-button class="btn-spacing"> <i class="fas fa-bell-slash"></i>
|
||||
{{ 'Requests.RemoveNotification' | translate }}</button>
|
||||
<button *ngIf="!movieRequest?.subscribed" (click)="notify()" id="notifyBtn" mat-raised-button class="btn-spacing">
|
||||
<i class="fas fa-bell"></i> {{ 'Requests.Notify' | translate }}
|
||||
</button>
|
||||
<button *ngIf="movieRequest?.subscribed" (click)="unNotify()" id="unnotifyBtn" mat-raised-button class="btn-spacing">
|
||||
<i class="fas fa-bell-slash"></i> {{ 'Requests.RemoveNotification' | translate }}
|
||||
</button>
|
||||
</span>
|
||||
|
||||
<span *ngIf="isAdmin && hasRequest">
|
||||
<button id="approveBtn" *ngIf="!movie.approved && movie.requested" (click)="approve(false)"
|
||||
mat-raised-button class="btn-spacing" color="accent">
|
||||
<button
|
||||
id="approveBtn"
|
||||
*ngIf="!movie.approved && movie.requested"
|
||||
(click)="approve(false)"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="accent"
|
||||
>
|
||||
<i class="fas fa-plus"></i> {{ 'Common.Approve' | translate }}
|
||||
</button>
|
||||
<button id="markAvailableBtn" *ngIf="!movie.available && movie.requested"
|
||||
(click)="markAvailable(false)" mat-raised-button class="btn-spacing" color="accent">
|
||||
<button
|
||||
id="markAvailableBtn"
|
||||
*ngIf="!movie.available && movie.requested"
|
||||
(click)="markAvailable(false)"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="accent"
|
||||
>
|
||||
<i class="fas fa-plus"></i> {{ 'Requests.MarkAvailable' | translate }}
|
||||
</button>
|
||||
<button id="markUnavailableBtn" *ngIf="movie.available && movie.requested"
|
||||
(click)="markUnavailable(false)" mat-raised-button class="btn-spacing" color="accent">
|
||||
<button
|
||||
id="markUnavailableBtn"
|
||||
*ngIf="movie.available && movie.requested"
|
||||
(click)="markUnavailable(false)"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="accent"
|
||||
>
|
||||
<i class="fas fa-minus"></i> {{ 'Requests.MarkUnavailable' | translate }}
|
||||
</button>
|
||||
|
||||
<!-- 4k -->
|
||||
<span *ngIf="is4KEnabled">
|
||||
<span *permission="roleName4k">
|
||||
<button id="approve4kBtn" *ngIf="!movie.approved4K && movie.has4KRequest"
|
||||
(click)="approve(true)" mat-raised-button class="btn-spacing" color="accent">
|
||||
<button
|
||||
id="approve4kBtn"
|
||||
*ngIf="!movie.approved4K && movie.has4KRequest"
|
||||
(click)="approve(true)"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="accent"
|
||||
>
|
||||
<i class="fas fa-plus"></i> {{ 'Common.Approve4K' | translate }}
|
||||
</button>
|
||||
<button id="markAvailable4kBtn" *ngIf="!movie.available4K && movie.has4KRequest"
|
||||
(click)="markAvailable(true)" mat-raised-button class="btn-spacing"
|
||||
color="accent">
|
||||
<button
|
||||
id="markAvailable4kBtn"
|
||||
*ngIf="!movie.available4K && movie.has4KRequest"
|
||||
(click)="markAvailable(true)"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="accent"
|
||||
>
|
||||
<i class="fas fa-plus"></i> {{ 'Requests.MarkAvailable4K' | translate }}
|
||||
</button>
|
||||
<button id="markUnavailable4kBtn" *ngIf="movie.available4K"
|
||||
(click)="markUnavailable(true)" mat-raised-button class="btn-spacing"
|
||||
color="accent">
|
||||
<button
|
||||
id="markUnavailable4kBtn"
|
||||
*ngIf="movie.available4K"
|
||||
(click)="markUnavailable(true)"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="accent"
|
||||
>
|
||||
<i class="fas fa-minus"></i> {{ 'Requests.MarkUnavailable4K' | translate }}
|
||||
</button>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<button id="denyBtn" *ngIf="!movieRequest.denied && movie.requested" mat-raised-button
|
||||
class="btn-spacing" color="warn" (click)="deny(false)">
|
||||
<button
|
||||
id="denyBtn"
|
||||
*ngIf="!movieRequest.denied && movie.requested"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="warn"
|
||||
(click)="deny(false)"
|
||||
>
|
||||
<i class="fas fa-times"></i> {{ 'Requests.Deny' | translate }}
|
||||
</button>
|
||||
|
||||
<button id="deniedButton" *ngIf="movieRequest && movieRequest.denied"
|
||||
[matTooltip]="movieRequest.deniedReason" mat-raised-button class="btn-spacing"
|
||||
color="warn">
|
||||
<button
|
||||
id="deniedButton"
|
||||
*ngIf="movieRequest && movieRequest.denied"
|
||||
[matTooltip]="movieRequest.deniedReason"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="warn"
|
||||
>
|
||||
<i class="fas fa-times"></i> {{ 'MediaDetails.Denied' | translate }}
|
||||
</button>
|
||||
</span>
|
||||
|
||||
<button id="reportIssueBtn" mat-raised-button class="btn-spacing" color="danger"
|
||||
(click)="issue()" *ngIf="issuesEnabled">
|
||||
<button id="reportIssueBtn" mat-raised-button class="btn-spacing" color="danger" (click)="issue()" *ngIf="issuesEnabled">
|
||||
<i class="fas fa-exclamation"></i> {{ 'Requests.ReportIssue' | translate }}
|
||||
</button>
|
||||
<button id="viewCollectionBtn" *ngIf="movie.belongsToCollection"
|
||||
[routerLink]="'/discover/collection/' + movie.belongsToCollection.id" mat-raised-button
|
||||
class="btn-spacing">
|
||||
<button
|
||||
id="viewCollectionBtn"
|
||||
*ngIf="movie.belongsToCollection"
|
||||
[routerLink]="'/discover/collection/' + movie.belongsToCollection.id"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
>
|
||||
<i class="fas fa-list"></i> {{ 'MediaDetails.ViewCollection' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
|
@ -179,12 +278,13 @@
|
|||
<div class="col-12 col-md-2">
|
||||
<mat-card class="mat-elevation-z8">
|
||||
<mat-card-content>
|
||||
<movie-information-panel [movie]="movie" [request]="movieRequest"
|
||||
[advancedOptions]="showAdvanced"></movie-information-panel>
|
||||
<movie-information-panel
|
||||
[movie]="movie"
|
||||
[request]="movieRequest"
|
||||
[advancedOptions]="showAdvanced"
|
||||
></movie-information-panel>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-10">
|
||||
|
@ -192,7 +292,12 @@
|
|||
<div class="col-12">
|
||||
<mat-card class="mat-elevation-z8 spacing-below">
|
||||
<mat-card-content>
|
||||
@defer (on viewport; prefetch on idle) {
|
||||
{{ movie.overview }}
|
||||
}
|
||||
@placeholder {
|
||||
<p-skeleton height="2rem" styleClass="mb-2"></p-skeleton>
|
||||
}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
|
@ -200,13 +305,23 @@
|
|||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@defer (on viewport; prefetch on idle) {
|
||||
<cast-carousel [cast]="movie.credits.cast"></cast-carousel>
|
||||
}
|
||||
@placeholder {
|
||||
<p-skeleton height="2rem" styleClass="mb-2"></p-skeleton>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<crew-carousel [crew]="movie.credits.crew"></crew-carousel>
|
||||
@defer (on viewport; prefetch on idle) {
|
||||
<cast-carousel [cast]="movie.credits.crew"></cast-carousel>
|
||||
}
|
||||
@placeholder {
|
||||
<p-skeleton height="2rem" styleClass="mb-2"></p-skeleton>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -220,19 +335,26 @@
|
|||
<div class="row" *ngIf="movie.videos?.results?.length > 0">
|
||||
<div class="col-12">
|
||||
<mat-card class="mat-elevation-z8">
|
||||
@defer (on viewport; prefetch on idle) {
|
||||
<mat-card-header>{{ 'MediaDetails.Trailers' | translate }}</mat-card-header>
|
||||
<mat-card-content>
|
||||
<p-carousel class="no-indicator" [numVisible]="2" [numScroll]="10" [page]="0"
|
||||
[value]="movie.videos?.results">
|
||||
<p-carousel class="no-indicator" [numVisible]="2" [numScroll]="10" [page]="0" [value]="movie.videos?.results">
|
||||
<ng-template let-result pTemplate="item">
|
||||
<iframe width="98%" height="315px"
|
||||
<iframe
|
||||
width="98%"
|
||||
height="315px"
|
||||
[src]="'https://www.youtube.com/embed/' + result.key | safe"
|
||||
frameborder="0"
|
||||
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowfullscreen></iframe>
|
||||
allowfullscreen
|
||||
></iframe>
|
||||
</ng-template>
|
||||
</p-carousel>
|
||||
</mat-card-content>
|
||||
}
|
||||
@placeholder {
|
||||
<p-skeleton height="2rem" styleClass="mb-2"></p-skeleton>
|
||||
}
|
||||
</mat-card>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -243,6 +365,7 @@
|
|||
<issues-panel [providerId]="movie.imdbId" [isAdmin]="isAdmin"></issues-panel>
|
||||
</div>
|
||||
|
||||
@defer (on viewport; prefetch on idle) {
|
||||
<mat-accordion class="mat-elevation-z8 spacing-below">
|
||||
<mat-expansion-panel *ngIf="movie.recommendations?.results?.length > 0">
|
||||
<mat-expansion-panel-header>
|
||||
|
@ -252,14 +375,18 @@
|
|||
</mat-expansion-panel-header>
|
||||
|
||||
<div class="row card-spacer">
|
||||
|
||||
<div class="col-md-2" *ngFor="let r of movie.recommendations?.results">
|
||||
<div class="sidebar affixable affix-top preview-poster">
|
||||
<div class="poster">
|
||||
<a [routerLink]="'/details/movie/' + r.id">
|
||||
<ombi-image class="real grow" matTooltip="{{r.title}}"
|
||||
<ombi-image
|
||||
class="real grow"
|
||||
matTooltip="{{ r.title }}"
|
||||
src="https://image.tmdb.org/t/p/w300/{{ r.poster_path }}"
|
||||
alt="Poster" style="display: block;"> </ombi-image>
|
||||
alt="Poster"
|
||||
style="display: block"
|
||||
>
|
||||
</ombi-image>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -274,14 +401,17 @@
|
|||
</mat-expansion-panel-header>
|
||||
|
||||
<div class="row card-spacer">
|
||||
|
||||
<div class="col-md-2" *ngFor="let r of movie.similar.results">
|
||||
<div class="sidebar affixable affix-top preview-poster">
|
||||
<div class="poster">
|
||||
<a [routerLink]="'/details/movie/' + r.id">
|
||||
<ombi-image class="real grow" matTooltip="{{r.title}}"
|
||||
<ombi-image
|
||||
class="real grow"
|
||||
matTooltip="{{ r.title }}"
|
||||
src="https://image.tmdb.org/t/p/w300/{{ r.poster_path }}"
|
||||
alt="Poster" style="display: block;"></ombi-image>
|
||||
alt="Poster"
|
||||
style="display: block"
|
||||
></ombi-image>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -289,12 +419,15 @@
|
|||
</div>
|
||||
</mat-expansion-panel>
|
||||
</mat-accordion>
|
||||
}
|
||||
@placeholder {
|
||||
<p-skeleton height="2rem" styleClass="mb-2"></p-skeleton>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-page-gap">
|
||||
</div>
|
||||
<div class="bottom-page-gap"></div>
|
||||
</section>
|
||||
</div>
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
import { Component, OnInit, ViewEncapsulation } from "@angular/core";
|
||||
import { ImageService, SearchV2Service, RequestService, MessageService, RadarrService, SettingsStateService } from "../../../services";
|
||||
import { ActivatedRoute, Router } from "@angular/router";
|
||||
import { DomSanitizer } from "@angular/platform-browser";
|
||||
import { ICrewViewModel, ISearchMovieResultV2 } from "../../../interfaces/ISearchMovieResultV2";
|
||||
import { MatDialog } from "@angular/material/dialog";
|
||||
import { YoutubeTrailerComponent } from "../shared/youtube-trailer.component";
|
||||
import { AuthService } from "../../../auth/auth.service";
|
||||
import { IMovieRequests, RequestType, IAdvancedData } from "../../../interfaces";
|
||||
import { DenyDialogComponent } from "../shared/deny-dialog/deny-dialog.component";
|
||||
import { NewIssueComponent } from "../shared/new-issue/new-issue.component";
|
||||
import { TranslateService } from "@ngx-translate/core";
|
||||
import { MovieAdvancedOptionsComponent } from "./panels/movie-advanced-options/movie-advanced-options.component";
|
||||
import { RequestServiceV2 } from "../../../services/requestV2.service";
|
||||
import { firstValueFrom, forkJoin } from "rxjs";
|
||||
import { AdminRequestDialogComponent } from "../../../shared/admin-request-dialog/admin-request-dialog.component";
|
||||
import { FeaturesFacade } from "../../../state/features/features.facade";
|
||||
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
import { ImageService, SearchV2Service, RequestService, MessageService, RadarrService, SettingsStateService } from '../../../services';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { DomSanitizer } from '@angular/platform-browser';
|
||||
import { ICrewViewModel, ISearchMovieResultV2 } from '../../../interfaces/ISearchMovieResultV2';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { YoutubeTrailerComponent } from '../shared/youtube-trailer.component';
|
||||
import { AuthService } from '../../../auth/auth.service';
|
||||
import { IMovieRequests, RequestType, IAdvancedData } from '../../../interfaces';
|
||||
import { DenyDialogComponent } from '../shared/deny-dialog/deny-dialog.component';
|
||||
import { NewIssueComponent } from '../shared/new-issue/new-issue.component';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { MovieAdvancedOptionsComponent } from './panels/movie-advanced-options/movie-advanced-options.component';
|
||||
import { RequestServiceV2 } from '../../../services/requestV2.service';
|
||||
import { firstValueFrom, forkJoin } from 'rxjs';
|
||||
import { AdminRequestDialogComponent } from '../../../shared/admin-request-dialog/admin-request-dialog.component';
|
||||
import { FeaturesFacade } from '../../../state/features/features.facade';
|
||||
|
||||
@Component({
|
||||
templateUrl: "./movie-details.component.html",
|
||||
styleUrls: ["../../media-details.component.scss"],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
templateUrl: './movie-details.component.html',
|
||||
styleUrls: ['../../media-details.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
})
|
||||
export class MovieDetailsComponent implements OnInit {
|
||||
public movie: ISearchMovieResultV2;
|
||||
|
@ -29,35 +29,44 @@ export class MovieDetailsComponent implements OnInit{
|
|||
public advancedOptions: IAdvancedData;
|
||||
public showAdvanced: boolean; // Set on the UI
|
||||
public issuesEnabled: boolean;
|
||||
public roleName4k = "Request4KMovie";
|
||||
public roleName4k = 'Request4KMovie';
|
||||
public is4KEnabled = false;
|
||||
public requestType = RequestType.movie;
|
||||
private theMovidDbId: number;
|
||||
private imdbId: string;
|
||||
private snapMovieId: string;
|
||||
|
||||
|
||||
constructor(private searchService: SearchV2Service, private route: ActivatedRoute, private router: Router,
|
||||
private sanitizer: DomSanitizer, private imageService: ImageService,
|
||||
public dialog: MatDialog, private requestService: RequestService,
|
||||
private requestService2: RequestServiceV2, private radarrService: RadarrService,
|
||||
public messageService: MessageService, private auth: AuthService, private settingsState: SettingsStateService,
|
||||
private translate: TranslateService, private featureFacade: FeaturesFacade) {
|
||||
constructor(
|
||||
private searchService: SearchV2Service,
|
||||
private route: ActivatedRoute,
|
||||
private router: Router,
|
||||
private sanitizer: DomSanitizer,
|
||||
private imageService: ImageService,
|
||||
public dialog: MatDialog,
|
||||
private requestService: RequestService,
|
||||
private requestService2: RequestServiceV2,
|
||||
private radarrService: RadarrService,
|
||||
public messageService: MessageService,
|
||||
private auth: AuthService,
|
||||
private settingsState: SettingsStateService,
|
||||
private translate: TranslateService,
|
||||
private featureFacade: FeaturesFacade,
|
||||
) {
|
||||
this.snapMovieId = this.route.snapshot.params.movieDbId;
|
||||
this.route.params.subscribe(async (params: any) => {
|
||||
if (typeof params.movieDbId === 'string' || params.movieDbId instanceof String) {
|
||||
if (params.movieDbId.startsWith("tt")) {
|
||||
if (params.movieDbId.startsWith('tt')) {
|
||||
this.imdbId = params.movieDbId;
|
||||
// Check if we user navigated to another movie and if so reload the component
|
||||
if (this.imdbId !== this.snapMovieId) {
|
||||
this.reloadComponent()
|
||||
this.reloadComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
this.theMovidDbId = params.movieDbId;
|
||||
// Check if we user navigated to another movie and if so reload the component
|
||||
if (params.movieDbId !== this.snapMovieId) {
|
||||
this.reloadComponent()
|
||||
this.reloadComponent();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -72,14 +81,14 @@ export class MovieDetailsComponent implements OnInit{
|
|||
async ngOnInit() {
|
||||
this.is4KEnabled = this.featureFacade.is4kEnabled();
|
||||
this.issuesEnabled = this.settingsState.getIssue();
|
||||
this.isAdmin = this.auth.hasRole("admin") || this.auth.hasRole("poweruser");
|
||||
this.isAdmin = this.auth.hasRole('admin') || this.auth.hasRole('poweruser');
|
||||
|
||||
if (this.isAdmin) {
|
||||
this.showAdvanced = await firstValueFrom(this.radarrService.isRadarrEnabled());
|
||||
}
|
||||
|
||||
if (this.imdbId) {
|
||||
this.searchService.getMovieByImdbId(this.imdbId).subscribe(async x => {
|
||||
this.searchService.getMovieByImdbId(this.imdbId).subscribe(async (x) => {
|
||||
this.movie = x;
|
||||
this.checkPoster();
|
||||
this.movie.credits.crew = this.orderCrew(this.movie.credits.crew);
|
||||
|
@ -91,7 +100,7 @@ export class MovieDetailsComponent implements OnInit{
|
|||
this.loadBanner();
|
||||
});
|
||||
} else {
|
||||
this.searchService.getFullMovieDetails(this.theMovidDbId).subscribe(async x => {
|
||||
this.searchService.getFullMovieDetails(this.theMovidDbId).subscribe(async (x) => {
|
||||
this.movie = x;
|
||||
this.checkPoster();
|
||||
this.movie.credits.crew = this.orderCrew(this.movie.credits.crew);
|
||||
|
@ -111,15 +120,23 @@ export class MovieDetailsComponent implements OnInit{
|
|||
is4K = false;
|
||||
}
|
||||
if (this.isAdmin) {
|
||||
const dialog = this.dialog.open(AdminRequestDialogComponent, { width: "700px", data: { type: RequestType.movie, id: this.movie.id, is4K: is4K }, panelClass: 'modal-panel' });
|
||||
const dialog = this.dialog.open(AdminRequestDialogComponent, {
|
||||
width: '700px',
|
||||
data: { type: RequestType.movie, id: this.movie.id, is4K: is4K },
|
||||
panelClass: 'modal-panel',
|
||||
});
|
||||
dialog.afterClosed().subscribe(async (result) => {
|
||||
if (result) {
|
||||
const requestResult = await firstValueFrom(this.requestService.requestMovie({ theMovieDbId: this.theMovidDbId,
|
||||
const requestResult = await firstValueFrom(
|
||||
this.requestService.requestMovie({
|
||||
theMovieDbId: this.theMovidDbId,
|
||||
languageCode: this.translate.currentLang,
|
||||
qualityPathOverride: result.radarrPathId,
|
||||
requestOnBehalf: result.username?.id,
|
||||
rootFolderOverride: result.radarrFolderId,
|
||||
is4KRequest: is4K }));
|
||||
is4KRequest: is4K,
|
||||
}),
|
||||
);
|
||||
if (requestResult.result) {
|
||||
if (is4K) {
|
||||
this.movie.has4KRequest = true;
|
||||
|
@ -127,7 +144,7 @@ export class MovieDetailsComponent implements OnInit{
|
|||
this.movie.requested = true;
|
||||
}
|
||||
this.movie.requestId = requestResult.requestId;
|
||||
this.messageService.send(this.translate.instant("Requests.RequestAddedSuccessfully", { title: this.movie.title }), "Ok");
|
||||
this.messageService.send(this.translate.instant('Requests.RequestAddedSuccessfully', { title: this.movie.title }), 'Ok');
|
||||
this.movieRequest = await this.requestService.getMovieRequest(this.movie.requestId);
|
||||
} else {
|
||||
this.messageService.sendRequestEngineResultError(requestResult);
|
||||
|
@ -135,7 +152,16 @@ export class MovieDetailsComponent implements OnInit{
|
|||
}
|
||||
});
|
||||
} else {
|
||||
const result = await firstValueFrom(this.requestService.requestMovie({ theMovieDbId: this.theMovidDbId, languageCode: this.translate.currentLang, requestOnBehalf: userId, qualityPathOverride: undefined, rootFolderOverride: undefined, is4KRequest: is4K }));
|
||||
const result = await firstValueFrom(
|
||||
this.requestService.requestMovie({
|
||||
theMovieDbId: this.theMovidDbId,
|
||||
languageCode: this.translate.currentLang,
|
||||
requestOnBehalf: userId,
|
||||
qualityPathOverride: undefined,
|
||||
rootFolderOverride: undefined,
|
||||
is4KRequest: is4K,
|
||||
}),
|
||||
);
|
||||
if (result.result) {
|
||||
if (is4K) {
|
||||
this.movie.has4KRequest = true;
|
||||
|
@ -144,7 +170,7 @@ export class MovieDetailsComponent implements OnInit{
|
|||
}
|
||||
this.movie.requestId = result.requestId;
|
||||
this.movieRequest = await this.requestService.getMovieRequest(this.movie.requestId);
|
||||
this.messageService.send(this.translate.instant("Requests.RequestAddedSuccessfully", { title: this.movie.title }), "Ok");
|
||||
this.messageService.send(this.translate.instant('Requests.RequestAddedSuccessfully', { title: this.movie.title }), 'Ok');
|
||||
} else {
|
||||
this.messageService.sendRequestEngineResultError(result);
|
||||
}
|
||||
|
@ -154,17 +180,17 @@ export class MovieDetailsComponent implements OnInit{
|
|||
public openDialog() {
|
||||
this.dialog.open(YoutubeTrailerComponent, {
|
||||
width: '560px',
|
||||
data: this.movie.videos.results[0].key
|
||||
data: this.movie.videos.results[0].key,
|
||||
});
|
||||
}
|
||||
|
||||
public async deny() {
|
||||
const dialogRef = this.dialog.open(DenyDialogComponent, {
|
||||
width: '250px',
|
||||
data: { requestId: this.movieRequest.id, requestType: RequestType.movie }
|
||||
data: { requestId: this.movieRequest.id, requestType: RequestType.movie },
|
||||
});
|
||||
|
||||
dialogRef.afterClosed().subscribe(result => {
|
||||
dialogRef.afterClosed().subscribe((result) => {
|
||||
this.movieRequest.denied = result.denied;
|
||||
this.movieRequest.deniedReason = result.reason;
|
||||
});
|
||||
|
@ -177,7 +203,13 @@ export class MovieDetailsComponent implements OnInit{
|
|||
}
|
||||
const dialogRef = this.dialog.open(NewIssueComponent, {
|
||||
width: '500px',
|
||||
data: { requestId: this.movieRequest ? this.movieRequest.id : null, requestType: RequestType.movie, providerId: provider, title: this.movie.title, posterPath: this.movie.posterPath }
|
||||
data: {
|
||||
requestId: this.movieRequest ? this.movieRequest.id : null,
|
||||
requestType: RequestType.movie,
|
||||
providerId: provider,
|
||||
title: this.movie.title,
|
||||
posterPath: this.movie.posterPath,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -189,27 +221,26 @@ export class MovieDetailsComponent implements OnInit{
|
|||
} else {
|
||||
this.movie.approved = true;
|
||||
}
|
||||
this.messageService.send(this.translate.instant("Requests.SuccessfullyApproved"), "Ok");
|
||||
this.messageService.send(this.translate.instant('Requests.SuccessfullyApproved'), 'Ok');
|
||||
} else {
|
||||
this.messageService.sendRequestEngineResultError(result);
|
||||
}
|
||||
}
|
||||
|
||||
public async markAvailable(is4K: boolean) {
|
||||
const result = await firstValueFrom(this.requestService.markMovieAvailable({ id: this.movieRequest.id, is4K }))
|
||||
const result = await firstValueFrom(this.requestService.markMovieAvailable({ id: this.movieRequest.id, is4K }));
|
||||
if (result.result) {
|
||||
if (is4K) {
|
||||
this.movie.available4K = true;
|
||||
} else {
|
||||
this.movie.available = true;
|
||||
}
|
||||
this.messageService.send(this.translate.instant("Requests.NowAvailable"), "Ok");
|
||||
this.messageService.send(this.translate.instant('Requests.NowAvailable'), 'Ok');
|
||||
} else {
|
||||
this.messageService.sendRequestEngineResultError(result);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public async markUnavailable(is4K: boolean) {
|
||||
const result = await firstValueFrom(this.requestService.markMovieUnavailable({ id: this.movieRequest.id, is4K }));
|
||||
if (result.result) {
|
||||
|
@ -218,7 +249,7 @@ export class MovieDetailsComponent implements OnInit{
|
|||
} else {
|
||||
this.movie.available = false;
|
||||
}
|
||||
this.messageService.send(this.translate.instant("Requests.NowUnavailable"), "Ok");
|
||||
this.messageService.send(this.translate.instant('Requests.NowUnavailable'), 'Ok');
|
||||
} else {
|
||||
this.messageService.sendRequestEngineResultError(result);
|
||||
}
|
||||
|
@ -227,29 +258,40 @@ export class MovieDetailsComponent implements OnInit{
|
|||
public setAdvancedOptions(data: IAdvancedData) {
|
||||
this.advancedOptions = data;
|
||||
if (data.rootFolderId) {
|
||||
this.movieRequest.qualityOverrideTitle = data.profiles.filter(x => x.id == data.profileId)[0].name;
|
||||
this.movieRequest.qualityOverrideTitle = data.profiles.filter((x) => x.id == data.profileId)[0].name;
|
||||
}
|
||||
if (data.profileId) {
|
||||
this.movieRequest.rootPathOverrideTitle = data.rootFolders.filter(x => x.id == data.rootFolderId)[0].path;
|
||||
this.movieRequest.rootPathOverrideTitle = data.rootFolders.filter((x) => x.id == data.rootFolderId)[0].path;
|
||||
}
|
||||
}
|
||||
|
||||
public async openAdvancedOptions() {
|
||||
const dialog = this.dialog.open(MovieAdvancedOptionsComponent, { width: "700px", data: <IAdvancedData>{ movieRequest: this.movieRequest }, panelClass: 'modal-panel' })
|
||||
await dialog.afterClosed().subscribe(async result => {
|
||||
const dialog = this.dialog.open(MovieAdvancedOptionsComponent, {
|
||||
width: '700px',
|
||||
data: <IAdvancedData>{ movieRequest: this.movieRequest },
|
||||
panelClass: 'modal-panel',
|
||||
});
|
||||
await dialog.afterClosed().subscribe(async (result) => {
|
||||
if (result) {
|
||||
result.rootFolder = result.rootFolders.filter(f => f.id === +result.rootFolderId)[0];
|
||||
result.profile = result.profiles.filter(f => f.id === +result.profileId)[0];
|
||||
await this.requestService2.updateMovieAdvancedOptions({ qualityOverride: result.profileId, rootPathOverride: result.rootFolderId, languageProfile: 0, requestId: this.movieRequest.id }).toPromise();
|
||||
result.rootFolder = result.rootFolders.filter((f) => f.id === +result.rootFolderId)[0];
|
||||
result.profile = result.profiles.filter((f) => f.id === +result.profileId)[0];
|
||||
await this.requestService2
|
||||
.updateMovieAdvancedOptions({
|
||||
qualityOverride: result.profileId,
|
||||
rootPathOverride: result.rootFolderId,
|
||||
languageProfile: 0,
|
||||
requestId: this.movieRequest.id,
|
||||
})
|
||||
.toPromise();
|
||||
this.setAdvancedOptions(result);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public reProcessRequest(is4K: boolean) {
|
||||
this.requestService2.reprocessRequest(this.movieRequest.id, RequestType.movie, is4K).subscribe(result => {
|
||||
this.requestService2.reprocessRequest(this.movieRequest.id, RequestType.movie, is4K).subscribe((result) => {
|
||||
if (result.result) {
|
||||
this.messageService.send(result.message ? result.message : this.translate.instant("Requests.SuccessfullyReprocessed"), "Ok");
|
||||
this.messageService.send(result.message ? result.message : this.translate.instant('Requests.SuccessfullyReprocessed'), 'Ok');
|
||||
} else {
|
||||
this.messageService.sendRequestEngineResultError(result);
|
||||
}
|
||||
|
@ -257,53 +299,52 @@ export class MovieDetailsComponent implements OnInit{
|
|||
}
|
||||
|
||||
public notify() {
|
||||
this.requestService.subscribeToMovie(this.movieRequest.id).subscribe(result => {
|
||||
this.requestService.subscribeToMovie(this.movieRequest.id).subscribe((result) => {
|
||||
if (result) {
|
||||
this.movie.subscribed = true;
|
||||
this.messageService.send(this.translate.instant("Requests.SuccessfulNotify", {title: this.movie.title}), "Ok");
|
||||
this.messageService.send(this.translate.instant('Requests.SuccessfulNotify', { title: this.movie.title }), 'Ok');
|
||||
} else {
|
||||
this.messageService.send(this.translate.instant("Requests.CouldntNotify", {title: this.movie.title}), "Ok");
|
||||
this.messageService.send(this.translate.instant('Requests.CouldntNotify', { title: this.movie.title }), 'Ok');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public unNotify() {
|
||||
this.requestService.unSubscribeToMovie(this.movieRequest.id).subscribe(result => {
|
||||
this.requestService.unSubscribeToMovie(this.movieRequest.id).subscribe((result) => {
|
||||
if (result) {
|
||||
this.movie.subscribed = false;
|
||||
this.messageService.send(this.translate.instant("Requests.SuccessfulUnNotify", {title: this.movie.title}), "Ok");
|
||||
this.messageService.send(this.translate.instant('Requests.SuccessfulUnNotify', { title: this.movie.title }), 'Ok');
|
||||
} else {
|
||||
this.messageService.send(this.translate.instant("Requests.CouldntNotify", {title: this.movie.title}), "Ok");
|
||||
this.messageService.send(this.translate.instant('Requests.CouldntNotify', { title: this.movie.title }), 'Ok');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private loadBanner() {
|
||||
this.imageService.getMovieBanner(this.theMovidDbId.toString()).subscribe(x => {
|
||||
this.imageService.getMovieBanner(this.theMovidDbId.toString()).subscribe((x) => {
|
||||
if (!this.movie.backdropPath) {
|
||||
this.movie.background = this.sanitizer.bypassSecurityTrustStyle
|
||||
("url(" + x + ")");
|
||||
this.movie.background = this.sanitizer.bypassSecurityTrustStyle('url(' + x + ')');
|
||||
} else {
|
||||
this.movie.background = this.sanitizer.bypassSecurityTrustStyle
|
||||
("url(https://image.tmdb.org/t/p/original/" + this.movie.backdropPath + ")");
|
||||
this.movie.background = this.sanitizer.bypassSecurityTrustStyle(
|
||||
'url(https://image.tmdb.org/t/p/original/' + this.movie.backdropPath + ')',
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
private checkPoster() {
|
||||
if (this.movie.posterPath == null) {
|
||||
this.movie.posterPath = "../../../images/default_movie_poster.png";
|
||||
this.movie.posterPath = '../../../images/default_movie_poster.png';
|
||||
} else {
|
||||
this.movie.posterPath = 'https://image.tmdb.org/t/p/w300/' + this.movie.posterPath;
|
||||
}
|
||||
else {
|
||||
this.movie.posterPath = "https://image.tmdb.org/t/p/w300/" + this.movie.posterPath
|
||||
};
|
||||
}
|
||||
private loadAdvancedInfo() {
|
||||
const profile = this.radarrService.getQualityProfilesFromSettings();
|
||||
const folders = this.radarrService.getRootFoldersFromSettings();
|
||||
|
||||
forkJoin([profile, folders]).subscribe(x => {
|
||||
const radarrProfiles = x[0];
|
||||
const radarrRootFolders = x[1];
|
||||
forkJoin([profile, folders]).subscribe((x) => {
|
||||
const radarrProfiles = x[0] ?? [];
|
||||
const radarrRootFolders = x[1] ?? [];
|
||||
|
||||
const profile = radarrProfiles.filter((p) => {
|
||||
return p.id === this.movieRequest.qualityOverride;
|
||||
|
@ -318,15 +359,14 @@ export class MovieDetailsComponent implements OnInit{
|
|||
if (path.length > 0) {
|
||||
this.movieRequest.rootPathOverrideTitle = path[0].path;
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
private orderCrew(crew: ICrewViewModel[]): ICrewViewModel[] {
|
||||
return crew.sort((a, b) => {
|
||||
if (a.job === "Director") {
|
||||
if (a.job === 'Director') {
|
||||
return -1;
|
||||
} else if (b.job === "Director") {
|
||||
} else if (b.job === 'Director') {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
|
|
|
@ -1,30 +1,33 @@
|
|||
<div *ngIf="movie" class="left-panel-details">
|
||||
<div class="rating medium-font">
|
||||
<span *ngIf="movie.voteAverage"
|
||||
matTooltip="{{'MediaDetails.Votes' | translate }} {{movie.voteCount | thousandShort: 1}}">
|
||||
<img class="rating-small" src="{{baseUrl}}/images/tmdb-logo.svg"> {{movie.voteAverage | number:'1.0-1'}}/10
|
||||
<span *ngIf="movie.voteAverage" matTooltip="{{ 'MediaDetails.Votes' | translate }} {{ movie.voteCount | thousandShort: 1 }}">
|
||||
<img class="rating-small" src="{{ baseUrl }}/images/tmdb-logo.svg" /> {{ movie.voteAverage | number: '1.0-1' }}/10
|
||||
</span>
|
||||
<span *ngIf="ratings?.critics_rating && ratings?.critics_score">
|
||||
<img class="rating-small"
|
||||
src="{{baseUrl}}/images/{{ratings.critics_rating === 'Rotten' ? 'rotten-rotten.svg' : 'rotten-fresh.svg'}}">
|
||||
<img
|
||||
class="rating-small"
|
||||
src="{{ baseUrl }}/images/{{ ratings.critics_rating === 'Rotten' ? 'rotten-rotten.svg' : 'rotten-fresh.svg' }}"
|
||||
/>
|
||||
{{ ratings.critics_score }}%
|
||||
</span>
|
||||
<span *ngIf="ratings?.audience_rating && ratings?.audience_score">
|
||||
<img class="rating-small"
|
||||
src="{{baseUrl}}/images/{{ratings.audience_rating === 'Upright' ? 'rotten-audience-fresh.svg' : 'rotten-audience-rotten.svg'}}">
|
||||
<img
|
||||
class="rating-small"
|
||||
src="{{ baseUrl }}/images/{{ ratings.audience_rating === 'Upright' ? 'rotten-audience-fresh.svg' : 'rotten-audience-rotten.svg' }}"
|
||||
/>
|
||||
{{ ratings.audience_score }}%
|
||||
</span>
|
||||
</div>
|
||||
<div *ngIf="streams?.length > 0" class="streaming-on">
|
||||
<hr>
|
||||
<hr />
|
||||
<span class="label">{{ 'MediaDetails.StreamingOn' | translate }}</span>
|
||||
<div>
|
||||
<span *ngFor="let stream of streams">
|
||||
<img class="stream-small" [matTooltip]="stream.streamingProvider" src="https://image.tmdb.org/t/p/original{{stream.logo}}">
|
||||
<img class="stream-small" [matTooltip]="stream.streamingProvider" src="https://image.tmdb.org/t/p/original{{ stream.logo }}" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<hr />
|
||||
<div>
|
||||
<span class="label">{{ 'MediaDetails.Status' | translate }}</span>
|
||||
<span id="status"> {{ this.movie.status | translateStatus }}</span>
|
||||
|
@ -46,8 +49,8 @@
|
|||
|
||||
<div *ngIf="request">
|
||||
<span class="label">{{ 'MediaDetails.RequestDate' | translate }}</span>
|
||||
<span *ngIf="request.requestedDate < request.requestedDate4k"> {{request.requestedDate4k | amUserLocale | amDateFormat: 'LL'}}</span>
|
||||
<span *ngIf="request.requestedDate > request.requestedDate4k"> {{request.requestedDate | amUserLocale | amDateFormat: 'LL'}}</span>
|
||||
<span *ngIf="request.requestedDate < request.requestedDate4k"> {{ request.requestedDate4k | ombiDate: 'PP' }}</span>
|
||||
<span *ngIf="request.requestedDate > request.requestedDate4k"> {{ request.requestedDate | ombiDate: 'PP' }}</span>
|
||||
</div>
|
||||
|
||||
<div *ngIf="request && request.source !== RequestSource.Ombi">
|
||||
|
@ -65,7 +68,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div *ngIf="movie.quality">
|
||||
<span class="label">{{ 'MediaDetails.Quality' | translate }}</span>
|
||||
<div>{{ movie.quality | quality }}</div>
|
||||
|
@ -73,7 +75,7 @@
|
|||
|
||||
<div *ngIf="movie.available4K">
|
||||
<span class="label">{{ 'MediaDetails.Quality' | translate }} </span>
|
||||
<span>{{"4K" | quality}}</span>
|
||||
<span>{{ '4K' | quality }}</span>
|
||||
</div>
|
||||
|
||||
<div *ngIf="advancedOptions && request && request.rootPathOverrideTitle">
|
||||
|
@ -85,16 +87,14 @@
|
|||
<div>{{ request.qualityOverrideTitle }}</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<hr>
|
||||
<hr />
|
||||
|
||||
<span class="label">{{ 'MediaDetails.TheatricalRelease' | translate }}</span>
|
||||
{{movie.releaseDate | amUserLocale | amDateFormat: 'LL': 'mediumDate'}}
|
||||
{{ movie.releaseDate | ombiDate: 'PP' }}
|
||||
|
||||
<div *ngIf="movie.digitalReleaseDate">
|
||||
<span class="label">{{ 'MediaDetails.DigitalRelease' | translate }}</span>
|
||||
{{movie.digitalReleaseDate | amUserLocale | amDateFormat: 'LL': 'mediumDate'}}
|
||||
{{ movie.digitalReleaseDate | ombiDate: 'PP' }}
|
||||
</div>
|
||||
|
||||
<div *ngIf="movie.voteCount">
|
||||
|
@ -135,3 +135,4 @@
|
|||
</mat-chip>
|
||||
</mat-chip-list>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<section id="summary-wrapper">
|
||||
<div class="full-screenshot enabled" [style.background-image]="background"></div>
|
||||
<div class="full-screenshot enabled overlay"></div>
|
||||
|
@ -6,11 +5,10 @@
|
|||
<div class="container summary">
|
||||
<div class="container title-top-banner">
|
||||
<div class="row">
|
||||
<div
|
||||
class="mobile-top-text">
|
||||
<h1 id="mediaTitle" class="large-text">{{title}}
|
||||
<span *ngIf="releaseDateFormat" class="grey-text">
|
||||
({{releaseDate | amLocal | amDateFormat: 'YYYY'}})</span>
|
||||
<div class="mobile-top-text">
|
||||
<h1 id="mediaTitle" class="large-text">
|
||||
{{ title }}
|
||||
<span *ngIf="releaseDateFormat" class="grey-text"> ({{ releaseDate | ombiDate: 'P' }})</span>
|
||||
</h1>
|
||||
|
||||
<h2 class="tagline">{{ tagline }}</h2>
|
||||
|
|
|
@ -2,30 +2,36 @@
|
|||
<div>
|
||||
<div class="rating medium-font">
|
||||
<span *ngIf="tv.rating">
|
||||
<img class="rating-small" src="{{baseUrl}}/images/tmdb-logo.svg"> {{tv.rating * 10 | number : '1.2-2'}}%
|
||||
<img class="rating-small" src="{{ baseUrl }}/images/tmdb-logo.svg" /> {{ tv.rating * 10 | number: '1.2-2' }}%
|
||||
</span>
|
||||
<span *ngIf="ratings?.score && ratings?.class">
|
||||
<img class="rating-small" src="{{baseUrl}}/images/{{ratings.class === 'rotten' ? 'rotten-rotten.svg' : 'rotten-fresh.svg'}}"> {{ratings.score}}%
|
||||
<img class="rating-small" src="{{ baseUrl }}/images/{{ ratings.class === 'rotten' ? 'rotten-rotten.svg' : 'rotten-fresh.svg' }}" />
|
||||
{{ ratings.score }}%
|
||||
</span>
|
||||
</div>
|
||||
<div *ngIf="streams?.length > 0" id="streamingContainer" class="streaming-on-container">
|
||||
<hr>
|
||||
<hr />
|
||||
<div class="streaming-on-content">
|
||||
<span class="label">{{ 'MediaDetails.StreamingOn' | translate }}</span>
|
||||
<div>
|
||||
<span *ngFor="let stream of sortBy('order')">
|
||||
<img class="stream-small" id="stream{{stream.streamingProvider}}" [matTooltip]="stream.streamingProvider" src="https://image.tmdb.org/t/p/original{{stream.logo}}">
|
||||
<img
|
||||
class="stream-small"
|
||||
id="stream{{ stream.streamingProvider }}"
|
||||
[matTooltip]="stream.streamingProvider"
|
||||
src="https://image.tmdb.org/t/p/original{{ stream.logo }}"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<hr />
|
||||
<div *ngIf="tv.status">
|
||||
<span class="label">{{ 'MediaDetails.Status' | translate }}</span>
|
||||
<span id="status"> {{ tv.status | translateStatus }}</span>
|
||||
</div>
|
||||
<span class="label">{{ 'MediaDetails.FirstAired' | translate }}</span>
|
||||
{{tv.firstAired | amLocal | amUserLocale | amDateFormat: 'LL' }}
|
||||
{{ tv.firstAired | ombiDate: 'PP' }}
|
||||
</div>
|
||||
|
||||
<div *ngIf="seasonCount">
|
||||
|
@ -56,7 +62,6 @@
|
|||
{{ tv.network.name }}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="genre-button-container" *ngIf="tv.genres">
|
||||
<span class="label">{{ 'MediaDetails.GenresLabel' | translate }}</span>
|
||||
<div>
|
||||
|
@ -77,6 +82,4 @@
|
|||
</mat-chip>
|
||||
</mat-chip-list>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
|
||||
<mat-tab-group>
|
||||
<mat-tab *ngFor="let season of tv.seasonRequests">
|
||||
|
||||
<ng-template mat-tab-label>
|
||||
<div attr.data-test="classStatus{{ season.seasonNumber }}" class="{{ getStatusClass(season) }} top-right">
|
||||
<span>{{ 'Requests.Season' | translate }} {{ season.seasonNumber }}</span>
|
||||
|
@ -14,20 +12,26 @@
|
|||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
|
||||
<table mat-table [dataSource]="season.episodes" class="mat-elevation-z8">
|
||||
|
||||
<ng-container matColumnDef="select">
|
||||
<th mat-header-cell *matHeaderCellDef>
|
||||
<mat-checkbox attr.data-test="masterCheckbox{{season.seasonNumber}}" *ngIf="isSeasonCheckable(season)" (change)="$event ? masterToggle(season.episodes) : null"
|
||||
<mat-checkbox
|
||||
attr.data-test="masterCheckbox{{ season.seasonNumber }}"
|
||||
*ngIf="isSeasonCheckable(season)"
|
||||
(change)="$event ? masterToggle(season.episodes) : null"
|
||||
[checked]="selection.hasValue() && isAllSelected(season.episodes)"
|
||||
[indeterminate]="selection.hasValue() && !isAllSelected(season.episodes)">
|
||||
[indeterminate]="selection.hasValue() && !isAllSelected(season.episodes)"
|
||||
>
|
||||
</mat-checkbox>
|
||||
</th>
|
||||
<td mat-cell *matCellDef="let row">
|
||||
<mat-checkbox attr.data-test="episodeCheckbox{{season.seasonNumber}}{{row.episodeNumber}}" *ngIf="!row.available && !row.requested && !row.approved" (click)="$event.stopPropagation()"
|
||||
<mat-checkbox
|
||||
attr.data-test="episodeCheckbox{{ season.seasonNumber }}{{ row.episodeNumber }}"
|
||||
*ngIf="!row.available && !row.requested && !row.approved"
|
||||
(click)="$event.stopPropagation()"
|
||||
(change)="$event ? selection.toggle(row) : null"
|
||||
[checked]="selection.isSelected(row)">
|
||||
[checked]="selection.isSelected(row)"
|
||||
>
|
||||
</mat-checkbox>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
@ -44,25 +48,25 @@
|
|||
|
||||
<ng-container matColumnDef="airDate">
|
||||
<th mat-header-cell *matHeaderCellDef>{{ 'Requests.AirDate' | translate }}</th>
|
||||
<td mat-cell *matCellDef="let element"> {{element.airDate | amLocal | amUserLocale | amDateFormat: 'L' }}</td>
|
||||
<td mat-cell *matCellDef="let element">{{ element.airDate | ombiDate: 'P' }}</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="status">
|
||||
<th mat-header-cell *matHeaderCellDef>{{ 'Requests.GridStatus' | translate }}</th>
|
||||
<td mat-cell *matCellDef="let ep">
|
||||
<div attr.data-test="episodeStatus{{season.seasonNumber}}{{ep.episodeNumber}}" class="{{getEpisodeStatusClass(ep)}} top-right">
|
||||
<div
|
||||
attr.data-test="episodeStatus{{ season.seasonNumber }}{{ ep.episodeNumber }}"
|
||||
class="{{ getEpisodeStatusClass(ep) }} top-right"
|
||||
>
|
||||
<span>{{ ep.requestStatus | translate }}</span>
|
||||
</div>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"
|
||||
(click)="selection.toggle(row)">
|
||||
</tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns" (click)="selection.toggle(row)"></tr>
|
||||
</table>
|
||||
</mat-tab>
|
||||
|
||||
</mat-tab-group>
|
||||
|
||||
<!-- <div *ngIf="isAdmin">
|
||||
|
@ -73,11 +77,9 @@
|
|||
</div>
|
||||
-->
|
||||
|
||||
|
||||
<button *ngIf="!tv.fullyAvailable && requestable" mat-fab color="accent" id="addFabBtn" class="floating-fab" [matMenuTriggerFor]="aboveMenu">
|
||||
<i class="fas fa-plus fa-lg"></i>
|
||||
<mat-menu #aboveMenu="matMenu" yPosition="above">
|
||||
|
||||
<button id="requestAll" mat-menu-item (click)="requestAllSeasons()">{{ 'Search.TvShows.AllSeasons' | translate }}</button>
|
||||
|
||||
<button id="requestFirst" mat-menu-item (click)="requestFirstSeason()">{{ 'Search.TvShows.FirstSeason' | translate }}</button>
|
||||
|
@ -86,3 +88,4 @@
|
|||
|
||||
<button id="requestSelected" mat-menu-item (click)="submitRequests()">{{ 'Common.Request' | translate }}</button>
|
||||
</mat-menu>
|
||||
</button>
|
||||
|
|
|
@ -5,21 +5,24 @@
|
|||
<div>{{ request.requestStatus | translate }}</div>
|
||||
</mat-panel-title>
|
||||
<mat-panel-description>
|
||||
{{'MediaDetails.RequestedByOn' | translate: {
|
||||
{{
|
||||
'MediaDetails.RequestedByOn'
|
||||
| translate
|
||||
: {
|
||||
user: request.requestedUser.userAlias,
|
||||
date: request.requestedDate | amLocal | amUserLocale | amDateFormat: 'LL' } }}
|
||||
date: request.requestedDate | ombiDate: 'PP'
|
||||
}
|
||||
}}
|
||||
<span *ngIf="request.denied"> - {{ request.deniedReason }}</span>
|
||||
<span *ngIf="request.source !== RequestSource.Ombi"> {{'MediaDetails.RequestSource' | translate }} {{RequestSource[request.source]}}</span>
|
||||
<span *ngIf="request.source !== RequestSource.Ombi"
|
||||
> {{ 'MediaDetails.RequestSource' | translate }} {{ RequestSource[request.source] }}</span
|
||||
>
|
||||
</mat-panel-description>
|
||||
</mat-expansion-panel-header>
|
||||
|
||||
|
||||
<mat-tab-group>
|
||||
<mat-tab *ngFor="let season of request.seasonRequests" label="{{ 'Requests.Season' | translate }} {{ season.seasonNumber }}">
|
||||
|
||||
<table mat-table [dataSource]="season.episodes" class="mat-elevation-z8">
|
||||
|
||||
|
||||
<ng-container matColumnDef="number">
|
||||
<th mat-header-cell *matHeaderCellDef>#</th>
|
||||
<td mat-cell *matCellDef="let element">{{ element.episodeNumber }}</td>
|
||||
|
@ -32,7 +35,7 @@
|
|||
|
||||
<ng-container matColumnDef="airDate">
|
||||
<th mat-header-cell *matHeaderCellDef>{{ 'Requests.AirDate' | translate }}</th>
|
||||
<td mat-cell *matCellDef="let element"> {{element.airDate | amLocal | amUserLocale | amDateFormat: 'L' }}</td>
|
||||
<td mat-cell *matCellDef="let element">{{ element.airDate | ombiDate: 'P' }}</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="status">
|
||||
|
@ -43,24 +46,24 @@
|
|||
</ng-container>
|
||||
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
||||
</table>
|
||||
</mat-tab>
|
||||
|
||||
</mat-tab-group>
|
||||
|
||||
<div *ngIf="isAdmin">
|
||||
<button *ngIf="!request.approved" mat-raised-button color="accent" (click)="approve(request);"> {{ 'Common.Approve' | translate }}</button>
|
||||
<button *ngIf="!request.available" mat-raised-button color="warn" (click)="changeAvailability(request, true);">{{ 'Requests.MarkAvailable' | translate }}</button>
|
||||
<button *ngIf="request.available" mat-raised-button color="warn" (click)="changeAvailability(request, false);">{{ 'Requests.MarkUnavailable' | translate }}</button>
|
||||
<button *ngIf="!request.denied" mat-raised-button color="danger" (click)="deny(request);">{{ 'Requests.Deny' | translate }}</button>
|
||||
<button mat-raised-button color="accent" (click)="reProcessRequest(request);">{{ 'MediaDetails.ReProcessRequest' | translate }}</button>
|
||||
<button *ngIf="!request.approved" mat-raised-button color="accent" (click)="approve(request)">{{ 'Common.Approve' | translate }}</button>
|
||||
<button *ngIf="!request.available" mat-raised-button color="warn" (click)="changeAvailability(request, true)">
|
||||
{{ 'Requests.MarkAvailable' | translate }}
|
||||
</button>
|
||||
<button *ngIf="request.available" mat-raised-button color="warn" (click)="changeAvailability(request, false)">
|
||||
{{ 'Requests.MarkUnavailable' | translate }}
|
||||
</button>
|
||||
<button *ngIf="!request.denied" mat-raised-button color="danger" (click)="deny(request)">{{ 'Requests.Deny' | translate }}</button>
|
||||
<button mat-raised-button color="accent" (click)="reProcessRequest(request)">{{ 'MediaDetails.ReProcessRequest' | translate }}</button>
|
||||
</div>
|
||||
<div *ngIf="isAdmin || manageOwnRequests">
|
||||
<button mat-raised-button color="danger" (click)="delete(request);">{{ 'Requests.RequestPanel.Delete' | translate }}</button>
|
||||
<button mat-raised-button color="danger" (click)="delete(request)">{{ 'Requests.RequestPanel.Delete' | translate }}</button>
|
||||
</div>
|
||||
|
||||
|
||||
</mat-expansion-panel>
|
||||
|
||||
</mat-accordion>
|
||||
|
|
|
@ -9,13 +9,15 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<ng-template #main>
|
||||
|
||||
<div>
|
||||
|
||||
<top-banner [background]="tv.background" [available]="tv.available" [title]="tv.title"
|
||||
[releaseDate]="tv.firstAired" [tagline]="tv.tagline"></top-banner>
|
||||
<top-banner
|
||||
[background]="tv.background"
|
||||
[available]="tv.available"
|
||||
[title]="tv.title"
|
||||
[releaseDate]="tv.firstAired"
|
||||
[tagline]="tv.tagline"
|
||||
></top-banner>
|
||||
<div class="social-icons-container">
|
||||
<social-icons
|
||||
[homepage]="tv.homepage"
|
||||
|
@ -38,55 +40,124 @@
|
|||
<div class="small-middle-container">
|
||||
<div class="row justify-content-center justify-content-sm-start header-container">
|
||||
<div class="details-poster-container">
|
||||
<media-poster [posterPath]=tv.images.original></media-poster>
|
||||
<media-poster [posterPath]="tv.images.original"></media-poster>
|
||||
</div>
|
||||
<!--Next to poster-->
|
||||
<div class="details-button-container">
|
||||
<div class="col-12 media-row">
|
||||
<ng-container *ngIf="tv.fullyAvailable || tv.partlyAvailable">
|
||||
<a id="viewOnPlexButton" *ngIf="tv.plexUrl" href="{{tv.plexUrl}}" mat-raised-button target="_blank" class="btn-spacing viewon-btn plex">
|
||||
<a
|
||||
id="viewOnPlexButton"
|
||||
*ngIf="tv.plexUrl"
|
||||
href="{{ tv.plexUrl }}"
|
||||
mat-raised-button
|
||||
target="_blank"
|
||||
class="btn-spacing viewon-btn plex"
|
||||
>
|
||||
{{ 'Search.ViewOnPlex' | translate }}
|
||||
<i class="far fa-play-circle fa-2x"></i>
|
||||
</a>
|
||||
<a id="viewOnEmbyButton" *ngIf="tv.embyUrl" href="{{tv.embyUrl}}" mat-raised-button target="_blank" class="btn-spacing viewon-btn emby">
|
||||
<a
|
||||
id="viewOnEmbyButton"
|
||||
*ngIf="tv.embyUrl"
|
||||
href="{{ tv.embyUrl }}"
|
||||
mat-raised-button
|
||||
target="_blank"
|
||||
class="btn-spacing viewon-btn emby"
|
||||
>
|
||||
{{ 'Search.ViewOnEmby' | translate }}
|
||||
<i class="far fa-play-circle fa-2x"></i>
|
||||
</a>
|
||||
<a id="viewOnJellyfinButton" *ngIf="tv.jellyfinUrl" href="{{tv.jellyfinUrl}}" mat-raised-button target="_blank" class="btn-spacing viewon-btn jellyfin">
|
||||
<a
|
||||
id="viewOnJellyfinButton"
|
||||
*ngIf="tv.jellyfinUrl"
|
||||
href="{{ tv.jellyfinUrl }}"
|
||||
mat-raised-button
|
||||
target="_blank"
|
||||
class="btn-spacing viewon-btn jellyfin"
|
||||
>
|
||||
{{ 'Search.ViewOnJellyfin' | translate }}
|
||||
<i class="far fa-play-circle fa-2x"></i>
|
||||
</a>
|
||||
</ng-container>
|
||||
<button *ngIf="(!tv.fullyAvailable || (tv.fullyAvailable && tv.partlyAvailable)) && !allEpisodesRequestedOrAvailable()" mat-raised-button id="requestBtn" class="btn-spacing" color="primary"
|
||||
(click)="request()"><i class="fas fa-plus"></i>
|
||||
{{ 'Common.Request' | translate }}</button>
|
||||
<button
|
||||
*ngIf="(!tv.fullyAvailable || (tv.fullyAvailable && tv.partlyAvailable)) && !allEpisodesRequestedOrAvailable()"
|
||||
mat-raised-button
|
||||
id="requestBtn"
|
||||
class="btn-spacing"
|
||||
color="primary"
|
||||
(click)="request()"
|
||||
>
|
||||
<i class="fas fa-plus"></i> {{ 'Common.Request' | translate }}
|
||||
</button>
|
||||
|
||||
<button *ngIf="!tv.denied && allEpisodesRequestedOrAvailable()" mat-raised-button class="btn-spacing" color="warn" [disabled]>
|
||||
<button
|
||||
*ngIf="!tv.denied && allEpisodesRequestedOrAvailable()"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="warn"
|
||||
[disabled]
|
||||
>
|
||||
<i class="fas fa-check"></i>
|
||||
{{ 'Common.Requested' | translate }}</button>
|
||||
{{ 'Common.Requested' | translate }}
|
||||
</button>
|
||||
|
||||
<button *ngIf="tv.fullyAvailable && !tv.partlyAvailable" id="availableBtn" mat-raised-button class="btn-spacing" color="accent"
|
||||
[disabled]>
|
||||
<i class="fas fa-check"></i> {{'Common.Available' | translate }}</button>
|
||||
<button
|
||||
*ngIf="tv.fullyAvailable && !tv.partlyAvailable"
|
||||
id="availableBtn"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="accent"
|
||||
[disabled]
|
||||
>
|
||||
<i class="fas fa-check"></i> {{ 'Common.Available' | translate }}
|
||||
</button>
|
||||
|
||||
<button *ngIf="tv.partlyAvailable && !tv.fullyAvailable" id="partiallyAvailableBtn" mat-raised-button
|
||||
class="btn-spacing" color="accent" [disabled]>
|
||||
<i class="fas fa-check"></i> {{'Common.PartiallyAvailable' | translate }}</button>
|
||||
<button
|
||||
*ngIf="tv.partlyAvailable && !tv.fullyAvailable"
|
||||
id="partiallyAvailableBtn"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="accent"
|
||||
[disabled]
|
||||
>
|
||||
<i class="fas fa-check"></i> {{ 'Common.PartiallyAvailable' | translate }}
|
||||
</button>
|
||||
|
||||
<!-- There are unaired episodes-->
|
||||
<button *ngIf="tv.partlyAvailable && tv.fullyAvailable" id="partiallyAvailableBtn" mat-raised-button
|
||||
class="btn-spacing" color="accent" [disabled]>
|
||||
<i class="fas fa-check"></i> {{'Common.PartiallyAvailable' | translate }}</button>
|
||||
<button
|
||||
*ngIf="tv.partlyAvailable && tv.fullyAvailable"
|
||||
id="partiallyAvailableBtn"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="accent"
|
||||
[disabled]
|
||||
>
|
||||
<i class="fas fa-check"></i> {{ 'Common.PartiallyAvailable' | translate }}
|
||||
</button>
|
||||
<!-- end unaired episodes-->
|
||||
|
||||
<button id="deniedButton" *ngIf="tv.denied" [matTooltip]="tv.deniedReason" mat-raised-button class="btn-spacing" color="warn">
|
||||
<button
|
||||
id="deniedButton"
|
||||
*ngIf="tv.denied"
|
||||
[matTooltip]="tv.deniedReason"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="warn"
|
||||
>
|
||||
<i class="fas fa-times"></i> {{ 'Common.Denied' | translate }}
|
||||
</button>
|
||||
|
||||
<button mat-raised-button class="btn-spacing" color="danger" id="reportIssueBtn" *ngIf="issuesEnabled" (click)="issue()">
|
||||
<i class="fas fa-exclamation"></i> {{
|
||||
'Requests.ReportIssue' | translate }}</button>
|
||||
|
||||
<button
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
color="danger"
|
||||
id="reportIssueBtn"
|
||||
*ngIf="issuesEnabled"
|
||||
(click)="issue()"
|
||||
>
|
||||
<i class="fas fa-exclamation"></i> {{ 'Requests.ReportIssue' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -95,8 +166,7 @@
|
|||
<div class="col-12 col-md-2">
|
||||
<mat-card class="mat-elevation-z8 spacing-below">
|
||||
<mat-card-content>
|
||||
<tv-information-panel [tv]="tv" [request]="showRequest"
|
||||
[advancedOptions]="showAdvanced"></tv-information-panel>
|
||||
<tv-information-panel [tv]="tv" [request]="showRequest" [advancedOptions]="showAdvanced"></tv-information-panel>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
|
@ -116,22 +186,21 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-2">
|
||||
|
||||
<!--Just some space yo-->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-10">
|
||||
@defer (on viewport; prefetch on idle) {
|
||||
<tv-request-grid id="requests-grid" [tvRequest]="tvRequest" [isAdmin]="isAdmin" [tv]="tv"></tv-request-grid>
|
||||
} @placeholder {
|
||||
<p-skeleton height="2rem" styleClass="mb-2"></p-skeleton>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-2">
|
||||
|
||||
<!--Just some space yo-->
|
||||
|
||||
</div>
|
||||
<div class="col-12 col-md-10">
|
||||
<div class="issuesPanel">
|
||||
|
@ -144,28 +213,26 @@
|
|||
{{ 'Requests.Title' | translate }}
|
||||
</mat-panel-title>
|
||||
</mat-expansion-panel-header>
|
||||
<tv-requests-panel [tvRequest]="tvRequest" [isAdmin]="isAdmin" [manageOwnRequests]="manageOwnRequests"></tv-requests-panel>
|
||||
|
||||
@defer (on viewport; prefetch on idle) {
|
||||
<tv-requests-panel
|
||||
[tvRequest]="tvRequest"
|
||||
[isAdmin]="isAdmin"
|
||||
[manageOwnRequests]="manageOwnRequests"
|
||||
></tv-requests-panel>
|
||||
} @placeholder {
|
||||
<div class="loading-spinner" style="left: 50%;position: absolute;">
|
||||
<mat-spinner [color]="'accent'"></mat-spinner>
|
||||
</div>
|
||||
}
|
||||
</mat-expansion-panel>
|
||||
|
||||
</mat-accordion>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="bottom-page-gap">
|
||||
</div>
|
||||
<div class="bottom-page-gap"></div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</ng-template>
|
||||
</div>
|
||||
|
|
|
@ -362,3 +362,8 @@
|
|||
width:100%;
|
||||
}
|
||||
}
|
||||
|
||||
.placeholder {
|
||||
height: 100px;
|
||||
display: block;
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ import { AuthGuard } from "../auth/auth.guard";
|
|||
import { ArtistDetailsComponent } from "./components/artist/artist-details.component";
|
||||
import { ReactiveFormsModule } from "@angular/forms";
|
||||
import { ImageComponent } from "app/components";
|
||||
import { SkeletonModule } from "primeng/skeleton";
|
||||
|
||||
|
||||
const routes: Routes = [
|
||||
|
@ -29,6 +30,7 @@ const routes: Routes = [
|
|||
PipeModule,
|
||||
CarouselModule,
|
||||
ImageComponent,
|
||||
SkeletonModule,
|
||||
],
|
||||
declarations: [
|
||||
...fromComponents.components
|
||||
|
|
17
src/Ombi/ClientApp/src/app/pipes/OmbiDatePipe.ts
Normal file
17
src/Ombi/ClientApp/src/app/pipes/OmbiDatePipe.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { Pipe, PipeTransform } from "@angular/core";
|
||||
import { FormatPipe } from 'ngx-date-fns';
|
||||
|
||||
@Pipe({
|
||||
name: "ombiDate",
|
||||
})
|
||||
export class OmbiDatePipe implements PipeTransform {
|
||||
|
||||
constructor(
|
||||
private FormatPipe: FormatPipe,
|
||||
) {}
|
||||
|
||||
public transform(value: string, format: string ) {
|
||||
const date = new Date(value);
|
||||
return this.FormatPipe.transform(date, format);
|
||||
}
|
||||
}
|
11
src/Ombi/ClientApp/src/app/pipes/OrderPipe.ts
Normal file
11
src/Ombi/ClientApp/src/app/pipes/OrderPipe.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { orderBy as _orderBy } from 'lodash';
|
||||
|
||||
@Pipe({
|
||||
name: 'orderBy',
|
||||
})
|
||||
export class OrderPipe<T> implements PipeTransform {
|
||||
transform(data: T[], orderBy: string, direction: 'asc' | 'desc' = 'asc'): T[] {
|
||||
return _orderBy(data, orderBy, direction);
|
||||
}
|
||||
}
|
|
@ -5,7 +5,7 @@
|
|||
})
|
||||
export class ThousandShortPipe implements PipeTransform {
|
||||
transform(input: any, args?: any): any {
|
||||
var exp, rounded,
|
||||
var exp,
|
||||
suffixes = ['k', 'M', 'G', 'T', 'P', 'E'];
|
||||
|
||||
if (Number.isNaN(input)) {
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
import { Pipe, PipeTransform } from "@angular/core";
|
||||
import * as moment from "moment";
|
||||
|
||||
const momentConstructor = moment;
|
||||
|
||||
@Pipe({ name: "amUserLocale" })
|
||||
export class UserLocalePipe implements PipeTransform {
|
||||
transform(value: moment.MomentInput): moment.Moment {
|
||||
const locale = navigator.language;
|
||||
return momentConstructor(value).locale(locale);
|
||||
}
|
||||
}
|
|
@ -1,18 +1,20 @@
|
|||
import { ModuleWithProviders, NgModule } from "@angular/core";
|
||||
import { HumanizePipe } from "./HumanizePipe";
|
||||
import { TranslateStatusPipe } from "./TranslateStatus";
|
||||
import { ThousandShortPipe } from "./ThousandShortPipe";
|
||||
import { SafePipe } from "./SafePipe";
|
||||
import { QualityPipe } from "./QualityPipe";
|
||||
import { UserLocalePipe } from "./UserLocalePipe";
|
||||
import { ModuleWithProviders, NgModule } from '@angular/core';
|
||||
import { HumanizePipe } from './HumanizePipe';
|
||||
import { TranslateStatusPipe } from './TranslateStatus';
|
||||
import { ThousandShortPipe } from './ThousandShortPipe';
|
||||
import { SafePipe } from './SafePipe';
|
||||
import { QualityPipe } from './QualityPipe';
|
||||
import { OrderPipe } from './OrderPipe';
|
||||
import { OmbiDatePipe } from './OmbiDatePipe';
|
||||
import { FormatPipeModule, FormatPipe } from 'ngx-date-fns';
|
||||
|
||||
@NgModule({
|
||||
imports: [],
|
||||
declarations: [HumanizePipe, ThousandShortPipe, SafePipe, QualityPipe, UserLocalePipe, TranslateStatusPipe ],
|
||||
exports: [HumanizePipe, ThousandShortPipe, SafePipe, QualityPipe, UserLocalePipe, TranslateStatusPipe ],
|
||||
imports: [FormatPipeModule],
|
||||
declarations: [HumanizePipe, ThousandShortPipe, SafePipe, QualityPipe, TranslateStatusPipe, OrderPipe, OmbiDatePipe],
|
||||
exports: [HumanizePipe, ThousandShortPipe, SafePipe, QualityPipe, TranslateStatusPipe, OrderPipe, OmbiDatePipe],
|
||||
providers: [FormatPipe],
|
||||
})
|
||||
export class PipeModule {
|
||||
|
||||
public static forRoot(): ModuleWithProviders<PipeModule> {
|
||||
return {
|
||||
ngModule: PipeModule,
|
||||
|
|
|
@ -1,17 +1,59 @@
|
|||
<div class="mat-elevation-z8">
|
||||
<grid-spinner [loading]="isLoadingResults"></grid-spinner>
|
||||
|
||||
|
||||
<!-- <div class="row"> -->
|
||||
<div class="row justify-content-md-center top-spacing">
|
||||
<div class="btn-group" role="group">
|
||||
<button type="button" (click)="switchFilter(RequestFilter.All)" [attr.color]="currentFilter === RequestFilter.All ? 'accent' : 'primary'" [ngClass]="currentFilter === RequestFilter.All ? 'mat-accent' : 'mat-primary'" mat-raised-button class="grow">{{'Requests.AllRequests' | translate}}</button>
|
||||
<button type="button" (click)="switchFilter(RequestFilter.Pending)" [attr.color]="currentFilter === RequestFilter.Pending ? 'accent' : 'primary'" [ngClass]="currentFilter === RequestFilter.Pending ? 'mat-accent' : 'mat-primary'" mat-raised-button class="grow">{{'Requests.PendingRequests' | translate}}</button>
|
||||
<button type="button" (click)="switchFilter(RequestFilter.Processing)" [attr.color]="currentFilter === RequestFilter.Processing ? 'accent' : 'primary'" [ngClass]="currentFilter === RequestFilter.Processing ? 'mat-accent' : 'mat-primary'" mat-raised-button
|
||||
class="grow">{{'Requests.ProcessingRequests' | translate}}</button>
|
||||
<button type="button" (click)="switchFilter(RequestFilter.Available)" [attr.color]="currentFilter === RequestFilter.Available ? 'accent' : 'primary'" [ngClass]="currentFilter === RequestFilter.Available ? 'mat-accent' : 'mat-primary'" mat-raised-button
|
||||
class="grow">{{'Requests.AvailableRequests' | translate}}</button>
|
||||
<button type="button" (click)="switchFilter(RequestFilter.Denied)" [attr.color]="currentFilter === RequestFilter.Denied ? 'accent' : 'primary'" [ngClass]="currentFilter === RequestFilter.Denied ? 'mat-accent' : 'mat-primary'" mat-raised-button class="grow">{{'Requests.DeniedRequests' | translate}}</button>
|
||||
<button
|
||||
type="button"
|
||||
(click)="switchFilter(RequestFilter.All)"
|
||||
[attr.color]="currentFilter === RequestFilter.All ? 'accent' : 'primary'"
|
||||
[ngClass]="currentFilter === RequestFilter.All ? 'mat-accent' : 'mat-primary'"
|
||||
mat-raised-button
|
||||
class="grow"
|
||||
>
|
||||
{{ 'Requests.AllRequests' | translate }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
(click)="switchFilter(RequestFilter.Pending)"
|
||||
[attr.color]="currentFilter === RequestFilter.Pending ? 'accent' : 'primary'"
|
||||
[ngClass]="currentFilter === RequestFilter.Pending ? 'mat-accent' : 'mat-primary'"
|
||||
mat-raised-button
|
||||
class="grow"
|
||||
>
|
||||
{{ 'Requests.PendingRequests' | translate }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
(click)="switchFilter(RequestFilter.Processing)"
|
||||
[attr.color]="currentFilter === RequestFilter.Processing ? 'accent' : 'primary'"
|
||||
[ngClass]="currentFilter === RequestFilter.Processing ? 'mat-accent' : 'mat-primary'"
|
||||
mat-raised-button
|
||||
class="grow"
|
||||
>
|
||||
{{ 'Requests.ProcessingRequests' | translate }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
(click)="switchFilter(RequestFilter.Available)"
|
||||
[attr.color]="currentFilter === RequestFilter.Available ? 'accent' : 'primary'"
|
||||
[ngClass]="currentFilter === RequestFilter.Available ? 'mat-accent' : 'mat-primary'"
|
||||
mat-raised-button
|
||||
class="grow"
|
||||
>
|
||||
{{ 'Requests.AvailableRequests' | translate }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
(click)="switchFilter(RequestFilter.Denied)"
|
||||
[attr.color]="currentFilter === RequestFilter.Denied ? 'accent' : 'primary'"
|
||||
[ngClass]="currentFilter === RequestFilter.Denied ? 'mat-accent' : 'mat-primary'"
|
||||
mat-raised-button
|
||||
class="grow"
|
||||
>
|
||||
{{ 'Requests.DeniedRequests' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -28,17 +70,22 @@
|
|||
</div>
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
<table mat-table [dataSource]="dataSource" class="requests table" matSort [matSortActive]="defaultSort" matSortDisableClear [matSortDirection]="defaultOrder">
|
||||
|
||||
|
||||
|
||||
<table
|
||||
mat-table
|
||||
[dataSource]="dataSource"
|
||||
class="requests table"
|
||||
matSort
|
||||
[matSortActive]="defaultSort"
|
||||
matSortDisableClear
|
||||
[matSortDirection]="defaultOrder"
|
||||
>
|
||||
<ng-container matColumnDef="artistName">
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header disableClear>{{ 'Requests.ArtistName' | translate }}</th>
|
||||
<td mat-cell *matCellDef="let element">{{ element.artistName }}</td>
|
||||
</ng-container>
|
||||
<ng-container matColumnDef="title">
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header disableClear>{{ 'Requests.AlbumName' | translate }}</th>
|
||||
<td mat-cell *matCellDef="let element"> {{element.title}} ({{element.releaseDate | amLocal | amDateFormat: 'YYYY'}}) </td>
|
||||
<td mat-cell *matCellDef="let element">{{ element.title }} ({{ element.releaseDate | ombiDate: 'P' }})</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="requestedUser.requestedBy">
|
||||
|
@ -48,7 +95,7 @@
|
|||
|
||||
<ng-container matColumnDef="requestedDate">
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header disableClear>{{ 'Requests.RequestDate' | translate }}</th>
|
||||
<td mat-cell *matCellDef="let element"> {{element.requestedDate | amLocal | amUserLocale | amDateFormat: 'LL'}} </td>
|
||||
<td mat-cell *matCellDef="let element">{{ element.requestedDate | ombiDate: 'PP' }}</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="requestStatus">
|
||||
|
@ -59,13 +106,22 @@
|
|||
<ng-container matColumnDef="actions">
|
||||
<th mat-header-cell *matHeaderCellDef></th>
|
||||
<td mat-cell *matCellDef="let element">
|
||||
<a mat-raised-button color="accent" [routerLink]="'/details/artist/' + element.foreignArtistId">{{ 'Requests.Details' | translate}}</a>
|
||||
<button mat-raised-button color="warn" (click)="openOptions(element)" *ngIf="isAdmin || ( manageOwnRequests && element.requestedUser?.userName == userName )"> {{ 'Requests.Options' | translate}}</button>
|
||||
<a mat-raised-button color="accent" [routerLink]="'/details/artist/' + element.foreignArtistId">{{
|
||||
'Requests.Details' | translate
|
||||
}}</a>
|
||||
<button
|
||||
mat-raised-button
|
||||
color="warn"
|
||||
(click)="openOptions(element)"
|
||||
*ngIf="isAdmin || (manageOwnRequests && element.requestedUser?.userName == userName)"
|
||||
>
|
||||
{{ 'Requests.Options' | translate }}
|
||||
</button>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
||||
</table>
|
||||
|
||||
<mat-paginator [length]="resultsLength" [pageSize]="gridCount"></mat-paginator>
|
||||
|
|
|
@ -1,24 +1,76 @@
|
|||
<div class="mat-elevation-z8">
|
||||
<grid-spinner [loading]="isLoadingResults"></grid-spinner>
|
||||
|
||||
|
||||
<!-- <div class="row"> -->
|
||||
<div class="row justify-content-md-center top-spacing">
|
||||
<div class="btn-group" role="group">
|
||||
<button type="button" id="filterAll" (click)="switchFilter(RequestFilter.All)" [attr.color]="currentFilter === RequestFilter.All ? 'accent' : 'primary'" [ngClass]="currentFilter === RequestFilter.All ? 'mat-accent' : 'mat-primary'" mat-raised-button class="grow">{{'Requests.AllRequests' | translate}}</button>
|
||||
<button type="button" id="filterPending" (click)="switchFilter(RequestFilter.Pending)" [attr.color]="currentFilter === RequestFilter.Pending ? 'accent' : 'primary'" [ngClass]="currentFilter === RequestFilter.Pending ? 'mat-accent' : 'mat-primary'" mat-raised-button class="grow">{{'Requests.PendingRequests' | translate}}</button>
|
||||
<button type="button" id="filterProcessing" (click)="switchFilter(RequestFilter.Processing)" [attr.color]="currentFilter === RequestFilter.Processing ? 'accent' : 'primary'" [ngClass]="currentFilter === RequestFilter.Processing ? 'mat-accent' : 'mat-primary'" mat-raised-button
|
||||
class="grow">{{'Requests.ProcessingRequests' | translate}}</button>
|
||||
<button type="button" id="filterAvailable" (click)="switchFilter(RequestFilter.Available)" [attr.color]="currentFilter === RequestFilter.Available ? 'accent' : 'primary'" [ngClass]="currentFilter === RequestFilter.Available ? 'mat-accent' : 'mat-primary'" mat-raised-button
|
||||
class="grow">{{'Requests.AvailableRequests' | translate}}</button>
|
||||
<button type="button" id="filterDenied" (click)="switchFilter(RequestFilter.Denied)" [attr.color]="currentFilter === RequestFilter.Denied ? 'accent' : 'primary'" [ngClass]="currentFilter === RequestFilter.Denied ? 'mat-accent' : 'mat-primary'" mat-raised-button class="grow">{{'Requests.DeniedRequests' | translate}}</button>
|
||||
<button
|
||||
type="button"
|
||||
id="filterAll"
|
||||
(click)="switchFilter(RequestFilter.All)"
|
||||
[attr.color]="currentFilter === RequestFilter.All ? 'accent' : 'primary'"
|
||||
[ngClass]="currentFilter === RequestFilter.All ? 'mat-accent' : 'mat-primary'"
|
||||
mat-raised-button
|
||||
class="grow"
|
||||
>
|
||||
{{ 'Requests.AllRequests' | translate }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="filterPending"
|
||||
(click)="switchFilter(RequestFilter.Pending)"
|
||||
[attr.color]="currentFilter === RequestFilter.Pending ? 'accent' : 'primary'"
|
||||
[ngClass]="currentFilter === RequestFilter.Pending ? 'mat-accent' : 'mat-primary'"
|
||||
mat-raised-button
|
||||
class="grow"
|
||||
>
|
||||
{{ 'Requests.PendingRequests' | translate }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="filterProcessing"
|
||||
(click)="switchFilter(RequestFilter.Processing)"
|
||||
[attr.color]="currentFilter === RequestFilter.Processing ? 'accent' : 'primary'"
|
||||
[ngClass]="currentFilter === RequestFilter.Processing ? 'mat-accent' : 'mat-primary'"
|
||||
mat-raised-button
|
||||
class="grow"
|
||||
>
|
||||
{{ 'Requests.ProcessingRequests' | translate }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="filterAvailable"
|
||||
(click)="switchFilter(RequestFilter.Available)"
|
||||
[attr.color]="currentFilter === RequestFilter.Available ? 'accent' : 'primary'"
|
||||
[ngClass]="currentFilter === RequestFilter.Available ? 'mat-accent' : 'mat-primary'"
|
||||
mat-raised-button
|
||||
class="grow"
|
||||
>
|
||||
{{ 'Requests.AvailableRequests' | translate }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="filterDenied"
|
||||
(click)="switchFilter(RequestFilter.Denied)"
|
||||
[attr.color]="currentFilter === RequestFilter.Denied ? 'accent' : 'primary'"
|
||||
[ngClass]="currentFilter === RequestFilter.Denied ? 'mat-accent' : 'mat-primary'"
|
||||
mat-raised-button
|
||||
class="grow"
|
||||
>
|
||||
{{ 'Requests.DeniedRequests' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2 offset-md-10">
|
||||
<mat-form-field>
|
||||
<mat-select id="requestsToDisplayDropdown" placeholder="{{'Requests.RequestsToDisplay' | translate}}" [(value)]="gridCount" (selectionChange)="ngAfterViewInit()">
|
||||
<mat-select
|
||||
id="requestsToDisplayDropdown"
|
||||
placeholder="{{ 'Requests.RequestsToDisplay' | translate }}"
|
||||
[(value)]="gridCount"
|
||||
(selectionChange)="ngAfterViewInit()"
|
||||
>
|
||||
<mat-option value="10">10</mat-option>
|
||||
<mat-option value="15">15</mat-option>
|
||||
<mat-option value="30">30</mat-option>
|
||||
|
@ -28,37 +80,51 @@
|
|||
</div>
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
<table mat-table [dataSource]="dataSource" class="requests table" matSort [matSortActive]="defaultSort" matSortDisableClear [matSortDirection]="defaultOrder">
|
||||
|
||||
<table
|
||||
mat-table
|
||||
[dataSource]="dataSource"
|
||||
class="requests table"
|
||||
matSort
|
||||
[matSortActive]="defaultSort"
|
||||
matSortDisableClear
|
||||
[matSortDirection]="defaultOrder"
|
||||
>
|
||||
<ng-container matColumnDef="select" *ngIf="isAdmin">
|
||||
<th mat-header-cell *matHeaderCellDef>
|
||||
<mat-checkbox id="adminMasterCheckbox" (change)="$event ? masterToggle() : null"
|
||||
<mat-checkbox
|
||||
id="adminMasterCheckbox"
|
||||
(change)="$event ? masterToggle() : null"
|
||||
[checked]="selection.hasValue() && isAllSelected()"
|
||||
[indeterminate]="selection.hasValue() && !isAllSelected()">
|
||||
[indeterminate]="selection.hasValue() && !isAllSelected()"
|
||||
>
|
||||
</mat-checkbox>
|
||||
</th>
|
||||
<td mat-cell *matCellDef="let row">
|
||||
<mat-checkbox id="adminMasterCheckbox{{row.id}}" (click)="$event.stopPropagation()"
|
||||
<mat-checkbox
|
||||
id="adminMasterCheckbox{{ row.id }}"
|
||||
(click)="$event.stopPropagation()"
|
||||
(change)="$event ? selection.toggle(row) : null"
|
||||
[checked]="selection.isSelected(row)">
|
||||
[checked]="selection.isSelected(row)"
|
||||
>
|
||||
</mat-checkbox>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="title">
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header disableClear>{{ 'Requests.RequestsTitle' | translate }}</th>
|
||||
<td mat-cell id="title{{element.id}}" *matCellDef="let element"> {{element.title}} ({{element.releaseDate | amLocal | amDateFormat: 'YYYY'}}) </td>
|
||||
<td mat-cell id="title{{ element.id }}" *matCellDef="let element">{{ element.title }} ({{ element.releaseDate | ombiDate: 'P' }})</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="requestedUser.requestedBy">
|
||||
<th mat-header-cell *matHeaderCellDef>{{ 'Requests.RequestedBy' | translate }}</th>
|
||||
<td mat-cell id="requestedBy{{element.id}}" *matCellDef="let element"> {{element.requestedByAlias ? element.requestedByAlias : element.requestedUser?.userAlias}} </td>
|
||||
<td mat-cell id="requestedBy{{ element.id }}" *matCellDef="let element">
|
||||
{{ element.requestedByAlias ? element.requestedByAlias : element.requestedUser?.userAlias }}
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
|
||||
<ng-container matColumnDef="requestedDate">
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header disableClear>{{ 'Requests.RequestDate' | translate }}</th>
|
||||
<td mat-cell id="requestedDate{{element.id}}" *matCellDef="let element"> {{getRequestDate(element) | amLocal | amUserLocale | amDateFormat: 'LL'}} </td>
|
||||
<td mat-cell id="requestedDate{{ element.id }}" *matCellDef="let element">{{ getRequestDate(element) | ombiDate: 'PP' }}</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="status">
|
||||
|
@ -74,25 +140,21 @@
|
|||
</td>
|
||||
</ng-container>
|
||||
|
||||
|
||||
<ng-container matColumnDef="requestStatus">
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header disableClear>{{ 'Requests.RequestStatus' | translate }}</th>
|
||||
<td mat-cell id="requestedStatus{{ element.id }}" *matCellDef="let element">{{ element.requestStatus | translate }}</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="watchedByRequestedUser">
|
||||
<th
|
||||
mat-header-cell
|
||||
*matHeaderCellDef
|
||||
disableClear
|
||||
matTooltip="{{ 'Requests.WatchedTooltip' | translate}}">
|
||||
<th mat-header-cell *matHeaderCellDef disableClear matTooltip="{{ 'Requests.WatchedTooltip' | translate }}">
|
||||
{{ 'Requests.Watched' | translate }}
|
||||
</th>
|
||||
<td mat-cell id="watchedByRequestedUser{{ element.id }}" *matCellDef="let element">
|
||||
<mat-checkbox
|
||||
[checked]="element.watchedByRequestedUser"
|
||||
disabled="true"
|
||||
matTooltip="{{'Requests.WatchedByUsersCount' | translate: {count: element.playedByUsersCount} }}">
|
||||
matTooltip="{{ 'Requests.WatchedByUsersCount' | translate: { count: element.playedByUsersCount } }}"
|
||||
>
|
||||
</mat-checkbox>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
@ -100,23 +162,36 @@
|
|||
<ng-container matColumnDef="actions">
|
||||
<th mat-header-cell *matHeaderCellDef></th>
|
||||
<td mat-cell *matCellDef="let element">
|
||||
<a id="detailsButton{{element.id}}" mat-raised-button color="accent" [routerLink]="'/details/movie/' + element.theMovieDbId">{{ 'Requests.Details' | translate}}</a>
|
||||
<a id="optionsButton{{element.id}}" mat-raised-button color="warn" (click)="openOptions(element)" *ngIf="isAdmin || ( manageOwnRequests && element.requestedUser?.userName == userName ) "> {{ 'Requests.Options' | translate}}</a>
|
||||
<a id="detailsButton{{ element.id }}" mat-raised-button color="accent" [routerLink]="'/details/movie/' + element.theMovieDbId">{{
|
||||
'Requests.Details' | translate
|
||||
}}</a>
|
||||
<a
|
||||
id="optionsButton{{ element.id }}"
|
||||
mat-raised-button
|
||||
color="warn"
|
||||
(click)="openOptions(element)"
|
||||
*ngIf="isAdmin || (manageOwnRequests && element.requestedUser?.userName == userName)"
|
||||
>
|
||||
{{ 'Requests.Options' | translate }}</a
|
||||
>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
||||
</table>
|
||||
|
||||
<mat-paginator [length]="resultsLength" [pageSize]="gridCount"></mat-paginator>
|
||||
</div>
|
||||
|
||||
<button id="bulkFab" *ngIf="selection.hasValue() && isAdmin" mat-fab color="accent" class="floating-fab" [matMenuTriggerFor]="aboveMenu">
|
||||
<i class="fas fa-bars"></i></button>
|
||||
<i class="fas fa-bars"></i>
|
||||
</button>
|
||||
<mat-menu #aboveMenu="matMenu" yPosition="above">
|
||||
<button id="approveFabButton" mat-menu-item (click)="bulkApprove()">{{ 'Requests.RequestPanel.Approve' | translate }}</button>
|
||||
<button *ngIf="is4kEnabled" id="approve4kFabButton" mat-menu-item (click)="bulkApprove4K()">{{'Requests.RequestPanel.Approve4K' | translate}}</button>
|
||||
<button *ngIf="is4kEnabled" id="approve4kFabButton" mat-menu-item (click)="bulkApprove4K()">
|
||||
{{ 'Requests.RequestPanel.Approve4K' | translate }}
|
||||
</button>
|
||||
<button id="denyFabButton" mat-menu-item (click)="bulkDeny()">{{ 'Requests.RequestPanel.Deny' | translate }}</button>
|
||||
<button *ngIf="is4kEnabled" id="deny4kFabButton" mat-menu-item (click)="bulkDeny4K()">{{ 'Requests.RequestPanel.Deny4K' | translate }}</button>
|
||||
<button id="deleteFabButton" mat-menu-item (click)="bulkDelete()">{{ 'Requests.RequestPanel.Delete' | translate }}</button>
|
||||
|
|
|
@ -1,24 +1,75 @@
|
|||
<div class="mat-elevation-z8">
|
||||
|
||||
<grid-spinner [loading]="isLoadingResults"></grid-spinner>
|
||||
|
||||
|
||||
<div class="row justify-content-md-center top-spacing">
|
||||
<div class="btn-group" role="group">
|
||||
<button type="button" id="filterAll" (click)="switchFilter(RequestFilter.All)" [attr.color]="currentFilter === RequestFilter.All ? 'accent' : 'primary'" [ngClass]="currentFilter === RequestFilter.All ? 'mat-accent' : 'mat-primary'" mat-raised-button class="grow">{{'Requests.AllRequests' | translate}}</button>
|
||||
<button type="button" id="filterPending" (click)="switchFilter(RequestFilter.Pending)" [attr.color]="currentFilter === RequestFilter.Pending ? 'accent' : 'primary'" [ngClass]="currentFilter === RequestFilter.Pending ? 'mat-accent' : 'mat-primary'" mat-raised-button class="grow">{{'Requests.PendingRequests' | translate}}</button>
|
||||
<button type="button" id="filterProcessing" (click)="switchFilter(RequestFilter.Processing)" [attr.color]="currentFilter === RequestFilter.Processing ? 'accent' : 'primary'" [ngClass]="currentFilter === RequestFilter.Processing ? 'mat-accent' : 'mat-primary'" mat-raised-button
|
||||
class="grow">{{'Requests.ProcessingRequests' | translate}}</button>
|
||||
<button type="button" id="filterAvailable" (click)="switchFilter(RequestFilter.Available)" [attr.color]="currentFilter === RequestFilter.Available ? 'accent' : 'primary'" [ngClass]="currentFilter === RequestFilter.Available ? 'mat-accent' : 'mat-primary'" mat-raised-button
|
||||
class="grow">{{'Requests.AvailableRequests' | translate}}</button>
|
||||
<button type="button" id="filterDenied" (click)="switchFilter(RequestFilter.Denied)" [attr.color]="currentFilter === RequestFilter.Denied ? 'accent' : 'primary'" [ngClass]="currentFilter === RequestFilter.Denied ? 'mat-accent' : 'mat-primary'" mat-raised-button class="grow">{{'Requests.DeniedRequests' | translate}}</button>
|
||||
<button
|
||||
type="button"
|
||||
id="filterAll"
|
||||
(click)="switchFilter(RequestFilter.All)"
|
||||
[attr.color]="currentFilter === RequestFilter.All ? 'accent' : 'primary'"
|
||||
[ngClass]="currentFilter === RequestFilter.All ? 'mat-accent' : 'mat-primary'"
|
||||
mat-raised-button
|
||||
class="grow"
|
||||
>
|
||||
{{ 'Requests.AllRequests' | translate }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="filterPending"
|
||||
(click)="switchFilter(RequestFilter.Pending)"
|
||||
[attr.color]="currentFilter === RequestFilter.Pending ? 'accent' : 'primary'"
|
||||
[ngClass]="currentFilter === RequestFilter.Pending ? 'mat-accent' : 'mat-primary'"
|
||||
mat-raised-button
|
||||
class="grow"
|
||||
>
|
||||
{{ 'Requests.PendingRequests' | translate }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="filterProcessing"
|
||||
(click)="switchFilter(RequestFilter.Processing)"
|
||||
[attr.color]="currentFilter === RequestFilter.Processing ? 'accent' : 'primary'"
|
||||
[ngClass]="currentFilter === RequestFilter.Processing ? 'mat-accent' : 'mat-primary'"
|
||||
mat-raised-button
|
||||
class="grow"
|
||||
>
|
||||
{{ 'Requests.ProcessingRequests' | translate }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="filterAvailable"
|
||||
(click)="switchFilter(RequestFilter.Available)"
|
||||
[attr.color]="currentFilter === RequestFilter.Available ? 'accent' : 'primary'"
|
||||
[ngClass]="currentFilter === RequestFilter.Available ? 'mat-accent' : 'mat-primary'"
|
||||
mat-raised-button
|
||||
class="grow"
|
||||
>
|
||||
{{ 'Requests.AvailableRequests' | translate }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
id="filterDenied"
|
||||
(click)="switchFilter(RequestFilter.Denied)"
|
||||
[attr.color]="currentFilter === RequestFilter.Denied ? 'accent' : 'primary'"
|
||||
[ngClass]="currentFilter === RequestFilter.Denied ? 'mat-accent' : 'mat-primary'"
|
||||
mat-raised-button
|
||||
class="grow"
|
||||
>
|
||||
{{ 'Requests.DeniedRequests' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2 offset-md-10">
|
||||
<mat-form-field>
|
||||
<mat-select id="requestsToDisplayDropdown" placeholder="{{'Requests.RequestsToDisplay' | translate}}" [(value)]="gridCount" (selectionChange)="ngAfterViewInit()">
|
||||
<mat-select
|
||||
id="requestsToDisplayDropdown"
|
||||
placeholder="{{ 'Requests.RequestsToDisplay' | translate }}"
|
||||
[(value)]="gridCount"
|
||||
(selectionChange)="ngAfterViewInit()"
|
||||
>
|
||||
<mat-option value="10">10</mat-option>
|
||||
<mat-option value="15">15</mat-option>
|
||||
<mat-option value="30">30</mat-option>
|
||||
|
@ -28,9 +79,15 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<table mat-table [dataSource]="dataSource" class="requests table" matSort [matSortActive]="defaultSort" matSortDisableClear [matSortDirection]="defaultOrder">
|
||||
|
||||
|
||||
<table
|
||||
mat-table
|
||||
[dataSource]="dataSource"
|
||||
class="requests table"
|
||||
matSort
|
||||
[matSortActive]="defaultSort"
|
||||
matSortDisableClear
|
||||
[matSortDirection]="defaultOrder"
|
||||
>
|
||||
<ng-container matColumnDef="series">
|
||||
<th mat-header-cell *matHeaderCellDef>{{ 'Requests.RequestsTitle' | translate }}</th>
|
||||
<td mat-cell id="title{{ element.id }}" *matCellDef="let element">{{ element.parentRequest.title }}</td>
|
||||
|
@ -38,13 +95,15 @@
|
|||
|
||||
<ng-container matColumnDef="requestedBy">
|
||||
<th mat-header-cell *matHeaderCellDef>{{ 'Requests.RequestedBy' | translate }}</th>
|
||||
<td mat-cell id="requestedBy{{element.id}}" *matCellDef="let element"> {{element.requestedByAlias ? element.requestedByAlias : element.requestedUser.userAlias}} </td>
|
||||
<td mat-cell id="requestedBy{{ element.id }}" *matCellDef="let element">
|
||||
{{ element.requestedByAlias ? element.requestedByAlias : element.requestedUser.userAlias }}
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="requestedDate">
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header disableClear>{{ 'Requests.RequestDate' | translate }}</th>
|
||||
<td id="requestedDate{{ element.id }}" mat-cell *matCellDef="let element">
|
||||
{{element.requestedDate | amLocal | amUserLocale | amDateFormat: 'LL'}}
|
||||
{{ element.requestedDate | ombiDate: 'PP' }}
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
|
@ -61,11 +120,7 @@
|
|||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="watchedByRequestedUser">
|
||||
<th
|
||||
mat-header-cell
|
||||
*matHeaderCellDef
|
||||
disableClear
|
||||
matTooltip="{{ 'Requests.WatchedProgressTooltip' | translate}}">
|
||||
<th mat-header-cell *matHeaderCellDef disableClear matTooltip="{{ 'Requests.WatchedProgressTooltip' | translate }}">
|
||||
{{ 'Requests.Watched' | translate }}
|
||||
</th>
|
||||
<td mat-cell id="requestedUserPlayedProgress{{ element.id }}" *matCellDef="let element">
|
||||
|
@ -76,13 +131,21 @@
|
|||
<ng-container matColumnDef="actions">
|
||||
<th mat-header-cell *matHeaderCellDef></th>
|
||||
<td mat-cell *matCellDef="let element">
|
||||
<a id="detailsButton{{element.id}}" mat-raised-button color="accent" [routerLink]="'/details/tv/' + element.parentRequest.externalProviderId">{{'Requests.Details' | translate}}</a>
|
||||
<button id="optionsButton{{element.id}}" mat-raised-button color="warn" (click)="openOptions(element)" *ngIf="isAdmin">{{'Requests.Options' | translate}}</button>
|
||||
<a
|
||||
id="detailsButton{{ element.id }}"
|
||||
mat-raised-button
|
||||
color="accent"
|
||||
[routerLink]="'/details/tv/' + element.parentRequest.externalProviderId"
|
||||
>{{ 'Requests.Details' | translate }}</a
|
||||
>
|
||||
<button id="optionsButton{{ element.id }}" mat-raised-button color="warn" (click)="openOptions(element)" *ngIf="isAdmin">
|
||||
{{ 'Requests.Options' | translate }}
|
||||
</button>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
||||
</table>
|
||||
|
||||
<mat-paginator [length]="resultsLength" [pageSize]="gridCount"></mat-paginator>
|
||||
|
|
|
@ -1,68 +1,55 @@
|
|||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
<input type="text" id="search" class="form-control form-control-custom searchwidth" [placeholder]="'Search.Search' | translate"
|
||||
(keyup)="search($event)">
|
||||
<input
|
||||
type="text"
|
||||
id="search"
|
||||
class="form-control form-control-custom searchwidth"
|
||||
[placeholder]="'Search.Search' | translate"
|
||||
(keyup)="search($event)"
|
||||
/>
|
||||
<span class="input-group-btn">
|
||||
<button id="filterBtn" class="btn btn-sm btn-info-outline" (click)="filterDisplay = !filterDisplay">
|
||||
<i class="fas fa-filter"></i> {{ 'Requests.Filter' | translate }}
|
||||
</button>
|
||||
|
||||
|
||||
<button class="btn btn-sm btn-primary-outline dropdown-toggle" type="button" data-toggle="dropdown"
|
||||
aria-haspopup="true" aria-expanded="true">
|
||||
<button
|
||||
class="btn btn-sm btn-primary-outline dropdown-toggle"
|
||||
type="button"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="true"
|
||||
>
|
||||
<i class="fas fa-sort"></i> {{ 'Requests.Sort' | translate }}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
|
||||
<li>
|
||||
<a (click)="setOrder(OrderType.RequestedDateAsc, $event)">{{ 'Requests.SortRequestDateAsc' |
|
||||
translate }}
|
||||
|
||||
</a>
|
||||
<a class="active" (click)="setOrder(OrderType.RequestedDateDesc, $event)">{{
|
||||
'Requests.SortRequestDateDesc' | translate }}
|
||||
|
||||
</a>
|
||||
<a (click)="setOrder(OrderType.TitleAsc, $event)">{{ 'Requests.SortTitleAsc' | translate}}
|
||||
|
||||
</a>
|
||||
<a (click)="setOrder(OrderType.TitleDesc, $event)">{{ 'Requests.SortTitleDesc' | translate}}
|
||||
|
||||
</a>
|
||||
<a (click)="setOrder(OrderType.StatusAsc, $event)">{{ 'Requests.SortStatusAsc' | translate}}
|
||||
|
||||
</a>
|
||||
<a (click)="setOrder(OrderType.StatusDesc, $event)">{{ 'Requests.SortStatusDesc' | translate}}
|
||||
|
||||
</a>
|
||||
|
||||
<a (click)="setOrder(OrderType.RequestedDateAsc, $event)">{{ 'Requests.SortRequestDateAsc' | translate }} </a>
|
||||
<a class="active" (click)="setOrder(OrderType.RequestedDateDesc, $event)">{{ 'Requests.SortRequestDateDesc' | translate }} </a>
|
||||
<a (click)="setOrder(OrderType.TitleAsc, $event)">{{ 'Requests.SortTitleAsc' | translate }} </a>
|
||||
<a (click)="setOrder(OrderType.TitleDesc, $event)">{{ 'Requests.SortTitleDesc' | translate }} </a>
|
||||
<a (click)="setOrder(OrderType.StatusAsc, $event)">{{ 'Requests.SortStatusAsc' | translate }} </a>
|
||||
<a (click)="setOrder(OrderType.StatusDesc, $event)">{{ 'Requests.SortStatusDesc' | translate }} </a>
|
||||
</li>
|
||||
</ul>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<br />
|
||||
|
||||
|
||||
<div>
|
||||
<div *ngFor="let request of movieRequests">
|
||||
<div class="row">
|
||||
<div class="myBg backdrop" [style.background-image]="request.backgroundPath"></div>
|
||||
<div class="tint" style="background-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.6) 100%);"></div>
|
||||
<div class="tint" style="background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%)"></div>
|
||||
<div class="col-sm-2 small-padding">
|
||||
|
||||
<img class="img-responsive poster" src="{{request.posterPath}}" alt="poster">
|
||||
|
||||
<img class="img-responsive poster" src="{{ request.posterPath }}" alt="poster" />
|
||||
</div>
|
||||
|
||||
<div class="col-sm-5 small-padding">
|
||||
<div>
|
||||
<a href="http://www.imdb.com/title/{{ request.imdbId }}/" target="_blank">
|
||||
<h4 class="request-title">{{request.title}} ({{request.releaseDate | amLocal | amDateFormat:
|
||||
'YYYY'}})</h4>
|
||||
<h4 class="request-title">{{ request.title }} ({{ request.releaseDate | ombiDate: 'P' }})</h4>
|
||||
</a>
|
||||
</div>
|
||||
<br />
|
||||
|
@ -84,50 +71,62 @@
|
|||
<div class="requested-status">
|
||||
<span>{{ 'Requests.RequestStatus' | translate }} </span>
|
||||
<span *ngIf="request.available" class="label label-success" id="availableLabel" [translate]="'Common.Available'"></span>
|
||||
<span *ngIf="request.approved && !request.available" id="processingRequestLabel" class="label label-info"
|
||||
[translate]="'Common.ProcessingRequest'"></span>
|
||||
<span
|
||||
*ngIf="request.approved && !request.available"
|
||||
id="processingRequestLabel"
|
||||
class="label label-info"
|
||||
[translate]="'Common.ProcessingRequest'"
|
||||
></span>
|
||||
<span *ngIf="request.denied" class="label label-danger" id="requestDeclinedLabel" [translate]="'Common.RequestDenied'"></span>
|
||||
<span *ngIf="!request.approved && !request.availble && !request.denied" id="pendingApprovalLabel"
|
||||
class="label label-warning" [translate]="'Common.PendingApproval'"></span>
|
||||
|
||||
<span
|
||||
*ngIf="!request.approved && !request.availble && !request.denied"
|
||||
id="pendingApprovalLabel"
|
||||
class="label label-warning"
|
||||
[translate]="'Common.PendingApproval'"
|
||||
></span>
|
||||
</div>
|
||||
<div *ngIf="request.denied" id="requestDenied">
|
||||
{{ 'Requests.Denied' | translate }}
|
||||
<i style="color:red;" class="fas fa-check" pTooltip="{{request.deniedReason}}"></i>
|
||||
|
||||
<i style="color: red" class="fas fa-check" pTooltip="{{ request.deniedReason }}"></i>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="releaseDate">{{ 'Requests.TheatricalRelease' | translate: {date: request.releaseDate |
|
||||
amLocal | amUserLocale | amDateFormat: 'LL'} }}</div>
|
||||
<div *ngIf="request.digitalReleaseDate" id="digitalReleaseDate">{{ 'Requests.DigitalRelease' |
|
||||
translate: {date: request.digitalReleaseDate | amLocal | amUserLocale | amDateFormat: 'LL'} }}</div>
|
||||
<div id="requestedDate">{{ 'Requests.RequestDate' | translate }} {{request.requestedDate | amLocal
|
||||
| amUserLocale | amDateFormat: 'LL'}}</div>
|
||||
<div id="releaseDate">
|
||||
{{ 'Requests.TheatricalRelease' | translate: { date: request.releaseDate | ombiDate: 'PP' } }}
|
||||
</div>
|
||||
<div *ngIf="request.digitalReleaseDate" id="digitalReleaseDate">
|
||||
{{ 'Requests.DigitalRelease' | translate: { date: request.digitalReleaseDate | ombiDate: 'PP' } }}
|
||||
</div>
|
||||
<div id="requestedDate">{{ 'Requests.RequestDate' | translate }} {{ request.requestedDate | ombiDate: 'PP' }}</div>
|
||||
<br />
|
||||
</div>
|
||||
<div *ngIf="isAdmin">
|
||||
<div *ngIf="request.qualityOverrideTitle" class="quality-override">{{ 'Requests.QualityOverride' |
|
||||
translate }}
|
||||
<div *ngIf="request.qualityOverrideTitle" class="quality-override">
|
||||
{{ 'Requests.QualityOverride' | translate }}
|
||||
<span>{{ request.qualityOverrideTitle }} </span>
|
||||
</div>
|
||||
<div *ngIf="request.rootPathOverrideTitle" class="root-override">{{ 'Requests.RootFolderOverride' |
|
||||
translate }}
|
||||
<div *ngIf="request.rootPathOverrideTitle" class="root-override">
|
||||
{{ 'Requests.RootFolderOverride' | translate }}
|
||||
<span>{{ request.rootPathOverrideTitle }} </span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-3 col-sm-push-3 small-padding">
|
||||
<div class="row">
|
||||
<div class="col-md-2 col-md-push-6">
|
||||
|
||||
<a *ngIf="request.showSubscribe && !request.subscribed" style="color:white" (click)="subscribe(request)"
|
||||
pTooltip="Subscribe for notifications">
|
||||
<a
|
||||
*ngIf="request.showSubscribe && !request.subscribed"
|
||||
style="color: white"
|
||||
(click)="subscribe(request)"
|
||||
pTooltip="Subscribe for notifications"
|
||||
>
|
||||
<i class="fas fa-rss"></i>
|
||||
</a>
|
||||
<a *ngIf="request.showSubscribe && request.subscribed" style="color:red" (click)="unSubscribe(request)"
|
||||
pTooltip="Unsubscribe notification">
|
||||
<a
|
||||
*ngIf="request.showSubscribe && request.subscribed"
|
||||
style="color: red"
|
||||
(click)="unSubscribe(request)"
|
||||
pTooltip="Unsubscribe notification"
|
||||
>
|
||||
<i class="fas fa-rss"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -135,8 +134,7 @@
|
|||
<div *ngIf="isAdmin">
|
||||
<div *ngIf="!request.approved" id="approveBtn">
|
||||
<form>
|
||||
<button (click)="approve(request)" style="text-align: right" class="btn btn-sm btn-success-outline approve"
|
||||
type="submit">
|
||||
<button (click)="approve(request)" style="text-align: right" class="btn btn-sm btn-success-outline approve" type="submit">
|
||||
<i class="fas fa-plus"></i> {{ 'Common.Approve' | translate }}
|
||||
</button>
|
||||
</form>
|
||||
|
@ -146,8 +144,13 @@
|
|||
<button type="button" class="btn btn-sm btn-warning-outline">
|
||||
<i class="fas fa-plus"></i> {{ 'Requests.ChangeRootFolder' | translate }}
|
||||
</button>
|
||||
<button type="button" class="btn btn-warning-outline dropdown-toggle" data-toggle="dropdown"
|
||||
aria-haspopup="true" aria-expanded="false">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-warning-outline dropdown-toggle"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false"
|
||||
>
|
||||
<span class="caret"></span>
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
|
@ -163,8 +166,13 @@
|
|||
<button type="button" class="btn btn-sm btn-warning-outline">
|
||||
<i class="fas fa-plus"></i> {{ 'Requests.ChangeQualityProfile' | translate }}
|
||||
</button>
|
||||
<button type="button" class="btn btn-warning-outline dropdown-toggle" data-toggle="dropdown"
|
||||
aria-haspopup="true" aria-expanded="false">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-warning-outline dropdown-toggle"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false"
|
||||
>
|
||||
<span class="caret"></span>
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
|
@ -182,31 +190,49 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<form id="markBtnGroup">
|
||||
<button id="unavailableBtn" *ngIf="request.available" (click)="changeAvailability(request, false)"
|
||||
style="text-align: right" value="false" class="btn btn-sm btn-info-outline change">
|
||||
<button
|
||||
id="unavailableBtn"
|
||||
*ngIf="request.available"
|
||||
(click)="changeAvailability(request, false)"
|
||||
style="text-align: right"
|
||||
value="false"
|
||||
class="btn btn-sm btn-info-outline change"
|
||||
>
|
||||
<i class="fas fa-minus"></i> {{ 'Requests.MarkUnavailable' | translate }}
|
||||
</button>
|
||||
<button id="availableBtn" *ngIf="!request.available" (click)="changeAvailability(request, true)"
|
||||
style="text-align: right" value="true" class="btn btn-sm btn-success-outline change">
|
||||
<button
|
||||
id="availableBtn"
|
||||
*ngIf="!request.available"
|
||||
(click)="changeAvailability(request, true)"
|
||||
style="text-align: right"
|
||||
value="true"
|
||||
class="btn btn-sm btn-success-outline change"
|
||||
>
|
||||
<i class="fas fa-plus"></i> {{ 'Requests.MarkAvailable' | translate }}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div *ngIf="isAdmin || isRequestUser(request)">
|
||||
<form>
|
||||
<button id="removeBtn" (click)="removeRequest(request)" style="text-align: right" class="btn btn-sm btn-danger-outline delete">
|
||||
<button
|
||||
id="removeBtn"
|
||||
(click)="removeRequest(request)"
|
||||
style="text-align: right"
|
||||
class="btn btn-sm btn-danger-outline delete"
|
||||
>
|
||||
<i class="fas fa-minus"></i> {{ 'Requests.Remove' | translate }}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="dropdown" *ngIf="issueCategories && issuesEnabled" id="issuesBtn">
|
||||
<button class="btn btn-sm btn-primary-outline dropdown-toggle" type="button" data-toggle="dropdown"
|
||||
aria-haspopup="true" aria-expanded="true">
|
||||
<button
|
||||
class="btn btn-sm btn-primary-outline dropdown-toggle"
|
||||
type="button"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="true"
|
||||
>
|
||||
<i class="fas fa-plus"></i> {{ 'Requests.ReportIssue' | translate }}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
|
@ -216,15 +242,10 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<p-paginator [rows]="10" [totalRecords]="totalMovies" (onPageChange)="paginate($event)"></p-paginator>
|
||||
|
@ -234,29 +255,35 @@
|
|||
<span>Please enter a rejection reason, the user will be notified of this:</span>
|
||||
<textarea [(ngModel)]="rejectionReason" class="form-control-custom form-control"></textarea>
|
||||
<p-footer>
|
||||
<button type="button" (click)="denyRequest();" label="Reject" class="btn btn-success">Deny</button>
|
||||
<button type="button" (click)="denyRequest()" label="Reject" class="btn btn-success">Deny</button>
|
||||
<button type="button" (click)="denyDisplay = false" label="Close" class="btn btn-danger">Close</button>
|
||||
</p-footer>
|
||||
</p-dialog>
|
||||
|
||||
<issue-report [movie]="true" [visible]="issuesBarVisible" (visibleChange)="issuesBarVisible = $event;" [title]="issueRequest?.title"
|
||||
[issueCategory]="issueCategorySelected" [id]="issueRequest?.id" [providerId]="issueProviderId"></issue-report>
|
||||
|
||||
<issue-report
|
||||
[movie]="true"
|
||||
[visible]="issuesBarVisible"
|
||||
(visibleChange)="issuesBarVisible = $event"
|
||||
[title]="issueRequest?.title"
|
||||
[issueCategory]="issueCategorySelected"
|
||||
[id]="issueRequest?.id"
|
||||
[providerId]="issueProviderId"
|
||||
></issue-report>
|
||||
|
||||
<p-sidebar [(visible)]="filterDisplay" styleClass="ui-sidebar-md side-back side-small">
|
||||
<h3>{{ 'Requests.Filter' | translate }}</h3>
|
||||
<hr>
|
||||
<hr />
|
||||
<div>
|
||||
<h4>{{ 'Filter.FilterHeaderAvailability' | translate }}</h4>
|
||||
<div class="form-group">
|
||||
<div class="radio">
|
||||
<input type="radio" id="Available" name="Availability" (click)="filterAvailability(filterType.Available, $event)">
|
||||
<input type="radio" id="Available" name="Availability" (click)="filterAvailability(filterType.Available, $event)" />
|
||||
<label for="Available">{{ 'Common.Available' | translate }}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="radio">
|
||||
<input type="radio" id="notAvailable" name="Availability" (click)="filterAvailability(filterType.NotAvailable, $event)">
|
||||
<input type="radio" id="notAvailable" name="Availability" (click)="filterAvailability(filterType.NotAvailable, $event)" />
|
||||
<label for="notAvailable">{{ 'Common.NotAvailable' | translate }}</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -265,24 +292,25 @@
|
|||
<h4>{{ 'Filter.FilterHeaderRequestStatus' | translate }}</h4>
|
||||
<div class="form-group">
|
||||
<div class="radio">
|
||||
<input type="radio" id="approved" name="Status" (click)="filterStatus(filterType.Approved, $event)">
|
||||
<input type="radio" id="approved" name="Status" (click)="filterStatus(filterType.Approved, $event)" />
|
||||
<label for="approved">{{ 'Filter.Approved' | translate }}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="radio">
|
||||
<input type="radio" id="Processing" name="Status" (click)="filterStatus(filterType.Processing, $event)">
|
||||
<input type="radio" id="Processing" name="Status" (click)="filterStatus(filterType.Processing, $event)" />
|
||||
<label for="Processing">{{ 'Common.ProcessingRequest' | translate }}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="radio">
|
||||
<input type="radio" id="pendingApproval" name="Status" (click)="filterStatus(filterType.PendingApproval, $event)">
|
||||
<input type="radio" id="pendingApproval" name="Status" (click)="filterStatus(filterType.PendingApproval, $event)" />
|
||||
<label for="pendingApproval">{{ 'Filter.PendingApproval' | translate }}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-sm btn-primary-outline" (click)="clearFilter($event)">
|
||||
<i class="fas fa-filter"></i> {{ 'Filter.ClearFilter' | translate }}</button>
|
||||
<i class="fas fa-filter"></i> {{ 'Filter.ClearFilter' | translate }}
|
||||
</button>
|
||||
</p-sidebar>
|
||||
|
|
|
@ -1,70 +1,58 @@
|
|||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
<input type="text" id="search" class="form-control form-control-custom searchwidth" [placeholder]="'Search.Search' | translate"
|
||||
(keyup)="search($event)">
|
||||
<input
|
||||
type="text"
|
||||
id="search"
|
||||
class="form-control form-control-custom searchwidth"
|
||||
[placeholder]="'Search.Search' | translate"
|
||||
(keyup)="search($event)"
|
||||
/>
|
||||
<span class="input-group-btn">
|
||||
<button id="filterBtn" class="btn btn-sm btn-info-outline" (click)="filterDisplay = !filterDisplay">
|
||||
<i class="fas fa-filter"></i> {{ 'Requests.Filter' | translate }}
|
||||
</button>
|
||||
|
||||
|
||||
<button class="btn btn-sm btn-primary-outline dropdown-toggle" type="button" data-toggle="dropdown"
|
||||
aria-haspopup="true" aria-expanded="true">
|
||||
<button
|
||||
class="btn btn-sm btn-primary-outline dropdown-toggle"
|
||||
type="button"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="true"
|
||||
>
|
||||
<i class="fas fa-sort"></i> {{ 'Requests.Sort' | translate }}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
|
||||
<li>
|
||||
<a (click)="setOrder(OrderType.RequestedDateAsc, $event)">{{ 'Requests.SortRequestDateAsc' |
|
||||
translate }}
|
||||
|
||||
</a>
|
||||
<a class="active" (click)="setOrder(OrderType.RequestedDateDesc, $event)">{{
|
||||
'Requests.SortRequestDateDesc' | translate }}
|
||||
|
||||
</a>
|
||||
<a (click)="setOrder(OrderType.TitleAsc, $event)">{{ 'Requests.SortTitleAsc' | translate}}
|
||||
|
||||
</a>
|
||||
<a (click)="setOrder(OrderType.TitleDesc, $event)">{{ 'Requests.SortTitleDesc' | translate}}
|
||||
|
||||
</a>
|
||||
<a (click)="setOrder(OrderType.StatusAsc, $event)">{{ 'Requests.SortStatusAsc' | translate}}
|
||||
|
||||
</a>
|
||||
<a (click)="setOrder(OrderType.StatusDesc, $event)">{{ 'Requests.SortStatusDesc' | translate}}
|
||||
|
||||
</a>
|
||||
|
||||
<a (click)="setOrder(OrderType.RequestedDateAsc, $event)">{{ 'Requests.SortRequestDateAsc' | translate }} </a>
|
||||
<a class="active" (click)="setOrder(OrderType.RequestedDateDesc, $event)">{{ 'Requests.SortRequestDateDesc' | translate }} </a>
|
||||
<a (click)="setOrder(OrderType.TitleAsc, $event)">{{ 'Requests.SortTitleAsc' | translate }} </a>
|
||||
<a (click)="setOrder(OrderType.TitleDesc, $event)">{{ 'Requests.SortTitleDesc' | translate }} </a>
|
||||
<a (click)="setOrder(OrderType.StatusAsc, $event)">{{ 'Requests.SortStatusAsc' | translate }} </a>
|
||||
<a (click)="setOrder(OrderType.StatusDesc, $event)">{{ 'Requests.SortStatusDesc' | translate }} </a>
|
||||
</li>
|
||||
</ul>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<br />
|
||||
|
||||
|
||||
<div class="col-md-12">
|
||||
<div *ngFor="let request of albumRequests" class="col-md-4">
|
||||
<div class="row">
|
||||
<div class="album-bg backdrop" [style.background-image]="request.background"></div>
|
||||
<div class="album-tint" style="background-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.6) 100%);"></div>
|
||||
<div class="album-tint" style="background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%)"></div>
|
||||
|
||||
<div class="col-sm-12 small-padding">
|
||||
<img *ngIf="request.disk" class="img-responsive poster album-cover" src="{{request.disk}}" alt="poster">
|
||||
<img *ngIf="request.disk" class="img-responsive poster album-cover" src="{{ request.disk }}" alt="poster" />
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-sm-12 small-padding">
|
||||
<div>
|
||||
<h4>
|
||||
<a href="" target="_blank">
|
||||
{{ request.title | truncate: 36 }}
|
||||
</a>
|
||||
|
||||
</h4>
|
||||
<h5>
|
||||
<a href="">
|
||||
|
@ -87,27 +75,30 @@
|
|||
<div class="requested-status">
|
||||
<span>{{ 'Requests.RequestStatus' | translate }} </span>
|
||||
<span *ngIf="request.available" class="label label-success" id="availableLabel" [translate]="'Common.Available'"></span>
|
||||
<span *ngIf="request.approved && !request.available" id="processingRequestLabel" class="label label-info"
|
||||
[translate]="'Common.ProcessingRequest'"></span>
|
||||
<span
|
||||
*ngIf="request.approved && !request.available"
|
||||
id="processingRequestLabel"
|
||||
class="label label-info"
|
||||
[translate]="'Common.ProcessingRequest'"
|
||||
></span>
|
||||
<span *ngIf="request.denied" class="label label-danger" id="requestDeclinedLabel" [translate]="'Common.RequestDenied'"></span>
|
||||
<span *ngIf="request.deniedReason" title="{{ request.deniedReason }}">
|
||||
<i class="fas fa-info-circle"></i>
|
||||
</span>
|
||||
<span *ngIf="!request.approved && !request.availble && !request.denied" id="pendingApprovalLabel"
|
||||
class="label label-warning" [translate]="'Common.PendingApproval'"></span>
|
||||
|
||||
<span
|
||||
*ngIf="!request.approved && !request.availble && !request.denied"
|
||||
id="pendingApprovalLabel"
|
||||
class="label label-warning"
|
||||
[translate]="'Common.PendingApproval'"
|
||||
></span>
|
||||
</div>
|
||||
<div *ngIf="request.denied" id="requestDenied">
|
||||
{{ 'Requests.Denied' | translate }}
|
||||
<i style="color:red;" class="fas fa-check" pTooltip="{{request.deniedReason}}"></i>
|
||||
|
||||
<i style="color: red" class="fas fa-check" pTooltip="{{ request.deniedReason }}"></i>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="releaseDate">{{ 'Requests.ReleaseDate' | translate: {date: request.releaseDate | amLocal |
|
||||
amDateFormat: 'LL'} }}</div>
|
||||
<div id="requestedDate">{{ 'Requests.RequestDate' | translate }} {{request.requestedDate | amLocal
|
||||
| amDateFormat: 'LL'}}</div>
|
||||
<div id="releaseDate">{{ 'Requests.ReleaseDate' | translate: { date: request.releaseDate | ombiDate: 'PP' } }}</div>
|
||||
<div id="requestedDate">{{ 'Requests.RequestDate' | translate }} {{ request.requestedDate | ombiDate: 'PP' }}</div>
|
||||
<br />
|
||||
</div>
|
||||
<!-- <div *ngIf="isAdmin">
|
||||
|
@ -118,7 +109,6 @@
|
|||
<span>{{request.rootPathOverrideTitle}} </span>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
</div>
|
||||
<div class="col-sm-12 small-padding">
|
||||
<!-- <div class="row">
|
||||
|
@ -135,8 +125,7 @@
|
|||
<div *ngIf="isAdmin">
|
||||
<div *ngIf="!request.approved" id="approveBtn">
|
||||
<form class="col-md-6">
|
||||
<button (click)="approve(request)" style="text-align: right" class="btn btn-sm btn-success-outline approve"
|
||||
type="submit">
|
||||
<button (click)="approve(request)" style="text-align: right" class="btn btn-sm btn-success-outline approve" type="submit">
|
||||
<i class="fas fa-plus"></i> {{ 'Common.Approve' | translate }}
|
||||
</button>
|
||||
</form>
|
||||
|
@ -180,20 +169,28 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<form id="markBtnGroup">
|
||||
<button id="unavailableBtn" *ngIf="request.available" (click)="changeAvailability(request, false)"
|
||||
style="text-align: right" value="false" class="btn btn-sm btn-info-outline change">
|
||||
<button
|
||||
id="unavailableBtn"
|
||||
*ngIf="request.available"
|
||||
(click)="changeAvailability(request, false)"
|
||||
style="text-align: right"
|
||||
value="false"
|
||||
class="btn btn-sm btn-info-outline change"
|
||||
>
|
||||
<i class="fas fa-minus"></i> {{ 'Requests.MarkUnavailable' | translate }}
|
||||
</button>
|
||||
<button id="availableBtn" *ngIf="!request.available" (click)="changeAvailability(request, true)"
|
||||
style="text-align: right" value="true" class="btn btn-sm btn-success-outline change">
|
||||
<button
|
||||
id="availableBtn"
|
||||
*ngIf="!request.available"
|
||||
(click)="changeAvailability(request, true)"
|
||||
style="text-align: right"
|
||||
value="true"
|
||||
class="btn btn-sm btn-success-outline change"
|
||||
>
|
||||
<i class="fas fa-plus"></i> {{ 'Requests.MarkAvailable' | translate }}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div *ngIf="isAdmin || isRequestUser(request)">
|
||||
<form id="removeBtn">
|
||||
|
@ -203,8 +200,13 @@
|
|||
</form>
|
||||
</div>
|
||||
<div class="dropdown" *ngIf="issueCategories && issuesEnabled" id="issuesBtn">
|
||||
<button class="btn btn-sm btn-primary-outline dropdown-toggle" type="button" data-toggle="dropdown"
|
||||
aria-haspopup="true" aria-expanded="true">
|
||||
<button
|
||||
class="btn btn-sm btn-primary-outline dropdown-toggle"
|
||||
type="button"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="true"
|
||||
>
|
||||
<i class="fas fa-plus"></i> {{ 'Requests.ReportIssue' | translate }}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
|
@ -214,39 +216,39 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<p-paginator [rows]="10" [totalRecords]="totalAlbums" (onPageChange)="paginate($event)"></p-paginator>
|
||||
</div>
|
||||
|
||||
|
||||
<issue-report [movie]="true" [visible]="issuesBarVisible" (visibleChange)="issuesBarVisible = $event;" [title]="issueRequest?.title"
|
||||
[issueCategory]="issueCategorySelected" [id]="issueRequest?.id" [providerId]="issueProviderId"></issue-report>
|
||||
|
||||
<issue-report
|
||||
[movie]="true"
|
||||
[visible]="issuesBarVisible"
|
||||
(visibleChange)="issuesBarVisible = $event"
|
||||
[title]="issueRequest?.title"
|
||||
[issueCategory]="issueCategorySelected"
|
||||
[id]="issueRequest?.id"
|
||||
[providerId]="issueProviderId"
|
||||
></issue-report>
|
||||
|
||||
<p-sidebar [(visible)]="filterDisplay" styleClass="ui-sidebar-md side-back side-small">
|
||||
<h3>{{ 'Requests.Filter' | translate }}</h3>
|
||||
<hr>
|
||||
<hr />
|
||||
<div>
|
||||
<h4>{{ 'Filter.FilterHeaderAvailability' | translate }}</h4>
|
||||
<div class="form-group">
|
||||
<div class="radio">
|
||||
<input type="radio" id="Available" name="Availability" (click)="filterAvailability(filterType.Available, $event)">
|
||||
<input type="radio" id="Available" name="Availability" (click)="filterAvailability(filterType.Available, $event)" />
|
||||
<label for="Available">{{ 'Common.Available' | translate }}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="radio">
|
||||
<input type="radio" id="notAvailable" name="Availability" (click)="filterAvailability(filterType.NotAvailable, $event)">
|
||||
<input type="radio" id="notAvailable" name="Availability" (click)="filterAvailability(filterType.NotAvailable, $event)" />
|
||||
<label for="notAvailable">{{ 'Common.NotAvailable' | translate }}</label>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -255,35 +257,34 @@
|
|||
<h4>{{ 'Filter.FilterHeaderRequestStatus' | translate }}</h4>
|
||||
<div class="form-group">
|
||||
<div class="radio">
|
||||
<input type="radio" id="approved" name="Status" (click)="filterStatus(filterType.Approved, $event)">
|
||||
<input type="radio" id="approved" name="Status" (click)="filterStatus(filterType.Approved, $event)" />
|
||||
<label for="approved">{{ 'Filter.Approved' | translate }}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="radio">
|
||||
<input type="radio" id="Processing" name="Status" (click)="filterStatus(filterType.Processing, $event)">
|
||||
<input type="radio" id="Processing" name="Status" (click)="filterStatus(filterType.Processing, $event)" />
|
||||
<label for="Processing">{{ 'Common.ProcessingRequest' | translate }}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="radio">
|
||||
<input type="radio" id="pendingApproval" name="Status" (click)="filterStatus(filterType.PendingApproval, $event)">
|
||||
<input type="radio" id="pendingApproval" name="Status" (click)="filterStatus(filterType.PendingApproval, $event)" />
|
||||
<label for="pendingApproval">{{ 'Filter.PendingApproval' | translate }}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-sm btn-primary-outline" (click)="clearFilter($event)">
|
||||
<i class="fas fa-filter"></i> {{ 'Filter.ClearFilter' | translate }}</button>
|
||||
<i class="fas fa-filter"></i> {{ 'Filter.ClearFilter' | translate }}
|
||||
</button>
|
||||
</p-sidebar>
|
||||
|
||||
|
||||
|
||||
<p-dialog *ngIf="requestToDeny" header="Deny Request '{{ requestToDeny.title }}''" [(visible)]="denyDisplay" [draggable]="false">
|
||||
<span>Please enter a rejection reason, the user will be notified of this:</span>
|
||||
<textarea [(ngModel)]="rejectionReason" class="form-control-custom form-control"></textarea>
|
||||
<p-footer>
|
||||
<button type="button" (click)="denyRequest();" label="Reject" class="btn btn-success">Deny</button>
|
||||
<button type="button" (click)="denyRequest()" label="Reject" class="btn btn-success">Deny</button>
|
||||
<button type="button" (click)="denyDisplay = false" label="Close" class="btn btn-danger">Close</button>
|
||||
</p-footer>
|
||||
</p-dialog>
|
|
@ -2,7 +2,6 @@
|
|||
<hr />
|
||||
<div *ngFor="let child of childRequests" class="clearfix">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-2">
|
||||
<span [translate]="'Requests.RequestedBy'"></span>
|
||||
<span *ngIf="child.requestedByAlias">{{ child.requestedByAlias }}</span>
|
||||
|
@ -14,39 +13,71 @@
|
|||
</div>
|
||||
|
||||
<div class="col-md-1 col-md-push-9">
|
||||
<button id="subscribeBtn" *ngIf="child.showSubscribe && !child.subscribed" (click)="subscribe(child)"
|
||||
class="btn btn-sm btn-primary-outline" pTooltip="Subscribe for notifications" type="submit"><i
|
||||
class="fas fa-rss"></i> Subscribe</button>
|
||||
<button id="subscribeBtn" *ngIf="child.showSubscribe && child.subscribed" (click)="unSubscribe(child)"
|
||||
class="btn btn-sm btn-danger-outline" pTooltip="UnSubscribe for notifications" type="submit"><i
|
||||
class="fas fa-rss"></i> UnSubscribe</button>
|
||||
|
||||
<button
|
||||
id="subscribeBtn"
|
||||
*ngIf="child.showSubscribe && !child.subscribed"
|
||||
(click)="subscribe(child)"
|
||||
class="btn btn-sm btn-primary-outline"
|
||||
pTooltip="Subscribe for notifications"
|
||||
type="submit"
|
||||
>
|
||||
<i class="fas fa-rss"></i> Subscribe
|
||||
</button>
|
||||
<button
|
||||
id="subscribeBtn"
|
||||
*ngIf="child.showSubscribe && child.subscribed"
|
||||
(click)="unSubscribe(child)"
|
||||
class="btn btn-sm btn-danger-outline"
|
||||
pTooltip="UnSubscribe for notifications"
|
||||
type="submit"
|
||||
>
|
||||
<i class="fas fa-rss"></i> UnSubscribe
|
||||
</button>
|
||||
|
||||
<div *ngIf="isAdmin">
|
||||
<button id="approveBtn" *ngIf="child.canApprove && !child.approved" (click)="approve(child)" class="btn btn-sm btn-success-outline"
|
||||
type="submit"><i class="fas fa-plus"></i> {{ 'Common.Approve' | translate }}</button>
|
||||
<button id="unavailableBtn" *ngIf="child.available" (click)="changeAvailability(child, false)"
|
||||
style="text-align: right" value="false" class="btn btn-sm btn-info-outline change"><i class="fas fa-minus"></i>
|
||||
{{ 'Requests.MarkUnavailable' | translate }}</button>
|
||||
<button id="availableBtn" *ngIf="!child.available" (click)="changeAvailability(child, true)" style="text-align: right"
|
||||
value="true" class="btn btn-sm btn-success-outline change"><i class="fas fa-plus"></i> {{
|
||||
'Requests.MarkAvailable' | translate }}</button>
|
||||
<button
|
||||
id="approveBtn"
|
||||
*ngIf="child.canApprove && !child.approved"
|
||||
(click)="approve(child)"
|
||||
class="btn btn-sm btn-success-outline"
|
||||
type="submit"
|
||||
>
|
||||
<i class="fas fa-plus"></i> {{ 'Common.Approve' | translate }}
|
||||
</button>
|
||||
<button
|
||||
id="unavailableBtn"
|
||||
*ngIf="child.available"
|
||||
(click)="changeAvailability(child, false)"
|
||||
style="text-align: right"
|
||||
value="false"
|
||||
class="btn btn-sm btn-info-outline change"
|
||||
>
|
||||
<i class="fas fa-minus"></i> {{ 'Requests.MarkUnavailable' | translate }}
|
||||
</button>
|
||||
<button
|
||||
id="availableBtn"
|
||||
*ngIf="!child.available"
|
||||
(click)="changeAvailability(child, true)"
|
||||
style="text-align: right"
|
||||
value="true"
|
||||
class="btn btn-sm btn-success-outline change"
|
||||
>
|
||||
<i class="fas fa-plus"></i> {{ 'Requests.MarkAvailable' | translate }}
|
||||
</button>
|
||||
|
||||
<button id="denyBtn" *ngIf="!child.denied" type="button" (click)="deny(child)" class="btn btn-sm btn-danger-outline deny">
|
||||
<i class="fas fa-times"></i> {{ 'Requests.Deny' | translate }}</button>
|
||||
|
||||
<i class="fas fa-times"></i> {{ 'Requests.Deny' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
<div *ngIf="isAdmin || isRequestUser(child)">
|
||||
<button id="removeBtn" type="button" (click)="removeRequest(child)" class="btn btn-sm btn-danger-outline deny"><i
|
||||
class="fas fa-times"></i> {{ 'Requests.Remove' | translate }}</button>
|
||||
<button id="removeBtn" type="button" (click)="removeRequest(child)" class="btn btn-sm btn-danger-outline deny">
|
||||
<i class="fas fa-times"></i> {{ 'Requests.Remove' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<ngb-tabset>
|
||||
|
||||
<div *ngFor="let season of child.seasonRequests">
|
||||
<ngb-tab [id]="season.seasonNumber" [title]="season.seasonNumber">
|
||||
<ng-template ngbTabContent>
|
||||
|
@ -56,9 +87,7 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<a>
|
||||
#
|
||||
</a>
|
||||
<a> # </a>
|
||||
</th>
|
||||
<th>
|
||||
<a>
|
||||
|
@ -86,22 +115,33 @@
|
|||
{{ ep.title }}
|
||||
</td>
|
||||
<td>
|
||||
{{ep.airDate | amLocal | amUserLocale | amDateFormat: 'L' }}
|
||||
{{ ep.airDate | ombiDate: 'P' }}
|
||||
</td>
|
||||
<td>
|
||||
<span *ngIf="child.denied" class="label label-danger" id="deniedLabel"
|
||||
[translate]="'Common.Denied'">
|
||||
<i style="color:red;" class="fas fa-check" pTooltip="{{child.deniedReason}}"></i>
|
||||
<span *ngIf="child.denied" class="label label-danger" id="deniedLabel" [translate]="'Common.Denied'">
|
||||
<i style="color: red" class="fas fa-check" pTooltip="{{ child.deniedReason }}"></i>
|
||||
</span>
|
||||
<span *ngIf="!child.denied && ep.available" class="label label-success" id="availableLabel"
|
||||
[translate]="'Common.Available'"></span>
|
||||
<span *ngIf="!child.denied &&ep.approved && !ep.available" class="label label-info"
|
||||
id="processingRequestLabel" [translate]="'Common.ProcessingRequest'"></span>
|
||||
<span
|
||||
*ngIf="!child.denied && ep.available"
|
||||
class="label label-success"
|
||||
id="availableLabel"
|
||||
[translate]="'Common.Available'"
|
||||
></span>
|
||||
<span
|
||||
*ngIf="!child.denied && ep.approved && !ep.available"
|
||||
class="label label-info"
|
||||
id="processingRequestLabel"
|
||||
[translate]="'Common.ProcessingRequest'"
|
||||
></span>
|
||||
<div *ngIf="!child.denied && !ep.approved">
|
||||
<div *ngIf="!ep.available"><span class="label label-warning" id="pendingApprovalLabel"
|
||||
[translate]="'Common.PendingApproval'"></span></div>
|
||||
<div *ngIf="!ep.available">
|
||||
<span
|
||||
class="label label-warning"
|
||||
id="pendingApprovalLabel"
|
||||
[translate]="'Common.PendingApproval'"
|
||||
></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
@ -115,14 +155,13 @@
|
|||
<br />
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<p-dialog *ngIf="requestToDeny" header="Deny Request '{{ requestToDeny.title }}''" [(visible)]="denyDisplay" [draggable]="false">
|
||||
<span>Please enter a rejection reason, the user will be notified of this:</span>
|
||||
<textarea [(ngModel)]="rejectionReason" class="form-control-custom form-control"></textarea>
|
||||
<p-footer>
|
||||
<button type="button" (click)="denyRequest();" label="Reject" class="btn btn-success">Deny</button>
|
||||
<button type="button" (click)="denyRequest()" label="Reject" class="btn btn-success">Deny</button>
|
||||
<button type="button" (click)="denyDisplay = false" label="Close" class="btn btn-danger">Close</button>
|
||||
</p-footer>
|
||||
</p-dialog>
|
|
@ -1,6 +1,12 @@
|
|||
<div class="form-group">
|
||||
<div>
|
||||
<input type="text" id="search" class="form-control form-control-custom" [placeholder]="'Common.Search' | translate" (keyup)="search($event)">
|
||||
<input
|
||||
type="text"
|
||||
id="search"
|
||||
class="form-control form-control-custom"
|
||||
[placeholder]="'Common.Search' | translate"
|
||||
(keyup)="search($event)"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
|
@ -11,18 +17,16 @@
|
|||
<div>
|
||||
<div class="row">
|
||||
<div class="myBg backdrop" [style.background-image]="node?.background"></div>
|
||||
<div class="tint" style="background-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0.6) 100%);"></div>
|
||||
<div class="tint" style="background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%)"></div>
|
||||
|
||||
<div class="col-sm-2 small-padding">
|
||||
|
||||
<img class="img-responsive poster" src="{{node.posterPath || null}}" alt="poster">
|
||||
|
||||
<img class="img-responsive poster" src="{{ node.posterPath || null }}" alt="poster" />
|
||||
</div>
|
||||
|
||||
<div class="col-sm-5 small-padding">
|
||||
<div>
|
||||
<a href="http://www.imdb.com/title/{{ node.imdbId }}/" target="_blank">
|
||||
<h4 class="request-title">{{node.title}} ({{node.releaseDate | amLocal| amUserLocale | amDateFormat: 'YYYY'}})</h4>
|
||||
<h4 class="request-title">{{ node.title }} ({{ node.releaseDate | ombiDate: 'P' }})</h4>
|
||||
</a>
|
||||
</div>
|
||||
<br />
|
||||
|
@ -31,13 +35,14 @@
|
|||
<span class="label label-success">{{ node.status }}</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div>Release Date: {{node.releaseDate | amLocal | amUserLocale | amDateFormat: 'LL'}}</div>
|
||||
<div>Release Date: {{ node.releaseDate | ombiDate: 'PP' }}</div>
|
||||
<div *ngIf="isAdmin">
|
||||
<div *ngIf="node.qualityOverrideTitle" class="quality-override">{{ 'Requests.QualityOverride' | translate }}
|
||||
<div *ngIf="node.qualityOverrideTitle" class="quality-override">
|
||||
{{ 'Requests.QualityOverride' | translate }}
|
||||
<span>{{ node.qualityOverrideTitle }} </span>
|
||||
</div>
|
||||
<div *ngIf="node.rootPathOverrideTitle" class="root-override">{{ 'Requests.RootFolderOverride' | translate }}
|
||||
<div *ngIf="node.rootPathOverrideTitle" class="root-override">
|
||||
{{ 'Requests.RootFolderOverride' | translate }}
|
||||
<span>{{ node.rootPathOverrideTitle }} </span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -45,16 +50,22 @@
|
|||
<br />
|
||||
</div>
|
||||
<div class="col-sm-3 col-sm-push-3 small-padding">
|
||||
|
||||
<button style="text-align: right" class="btn btn-sm btn-success-outline" (click)="openClosestTab(node, $event)">
|
||||
<i class="fas fa-plus"></i> View</button>
|
||||
<i class="fas fa-plus"></i> View
|
||||
</button>
|
||||
<div *ngIf="isAdmin">
|
||||
<!--Sonarr Root Folder-->
|
||||
<div *ngIf="sonarrRootFolders?.length > 1" class="btn-group btn-split" id="rootFolderBtn">
|
||||
<button type="button" class="btn btn-sm btn-warning-outline">
|
||||
<i class="fas fa-plus"></i> {{ 'Requests.ChangeRootFolder' | translate }}
|
||||
</button>
|
||||
<button type="button" class="btn btn-warning-outline dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-warning-outline dropdown-toggle"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false"
|
||||
>
|
||||
<span class="caret"></span>
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
|
@ -70,7 +81,13 @@
|
|||
<button type="button" class="btn btn-sm btn-warning-outline">
|
||||
<i class="fas fa-plus"></i> {{ 'Requests.ChangeQualityProfile' | translate }}
|
||||
</button>
|
||||
<button type="button" class="btn btn-warning-outline dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-warning-outline dropdown-toggle"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false"
|
||||
>
|
||||
<span class="caret"></span>
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
|
@ -80,10 +97,15 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="dropdown" *ngIf="issueCategories && issuesEnabled" id="issueBtn">
|
||||
<button class="btn btn-sm btn-primary-outline dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||
<button
|
||||
class="btn btn-sm btn-primary-outline dropdown-toggle"
|
||||
type="button"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="true"
|
||||
>
|
||||
<i class="fas fa-plus"></i> {{ 'Requests.ReportIssue' | translate }}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
|
@ -98,15 +120,27 @@
|
|||
</div>
|
||||
<!--This is the section that holds the child seasons if they want to specify specific episodes-->
|
||||
<div *ngIf="node.open">
|
||||
<tvrequests-children [childRequests]="node.childRequests" [isAdmin]="isAdmin" [currentUser]="currentUser" (requestDeleted)="childRequestDeleted($event)"></tvrequests-children>
|
||||
<tvrequests-children
|
||||
[childRequests]="node.childRequests"
|
||||
[isAdmin]="isAdmin"
|
||||
[currentUser]="currentUser"
|
||||
(requestDeleted)="childRequestDeleted($event)"
|
||||
></tvrequests-children>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
</div>
|
||||
|
||||
<p-paginator [rows]="10" [totalRecords]="totalTv" (onPageChange)="paginate($event)"></p-paginator>
|
||||
</div>
|
||||
|
||||
<issue-report [movie]="false" [visible]="issuesBarVisible" [title]="issueRequest?.title" [issueCategory]="issueCategorySelected" [id]="issueRequest?.id" [providerId]="issueProviderId" (visibleChange)="issuesBarVisible = $event;"></issue-report>
|
||||
<issue-report
|
||||
[movie]="false"
|
||||
[visible]="issuesBarVisible"
|
||||
[title]="issueRequest?.title"
|
||||
[issueCategory]="issueCategorySelected"
|
||||
[id]="issueRequest?.id"
|
||||
[providerId]="issueProviderId"
|
||||
(visibleChange)="issuesBarVisible = $event"
|
||||
></issue-report>
|
||||
|
|
|
@ -1,28 +1,21 @@
|
|||
|
||||
|
||||
<h1 mat-dialog-title><i class="fas fa-code-branch"></i> Latest Version: {{ data.updateVersionString }}</h1>
|
||||
<mat-dialog-content>
|
||||
<div [innerHTML]="data.changeLogs">
|
||||
</div>
|
||||
|
||||
|
||||
<div [innerHTML]="data.changeLogs"></div>
|
||||
|
||||
<div class="mat-table">
|
||||
<div class="mat-header-row">
|
||||
<div class="mat-header-cell">Binary</div>
|
||||
<div class="mat-header-cell">Download</div></div>
|
||||
<div class="mat-header-cell">Download</div>
|
||||
</div>
|
||||
<div *ngFor="let d of data.downloads" class="mat-row">
|
||||
<div class="mat-cell">{{ d.name }}</div>
|
||||
<div class="mat-cell"><a href="{{ d.url }}">Download</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<small>Updated at {{data.updateDate | amUserLocale | amDateFormat: 'LL' }}</small>
|
||||
<small>Updated at {{ data.updateDate | ombiDate: 'PP' }}</small>
|
||||
</mat-dialog-content>
|
||||
|
||||
|
||||
<div mat-dialog-actions class="right-buttons">
|
||||
<button mat-raised-button id="cancelButton" [mat-dialog-close]="" color="warn"><i class="fas fa-times"></i> Close</button>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,25 +1,29 @@
|
|||
<div class='container'>
|
||||
<div class='chatbox'>
|
||||
<div class='chatbox__user-list'>
|
||||
<h1>{{ "NavigationBar.UserManagement" | translate }}</h1>
|
||||
<div class='chatbox__user--active' *ngFor="let user of userList">
|
||||
<div class="container">
|
||||
<div class="chatbox">
|
||||
<div class="chatbox__user-list">
|
||||
<h1>{{ 'NavigationBar.UserManagement' | translate }}</h1>
|
||||
<div class="chatbox__user--active" *ngFor="let user of userList">
|
||||
<p>{{ user }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="chatbox-message-box">
|
||||
<div class="chatbox__messages" *ngFor="let m of messages">
|
||||
<div class="chatbox__messages__user-message">
|
||||
<div class="chatbox__messages__user-message--ind-message" [ngClass]="{'sender': m.chatType === ChatType.Sender, 'reciever':m.chatType === ChatType.Reciever }">
|
||||
<div
|
||||
class="chatbox__messages__user-message--ind-message"
|
||||
[ngClass]="{ sender: m.chatType === ChatType.Sender, reciever: m.chatType === ChatType.Reciever }"
|
||||
>
|
||||
<p class="name" *ngIf="m?.username">{{ m.username }}</p>
|
||||
<br />
|
||||
<p class="message">{{ m.message }}</p>
|
||||
<p class="timestamp">{{m.date | amFromUtc | amLocal | amUserLocale | amDateFormat: 'l LT'}}</p>
|
||||
<p class="timestamp">{{ m.date | ombiDate: 'Ppp' }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form">
|
||||
<input type="text" [(ngModel)]="currentMessage" [placeholder]="'Issues.EnterYourMessage' | translate">
|
||||
<button mat-raised-button class="add-message" (click)="addMessage()">{{ "Issues.SendMessageButton" | translate }}</button>
|
||||
<input type="text" [(ngModel)]="currentMessage" [placeholder]="'Issues.EnterYourMessage' | translate" />
|
||||
<button mat-raised-button class="add-message" (click)="addMessage()">{{ 'Issues.SendMessageButton' | translate }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -4,13 +4,37 @@
|
|||
</div>
|
||||
<div *ngIf="requestable" class="row">
|
||||
<div class="col-12 action-buttons-right">
|
||||
<button id="episodeModalAllSeasons" (click)="requestAllSeasons()" color="primary" mat-raised-button class="btn-spacing"
|
||||
matTooltip="{{'MediaDetails.EpisodeSelector.AllSeasonsTooltip' | translate}}">{{'Search.TvShows.AllSeasons' | translate }}</button>
|
||||
<button
|
||||
id="episodeModalAllSeasons"
|
||||
(click)="requestAllSeasons()"
|
||||
color="primary"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
matTooltip="{{ 'MediaDetails.EpisodeSelector.AllSeasonsTooltip' | translate }}"
|
||||
>
|
||||
{{ 'Search.TvShows.AllSeasons' | translate }}
|
||||
</button>
|
||||
|
||||
<button id="episodeModalFirstSeason" (click)="requestFirstSeason()" color="accent" mat-raised-button class="btn-spacing"
|
||||
matTooltip="{{'MediaDetails.EpisodeSelector.FirstSeasonTooltip' | translate}}">{{ 'Search.TvShows.FirstSeason' | translate }}</button>
|
||||
<button id="episodeModalLatestSeason" (click)="requestLatestSeason()" color="warn" mat-raised-button class="btn-spacing"
|
||||
matTooltip="{{'MediaDetails.EpisodeSelector.LatestSeasonTooltip' | translate}}">{{ 'Search.TvShows.LatestSeason' | translate }}</button>
|
||||
<button
|
||||
id="episodeModalFirstSeason"
|
||||
(click)="requestFirstSeason()"
|
||||
color="accent"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
matTooltip="{{ 'MediaDetails.EpisodeSelector.FirstSeasonTooltip' | translate }}"
|
||||
>
|
||||
{{ 'Search.TvShows.FirstSeason' | translate }}
|
||||
</button>
|
||||
<button
|
||||
id="episodeModalLatestSeason"
|
||||
(click)="requestLatestSeason()"
|
||||
color="warn"
|
||||
mat-raised-button
|
||||
class="btn-spacing"
|
||||
matTooltip="{{ 'MediaDetails.EpisodeSelector.LatestSeasonTooltip' | translate }}"
|
||||
>
|
||||
{{ 'Search.TvShows.LatestSeason' | translate }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -19,9 +43,16 @@
|
|||
<mat-expansion-panel>
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>
|
||||
<mat-checkbox *ngIf="!season.seasonAvailable && isSeasonCheckable(season)" (click)="$event.stopPropagation();" (change)="seasonChanged($event, season)">
|
||||
{{ 'MediaDetails.EpisodeSelector.SeasonNumber' | translate: { number: season.seasonNumber } }}</mat-checkbox>
|
||||
<span *ngIf="season.seasonAvailable || !isSeasonCheckable(season)">{{ 'MediaDetails.EpisodeSelector.SeasonNumber' | translate: { number: season.seasonNumber } }}</span>
|
||||
<mat-checkbox
|
||||
*ngIf="!season.seasonAvailable && isSeasonCheckable(season)"
|
||||
(click)="$event.stopPropagation()"
|
||||
(change)="seasonChanged($event, season)"
|
||||
>
|
||||
{{ 'MediaDetails.EpisodeSelector.SeasonNumber' | translate: { number: season.seasonNumber } }}</mat-checkbox
|
||||
>
|
||||
<span *ngIf="season.seasonAvailable || !isSeasonCheckable(season)">{{
|
||||
'MediaDetails.EpisodeSelector.SeasonNumber' | translate: { number: season.seasonNumber }
|
||||
}}</span>
|
||||
</mat-panel-title>
|
||||
<mat-panel-description>
|
||||
<!-- Description -->
|
||||
|
@ -42,7 +73,7 @@
|
|||
{{ ep.title }}
|
||||
</div>
|
||||
<div class="col-2" *ngIf="ep.airDateDisplay != 'Unknown'">
|
||||
{{ep.airDate | amLocal | amUserLocale | amDateFormat: 'L' }}
|
||||
{{ ep.airDate | ombiDate: 'P' }}
|
||||
</div>
|
||||
<div class="col-2" *ngIf="ep.airDateDisplay == 'Unknown'">
|
||||
{{ ep.airDateDisplay }}
|
||||
|
@ -50,25 +81,13 @@
|
|||
<div class="col-3">
|
||||
{{ ep.requestStatus | translate }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</mat-expansion-panel>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div mat-dialog-actions *ngIf="requestable">
|
||||
<div class="action-buttons-right">
|
||||
|
||||
<button (click)="submitRequests()" mat-raised-button class="btn-spacing btn-orange">{{
|
||||
'Common.Request' | translate }}</button>
|
||||
|
||||
|
||||
<button (click)="submitRequests()" mat-raised-button class="btn-spacing btn-orange">{{ 'Common.Request' | translate }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,49 +1,49 @@
|
|||
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
|
||||
import { AdminRequestDialogComponent } from "./admin-request-dialog/admin-request-dialog.component";
|
||||
import { AdvancedSearchDialogComponent } from "./advanced-search-dialog/advanced-search-dialog.component";
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { DetailsGroupComponent } from "../issues/components/details-group/details-group.component";
|
||||
import { EpisodeRequestComponent } from "./episode-request/episode-request.component";
|
||||
import { GenreSelectComponent } from "./components/genre-select/genre-select.component";
|
||||
import { InputSwitchModule } from "primeng/inputswitch";
|
||||
import { IssuesReportComponent } from "./issues-report.component";
|
||||
import { KeywordSearchComponent } from "./components/keyword-search/keyword-search.component";
|
||||
import { MatAutocompleteModule } from "@angular/material/autocomplete";
|
||||
import { AdminRequestDialogComponent } from './admin-request-dialog/admin-request-dialog.component';
|
||||
import { AdvancedSearchDialogComponent } from './advanced-search-dialog/advanced-search-dialog.component';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { DetailsGroupComponent } from '../issues/components/details-group/details-group.component';
|
||||
import { EpisodeRequestComponent } from './episode-request/episode-request.component';
|
||||
import { GenreSelectComponent } from './components/genre-select/genre-select.component';
|
||||
import { InputSwitchModule } from 'primeng/inputswitch';
|
||||
import { IssuesReportComponent } from './issues-report.component';
|
||||
import { KeywordSearchComponent } from './components/keyword-search/keyword-search.component';
|
||||
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCardModule } from "@angular/material/card";
|
||||
import { MatCheckboxModule } from "@angular/material/checkbox";
|
||||
import { MatChipsModule } from "@angular/material/chips";
|
||||
import { MatDialogModule } from "@angular/material/dialog";
|
||||
import { MatExpansionModule } from "@angular/material/expansion";
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||
import { MatChipsModule } from '@angular/material/chips';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
import { MatExpansionModule } from '@angular/material/expansion';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatInputModule } from "@angular/material/input";
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { MatListModule } from '@angular/material/list';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { MatNativeDateModule } from '@angular/material/core';
|
||||
import { MatPaginatorModule } from '@angular/material/paginator';
|
||||
import { MatProgressSpinnerModule } from "@angular/material/progress-spinner";
|
||||
import { MatProgressBarModule } from "@angular/material/progress-bar";
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||
import { MatRadioModule } from '@angular/material/radio';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
import { MatSidenavModule } from '@angular/material/sidenav';
|
||||
import { MatSlideToggleModule } from "@angular/material/slide-toggle";
|
||||
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
||||
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||
import { MatSortModule } from '@angular/material/sort';
|
||||
import { MatStepperModule } from '@angular/material/stepper';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
import { MatTabsModule } from "@angular/material/tabs";
|
||||
import { MatTabsModule } from '@angular/material/tabs';
|
||||
import { MatToolbarModule } from '@angular/material/toolbar';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
import { MatTreeModule } from '@angular/material/tree';
|
||||
import { MomentModule } from "ngx-moment";
|
||||
import { NgModule } from "@angular/core";
|
||||
import { PipeModule } from "../pipes/pipe.module";
|
||||
import { RoleModule } from "./role-directive/role.module";
|
||||
import { SidebarModule } from "primeng/sidebar";
|
||||
import { TranslateModule } from "@ngx-translate/core";
|
||||
import { TruncateModule } from "@yellowspot/ng-truncate";
|
||||
import { WatchProvidersSelectComponent } from "./components/watch-providers-select/watch-providers-select.component";
|
||||
import { NgModule } from '@angular/core';
|
||||
import { PipeModule } from '../pipes/pipe.module';
|
||||
import { RoleModule } from './role-directive/role.module';
|
||||
import { SidebarModule } from 'primeng/sidebar';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { TruncateModule } from '@yellowspot/ng-truncate';
|
||||
import { WatchProvidersSelectComponent } from './components/watch-providers-select/watch-providers-select.component';
|
||||
import { DateFnsModule } from 'ngx-date-fns';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
|
@ -64,7 +64,6 @@ import { WatchProvidersSelectComponent } from "./components/watch-providers-sele
|
|||
CommonModule,
|
||||
InputSwitchModule,
|
||||
TruncateModule,
|
||||
MomentModule,
|
||||
MatCardModule,
|
||||
MatProgressSpinnerModule,
|
||||
MatProgressBarModule,
|
||||
|
@ -113,7 +112,7 @@ import { WatchProvidersSelectComponent } from "./components/watch-providers-sele
|
|||
TruncateModule,
|
||||
InputSwitchModule,
|
||||
MatTreeModule,
|
||||
MomentModule,MatCardModule,
|
||||
MatCardModule,
|
||||
MatInputModule,
|
||||
MatTabsModule,
|
||||
MatChipsModule,
|
||||
|
@ -136,6 +135,7 @@ import { WatchProvidersSelectComponent } from "./components/watch-providers-sele
|
|||
MatSortModule,
|
||||
MatStepperModule,
|
||||
MatSlideToggleModule,
|
||||
DateFnsModule,
|
||||
],
|
||||
})
|
||||
export class SharedModule {}
|
||||
|
|
|
@ -1,28 +1,37 @@
|
|||
<div class="small-middle-container">
|
||||
<div class="buttons">
|
||||
|
||||
|
||||
<a type="button" mat-raised-button color="primary" data-test="adduserbtn" [routerLink]="['/usermanagement/user']">Add User To Ombi</a>
|
||||
|
||||
<button type="button" style="float:right;" mat-raised-button color="primary" (click)="showBulkEdit = !showBulkEdit" [disabled]="this.selection.selected.length <= 0">Bulk Edit</button>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
style="float: right"
|
||||
mat-raised-button
|
||||
color="primary"
|
||||
(click)="showBulkEdit = !showBulkEdit"
|
||||
[disabled]="this.selection.selected.length <= 0"
|
||||
>
|
||||
Bulk Edit
|
||||
</button>
|
||||
</div>
|
||||
<div class="content">
|
||||
<table mat-table *ngIf="dataSource" [dataSource]="dataSource" matSort class="mat-elevation-z8">
|
||||
|
||||
<ng-container matColumnDef="select">
|
||||
<th mat-header-cell *matHeaderCellDef>
|
||||
<mat-checkbox (change)="$event ? masterToggle() : null"
|
||||
<mat-checkbox
|
||||
(change)="$event ? masterToggle() : null"
|
||||
[checked]="selection.hasValue() && isAllSelected()"
|
||||
[indeterminate]="selection.hasValue() && !isAllSelected()"
|
||||
[aria-label]="checkboxLabel()">
|
||||
[aria-label]="checkboxLabel()"
|
||||
>
|
||||
</mat-checkbox>
|
||||
</th>
|
||||
<td mat-cell *matCellDef="let row">
|
||||
<mat-checkbox (click)="$event.stopPropagation()"
|
||||
<mat-checkbox
|
||||
(click)="$event.stopPropagation()"
|
||||
(change)="$event ? selection.toggle(row) : null"
|
||||
[checked]="selection.isSelected(row)"
|
||||
[aria-label]="checkboxLabel(row)">
|
||||
[aria-label]="checkboxLabel(row)"
|
||||
>
|
||||
</mat-checkbox>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
@ -61,13 +70,13 @@
|
|||
<th mat-header-cell *matHeaderCellDef>Next Request Due</th>
|
||||
<td mat-cell *matCellDef="let u">
|
||||
<div *ngIf="u.movieRequestQuota != null && u.movieRequestQuota.remaining != u.movieRequestLimit">
|
||||
{{'UserManagment.MovieDue' | translate: {date: (u.movieRequestQuota.nextRequest | amLocal | amUserLocale | amDateFormat: 'l')} }}
|
||||
{{ 'UserManagment.MovieDue' | translate: { date: (u.movieRequestQuota.nextRequest | ombiDate: 'P') } }}
|
||||
</div>
|
||||
<div *ngIf="u.episodeRequestQuota != null && u.episodeRequestQuota.remaining != u.episodeRequestLimit">
|
||||
{{'UserManagment.TvDue' | translate: {date: (u.episodeRequestQuota.nextRequest | amLocal | amUserLocale | amDateFormat: 'l')} }}
|
||||
{{ 'UserManagment.TvDue' | translate: { date: (u.episodeRequestQuota.nextRequest | ombiDate: 'P') } }}
|
||||
</div>
|
||||
<div *ngIf="u.musicRequestQuota != null && u.musicRequestQuota.remaining != u.musicRequestLimit">
|
||||
{{'UserManagment.MusicDue' | translate: {date: (u.musicRequestQuota.nextRequest | amLocal | amUserLocale | amDateFormat: 'l')} }}
|
||||
{{ 'UserManagment.MusicDue' | translate: { date: (u.musicRequestQuota.nextRequest | ombiDate: 'P') } }}
|
||||
</div>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
@ -75,11 +84,10 @@
|
|||
<th mat-header-cell *matHeaderCellDef mat-sort-header>Last Logged In</th>
|
||||
<td mat-cell *matCellDef="let u">
|
||||
<span *ngIf="u.lastLoggedIn">
|
||||
{{u.lastLoggedIn | amFromUtc | amLocal | amUserLocale | amDateFormat: 'l LT'}}
|
||||
{{ u.lastLoggedIn | ombiDate: 'Ppp' }}
|
||||
</span>
|
||||
<span *ngIf="!u.lastLoggedIn">
|
||||
Not logged in yet!
|
||||
</span> </td>
|
||||
<span *ngIf="!u.lastLoggedIn"> Not logged in yet! </span>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="userType">
|
||||
|
@ -106,25 +114,26 @@
|
|||
<th mat-header-cell *matHeaderCellDef></th>
|
||||
<td mat-cell *matCellDef="let u">
|
||||
<a id="edit{{ u.userName }}" mat-raised-button color="accent" [routerLink]="['/usermanagement/user/' + u.id]">Edit</a>
|
||||
<button *ngIf="!u.hasLoggedIn" mat-raised-button color="accent" (click)="welcomeEmail(u)" [disabled]="!applicationUrl"><i class="far fa-paper-plane"></i> Welcome</button>
|
||||
<button *ngIf="!u.hasLoggedIn" mat-raised-button color="accent" (click)="welcomeEmail(u)" [disabled]="!applicationUrl">
|
||||
<i class="far fa-paper-plane"></i> Welcome
|
||||
</button>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
||||
</table>
|
||||
|
||||
<!-- Table -->
|
||||
|
||||
|
||||
|
||||
<p-sidebar [(visible)]="showBulkEdit" position="right" [modal]="false" [style]="{ width: '40em' }">
|
||||
<div>
|
||||
<div *ngFor="let c of availableClaims">
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<mat-slide-toggle id="create{{ c.value }}" [(ngModel)]="c.enabled" [attr.name]="'create' + c.value">
|
||||
<small>{{c.value | humanize}}</small></mat-slide-toggle>
|
||||
<small>{{ c.value | humanize }}</small></mat-slide-toggle
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -133,8 +142,9 @@
|
|||
<div class="col-6">
|
||||
<mat-form-field appearance="outline" class="full">
|
||||
<mat-label>Movie Request Limit</mat-label>
|
||||
<input matInput id="movieRequestLimit" name="movieRequestLimit" [(ngModel)]="bulkMovieLimit">
|
||||
</mat-form-field></div>
|
||||
<input matInput id="movieRequestLimit" name="movieRequestLimit" [(ngModel)]="bulkMovieLimit" />
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<mat-label>Movie Request Limit Type</mat-label>
|
||||
<mat-select id="movieRequestLimitType" [(value)]="movieRequestLimitType">
|
||||
|
@ -142,12 +152,13 @@
|
|||
{{ RequestLimitType[value] }}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<mat-form-field appearance="outline" class="full">
|
||||
<mat-label>Episode Request Limit</mat-label>
|
||||
<input matInput id="episodeRequestLimit" name="episodeRequestLimit" [(ngModel)]="bulkEpisodeLimit">
|
||||
<input matInput id="episodeRequestLimit" name="episodeRequestLimit" [(ngModel)]="bulkEpisodeLimit" />
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
|
@ -163,7 +174,7 @@
|
|||
<div class="col-6">
|
||||
<mat-form-field appearance="outline" class="full">
|
||||
<mat-label>Music Request Limit</mat-label>
|
||||
<input matInput id="musicRequestLimit" name="musicRequestLimit" [(ngModel)]="bulkMusicLimit">
|
||||
<input matInput id="musicRequestLimit" name="musicRequestLimit" [(ngModel)]="bulkMusicLimit" />
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
|
@ -184,7 +195,6 @@
|
|||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
|
||||
<button type="button" mat-raised-button color="primary" (click)="bulkUpdate()">Update Users</button>
|
||||
</p-sidebar>
|
||||
</div>
|
||||
|
|
|
@ -1,24 +1,23 @@
|
|||
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
||||
import { IdentityService, PlexService, RadarrService, SonarrService } from "../services";
|
||||
import { RouterModule, Routes } from "@angular/router";
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { IdentityService, PlexService, RadarrService, SonarrService } from '../services';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
|
||||
import { AuthGuard } from "../auth/auth.guard";
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { ConfirmDialogModule } from "primeng/confirmdialog";
|
||||
import { MultiSelectModule } from "primeng/multiselect";
|
||||
import { NgModule } from "@angular/core";
|
||||
import { OrderModule } from "ngx-order-pipe";
|
||||
import { PipeModule } from "../pipes/pipe.module";
|
||||
import { SharedModule } from "../shared/shared.module";
|
||||
import { SidebarModule } from "primeng/sidebar";
|
||||
import { TooltipModule } from "primeng/tooltip";
|
||||
import { UserManagementComponent } from "./usermanagement.component";
|
||||
import { UserManagementUserComponent } from "./usermanagement-user.component";
|
||||
import { AuthGuard } from '../auth/auth.guard';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { ConfirmDialogModule } from 'primeng/confirmdialog';
|
||||
import { MultiSelectModule } from 'primeng/multiselect';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { PipeModule } from '../pipes/pipe.module';
|
||||
import { SharedModule } from '../shared/shared.module';
|
||||
import { SidebarModule } from 'primeng/sidebar';
|
||||
import { TooltipModule } from 'primeng/tooltip';
|
||||
import { UserManagementComponent } from './usermanagement.component';
|
||||
import { UserManagementUserComponent } from './usermanagement-user.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: "", component: UserManagementComponent, canActivate: [AuthGuard] },
|
||||
{ path: "user", component: UserManagementUserComponent, canActivate: [AuthGuard] },
|
||||
{ path: "user/:id", component: UserManagementUserComponent, canActivate: [AuthGuard] },
|
||||
{ path: '', component: UserManagementComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'user', component: UserManagementUserComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'user/:id', component: UserManagementUserComponent, canActivate: [AuthGuard] },
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
@ -31,23 +30,11 @@ const routes: Routes = [
|
|||
PipeModule,
|
||||
ConfirmDialogModule,
|
||||
TooltipModule,
|
||||
OrderModule,
|
||||
SidebarModule,
|
||||
SharedModule,
|
||||
],
|
||||
declarations: [
|
||||
UserManagementComponent,
|
||||
UserManagementUserComponent,
|
||||
],
|
||||
exports: [
|
||||
RouterModule,
|
||||
],
|
||||
providers: [
|
||||
IdentityService,
|
||||
PlexService,
|
||||
RadarrService,
|
||||
SonarrService,
|
||||
],
|
||||
|
||||
declarations: [UserManagementComponent, UserManagementUserComponent],
|
||||
exports: [RouterModule],
|
||||
providers: [IdentityService, PlexService, RadarrService, SonarrService],
|
||||
})
|
||||
export class UserManagementModule {}
|
||||
|
|
|
@ -1,39 +1,23 @@
|
|||
import { NgModule } from "@angular/core";
|
||||
import { RouterModule, Routes } from "@angular/router";
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
|
||||
import { OrderModule } from "ngx-order-pipe";
|
||||
import { OverlayPanelModule } from "primeng/overlaypanel";
|
||||
import { TabViewModule } from "primeng/tabview";
|
||||
import { OverlayPanelModule } from 'primeng/overlaypanel';
|
||||
import { TabViewModule } from 'primeng/tabview';
|
||||
|
||||
import { VoteService } from "../services";
|
||||
import { VoteService } from '../services';
|
||||
|
||||
import { AuthGuard } from "../auth/auth.guard";
|
||||
import { AuthGuard } from '../auth/auth.guard';
|
||||
|
||||
import { SharedModule as OmbiShared } from "../shared/shared.module";
|
||||
import { SharedModule as OmbiShared } from '../shared/shared.module';
|
||||
|
||||
import { VoteComponent } from "./vote.component";
|
||||
import { VoteComponent } from './vote.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: "", component: VoteComponent, canActivate: [AuthGuard] },
|
||||
];
|
||||
const routes: Routes = [{ path: '', component: VoteComponent, canActivate: [AuthGuard] }];
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild(routes),
|
||||
OrderModule,
|
||||
OmbiShared,
|
||||
TabViewModule,
|
||||
OverlayPanelModule,
|
||||
],
|
||||
declarations: [
|
||||
VoteComponent,
|
||||
],
|
||||
exports: [
|
||||
RouterModule,
|
||||
],
|
||||
providers: [
|
||||
VoteService,
|
||||
],
|
||||
|
||||
imports: [RouterModule.forChild(routes), OmbiShared, TabViewModule, OverlayPanelModule],
|
||||
declarations: [VoteComponent],
|
||||
exports: [RouterModule],
|
||||
providers: [VoteService],
|
||||
})
|
||||
export class VoteModule {}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/***************************************************************************************************
|
||||
* Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
|
||||
*/
|
||||
import "core-js/es7/reflect";
|
||||
import "zone.js/dist/zone";
|
||||
import 'core-js/es7/reflect';
|
||||
|
|
|
@ -16,7 +16,10 @@
|
|||
"resolveJsonModule": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"typeRoots": [
|
||||
"node_modules/@types"
|
||||
"node_modules/@types",
|
||||
"./node_modules/@types",
|
||||
"../node_modules/@types",
|
||||
"../../node_modules/@types"
|
||||
],
|
||||
"lib": [
|
||||
"es2017",
|
||||
|
|
|
@ -14,16 +14,21 @@
|
|||
"declaration": false,
|
||||
"downlevelIteration": true,
|
||||
"experimentalDecorators": true,
|
||||
"moduleResolution": "node",
|
||||
"importHelpers": true,
|
||||
"useDefineForClassFields": false,
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"lib": [
|
||||
"ES2022",
|
||||
"dom"
|
||||
"dom",
|
||||
"ESNext.Intl",
|
||||
"ES2022.Intl"
|
||||
]
|
||||
},
|
||||
"types": [
|
||||
"node"
|
||||
],
|
||||
"typeRoots": [ "./node_modules/@types", "../node_modules/@types", "../../node_modules/@types" ],
|
||||
"angularCompilerOptions": {
|
||||
"enableI18nLegacyMessageIdFormat": false,
|
||||
"strictInjectionParameters": true,
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -4,6 +4,7 @@ using Microsoft.AspNetCore.Authorization;
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using Ombi.Api.Radarr;
|
||||
using Ombi.Api.Radarr.Models;
|
||||
using Ombi.Api.Radarr.Models.V3;
|
||||
using Ombi.Attributes;
|
||||
using Ombi.Core.Settings;
|
||||
using Ombi.Helpers;
|
||||
|
@ -77,7 +78,7 @@ namespace Ombi.Controllers.V1.External
|
|||
{
|
||||
return Ok(await _radarrV3Api.GetProfiles(settings.ApiKey, settings.FullUri));
|
||||
}
|
||||
return null;
|
||||
return Ok(new List<RadarrV3QualityProfile>());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -94,7 +95,7 @@ namespace Ombi.Controllers.V1.External
|
|||
{
|
||||
return Ok(await _radarrV3Api.GetProfiles(settings.ApiKey, settings.FullUri));
|
||||
}
|
||||
return null;
|
||||
return Ok(new List<RadarrV3QualityProfile>());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
<PackageReference Include="AutoMapper" Version="12.0.0" />
|
||||
<PackageReference Include="CommandLineParser" Version="2.9.1" />
|
||||
<PackageReference Include="LazyCache.AspNetCore" Version="2.4.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.9" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.26" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.9">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
|
|
25
src/Ombi/Ombi.sln
Normal file
25
src/Ombi/Ombi.sln
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.5.002.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ombi", "Ombi.csproj", "{41251D1C-AAFD-4B5B-9510-BB50B9C223EA}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{41251D1C-AAFD-4B5B-9510-BB50B9C223EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{41251D1C-AAFD-4B5B-9510-BB50B9C223EA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{41251D1C-AAFD-4B5B-9510-BB50B9C223EA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{41251D1C-AAFD-4B5B-9510-BB50B9C223EA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {291EBBD3-9266-41E3-9E52-A50070394075}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -22,13 +22,13 @@
|
|||
"Monitored": "Monitorado",
|
||||
"NotAvailable": "Não Disponível",
|
||||
"ProcessingRequest": "Processando Solicitação",
|
||||
"ProcessingRequest4K": "Processing Request 4K",
|
||||
"ProcessingRequest4K": "Processando Pedido 4K",
|
||||
"PendingApproval": "Aprovação Pendente",
|
||||
"PendingApproval4K": "Pending Approval 4K",
|
||||
"PendingApproval4K": "Aprovação 4K pendente",
|
||||
"RequestDenied": "Solicitação Negada",
|
||||
"RequestDenied4K": "Request Denied 4K",
|
||||
"RequestDenied4K": "Solicitação 4K Negada",
|
||||
"NotRequested": "Não Solicitado",
|
||||
"NotRequested4K": "Not Requested 4K",
|
||||
"NotRequested4K": "Não Solicitado 4K",
|
||||
"Requested": "Solicitado",
|
||||
"Requested4K": "4K requisitado",
|
||||
"Search": "Buscar",
|
||||
|
@ -159,7 +159,7 @@
|
|||
"RequestedBy": "Solicitado por",
|
||||
"Status": "Status",
|
||||
"RequestStatus": "Status da solicitação",
|
||||
"Watched": "Watched",
|
||||
"Watched": "Assistido",
|
||||
"WatchedTooltip": "The user who made the request has watched it",
|
||||
"WatchedProgressTooltip": "Shows how much the user who made the request has watched it",
|
||||
"WatchedByUsersCount": "{{count}} users have watched this.",
|
||||
|
|
|
@ -1,152 +1,151 @@
|
|||
import { movieDetailsPage as Page } from "@/integration/page-objects";
|
||||
import { movieDetailsPage as Page } from '@/integration/page-objects';
|
||||
|
||||
describe("Movie Details Buttons", () => {
|
||||
it("Movie Requested by Admin should be auto approved", () => {
|
||||
describe('Movie Details Buttons', () => {
|
||||
it('Movie Requested by Admin should be auto approved', () => {
|
||||
cy.login();
|
||||
|
||||
Page.visit("587807");
|
||||
Page.visit('587807');
|
||||
Page.requestButton.click();
|
||||
Page.adminOptionsDialog.isOpen();
|
||||
|
||||
Page.adminOptionsDialog.requestButton.click();
|
||||
|
||||
cy.verifyNotification("Request for Tom & Jerry has been added successfully");
|
||||
cy.verifyNotification('Request for Tom & Jerry has been added successfully');
|
||||
|
||||
Page.requestedButton.should("be.visible");
|
||||
Page.requestedButton.should('be.visible');
|
||||
});
|
||||
|
||||
it("Movie Requested by Regular user should be pending", () => {
|
||||
it('Movie Requested by Regular user should be pending', () => {
|
||||
cy.generateUniqueId().then((id) => {
|
||||
cy.login();
|
||||
const roles = [];
|
||||
roles.push({ value: "RequestMovie", enabled: true });
|
||||
cy.createUser(id, "a", roles).then(() => {
|
||||
cy.loginWithCreds(id, "a");
|
||||
roles.push({ value: 'RequestMovie', enabled: true });
|
||||
cy.createUser(id, 'a', roles).then(() => {
|
||||
cy.loginWithCreds(id, 'a');
|
||||
|
||||
Page.visit("651571");
|
||||
Page.visit('651571');
|
||||
|
||||
Page.requestButton.click();
|
||||
cy.verifyNotification("Request for Breach has been added successfully");
|
||||
cy.verifyNotification('Request for Breach has been added successfully');
|
||||
|
||||
Page.requestedButton.should("be.visible");
|
||||
Page.requestedButton.should('be.visible');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
it("Movie Requested by Regular with no movie permission", () => {
|
||||
it('Movie Requested by Regular with no movie permission', () => {
|
||||
cy.generateUniqueId().then((id) => {
|
||||
cy.login();
|
||||
const roles = [];
|
||||
roles.push({ value: "RequestTv", enabled: true });
|
||||
cy.createUser(id, "a", roles).then(() => {
|
||||
cy.loginWithCreds(id, "a");
|
||||
roles.push({ value: 'RequestTv', enabled: true });
|
||||
cy.createUser(id, 'a', roles).then(() => {
|
||||
cy.loginWithCreds(id, 'a');
|
||||
|
||||
Page.visit("791373");
|
||||
Page.visit('791373');
|
||||
|
||||
Page.requestButton.click();
|
||||
cy.verifyNotification("You do not have permissions to Request a Movie");
|
||||
cy.verifyNotification('You do not have permissions to Request a Movie');
|
||||
|
||||
Page.requestedButton.should("not.exist");
|
||||
Page.requestedButton.should('not.exist');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
it("Movie Requested by Regular can be approved by admin", () => {
|
||||
it('Movie Requested by Regular can be approved by admin', () => {
|
||||
cy.generateUniqueId().then((id) => {
|
||||
cy.login();
|
||||
const roles = [];
|
||||
roles.push({ value: "RequestMovie", enabled: true });
|
||||
cy.createUser(id, "a", roles).then(() => {
|
||||
cy.loginWithCreds(id, "a");
|
||||
roles.push({ value: 'RequestMovie', enabled: true });
|
||||
cy.createUser(id, 'a', roles).then(() => {
|
||||
cy.loginWithCreds(id, 'a');
|
||||
|
||||
Page.visit("793723");
|
||||
Page.visit('793723');
|
||||
|
||||
Page.requestButton.click();
|
||||
cy.verifyNotification("Request for Sentinelle has been added successfully");
|
||||
cy.verifyNotification('Request for Sentinelle has been added successfully');
|
||||
|
||||
Page.requestedButton.should("be.visible");
|
||||
Page.requestedButton.should('be.visible');
|
||||
|
||||
// Login as admin now
|
||||
cy.removeLogin();
|
||||
cy.login();
|
||||
cy.reload();
|
||||
|
||||
Page.visit("793723");
|
||||
cy.intercept('GET', '**/Request/movie/info/**').as('requestCall');
|
||||
|
||||
Page.approveButton.should("exist");
|
||||
Page.visit('793723');
|
||||
|
||||
cy.wait('@requestCall').then((__) => {
|
||||
Page.approveButton.should('exist');
|
||||
Page.approveButton.click();
|
||||
|
||||
cy.verifyNotification("Successfully Approved");
|
||||
cy.verifyNotification('Successfully Approved');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
it("Movie Requested, mark as available", () => {
|
||||
it('Movie Requested, mark as available', () => {
|
||||
cy.login();
|
||||
|
||||
Page.visit("12444");
|
||||
Page.visit('12444');
|
||||
|
||||
Page.requestButton.click();
|
||||
Page.adminOptionsDialog.isOpen();
|
||||
Page.adminOptionsDialog.requestButton.click();
|
||||
cy.verifyNotification(
|
||||
"Request for Harry Potter and the Deathly Hallows: Part 1 has been added successfully"
|
||||
);
|
||||
cy.verifyNotification('Request for Harry Potter and the Deathly Hallows: Part 1 has been added successfully');
|
||||
|
||||
cy.intercept('GET', '**/Images/banner/movie/**').as('bannerLoad');
|
||||
cy.reload();
|
||||
|
||||
Page.markAvailableButton.should("exist");
|
||||
cy.wait('@bannerLoad').then((__) => {
|
||||
Page.markAvailableButton.should('exist');
|
||||
Page.markAvailableButton.click();
|
||||
|
||||
cy.waitUntil(() => {
|
||||
return Page.availableButton.should("be.visible");
|
||||
})
|
||||
|
||||
cy.verifyNotification("Request is now available");
|
||||
Page.availableButton.should("exist");
|
||||
cy.verifyNotification('Request is now available');
|
||||
Page.availableButton.should('exist');
|
||||
});
|
||||
});
|
||||
|
||||
it.skip("Movie Requested, Deny Movie", () => {
|
||||
it.skip('Movie Requested, Deny Movie', () => {
|
||||
cy.login();
|
||||
|
||||
Page.visit("671");
|
||||
Page.visit('671');
|
||||
|
||||
Page.requestButton.click();
|
||||
Page.adminOptionsDialog.isOpen();
|
||||
Page.adminOptionsDialog.requestButton.click();
|
||||
cy.verifyNotification(
|
||||
"Request for Harry Potter and the Philosopher's Stone has been added successfully"
|
||||
);
|
||||
cy.verifyNotification("Request for Harry Potter and the Philosopher's Stone has been added successfully");
|
||||
|
||||
cy.reload();
|
||||
|
||||
Page.denyButton.should("exist");
|
||||
Page.denyButton.should('exist');
|
||||
Page.denyButton.click();
|
||||
|
||||
Page.denyModal.denyReason.type("Automation Tests");
|
||||
Page.denyModal.denyReason.type('Automation Tests');
|
||||
cy.wait(500);
|
||||
Page.denyModal.denyButton.click();
|
||||
|
||||
Page.deniedButton.should('exist');
|
||||
|
||||
cy.verifyNotification("Denied Request");
|
||||
cy.verifyNotification('Denied Request');
|
||||
|
||||
cy.wait(1000);
|
||||
Page.informationPanel.denyReason.should('have.text', "Automation Tests");
|
||||
Page.informationPanel.denyReason.should('have.text', 'Automation Tests');
|
||||
});
|
||||
|
||||
it("Movie View Collection should be available", () => {
|
||||
it('Movie View Collection should be available', () => {
|
||||
cy.login();
|
||||
|
||||
Page.visit("671");
|
||||
Page.visit('671');
|
||||
|
||||
Page.viewCollectionButton.should('be.visible');
|
||||
});
|
||||
|
||||
it("Non requested movie valid buttons", () => {
|
||||
it('Non requested movie valid buttons', () => {
|
||||
cy.login();
|
||||
|
||||
Page.visit("590706");
|
||||
Page.visit('590706');
|
||||
|
||||
Page.viewCollectionButton.should('not.exist');
|
||||
Page.approveButton.should('not.exist');
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"version": "4.43.10"
|
||||
"version": "4.43.14"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue