Compare commits

...
Author SHA1 Message Date
Prayag Prajapati 13514e99a6 Add build.yml for cross compiling 2023-02-14 10:49:10 +05:30
Prayag Prajapati 860ac47921 Start adding tauri_store for data storage 2023-02-14 10:22:46 +05:30
Prayag Prajapati 9c0c6d3379 Add SocialMediaBanner.png 2023-02-10 16:35:31 +05:30
Prayag Prajapati 022b247d59 Start moving to @mdi/js for Icons 2023-02-10 16:15:36 +05:30
Prayag Prajapati e84444bf0e Add .vscode/settings.json 2023-02-09 23:09:10 +05:30
Prayag Prajapati dc65938f8c Remove unwanted assets 2023-01-28 18:48:29 +05:30
Prayag Prajapati 5ff4134323 Update README.md 2023-01-28 18:44:40 +05:30
Prayag Prajapati df8826f6cd Update package.json 2023-01-28 18:41:05 +05:30
Prayag Prajapati 397419cf39 Update README.md 2023-01-28 18:39:51 +05:30
Prayag Prajapati 30d880aaf9 Update README.md 2023-01-28 15:46:58 +05:30
Prayag Prajapati 6fb9e2ce60 Update README.md 2023-01-28 15:19:49 +05:30
Prayag Prajapati be915011be Update 2023-01-28 14:59:56 +05:30
Prayag Prajapati 8d3c30f4d0 Move to Tauri and rust 2023-01-19 22:10:04 +05:30
Prayag Prajapati 7a50c0f167 [react[ add portrait cards 2023-01-12 16:15:53 +05:30
Prayag Prajapati a19b63e319 [react] start adding cards and sections to home 2023-01-11 18:36:29 +05:30
Prayag Prajapati eb9b14e2c5 [react] start adding cards and card slider 2023-01-10 15:40:42 +05:30
Prayag Prajapati 740788ef32 [react] Theme Login with Image page 2023-01-04 14:43:25 +05:30
Prayag Prajapati 725e579576 [react] Add back button to login routes 2023-01-03 22:43:22 +05:30
Prayag Prajapati 8f0fbd0c19 [react] Add manual login page and remove password console.log 2023-01-03 20:47:25 +05:30
Prayag Prajapati 36a6b115ac [react] Misc Update 2023-01-01 19:18:36 +05:30
Prayag Prajapati 698c559e98 [react] Add latestMedia carousel 2022-12-17 19:09:42 +05:30
Prayag Prajapati f6ccab0907 [react] Add side menu 2022-12-16 20:52:07 +05:30
Prayag Prajapati 4614e5fe25 [react] Fix user auth 2022-12-15 16:52:39 +05:30
Prayag Prajapati a06d63d099 [react]: allow users to login 2022-12-01 18:16:02 +05:30
Prayag Prajapati 36786a0d4a link react with webengine 2022-11-28 18:56:39 +05:30
Prayag Prajapati d4af12ad9e [react]: Add login routes for users 2022-11-28 18:56:27 +05:30
Prayag Prajapati b96b11e513 [react] update client 2022-11-25 22:28:37 +05:30
Prayag Prajapati b9cb0e200b [jp-react] UI update and more 2022-11-24 22:42:25 +05:30
Prayag Prajapati 25981f6d00 Fix Lic in jellyplayer-react 2022-11-23 18:51:02 +05:30
Prayag Prajapati f1560c8f52 update jellyplayer-react 2022-11-23 18:48:14 +05:30
Prayag Prajapati fc932de731 Add jellyplayer-react 2022-11-23 18:45:30 +05:30
Prayag Prajapati 29f1e2ba1a Add new frontend 2022-11-23 18:43:06 +05:30
Prayag Prajapati fe67056bd1 Add note regarding project status 2022-07-15 20:36:05 +05:30
Prayag Prajapati 488f3ed163 Update README.md 2022-07-04 16:26:57 +05:30
prayag17 29f697ff08 fix submodule 2022-06-25 13:40:55 +05:30
Prayag b3ac79cde7 update jf-vue 2022-06-10 13:07:34 +05:30
Prayag 15826b0615 start work on mpv 2022-06-10 13:06:54 +05:30
Prayag Prajapati 464be525f1 Add roadmap to Alpha 1 2022-05-18 20:14:26 +05:30
Prayag c2317b63f9 fix jjv 2022-05-15 15:55:23 +05:30
Prayag d8f340ad03 fix jjv 2022-05-15 15:53:41 +05:30
Prayag 1a5fdbf2a1 remove qml 2022-05-14 16:18:08 +05:30
Prayag cdd2c01c2a update submodule 2022-04-29 15:00:58 +05:30
Prayag 68714eef0a update 2022-04-29 14:58:08 +05:30
Prayag 5e745773a8 more update 2022-04-29 14:57:34 +05:30
Prayag 3c73d58513 Move to poetry manager 2022-04-29 14:57:22 +05:30
Prayag f5348e430b Update 2022-04-28 09:06:17 +05:30
Prayag 35ad0f39b4 Update Icons 2022-04-27 20:03:35 +05:30
Prayag d2681cdb23 Remove previous UI 2022-04-27 19:57:34 +05:30
Prayag b03993ca01 Fix server.py 2022-04-27 19:44:24 +05:30
Prayag f32dfe04cb Update 2022-04-27 19:43:05 +05:30
Prayag cbe87e0c05 Move to Jellyfin-vue 2022-04-27 19:30:33 +05:30
Prayag Prajapati af646276d5 Move to GPL license 2022-04-22 19:47:12 +05:30
Prayag 2cfba7d097 More update 2022-04-20 09:39:23 +05:30
Prayag 767c594170 add media cards slider 2022-04-19 19:51:12 +05:30
102 changed files with 8737 additions and 122622 deletions

No files matched your search

+56
View File
@@ -0,0 +1,56 @@
# @format
name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
release:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
- name: Sync node version and setup cache
uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "yarn" # Set this to npm, yarn or pnpm.
- name: Install app dependencies and build web
# Remove `&& yarn build` if you build your frontend in `beforeBuildCommand`
run: yarn && yarn build # Change this to npm, yarn or pnpm.
- name: Build the app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags.
releaseName: "App Name v__VERSION__" # tauri-action replaces \_\_VERSION\_\_ with the app version.
releaseBody: "See the assets to download and install this version."
releaseDraft: true
prerelease: false
-25
View File
@@ -1,25 +0,0 @@
name: Build_Linux
on:
push:
branches: [ build ]
pull_request:
branches: [ build ]
jobs:
build:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install -r requirements.txt pyinstaller
- run: pyinstaller -y --distpath dist/linux main_linux.spec
- uses: actions/upload-artifact@v3
with:
name: JellyPlayer_Linux
path: |
dist/*
-25
View File
@@ -1,25 +0,0 @@
name: Build_Mac
on:
push:
branches: [ build ]
pull_request:
branches: [ build ]
jobs:
build:
runs-on: 'macos-latest'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install -r requirements.txt pyinstaller
- run: pyinstaller -y --distpath dist/mac main_macos.spec
- uses: actions/upload-artifact@v3
with:
name: JellyPlayer_MacOS
path: |
dist/*
-26
View File
@@ -1,26 +0,0 @@
name: Build_Win
on:
push:
branches: [ build ]
pull_request:
branches: [ build ]
jobs:
build:
runs-on: 'windows-latest'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install -r requirements.txt pyinstaller
- run: pyinstaller -y --distpath dist/win main_win.spec
- uses: actions/upload-artifact@v3
with:
name: JellyPlayer_Win
path: |
dist/*
+40 -3
View File
@@ -1,3 +1,40 @@
dist *dist
build *build
__pycache__ __pycache__
*.mkv
*.mp4
*mpv*
sh-agent*
.pytest_cache
### react ###
.DS_*
*.log
logs
**/*.backup.*
**/*.back.*
node_modules
bower_components
*.sublime*
psd
thumb
sketch
### Rust ###
# Generated by Cargo
# will have compiled files and executables
debug/
target/
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
+33
View File
@@ -0,0 +1,33 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Tauri Development Debug",
"cargo": {
"args": [
"build",
"--manifest-path=./src-tauri/Cargo.toml",
"--no-default-features"
]
},
// task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json`
"preLaunchTask": "ui:dev"
},
{
"type": "lldb",
"request": "launch",
"name": "Tauri Production Debug",
"cargo": {
"args": [
"build",
"--release",
"--manifest-path=./src-tauri/Cargo.toml"
]
},
// task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json`
"preLaunchTask": "ui:build"
}
]
}
+3
View File
@@ -0,0 +1,3 @@
{
"nuxt.isNuxtApp": false
}
+29
View File
@@ -0,0 +1,29 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "ui:dev",
"type": "shell",
// `dev` keeps running in the background
// ideally you should also configure a `problemMatcher`
// see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson
"isBackground": true,
// change this to your `beforeDevCommand`:
"command": "yarn",
"args": [
"dev"
]
},
{
"label": "ui:build",
"type": "shell",
// change this to your `beforeBuildCommand`:
"command": "yarn",
"args": [
"build"
]
}
]
}
+670 -17
View File
@@ -1,21 +1,674 @@
MIT License GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (c) 2022 Prayag Prajapati Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Permission is hereby granted, free of charge, to any person obtaining a copy Preamble
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all The GNU General Public License is a free, copyleft license for
copies or substantial portions of the Software. software and other kinds of works.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR The licenses for most software and other practical works are designed
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, to take away your freedom to share and change the works. By contrast,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE the GNU General Public License is intended to guarantee your freedom to
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER share and change all versions of a program--to make sure it remains free
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, software for all its users. We, the Free Software Foundation, use the
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE GNU General Public License for most of our software; it applies also to
SOFTWARE. any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
+22 -31
View File
@@ -1,35 +1,26 @@
# JellyPlayer ![Banner](https://user-images.githubusercontent.com/55829513/215268063-c7e114c2-0200-42e9-9e38-6dc765fcf6cc.png)
## Modern Jellyfin Client # :memo: Prerequisites:
- Nodejs (≥19.1.0)
- Rust (≥1.66.1)
## Installation # :warning: Getting started:
- Install Nodejs and Rust.
- Install Requirements: - install depencies using npm:
- Install Python 3 ```shell
- Install dependencies npm install
```console
pip3 install -r requirements.txt --default-timeout=1000
```
- Run App:
- Complie Renderer Files(html,js,css):
```console
pyside6-rcc main.qrc -o renderer.py
```
- Run JellyPlayer:
```console
python main.py
```
- Build EXE:
```console
pyinstaller --clean main.spec
``` ```
The .exe file will generate at dist/JellyPlayer # :information_source: Development:
- Running the app:
```shell
npm run tauri dev
```
- Building the app:
```shell
npm run tauri build
```
- other commands can be found inside the `"scripts"` inside [package.json](https://github.com/prayag17/JellyPlayer/blob/main/package.json)
# :sos: Help Wanted:
- Home sections containing latest media.
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 289 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 KiB

BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 336 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 505 KiB

-26
View File
@@ -1,26 +0,0 @@
<svg width="1095" height="1204" viewBox="0 0 1095 1204" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g filter="url(#filter0_d_33_14)">
<path d="M242.816 118.084C185.959 85.0539 108 122.787 108 194.205V598L590.681 319.981L242.816 118.084Z" fill="url(#pattern0)" shape-rendering="crispEdges"/>
<path d="M970.839 554.005C963.091 540.638 951.951 529.555 938.546 521.878L590.681 319.981L108 598V1001.79C108 1073.21 185.959 1110.95 242.816 1077.92L938.546 674.122C951.951 666.445 963.091 655.362 970.839 641.995C978.586 628.628 982.667 613.451 982.667 598C982.667 582.549 978.586 567.372 970.839 554.005Z" fill="url(#pattern1)" shape-rendering="crispEdges"/>
<path d="M108 598V1001.79C108 1073.21 185.959 1110.95 242.816 1077.92L938.546 674.122C951.951 666.445 963.091 655.362 970.839 641.995C978.586 628.628 982.667 613.451 982.667 598C982.667 582.549 978.586 567.372 970.839 554.005C963.091 540.638 951.951 529.555 938.546 521.878L590.681 319.981M108 598V194.205C108 122.787 185.959 85.0539 242.816 118.084L590.681 319.981M108 598L590.681 319.981" stroke="white" stroke-width="40" shape-rendering="crispEdges"/>
</g>
<defs>
<filter id="filter0_d_33_14" x="0" y="0.0953369" width="1094.67" height="1203.81" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="2" dy="4"/>
<feGaussianBlur stdDeviation="45"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_33_14"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_33_14" result="shape"/>
</filter>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_33_14" transform="translate(-0.0625001) scale(0.000439453)"/>
</pattern>
<pattern id="pattern1" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_33_14" transform="translate(-0.0625001) scale(0.000439453)"/>
</pattern>
<image id="image0_33_14" width="2560" height="2560" xlink:href="data:image/png;base64,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 truncated
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 1.2 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

-49
View File
@@ -1,49 +0,0 @@
<svg width="1536" height="140" viewBox="0 0 1536 140" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_103_17" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="1536" height="140">
<path d="M53.5075 139.735C44.3971 139.735 35.9283 137.682 28.101 133.576C20.2738 129.342 13.858 123.568 8.85375 116.254C3.84946 108.94 0.898207 100.856 0 92.0021H7.1215C8.0197 99.5727 10.6502 106.502 15.0129 112.789C19.3756 118.948 24.8932 123.824 31.5656 127.417C38.3663 130.882 45.6802 132.614 53.5075 132.614C62.1046 132.614 69.996 130.497 77.1816 126.262C84.3673 122.028 90.0773 116.19 94.3117 108.747C98.5461 101.305 100.663 92.9644 100.663 83.7257V10.0086H40.6118V2.88709H107.592V83.7257C107.592 94.2476 105.154 103.807 100.278 112.404C95.5307 120.873 88.9866 127.545 80.6461 132.421C72.434 137.297 63.3877 139.735 53.5075 139.735Z" fill="white"/>
<path d="M152.099 2.88709H246.41V10.0086H159.22V64.286H235.055V71.4075H159.22V129.727H246.41V136.848H152.099V2.88709Z" fill="white"/>
<path d="M299.386 136.848V2.88709H306.507V129.727H399.856V136.848H299.386Z" fill="white"/>
<path d="M441.861 136.848V2.88709H448.982V129.727H542.332V136.848H441.861Z" fill="white"/>
<path d="M578.369 2.88709L625.91 74.487L673.066 2.88709H681.535L629.374 81.9935V136.848H622.253V81.9935L569.9 2.88709H578.369Z" fill="white"/>
<path d="M730.853 136.848H723.731V2.88709H777.624C786.606 2.88709 794.882 4.81182 802.453 8.66128C810.152 12.5107 816.247 17.9641 820.738 25.0215C825.229 32.0788 827.474 40.2268 827.474 49.4655C827.474 58.3193 825.164 66.4673 820.545 73.9096C816.054 81.3519 809.895 87.0619 802.068 91.0397C795.267 94.5042 787.119 96.2365 777.624 96.2365H730.853V136.848ZM730.853 89.115H777.624C785.836 89.115 792.572 87.8318 797.833 85.2655C804.634 82.0576 810.087 77.2458 814.193 70.83C818.3 64.4143 820.353 57.2928 820.353 49.4655C820.353 41.7666 818.3 34.7093 814.193 28.2935C810.087 21.8778 804.57 17.0659 797.641 13.858C792.38 11.2917 785.708 10.0086 777.624 10.0086H730.853V89.115Z" fill="white"/>
<path d="M869.286 136.848V2.88709H876.407V129.727H969.757V136.848H869.286Z" fill="white"/>
<path d="M1148.27 2.88709L1195.81 74.487L1242.97 2.88709H1251.43L1199.27 81.9935V136.848H1192.15V81.9935L1139.8 2.88709H1148.27Z" fill="white"/>
<path d="M1291.9 2.88709H1386.21V10.0086H1299.02V64.286H1374.86V71.4075H1299.02V129.727H1386.21V136.848H1291.9V2.88709Z" fill="white"/>
<path d="M1116.27 136.848H990.011L1053.14 0L1116.27 136.848Z" fill="white"/>
<path d="M1485.19 2.88709H1433.03L1500.5 90.5C1509.87 87.9337 1519.06 81.5444 1525.22 73.7171C1531.38 65.7616 1534.46 56.7795 1534.46 46.7709C1534.46 38.687 1532.54 31.3089 1528.69 24.6365C1524.84 17.9641 1519.45 12.7032 1512.52 8.85375C1505.46 4.87598 1496.35 2.88709 1485.19 2.88709Z" fill="white"/>
<path d="M1433.03 136.848H1536L1500.5 90.5H1433.03V136.848Z" fill="white"/>
</mask>
<style>
path {
stroke-linecap: square;
}
</style>
<g mask="url(#mask0_103_17)">
<path d="M1485.19 2.88708H1433.03L1500.5 90.5C1509.87 87.9337 1519.06 81.5444 1525.22 73.7171C1531.38 65.7616 1534.46 56.7795 1534.46 46.7709C1534.46 38.687 1532.54 31.3089 1528.69 24.6365C1524.84 17.9641 1519.45 12.7032 1512.52 8.85375C1505.46 4.87597 1496.35 2.88708 1485.19 2.88708Z" fill="url(#paint0_linear_103_17)"/>
<path d="M1433.03 136.848H1536L1500.5 90.5H1433.03V136.848Z" fill="url(#paint1_linear_103_17)"/>
<path d="M1386.21 6.44785H1295.46V67.8467M1295.46 67.8467H1374.85M1295.46 67.8467V133.287H1386.21" stroke="white" stroke-width="8"/>
<path d="M1144.03 2.88708L1195.81 81.9935M1195.81 81.9935L1247.2 2.88708M1195.81 81.9935L1195.71 136.848" stroke="white" stroke-width="8"/>
<path d="M1116.27 136.848H990.011L1053.14 0L1116.27 136.848Z" fill="url(#paint2_linear_103_17)"/>
<path d="M872.847 2.88708V133.287H969.757" stroke="white" stroke-width="8"/>
<path d="M727.292 92.6757H777.624C785.836 92.6757 794.69 90.7189 799.95 88.1526C806.751 84.9447 813.263 78.7856 817.369 72.3698C821.475 65.9541 823.913 57.2928 823.913 49.4655C823.913 41.7666 821.572 33.0733 817.465 26.6575C813.359 20.2417 806.976 14.4676 800.047 11.2597C794.786 8.69337 785.707 6.44785 777.624 6.44785H727.292V92.6757ZM727.292 92.6757V136.848" stroke="white" stroke-width="8"/>
<path d="M574.135 2.88708L625.91 81.9935M625.91 81.9935L677.3 2.88708M625.91 81.9935L625.814 136.848" stroke="white" stroke-width="8" stroke-miterlimit="3.99933"/>
<path d="M445.421 2.88708V133.287H542.332" stroke="white" stroke-width="8"/>
<path d="M302.946 2.88708V133.287H399.856" stroke="white" stroke-width="8"/>
<path d="M246.41 6.44785H155.659V67.8467M155.659 67.8467H235.055M155.659 67.8467V133.287H246.41" stroke="white" stroke-width="8"/>
<path d="M3.56075 92.0021C4.45895 99.5727 7.5706 108.234 11.9333 114.521C16.296 120.681 23.1609 126.904 29.8333 130.497C36.634 133.961 45.6802 136.175 53.5075 136.175C62.1046 136.175 71.7282 133.576 78.9139 129.342C86.0995 125.107 93.0606 118.018 97.2951 110.576C101.529 103.133 104.128 92.9644 104.128 83.7257V6.44785H40.6118" stroke="white" stroke-width="8"/>
</g>
<defs>
<linearGradient id="paint0_linear_103_17" x1="1525" y1="20" x2="1433" y2="137" gradientUnits="userSpaceOnUse">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
<linearGradient id="paint1_linear_103_17" x1="1525" y1="20" x2="1433" y2="137" gradientUnits="userSpaceOnUse">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
<linearGradient id="paint2_linear_103_17" x1="1093.5" y1="89.5" x2="990" y2="137" gradientUnits="userSpaceOnUse">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 578 KiB

-29
View File
@@ -1,29 +0,0 @@
<svg width="1168" height="1324" viewBox="0 0 1168 1324" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_d_31_4)">
<path d="M268.523 614.23C230.295 614.23 194.759 605.615 161.915 588.386C129.071 570.618 102.15 546.388 81.1513 515.698C60.1527 485.008 47.769 451.087 44 413.936H73.8826C77.6515 445.703 88.6892 474.778 106.996 501.161C125.302 527.005 148.454 547.465 176.452 562.541C204.989 577.079 235.679 584.347 268.523 584.347C304.598 584.347 337.711 575.463 367.862 557.695C398.014 539.927 421.974 515.429 439.742 484.2C457.51 452.972 466.394 417.974 466.394 379.208V69.8826H214.411V40H495.469V379.208C495.469 423.358 485.239 463.471 464.779 499.546C444.857 535.082 417.398 563.08 382.4 583.54C347.941 604 309.982 614.23 268.523 614.23Z" fill="white"/>
<path d="M702.413 602.115V40H732.296V572.233H1124V602.115H702.413Z" fill="white"/>
<path d="M73.8826 1275.15H44V713.031H270.138C307.828 713.031 342.556 721.107 374.324 737.26C406.629 753.413 432.204 776.296 451.049 805.909C469.894 835.522 479.316 869.712 479.316 908.479C479.316 945.63 469.625 979.82 450.241 1011.05C431.397 1042.28 405.552 1066.24 372.708 1082.93C344.172 1097.47 309.982 1104.73 270.138 1104.73H73.8826V1275.15ZM73.8826 1074.85H270.138C304.598 1074.85 332.865 1069.47 354.94 1058.7C383.477 1045.24 406.36 1025.05 423.589 998.127C440.819 971.206 449.434 941.323 449.434 908.479C449.434 876.174 440.819 846.56 423.589 819.639C406.36 792.718 383.208 772.527 354.133 759.066C332.057 748.298 304.059 742.913 270.138 742.913H73.8826V1074.85Z" fill="white"/>
<path d="M895.439 713.031H676.569L965.703 1075.66C1005.01 1064.89 1037.58 1043.09 1063.43 1010.24C1089.27 976.859 1102.19 939.169 1102.19 897.172C1102.19 863.251 1094.12 832.292 1077.96 804.294C1061.81 776.296 1039.2 754.22 1010.12 738.068C980.51 721.376 942.282 713.031 895.439 713.031Z" fill="url(#paint0_linear_31_4)"/>
<path d="M676.569 1275.15H1108.65L965.703 1075.66L676.569 1082.93V1275.15Z" fill="url(#paint1_linear_31_4)"/>
</g>
<defs>
<filter id="filter0_d_31_4" x="0" y="0" width="1168" height="1323.15" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="4"/>
<feGaussianBlur stdDeviation="22"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.26 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_31_4"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_31_4" result="shape"/>
</filter>
<linearGradient id="paint0_linear_31_4" x1="1074" y1="798" x2="674" y2="1275" gradientUnits="userSpaceOnUse">
<stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
<linearGradient id="paint1_linear_31_4" x1="1074" y1="798" x2="674" y2="1275" gradientUnits="userSpaceOnUse">
<stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 941 KiB

-9
View File
@@ -1,9 +0,0 @@
<svg width="2560" height="2560" viewBox="0 0 2560 2560" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect width="2560" height="2560" fill="url(#pattern0)"/>
<defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_41_10" transform="scale(0.000434783)"/>
</pattern>
<image id="image0_41_10" width="2300" height="2300" xlink:href="data:image/png;base64,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 truncated
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 1.6 MiB

+16
View File
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Jellyplayer</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
-127
View File
@@ -1,127 +0,0 @@
import sys,os,requests
from localStoragePy import localStoragePy
from PySide6.QtWidgets import QApplication, QMainWindow
from PySide6.QtCore import QUrl, Slot, QObject, QProcess
from PySide6.QtGui import QIcon, QPixmap
from PySide6.QtWebEngineWidgets import QWebEngineView
from PySide6.QtWebEngineCore import QWebEngineSettings
from PySide6.QtWebChannel import QWebChannel
import renderer
app = QApplication(["--disable-gpu-driver-bug-workarounds", "--enable-gpu-rasterization"])
# os.environ['QTWEBENGINE_REMOTE_DEBUGGING'] = "9000"
try:
from ctypes import windll
myappid = 'prayag17.jellyplayer.0.1.0'
windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
except ImportError:
pass
storage = localStoragePy('prayag.jellyplayer.app', 'sqlite')
def restart():
QApplication.quit()
status = QProcess.startDetached(sys.executable, sys.argv)
class Backend(QObject):
@Slot(result=str)
def onStartup(self):
if storage.getItem("serverGo") == "True":
try:
ping = requests.get(f"{storage.getItem('server')}/System/Ping")
if ping.content == b'"Jellyfin Server"':
if storage.getItem("openHome") == "True":
return "openHomeTrue"
else:
return "serverGoTrue"
except:
return "serverOffline"
else:
return "serverGoFalse"
@Slot(result=list)
def getAuthinfo(self):
return [storage.getItem("UserName"), storage.getItem("UserPw")]
@Slot(str, result=bool)
def saveServer(self, data):
ping = requests.get(f"{data}/System/Ping")
if ping.content == b'"Jellyfin Server"':
storage.setItem('server', data)
storage.setItem("serverGo", True)
return True
else:
storage.setItem("serverGo", False)
return False
@Slot(str, result=bool)
def getValuesFromDatabaseBool(self, object):
print(f"Object: {object}")
item = storage.getItem(object)
print(item)
if item == "True":
return True
elif item == "False":
return False
@Slot(str, result=str)
def getValuesFromDatabaseStr(self, object):
print(f"Object: {object}")
item = storage.getItem(object)
print(item)
return item
@Slot(str, str)
def setAuthInfoDatabase(self, userName, Pw):
print(f"User: {userName}, Password: {Pw}")
storage.setItem("UserName", userName)
storage.setItem("UserPw", Pw)
storage.setItem("openHome", True)
@Slot()
def clearStorage(self):
storage.clear()
restart()
@Slot()
def restart(self):
QApplication.quit()
status = QProcess.startDetached(sys.executable, sys.argv)
class LoginWin(QMainWindow):
def __init__(self):
super().__init__()
self.dir = os.path.dirname(os.path.abspath(__file__))
self.view= QWebEngineView(self)
self.setCentralWidget(self.view)
# self.setWindowIcon()
self.view.settings().setAttribute(QWebEngineSettings.JavascriptEnabled, True)
self.view.settings().setAttribute(QWebEngineSettings.PluginsEnabled, True)
self.view.settings().setAttribute(QWebEngineSettings.LocalContentCanAccessRemoteUrls, True)
self.view.settings().setAttribute(QWebEngineSettings.ScrollAnimatorEnabled, True)
self.setWindowTitle('JellyPlayer')
self.setWindowIcon(QIcon(QPixmap(":/assets/icon.png")))
self.view.load(QUrl("qrc:/renderer/html/main.html"))
self.view.loadFinished.connect(self.handleLoaded)
self.inspector = QWebEngineView()
self.inspector.setWindowTitle("Inspector")
self.backend = Backend()
self.channel = QWebChannel()
self.channel.registerObject('backend', self.backend)
self.view.page().setWebChannel(self.channel)
def handleLoaded(self, ok):
if ok:
self.view.page().setDevToolsPage(self.inspector.page())
self.inspector.show()
window = LoginWin()
window.showMaximized()
sys.exit(app.exec())
-23
View File
@@ -1,23 +0,0 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>renderer/html/main.html</file>
<file>renderer/css/login.css</file>
<file>renderer/css/global.css</file>
<file>renderer/css/main.css</file>
<file>renderer/js/login.js</file>
<file>renderer/js/main.js</file>
<file>renderer/svg/avatar.svg</file>
<file>renderer/svg/loader.svg</file>
<file>renderer/svg/books.svg</file>
<file>renderer/svg/boxsets.svg</file>
<file>renderer/svg/movies.svg</file>
<file>renderer/svg/music.svg</file>
<file>renderer/svg/playlists.svg</file>
<file>renderer/svg/tvshows.svg</file>
<file>assets/logo.svg</file>
<file>assets/logo_small.svg</file>
<file>assets/logo.png</file>
<file>assets/icon.svg</file>
<file>assets/icon.png</file>
</qresource>
</RCC>
-45
View File
@@ -1,45 +0,0 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=False,
name='JellyPlayer',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='assets/icon.ico' )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='JellyPlayer')
-45
View File
@@ -1,45 +0,0 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=False,
name='JellyPlayer',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='assets/icon.png' )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='JellyPlayer')
-45
View File
@@ -1,45 +0,0 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=False,
name='JellyPlayer',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='assets/icon.icns' )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='JellyPlayer')
-45
View File
@@ -1,45 +0,0 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=False,
name='JellyPlayer',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='assets/icon.ico' )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='JellyPlayer')
+5270
View File
File diff suppressed because it is too large. Load diff
+46
View File
@@ -0,0 +1,46 @@
{
"name": "jellyplayer",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"tauri": "tauri"
},
"dependencies": {
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@fontsource/open-sans": "^4.5.13",
"@jellyfin/sdk": "^0.7.0",
"@mdi/js": "^7.1.96",
"@mui/lab": "^5.0.0-alpha.110",
"@mui/material": "^5.10.15",
"events": "^3.3.0",
"framer-motion": "^7.10.2",
"localforage": "^1.10.0",
"match-sorter": "^6.3.1",
"mdi-material-ui": "^7.6.0",
"notistack": "^2.0.8",
"react": "^18.2.0",
"react-cookie": "^4.1.1",
"react-dom": "^18.2.0",
"react-material-ui-carousel": "^3.4.2",
"react-multi-carousel": "^2.8.2",
"react-router-dom": "^6.4.3",
"sort-by": "^1.2.0",
"tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store",
"uuid": "^9.0.0",
"vite-plugin-svgr": "^2.2.2"
},
"devDependencies": {
"@tauri-apps/cli": "^1.2.2",
"@types/react": "^18.0.24",
"@types/react-dom": "^18.0.8",
"@vitejs/plugin-react": "^2.2.0",
"sass": "^1.56.1",
"vite": "^3.2.3"
},
"license": "GPL-3.0-only"
}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 471 KiB

+22
View File
@@ -0,0 +1,22 @@
<svg width="1155" height="1264" viewBox="0 0 1155 1264" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M968.546 551.878C981.951 559.555 993.091 570.638 1000.84 584.005C1008.59 597.372 1012.67 612.549 1012.67 628C1012.67 643.451 1008.59 658.628 1000.84 671.995C993.091 685.362 981.951 696.445 968.546 704.122L272.816 1107.92C215.959 1140.95 138 1103.21 138 1031.79V628V224.205C138 152.787 215.959 115.054 272.816 148.084L620.681 349.981L968.546 551.878Z" fill="url(#pattern0)"/>
<g filter="url(#filter0_d_33_14)">
<path d="M138 628V1031.79C138 1103.21 215.959 1140.95 272.816 1107.92L968.546 704.122C981.951 696.445 993.091 685.362 1000.84 671.995C1008.59 658.628 1012.67 643.451 1012.67 628C1012.67 612.549 1008.59 597.372 1000.84 584.005C993.091 570.638 981.951 559.555 968.546 551.878L620.681 349.981M138 628V224.205C138 152.787 215.959 115.054 272.816 148.084L620.681 349.981M138 628L620.681 349.981" stroke="white" stroke-width="100" shape-rendering="crispEdges"/>
</g>
<defs>
<pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
<use xlink:href="#image0_33_14" transform="translate(-0.0625001 1) scale(0.000274658 0.000244141) rotate(-90)"/>
</pattern>
<filter id="filter0_d_33_14" x="0" y="0.237759" width="1154.67" height="1263.52" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="2" dy="4"/>
<feGaussianBlur stdDeviation="45"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_33_14"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_33_14" result="shape"/>
</filter>
<image id="image0_33_14" width="4096" height="4096" xlink:href="data:image/png;base64,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 truncated
</defs>
</svg>

After

Width:  |  Height:  |  Size: 4.9 MiB

-119587
View File
File diff suppressed because it is too large. Load diff
-341
View File
@@ -1,341 +0,0 @@
/** @format */
:root {
--main-bg: #0a1827;
--accent-solid: #e82a5f;
--accent-translucent-1: rgb(232 42 95 / 40%);
--jf-purple-light: #aa5cc3;
--jf-purple-dark: #3e2247;
--jf-blue-light: #00a4dc;
--jf-blue-dark: #003c50;
--warning-yellow: #f18e06;
--warning-bg: rgba(220, 128, 1, 0.16);
--error-red: #a94442;
--error-red-darker-1: #8b2e2e;
--error-red-bg: #240e0ea0;
--yes-green: #18be12;
--yes-green-darker-1: #15a010;
--main-brd-clr: rgb(255 255 255/ 0.1);
--rounding: 10px;
--rounding-1: 5px;
--transition-time-fast-2: 100ms;
--transition-time-fast-1: 150ms;
--transition-time-default: 250ms;
--transition-time-slow-1: 350ms;
--transition-time-slow-2: 550ms;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
body,
html {
margin: 0 !important;
padding: 0 !important;
font-family: "Montserrat", sans-serif;
color: white;
background: var(--main-bg);
}
.input {
position: relative;
font-size: calc(60vw / 20);
width: 100%;
}
.ripple__cont {
width: 100%;
height: 100%;
overflow: hidden;
}
main,
.main__page {
position: fixed;
inset: 0;
contain: strict;
width: 100vw;
height: 100vh;
z-index: 1;
overflow: hidden;
}
.main__page {
display: flex;
align-items: center;
}
span.mdc-notched-outline__notch {
border-top: none;
position: relative;
border-bottom-width: 0.1px;
}
span.mdc-notched-outline__notch::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 0.1px;
background: var(--border-clr) !important;
transition: transform var(--transition-time-default);
transform-origin: right;
transform: scaleX(1);
}
.mdc-notched-outline--notched .mdc-notched-outline__notch::before {
height: 2px;
background: white !important;
transform: scaleX(0);
}
.mdc-floating-label {
transition-duration: var(--transition-time-default) !important;
}
@-webkit-keyframes btn_click {
0% {
transform: scale(1);
opacity: 0;
}
100% {
transform: scale(5);
opacity: 1;
}
}
@keyframes btn_click {
0% {
transform: scale(1);
opacity: 0;
}
100% {
transform: scale(1.5);
opacity: 1;
}
}
/*Animations*/
@-webkit-keyframes fadeIn {
0% {
opacity: 0;
margin-bottom: -150px;
}
100% {
opactiy: 1;
margin-bottom: 0;
}
}
@keyframes fadeIn {
0% {
opacity: 0;
margin-bottom: -150px;
}
100% {
opactiy: 1;
margin-bottom: 0;
}
}
@-webkit-keyframes fadeOut {
0% {
display: block;
opacity: 1;
inset: 0 0 0 0;
}
99% {
display: block;
opacity: 0;
inset: 150px 0 0 0;
}
100% {
display: none;
opacity: 0;
}
}
@keyframes fadeOut {
0% {
display: block;
opacity: 1;
inset: 0 0 0 0;
}
99% {
display: block;
opacity: 0;
inset: 150px 0 0 0;
}
100% {
display: none;
opacity: 0;
}
}
@-webkit-keyframes fadeInOpac {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes fadeInOpac {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@-webkit-keyframes fadeOutOpac {
0% {
display: block;
opacity: 1;
}
99% {
display: block;
opacity: 0;
}
100% {
display: none;
opacity: 0;
}
}
@keyframes fadeOutOpac {
0% {
display: block;
opacity: 1;
}
99% {
display: block;
opacity: 0;
}
100% {
display: none;
opacity: 0;
}
}
@-webkit-keyframes comeIn {
0% {
bottom: -100%;
}
100% {
bottom: 20px;
}
}
@keyframes comeIn {
0% {
bottom: -100%;
}
100% {
bottom: 20px;
}
}
@-webkit-keyframes goOut {
0% {
bottom: 20px;
}
100% {
bottom: -100%;
}
}
@keyframes goOut {
0% {
bottom: 20px;
}
100% {
bottom: -100%;
}
}
@-webkit-keyframes load {
0% {
transform: scaleX(0);
}
100% {
transform: scaleX(1);
}
}
@keyframes load {
0% {
transform: scaleX(0);
}
100% {
transform: scaleX(1);
}
}
@-webkit-keyframes moveFadeOut {
0% {
inset: 0;
opacity: 1;
}
100% {
inset: 0 0 0 -100px;
opacity: 0;
}
}
@keyframes moveFadeOut {
0% {
inset: 0;
opacity: 1;
}
100% {
inset: 0 0 0 -100px;
opacity: 0;
}
}
@-webkit-keyframes moveFadeIn {
0% {
inset: 0 0 0 100px;
opacity: 0;
}
100% {
inset: 0;
opacity: 1;
}
}
@keyframes moveFadeIn {
0% {
inset: 0 0 0 100px;
opacity: 0;
}
100% {
inset: 0;
opacity: 1;
}
}
@-webkit-keyframes skeletonLoader {
0% {
left: -5em;
}
100% {
left: calc(100% + 5em);
}
}
@keyframes skeletonLoader {
0% {
left: -5em;
}
100% {
left: calc(100% + 5em);
}
}
-642
View File
@@ -1,642 +0,0 @@
/** @format */
::-webkit-scrollbar {
height: 10px;
}
::-webkit-scrollbar-thumb {
background: rgb(255 255 255 / 0.5);
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: rgb(255 255 255/1);
}
.login {
--mdc-theme--primary: white !important;
--mdc-theme--primary-bg: var(--main-bg) !important;
}
.login .mdc-button {
font-family: "Montserrat" !important;
background-color: rgb(255 255 255 / 0.3) !important;
border: 2px solid white !important;
overflow: hidden;
}
.login .mdc-button__ripple > * {
background-color: rgb(0 0 0 / 0.3) !important;
}
.login .mdc-text-field--outlined {
font-family: "Montserrat" !important;
}
.login .mdc-text-field--outlined {
--border-clr: rgb(255 255 255 / 0.4);
}
.login .mdc-text-field--outlined:hover {
--border-clr: rgb(255 255 255 / 0.8);
}
.login .mdc-text-field--outlined .mdc-notched-outline__leading {
transition: background var(--transition-time-default);
}
.login
.mdc-text-field--outlined:not(.mdc-text-field--disabled)
.mdc-notched-outline__leading,
.login
.mdc-text-field--outlined:not(.mdc-text-field--disabled)
.mdc-notched-outline__notch,
.login
.mdc-text-field--outlined:not(.mdc-text-field--disabled)
.mdc-notched-outline__trailing {
border-color: var(--border-clr) !important;
}
.login
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
.mdc-notched-outline__leading,
.login
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
.mdc-notched-outline__notch,
.login
.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused
.mdc-notched-outline__trailing {
border-color: rgb(255, 255, 255) !important;
}
.login .mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label {
color: rgb(255 255 255 / 0.6);
font-family: "Montserrat" !important;
}
.login
.mdc-text-field--focused:not(.mdc-text-field--disabled)
.mdc-floating-label {
color: white !important;
}
.login .mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input {
color: rgb(255 255 255 / 0.87);
caret-color: white;
font-family: "Montserrat" !important;
}
.mdc-form-field > label {
font-family: "Montserrat" !important;
}
.login
.mdc-checkbox
.mdc-checkbox__native-control:enabled:checked
~ .mdc-checkbox__background,
.login
.mdc-checkbox
.mdc-checkbox__native-control:enabled:indeterminate
~ .mdc-checkbox__background,
.login
.mdc-checkbox
.mdc-checkbox__native-control[data-indeterminate="true"]:enabled
~ .mdc-checkbox__background {
border-color: transparent !important;
}
.login .mdc-checkbox {
--mdc-ripple-color: white;
--mdc-checkbox-unchecked-color: white;
--mdc-checkbox-checked-color: rgb(255 255 255 / 0.3) !important;
}
.login .mdc-form-field {
--mdc-theme-text-primary-on-background: rgb(255 255 255 / 0.87);
}
.login .mdc-text-field__icon::before {
font-size: 26px;
color: var(--border-clr);
}
#background {
background: transparent;
position: fixed;
z-index: 0;
width: 100vw;
height: 100vh;
}
#background > * {
width: inherit;
height: inherit;
position: absolute;
opacity: 0;
transition: opacity var(--transition-time-slow-2);
}
#background .purple {
background: linear-gradient(140deg, var(--jf-purple-light), transparent);
}
#background .blue {
background: linear-gradient(140deg, transparent, var(--jf-blue-light));
z-index: -2;
}
#background .purple.active,
#background .blue.active {
opacity: 1;
}
.page {
position: static;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
flex-shrink: 0;
flex-basis: 100vw;
overflow: hidden;
flex-flow: column;
gap: 10px;
}
.page > button {
width: 60vw;
max-width: 32em;
}
.page.manual__login {
position: relative;
}
.server__cont,
.user__cont,
.manual__input {
position: static;
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content;
max-width: 30em;
}
.logo {
width: 120%;
}
.logo img {
width: 100%;
}
.manual__input {
width: 60vw;
display: flex;
flex-flow: column;
align-items: stretch;
justify-content: center;
}
.server__cont {
display: flex;
flex-flow: column;
grid-gap: 3em;
align-items: center;
}
button.clicky {
position: relative;
overflow: visible;
}
button.clicky::after {
content: "";
box-shadow: 0 0 15px 40px var(--clr);
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
border-radius: 100px;
opacity: 0;
transition: all var(--transition-time-slow-1);
}
button.clicky:active::after {
box-shadow: 0 0 0 0 white;
opacity: 0.5;
transition: 0s;
}
.input__label {
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
font-size: min(1em, 25px);
transition: font-size var(--transition-time-default),
transform var(--transition-time-default);
}
input:focus + .input__label,
.input__label.inputLabelActive {
transform: translateY(calc(-100% - 0.85em));
font-size: min(0.75em, 15px);
}
.form__cont {
display: flex;
flex-flow: column;
grid-gap: 1em;
}
.hide {
display: none !important;
visibility: hidden !important;
}
.info {
font-family: "IBM Plex Mono", monospace;
opacity: 0.65;
display: flex;
justify-content: center;
align-items: center;
grid-gap: 10px;
font-size: calc(60vw / 20);
}
.info span {
color: var(--warning-yellow);
font-size: min(1.5em, 30px);
height: -webkit-fit-content;
height: -moz-fit-content;
height: fit-content;
}
.info div {
font-size: min(0.65em, 15px);
text-align: left;
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content;
}
.alert {
position: absolute;
box-sizing: content-box;
width: 50vw;
max-width: 20em;
display: flex;
left: 20px;
background: var(--background);
color: white;
border-radius: var(--rounding);
font-weight: 600;
justify-content: center;
align-items: center;
box-shadow: 0 0 30px rgb(0 0 0 / 0.5);
overflow: hidden;
-webkit-animation: comeIn var(--transition-time-default) forwards;
animation: comeIn var(--transition-time-default) forwards;
}
.alert .icon {
font-size: 2.5em;
background: var(--color);
height: 100%;
flex-shrink: 0;
flex-grow: 1;
padding: 15px;
}
.alert .msg {
padding: 0 15px;
}
.warning {
--background: var(--warning-bg);
--color: var(--warning-yellow);
}
.alert.error {
--background: var(--main-bg);
--color: var(--error-red);
}
.dialog__cont {
position: absolute;
left: 0;
top: 0;
display: flex;
flex-wrap: nowrap;
align-content: center;
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
z-index: 5;
}
.dialog {
background: var(--main-bg);
z-index: 5;
height: -webkit-fit-content;
height: -moz-fit-content;
height: fit-content;
box-sizing: content-box;
padding: 20px;
color: black;
border-radius: var(--rounding);
box-shadow: 0 10px 35px rgba(5, 5, 5, 0.7);
max-width: 20em;
}
.dialog .icon {
color: var(--color);
border-left: 5px solid;
padding: 0 0 0 15px;
font-size: 3em;
margin-left: -20px;
}
.dialog.error {
--color: var(--error-red);
}
.dialog.warning {
--color: var(--warning-yellow);
}
.dialog .title {
font-size: 2em;
font-weight: 600;
color: rgb(255 255 255 / 90%);
}
.dialog .msg {
font-size: 1.25em;
font-weight: 400;
color: rgb(255 255 255 / 65%);
margin: 0.5em 0;
}
.buttons {
display: flex;
gap: 10px;
}
.dialog__close {
position: absolute;
width: 100vw;
height: 100vh;
background: rgba(5, 5, 5, 0.5);
z-index: 0;
}
.error.active,
.dialog.active,
.warning.active {
-webkit-animation: fadeIn var(--transition-time-fast-2);
animation: fadeIn var(--transition-time-fast-2);
display: block;
visibility: visible;
}
.dialog__cont.fadeOut {
-webkit-animation: fadeOut var(--transition-time-fast-2) forwards;
animation: fadeOut var(--transition-time-fast-2) forwards;
}
.dialog__close.fadeOut {
-webkit-animation: fadeOutOpac var(--transition-time-fast-2) forwards;
animation: fadeOutOpac var(--transition-time-fast-2) forwards;
}
.dialog__close.active {
-webkit-animation: fadeInOpac var(--transition-time-fast-2) forwards;
animation: fadeInOpac var(--transition-time-fast-2) forwards;
}
.alert.goOut {
-webkit-animation: goOut var(--transition-time-default) forwards;
animation: goOut var(--transition-time-default) forwards;
}
.alert .load {
position: absolute;
bottom: 0;
height: 5px;
background: white;
width: 100%;
transform: scaleX(0);
-webkit-animation: load 3s forwards;
animation: load 3s forwards linear;
transform-origin: left;
}
.loader {
position: fixed;
overflow: visible;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
z-index: 20;
}
.loader::before {
content: "";
position: fixed;
background: rgba(0, 0, 0, 0.5);
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 0;
transition: var(--transition-time-slow-1);
-webkit-backdrop-filter: blur(5px);
backdrop-filter: blur(5px);
}
.loader svg {
z-index: 1;
}
section.user__cont {
display: flex;
justify-content: space-between;
overflow: auto hidden;
z-index: 2;
}
.user__card {
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content;
overflow: hidden;
flex-shrink: 0;
padding: 1em;
}
.user__card .content {
display: flex;
flex-shrink: 0;
justify-content: center;
align-items: center;
flex-flow: column;
padding: 0 !important;
}
.user__card h1 {
margin: 0.5em 0;
}
.user__svg,
.user__img {
width: 10em;
-o-object-fit: cover;
object-fit: cover;
height: 10em;
border-radius: var(--rounding);
background: white;
mix-blend-mode: multiply;
box-shadow: 0 0 20px #00000057;
}
.user__svg {
padding: 1em;
}
.user {
display: flex;
flex-flow: column;
grid-gap: 2em;
justify-content: center;
align-items: stretch;
}
.user__info {
width: 100%;
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
grid-gap: 10px;
}
.title__name {
-webkit-filter: drop-shadow(0 0 8px #00000057);
filter: drop-shadow(0 0 8px #00000057);
text-align: center;
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content;
font-weight: 500;
padding: 0;
margin: 0;
font-size: min(calc(100vw / 15), 10em);
position: relative;
margin-bottom: 0.5em;
align-self: center;
}
.title__name::after {
content: "";
width: 70%;
height: 2px;
position: absolute;
bottom: -2px;
left: 50%;
transform: translateX(-50%);
background: white;
}
.user__info .title__name::after,
.manual__login .title__name::after {
all: unset;
}
.user__info .title__name {
margin-bottom: 0;
}
.user__info .user__img,
.user__info .user__svg {
border-radius: 100%;
}
.input.checkbox {
display: flex;
flex-flow: row;
justify-content: flex-start;
grid-gap: 10px;
align-items: center;
}
.checkbox label {
font-size: min(0.6em, calc(100vw / 25));
}
.tick {
display: block;
width: 0.6em;
border-radius: var(--rounding-1);
border: 1.5px solid white;
}
.tick path {
stroke: white;
stroke-dasharray: 100%;
stroke-dashoffset: -100%;
transition: stroke-dashoffset var(--transition-time-fast-2);
}
input[type="checkbox"]:checked + .tick > path {
stroke-dashoffset: 0%;
}
.remember__user {
position: absolute;
height: 100%;
width: 100%;
inset: 0;
padding: 0;
margin: 0;
}
.manual__form {
display: flex;
flex-flow: column;
gap: 20px;
row-gap: 20px;
-moz-column-gap: 20px;
column-gap: 20px;
align-items: stretch;
}
.back {
position: absolute;
top: 0;
left: 0;
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content;
z-index: 1;
padding: 0.3em 0.5em;
font-size: 1.5em;
background: rgb(20 20 20 / 0.5);
border-radius: 0 0 5px 0;
transition: background var(--transition-time-fast-1);
}
.back:hover {
background: rgb(20 20 20 / 0.7);
}
/*Scaling for other display*/
@media (min-width: 800px) {
.title__name {
font-size: 2.7em;
}
}
-503
View File
@@ -1,503 +0,0 @@
/** @format */
.library__page::-webkit-scrollbar {
width: 5px;
}
.library__page::-webkit-scrollbar-thumb {
border-radius: 0;
}
.moveFadeOut {
-webkit-animation: moveFadeOut var(--transition-time-slow-2) forwards;
animation: moveFadeOut var(--transition-time-slow-2) forwards;
}
.moveFadeIn {
-webkit-animation: moveFadeIn var(--transition-time-slow-2) forwards;
animation: moveFadeIn var(--transition-time-slow-2) forwards;
}
.main {
opacity: 0;
right: -300px;
}
.main.active {
opacity: 1;
right: 0;
}
.menu.side__menu {
width: 40vw;
height: 100vh;
max-width: 20em;
overflow: auto;
display: flex;
flex-wrap: nowrap;
flex-direction: column;
align-items: center;
justify-content: flex-start;
border-right: 1px solid var(--main-brd-clr);
position: relative;
}
.user__menu {
width: 100%;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
font-weight: 200;
font-size: 1.9rem;
gap: 0.5em;
padding: 2em 1em;
border-bottom: 1px solid var(--main-brd-clr);
position: relative;
}
.user__menu .image {
width: 15vh;
border-radius: 100%;
overflow: hidden;
aspect-ratio: 1/1;
}
img {
-o-object-fit: cover;
object-fit: cover;
-o-object-position: center;
object-position: center;
}
.user__menu .image > img {
width: 100%;
aspect-ratio: 1/1;
}
.submenu {
width: 100%;
padding: 0 1em;
position: relative;
overflow-x: hidden;
height: 100%;
}
.menu__button {
font-size: 1.3rem;
padding: 0.5em;
position: relative;
}
.main__animated__page {
width: 100%;
height: 100vh;
position: relative;
background: linear-gradient(
45deg,
rgba(10, 24, 39, 1) 0%,
rgba(10, 26, 51, 1) 32%,
rgba(8, 144, 149, 1) 100%
);
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
z-index: 1;
flex-grow: 0;
flex-shrink: 1;
overflow-x: hidden;
}
.main__animated__page > * {
height: 100vh;
width: 100%;
overflow-y: scroll;
overflow-x: hidden;
}
.latestMediaSlider {
width: 100%;
position: relative;
overflow: visible;
aspect-ratio: 16/9;
z-index: -1;
}
.slide {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 0;
opacity: 0;
transition: opacity var(--transition-time-default);
}
.slide .info__cont {
left: -5em;
transition: left var(--transition-time-default);
}
.slide.active .info__cont {
left: 2em;
}
.slide.active ~ .slide > .info__cont {
left: 9em;
}
.slide.active {
display: block;
z-index: 10;
opacity: 1;
}
.slide__background {
width: 100%;
height: 100vh;
position: absolute;
z-index: -1;
right: 0;
-webkit-mask-composite: destination-in;
background-size: cover !important;
opacity: 0;
transition: opacity var(--transition-time-default);
-webkit-mask-image: linear-gradient(to top, transparent, black 75%);
}
.slide__background::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(to right, rgb(0 0 0 / 0.5) 50%, transparent);
}
.slide.active .slide__background {
opacity: 1;
}
canvas.placeholder {
opacity: 1;
transition: opacity var(--transition-time-default);
position: absolute;
top: 0;
right: 0;
z-index: 2;
width: 100%;
height: 100%;
}
.slide img {
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
}
.info__cont {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
align-items: flex-start;
justify-content: center;
align-content: center;
width: 70%;
height: 100%;
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 2em;
}
.title {
width: 100%;
font-size: 2.9em;
font-weight: 500;
overflow: hidden;
max-height: 40%;
text-overflow: ellipsis;
}
.title div {
width: 100%;
height: -webkit-fit-content;
height: -moz-fit-content;
height: fit-content;
position: static;
background-size: contain !important;
background-position: left !important;
background-repeat: no-repeat !important;
}
.title div span {
display: inline-block;
vertical-align: middle;
line-height: normal;
}
.logo div {
position: absolute;
height: 100%;
}
.title.logo {
height: 40%;
position: relative;
}
.overview {
width: 100%;
display: flex;
gap: 1em;
font-size: 0.9em;
font-weight: 600;
}
.overview div {
display: flex;
gap: 0.2em;
}
button.filled {
--clr: var(--accent-solid);
background: var(--accent-solid);
color: white;
border: 2px solid var(--clr);
}
button.outlined {
--clr: white;
background: transparent;
color: white;
border: 2px solid var(--clr);
}
.main .buttons {
width: 100%;
margin-top: 1em;
}
.info__cont button {
max-width: 15em;
padding: 0;
}
.info__cont button span {
font-size: 1.5em;
}
.icon__image {
width: 100%;
height: 100%;
font-size: 30vw;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: center;
align-items: center;
color: black;
}
.track__cont {
position: absolute;
bottom: 1em;
left: 2em;
right: 2em;
height: 1em;
display: flex;
gap: 0.5em;
align-items: center;
}
.track {
height: 5px;
width: 100%;
background: var(--main-brd-clr);
border-radius: var(--rounding-1);
transition: background var(--transition-time-default),
height var(--transition-time-default);
z-index: 30;
}
.track.active {
background: white;
}
.track:hover {
height: 10px;
background: rgb(255 255 255 / 0.5);
}
.skeleton__loader {
height: 100%;
width: 100%;
position: absolute;
background: var(--main-bg);
z-index: 100;
overflow: hidden;
}
.skeleton__loader::after {
content: "";
height: 100%;
width: 5em;
background: linear-gradient(
to right,
transparent,
rgb(255 255 255 / 0.2),
transparent
);
position: absolute;
-webkit-animation: skeletonLoader 1.5s infinite;
animation: skeletonLoader 1.5s infinite;
}
.primary__image {
width: 100%;
}
.primay__image img {
width: 0;
}
.card {
width: 16.4vw !important;
height: -webkit-fit-content;
height: -moz-fit-content;
height: fit-content;
aspect-ratio: 1.6;
flex-shrink: 0;
border-radius: var(--rounding);
display: flex;
flex-direction: column;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
padding: 0;
gap: 0.5em;
}
.image__cont {
position: relative;
width: 100%;
flex: 0 0 100%;
border-radius: var(--rounding);
overflow: hidden;
box-shadow: 0px 0px 15px rgb(0 0 0 /0.3);
}
.image__cont > * {
position: absolute;
inset: 0;
}
.image__cont object {
width: 100%;
height: 100%;
}
.primary__image img {
width: 100%;
height: 100%;
}
.image__cont .icon__image {
padding: 0.07em;
border-radius: inherit;
border: 2px solid var(--main-brd-clr);
}
.card__text {
font-size: 1.2em;
font-weight: 300;
color: white;
text-align: center !important;
}
.content .grid {
display: flex;
flex-wrap: wrap;
gap: 1em;
justify-content: flex-start;
}
.content {
padding: 0 2em;
}
.content h2 {
font-size: 2em;
font-weight: 300;
display: flex;
align-items: center;
gap: 0.5em;
}
.content h2::before {
content: "";
width: 1em;
height: 2px;
display: block;
background: white;
}
.card .icon__image span {
font-size: 0.2em;
color: var(--accent-solid);
}
.primary .image__cont {
flex: 1 0 16.5vw !important;
height: 16.5vw !important;
}
.card.primary {
width: 10.5vw !important;
flex-shrink: 1;
flex-grow: 0;
flex-basis: 10.5vw !important;
height: 16.5vw !important;
gap: 0;
border-radius: var(--rounding);
background: var(--main-bg);
overflow: hidden;
}
.primary .card__text {
font-size: 1em;
white-space: nowrap;
text-overflow: ellipsis;
width: 100%;
overflow: hidden;
padding: 0 0.2em;
}
.card__text__cont {
width: 100%;
text-align: center;
height: 2.4em;
}
.primary .card__text__cont {
opacity: 0;
transition: opacity var(--transition-time-default),
transform var(--transition-time-default);
background: rgb(0 0 0 / 0.5);
transform: translateY(0);
}
.card__text.secondary {
font-size: 0.9em;
opacity: 0.7;
font-weight: 300;
}
.card.primary:hover {
z-index: 100;
}
.card.primary:hover .card__text__cont {
opacity: 1;
transform: translateY(-2.3em);
}
-120
View File
@@ -1,120 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="qrc:/renderer/css/login.css">
<link rel="stylesheet" href="qrc:/renderer/css/main.css">
<link rel="stylesheet" href="qrc:/renderer/css/global.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@6.6.96/css/materialdesignicons.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet" crossorigin>
<script src="https://cdn.jsdelivr.net/npm/simple-parallax-js@5.5.1/dist/simpleParallax.min.js"></script>
<title>JellyPlayer</title>
<script src="qrc:///qtwebchannel/qwebchannel.js"></script>
<script>
"use strict";var ReflectOwnKeys,R="object"==typeof Reflect?Reflect:null,ReflectApply=R&&"function"==typeof R.apply?R.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function ProcessEmitWarning(e){console&&console.warn&&console.warn(e)}ReflectOwnKeys=R&&"function"==typeof R.ownKeys?R.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var NumberIsNaN=Number.isNaN||function(e){return e!=e};function EventEmitter(){EventEmitter.init.call(this)}EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function _getMaxListeners(e){return void 0===e._maxListeners?EventEmitter.defaultMaxListeners:e._maxListeners}function _addListener(e,t,n,r){var i,o,s;if(checkListener(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=_getMaxListeners(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,ProcessEmitWarning(u)}return e}function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=onceWrapper.bind(r);return i.listener=n,r.wrapFn=i,i}function _listeners(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?unwrapListeners(i):arrayClone(i,i.length)}function listenerCount(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function arrayClone(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function spliceOne(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function unwrapListeners(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function once(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}eventTargetAgnosticAddListener(e,t,o,{once:!0}),"error"!==t&&addErrorHandlerIfEventEmitter(e,i,{once:!0})}))}function addErrorHandlerIfEventEmitter(e,t,n){"function"==typeof e.on&&eventTargetAgnosticAddListener(e,"error",t,n)}function eventTargetAgnosticAddListener(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(e){if("number"!=typeof e||e<0||NumberIsNaN(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");defaultMaxListeners=e}}),EventEmitter.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||NumberIsNaN(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)ReflectApply(u,this,t);else{var f=u.length,v=arrayClone(u,f);for(n=0;n<f;++n)ReflectApply(v[n],this,t)}return!0},EventEmitter.prototype.addListener=function(e,t){return _addListener(this,e,t,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function(e,t){return _addListener(this,e,t,!0)},EventEmitter.prototype.onLine truncated
window.emitter = new EventEmitter();
</script>
<script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script type="module">
import { decode } from "https://cdn.jsdelivr.net/npm/blurhash@1.1.5/+esm"
import { UserApi, Configuration, LibraryApi, ItemsApi, UserLibraryApi } from 'https://cdn.jsdelivr.net/npm/@jellyfin/client-axios/+esm';
window.decode = decode;
window.UserApi = UserApi;
window.Configuration = Configuration;
window.LibraryApi = LibraryApi;
window.UserLibraryApi = UserLibraryApi;
window.ItemsApi = ItemsApi;
</script>
<link href="https://unpkg.com/material-components-web@13.0.0/dist/material-components-web.min.css" rel="stylesheet">
<script src="https://unpkg.com/material-components-web@13.0.0/dist/material-components-web.min.js"></script>
</head>
<body>
<main>
<div id="background">
<div class="purple"></div>
<div class="blue"></div>
</div>
<div class="loader">
<svg width="52" height="12" viewBox="0 0 52 12" fill="none" xmlns="http://www.w3.org/2000/svg" xml:space="preserve">
<circle cx="6" cy="6" r="6" fill="white">
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.1"></animate>
</circle>
<circle cx="26" cy="6" r="6" fill="white">
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.2"></animate>
</circle>
<circle cx="46" cy="6" r="6" fill="white">
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.3"></animate>
</circle>
</svg>
</div>
<div class="main__page login">
<section class="page server">
<section class="server__cont">
<div class="logo">
<img src="qrc:/assets/logo.svg" />
</div>
<div class="form__cont">
<div class="mdc-text-field mdc-text-field--outlined">
<input type="text" class="mdc-text-field__input first-name-input server__url">
<span class="mdc-notched-outline">
<span class="mdc-notched-outline__leading"></span>
<span class="mdc-notched-outline__notch">
<span class="mdc-floating-label" id="my-label-id">Server Address</span>
</span>
<span class="mdc-notched-outline__trailing"></span>
</span>
</div>
<button class="mdc-button mdc-button--raised save__server">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Save</span>
</button>
<div class="info">
<span class="mdi mdi-information-outline"></span>
<div>
Enter your Jellyfin server address above<br>
Example: https://jellyfin.mydomain.com or http://192.168.25.35:8096
</div>
</div>
</div>
</section>
</section>
<section class="page users hide">
<h3 class="title__name">Users</h3>
<section class="user__cont"></section>
<button class="mdc-button mdc-button--raised" onclick="createManualLogin(true);document.querySelector('.manual__login').classList.remove('hide');document.querySelector('.manual__login').scrollIntoView({ behavior: 'smooth' });setInterval(() => {document.querySelector('.server').classList.add('hide');}, 1000);">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Manual login</span>
</button>
<button class="mdc-button mdc-button--raised" onclick="changeServer('.users')">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Change Server</span>
</button>
</section>
<section class="page manual__login hide">
<div class="back" onclick="goBack(document.querySelector('.manual__login'), document.querySelector('.users'), 'manual__input')">
<span class="mdi mdi-keyboard-backspace"></span>
</div>
<section class="manual__input"></section>
</section>
</div>
<script defer>
document.querySelectorAll(".mdc-button").forEach(button => {
mdc.ripple.MDCRipple.attachTo(button);
});
document.querySelectorAll(".mdc-text-field").forEach(textField => {
mdc.textField.MDCTextField.attachTo(textField);
});
</script>
<script src="qrc:/renderer/js/login.js" defer></script>
<script src="qrc:/renderer/js/main.js" defer></script>
</main>
</body>
</html>
-462
View File
@@ -1,462 +0,0 @@
const serverForm = document.querySelector('.server__cont');
const serverUrl = document.querySelector('.server__url');
const saveBtn = document.querySelector('.save__server');
const user__cont = document.querySelector('.users');
let html;
var server;
function generateUUID() { // Public Domain/MIT
var d = new Date().getTime();//Timestamp
var d2 = ((typeof performance !== 'undefined') && performance.now && (performance.now()*1000)) || 0;//Time in microseconds since page-load or 0 if unsupported
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = Math.random() * 16;//random number between 0 and 16
if(d > 0){//Use timestamp until depleted
r = (d + r)%16 | 0;
d = Math.floor(d/16);
} else {//Use microseconds since page-load if supported
r = (d2 + r)%16 | 0;
d2 = Math.floor(d2/16);
}
return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16);
});
}
window.onload = () => {
new QWebChannel(qt.webChannelTransport, async (channel) => {
window.backend = await channel.objects.backend;
window.getServer = async () => {
await window.backend.getValuesFromDatabaseStr("server", (data) => {
window.server = data;
console.log(`Server:${data}`);
emitter.emit('server-url', data);
return data;
});
};
window.setAuthInfoDatabase = async (userName, Pw) => {
await window.backend.setAuthInfoDatabase(userName, Pw);
};
window.getAuthinfo = async () => {
await window.backend.getAuthinfo(async (data) => {
console.log(data);
window.getServer();
emitter.on('server-url', (server) => {
emitter.emit("user-saved", [data[0], data[1], server]);
});
});
};
emitter.on("send-jf-server-info", (server) => {
window.backend.saveServer(server, (dat) => {
console.log(`Is Jf Server = ${dat}`);
if (dat == true) {
emitter.emit('is-jf-server');
} else if (dat == false) {
emitter.emit('not-jf-server');
}
});
});
window.serverOnline = await window.backend.onStartup();
console.log(window.serverOnline);
if (window.serverOnline == "serverGoTrue") {
emitter.emit("serverGo-true");
} else if (window.serverOnline == "serverGoFalse") {
emitter.emit("serverGo-false");
} else if(window.serverOnline == "openHomeTrue") {
window.getAuthinfo();
} else if (window.serverOnline == "serverOffline") {
emitter.emit("server-url", "offline");
}
});
emitter.on("get-server", async () => {
window.getServer();
});
document.querySelector(".loader").classList.add("hide");
};
const base_token = `MediaBrowser Client="JellyPlayer", Device="${window.navigator.userAgent}", DeviceId="${generateUUID()}", Version="1.0.0"`;
const vanilla_token = `${base_token}, Token=""`;
const createUserList = async (server) => {
document.querySelector('.loader').classList.remove('hide');
let users = await window.userApi.getPublicUsers();
let userlist = users.data;
console.log(userlist);
if (userlist.length != 0) {
userlist.forEach(user => {
if (user.PrimaryImageTag) {
html = `<div class="user__card" data-user="${user.Name}" data-userid="${user.Id}" onclick="createEnterPassword(this.dataset.user, true, this.dataset.userid)">
<div class="content">
<img class="user__img" src="${server}/Users/${user.Id}/Images/Primary">
<h1>${user.Name}</h1>
</div>
</div>`;
}
else if (!user.PrimaryImageTag) {
html = `<div class="user__card" data-user="${user.Name}" onclick="createEnterPassword(this.dataset.user, false)">
<div class="content">
<img class="user__svg" src="../svg/avatar.svg">
<h1>${user.Name}</h1>
</div>
</div>`;
}
document.querySelector('.user__cont').insertAdjacentHTML('beforeend', html);
});
document.querySelector('.users').classList.remove('hide');
document.querySelector(".purple").classList.add("active");
document.querySelector('.users').scrollIntoView({ behavior: "smooth" });
document.querySelector('.loader').classList.add('hide');
setTimeout(() => {
document.querySelector('.server').classList.add('hide');
}, 1000);
}else if (userlist.length == 0) {
document.querySelector('.loader').classList.add('hide');
createManualLogin(false);
setTimeout(() => {
document.querySelector('.server').classList.add('hide');
}, 1000);
}
};
const closeDialog = () => {
document.querySelector('.dialog__cont').classList.remove('active');
document.querySelector('.dialog__close').classList.remove('active');
document.querySelector('.dialog__cont').classList.add('fadeOut');
document.querySelector('.dialog__close').classList.add('fadeOut');
setTimeout(() => {
document.querySelector('.dialog__cont').classList.remove('fadeOut');
document.querySelector('.dialog__close').classList.remove('fadeOut');
document.querySelector('.dialog__cont').remove();
}, 305);
};
const createAlert = (type, msg, page) => {
html = `<div class="alert ${type}">
<div class="icon">
<span class="mdi mdi-alert-octagram-outline"></span>
</div>
<div class="msg">
${msg}
</div>
<div class="load"></div>
</div>`;
document.querySelector(page).insertAdjacentHTML('beforeend', html);
setTimeout(() => {
document.querySelector('.alert').classList.add('goOut');
setTimeout(() => {
document.querySelector('.alert').remove();
}, 1000);
}, 3005);
};
const createDialog = (title, msg, btn, type, page, exitBg) => {
html = `<div class="dialog__cont">
<div class="dialog ${type}">
<div class="icon">
<span class="mdi mdi-alert-octagram-outline"></span>
</div>
<div class="title">
${title}
</div>
<div class="msg">
${msg}
</div>
</div>
<div class="dialog__close"></div>
</div>`;
document.querySelector(page).insertAdjacentHTML('beforeend', html);
if (btn == "yes__no") {
html = `<div class="buttons">
<button class="mdc-button mdc-button--raised" onclick="sendClearDataRequest()">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Yes</span>
</button>
<button class="mdc-button mdc-button--raised" onclick="closeDialog()">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">No</span>
</button>
</div>`;
document.querySelector('.dialog').insertAdjacentHTML('beforeend', html);
} else if (btn == "remove__server") {
html = `<div class="buttons">
<button class="mdc-button mdc-button--raised" onclick="sendClearDataRequest()">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Remove Server</span>
</button>
<button class="mdc-button mdc-button--raised" onclick="window.backend.restart()">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Restart JellyPlayer</span>
</button>
</div>`;
document.querySelector('.dialog').insertAdjacentHTML('beforeend', html);
}
document.querySelectorAll(".mdc-button").forEach(button => {
mdc.ripple.MDCRipple.attachTo(button);
});
document.querySelector('.dialog').classList.add('active');
document.querySelector('.dialog__close').classList.add('active');
if (!exitBg) {
document.querySelector('.dialog__close').addEventListener('click', () => {
closeDialog();
});
}
document.querySelector('.loader').classList.add('hide');
};
const sendClearDataRequest = () => {
window.backend.clearStorage();
};
const createManualLogin = (from_users) => {
html = `<h3 class="title__name">Login</h3>
<div class="manual__form user">
<div class="mdc-text-field mdc-text-field--outlined">
<input type="text" class="mdc-text-field__input first-name-input" id="user__name">
<span class="mdc-notched-outline">
<span class="mdc-notched-outline__leading"></span>
<span class="mdc-notched-outline__notch">
<span class="mdc-floating-label" id="my-label-id">Username</span>
</span>
<span class="mdc-notched-outline__trailing"></span>
</span>
</div>
<div class="mdc-text-field mdc-text-field--outlined mdc-text-field--with-trailing-icon">
<input type="password" class="mdc-text-field__input first-name-input" id="user__password">
<span class="mdc-notched-outline">
<span class="mdc-notched-outline__leading"></span>
<span class="mdc-notched-outline__notch">
<span class="mdc-floating-label" id="my-label-id">Password</span>
</span>
<span class="mdc-notched-outline__trailing"></span>
</span>
<i class="mdi mdi-eye-outline mdc-text-field__icon mdc-text-field__icon--trailing" tabindex="0" data-passvisible="false" role="button" onclick="if(this.dataset.passvisible=='false'){document.querySelector('#user__password').setAttribute('type', 'text');this.dataset.passvisible='true';this.classList.add('mdi-eye-off-outline');this.classList.remove('mdi-eye-outline')} else if(this.dataset.passvisible=='true'){document.querySelector('#user__password').setAttribute('type', 'password');this.dataset.passvisible='false';this.classList.add('mdi-eye-outline');this.classList.remove('mdi-eye-off-outline')}"></i>
</div>
<div class="mdc-form-field">
<div class="mdc-checkbox">
<input type="checkbox"
class="mdc-checkbox__native-control"
id="remember__user"/>
<div class="mdc-checkbox__background">
<svg class="mdc-checkbox__checkmark"
viewBox="0 0 24 24">
<path class="mdc-checkbox__checkmark-path"
fill="none"
d="M1.73,12.91 8.1,19.28 22.79,4.59"/>
</svg>
<div class="mdc-checkbox__mixedmark"></div>
</div>
<div class="mdc-checkbox__ripple"></div>
</div>
<label for="remember__user">Remember me</label>
</div>
<button class="mdc-button mdc-button--raised" onclick="sendAuthInfo(document.querySelector('#user__name').value, document.querySelector('#user__password').value, document.querySelector('#remember__user'))">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Login</span>
</button>
<button class="mdc-button mdc-button--raised" onclick="changeServer('.manual__login')">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Change Server</span>
</button>
</div>`;
if (from_users == false) {
document.querySelector('.back').classList.add("hide");
}
document.querySelector('.manual__input').insertAdjacentHTML('beforeend', html);
document.querySelectorAll(".mdc-button").forEach(button => {
mdc.ripple.MDCRipple.attachTo(button);
});
document.querySelectorAll(".mdc-text-field").forEach(textField => {
mdc.textField.MDCTextField.attachTo(textField);
});
mdc.checkbox.MDCCheckbox.attachTo(document.querySelector(".mdc-checkbox"));
document.querySelector('.manual__login').classList.remove('hide');
document.querySelector(".purple").classList.add("active");
document.querySelector(".blue").classList.add("active");
document.querySelector('.manual__login').scrollIntoView({ behavior: "smooth" });
};
const createEnterPassword = (userName, userImg, userId) => {
html = `<div class="user">
<div class="user__info">
<h3 class="title__name">Hello, ${userName}</h3>
</div>
<div class="mdc-text-field mdc-text-field--outlined mdc-text-field--with-trailing-icon">
<input type="password" class="mdc-text-field__input first-name-input" id="user__password">
<span class="mdc-notched-outline">
<span class="mdc-notched-outline__leading"></span>
<span class="mdc-notched-outline__notch">
<span class="mdc-floating-label" id="my-label-id">Password</span>
</span>
<span class="mdc-notched-outline__trailing"></span>
</span>
<i class="mdi mdi-eye-outline mdc-text-field__icon mdc-text-field__icon--trailing" tabindex="0" data-passvisible="false" role="button" onclick="if(this.dataset.passvisible=='false'){document.querySelector('#user__password').setAttribute('type', 'text');this.dataset.passvisible='true';this.classList.add('mdi-eye-off-outline');this.classList.remove('mdi-eye-outline')} else if(this.dataset.passvisible=='true'){document.querySelector('#user__password').setAttribute('type', 'password');this.dataset.passvisible='false';this.classList.add('mdi-eye-outline');this.classList.remove('mdi-eye-off-outline')}"></i>
</div>
<div class="mdc-form-field">
<div class="mdc-checkbox">
<input type="checkbox"
class="mdc-checkbox__native-control"
id="remember__user"/>
<div class="mdc-checkbox__background">
<svg class="mdc-checkbox__checkmark"
viewBox="0 0 24 24">
<path class="mdc-checkbox__checkmark-path"
fill="none"
d="M1.73,12.91 8.1,19.28 22.79,4.59"/>
</svg>
<div class="mdc-checkbox__mixedmark"></div>
</div>
<div class="mdc-checkbox__ripple"></div>
</div>
<label for="remember__user">Remember me</label>
</div>
<button class="mdc-button mdc-button--raised" data-user="${userName}" onclick="sendAuthInfo(this.dataset.user, document.querySelector('#user__password').value, document.querySelector('#remember__user'))">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Login</span>
</button>
<button class="mdc-button mdc-button--raised" onclick="changeServer('.manual__login')">
<span class="mdc-button__ripple"></span>
<span class="mdc-button__focus-ring"></span>
<span class="mdc-button__label">Change Server</span>
</button>
</div>`;
document.querySelector('.manual__input').insertAdjacentHTML('beforeend', html);
if (userImg == true) {
html = `<img class="user__img" src="${window.server}/Users/${userId}/Images/Primary"></img>`;
document.querySelector('.user__info').insertAdjacentHTML('afterbegin', html);
} else if (userImg == false) {
html = `<img class="user__svg" data-tp src="../svg/avatar.svg">`;
document.querySelector('.user__info').insertAdjacentHTML('afterbegin', html);
}
document.querySelectorAll(".mdc-button").forEach(button => {
mdc.ripple.MDCRipple.attachTo(button);
});
document.querySelectorAll(".mdc-text-field").forEach(textField => {
mdc.textField.MDCTextField.attachTo(textField);
});
mdc.checkbox.MDCCheckbox.attachTo(document.querySelector(".mdc-checkbox"));
document.querySelector('.manual__login').classList.remove('hide');
document.querySelector(".blue").classList.add("active");
document.querySelector('.manual__login').scrollIntoView({ behavior: "smooth" });
};
const sendAuthInfo = (userName, password, checkbox) => {
document.querySelector(".loader").classList.remove("hide");
var authUser;
const auth = async () => {
try {
authUser = await window.userApi.authenticateUserByName({
authenticateUserByName: {
Username: userName,
Pw: password
}
});
emitter.emit("logged-in", [window.server, userName, password ,authUser.data.AccessToken, `${base_token}, Token=${authUser.data.AccessToken}`, authUser.data.User.Id, authUser.data.User.Name, authUser.data]);
} catch (error) {
document.querySelector(".loader").classList.add("hide");
console.log(`[Err]Can't login, Reason: ${error}`);
createAlert("error", "Invalid Username or Password entered try again", ".manual__login");
return "err";
}
};
if (auth() != "err") {
console.log(checkbox.checked);
if (checkbox.checked == true) {
window.setAuthInfoDatabase(userName, password);
}
}
};
const changeServer = (page) => {
createDialog('Are you sure?', "You want to remove this server", "yes__no", "warning", page);
};
const goBack = (from, to, loginForm) => {
to.classList.remove("hide");
to.scrollIntoView({ behavior: "smooth" });
document.querySelector(".blue").classList.remove("active");
setTimeout(() => {
from.classList.add('hide');
from.querySelector(`.${loginForm}`).remove();
html = `<section class="${loginForm}"></section>`;
from.insertAdjacentHTML('beforeend', html);
}, 1000);
};
emitter.on("serverGo-true", () => {
emitter.emit("get-server");
emitter.on("server-url", (server) => {
window.ax = axios.create({
headers: {
Authorization: vanilla_token
}
});
window.userApi = new window.UserApi(undefined, server, window.ax);
document.querySelector('.loader').classList.remove('hide');
document.querySelector('.loader').classList.add('hide');
createUserList(server);
});
});
emitter.on("server-url", (server) => {
if (server == "offline") {
createDialog("Error", "Can't connect to Jellyfin server", "remove__server", "error", ".server", true);
}
});
emitter.on("user-saved", (user) => {
document.querySelector(".loader").classList.remove("hide");
window.ax = axios.create({
headers: {
Authorization: vanilla_token
}
});
window.userApi = new window.UserApi(undefined, user[2], window.ax);
var authUser;
const auth = async () => {
try {
authUser = await window.userApi.authenticateUserByName({
authenticateUserByName: {
Username: user[0],
Pw: user[1]
}
});
emitter.emit("logged-in", [window.server, user[0], user[1], authUser.data.AccessToken, `${base_token}, Token=${authUser.data.AccessToken}`, authUser.data.User.Id, authUser.data.User.Name, authUser.data]);
} catch (error) {
console.log(`[Err]Can't login, Reason: ${error}`);
document.querySelector('.loader').classList.add('hide');
createDialog("Error", "Invalid Username or Password", "remove__server", "error", ".server", true);
}
};
auth();
});
emitter.on("serverGo-false", () => {
saveBtn.addEventListener('click', () => {
emitter.emit("send-jf-server-info", serverUrl.value);
document.querySelector('.loader').classList.remove('hide');
}, true);
emitter.on('not-jf-server', () => {
document.querySelector('.loader').classList.add('hide');
createAlert('error', "Can't detrmine if the give server address is a valid Jellyfin server", ".server");
});
emitter.on('is-jf-server', () => {
emitter.emit('get-server');
emitter.on("server-url", (server) => {
window.ax = axios.create({
headers: {
Authorization: vanilla_token
}
});
window.userApi = new window.UserApi(undefined, server, window.ax);
document.querySelector('.loader').classList.remove('hide');
document.querySelector('.loader').classList.add('hide');
createUserList(server);
});
});
});
-299
View File
@@ -1,299 +0,0 @@
const mainPageCont = document.querySelector("main");
const loginPage = document.querySelector(".login");
const bg = document.querySelector("#background");
let blurhashval;
let blurhasdpix;
let backdrop;
let itemInfo;
const pageTransition = (from, to, background) => {
document.querySelector(from).classList.add("moveFadeOut");
document.querySelector(to).classList.add("moveFadeIn");
setTimeout(() => {
document.querySelector(to).classList.remove("moveFadeIn");
document.querySelector(to).classList.add("active");
document.querySelector(from).classList.remove("moveFadeOut");
document.querySelector(from).classList.add("hide");
}, 5000);
if (background == false) {
bg.querySelector(".purple").classList.remove("active");
bg.querySelector(".blue").classList.remove("active");
}
};
const ticksToMin = (ticks) => {
return Math.round(ticks / 600000000);
};
const showSlide = (index) => {
index = Number(index);
let slide = document.querySelectorAll(".slide")[index + 1];
let track = document.querySelectorAll(".track")[index + 1];
document.querySelector(".slide.active").classList.remove("active");
document.querySelector(".track.active").classList.remove("active");
slide.classList.add("active");
track.classList.add("active");
};
const sliderAnim = (slider) => {
var slides = document.querySelectorAll(slider);
sliderAnim.timer = setInterval(() => {
sliderAnim.index = Array.prototype.indexOf.call(slides, document.querySelector(".slide.active"));
if (sliderAnim.index + 1 >= slides.length) {
sliderAnim.index = 0;
}
showSlide(sliderAnim.index);
}, 5000);
document.querySelectorAll(".track").forEach(track => {
track.addEventListener("click", () => {
showSlide(track.dataset.index - 1);
clearInterval(sliderAnim.timer);
sliderAnim.timer = setInterval(() => {
sliderAnim.index = Array.prototype.indexOf.call(slides, document.querySelector(".slide.active"));
if (sliderAnim.index + 1 >= slides.length) {
sliderAnim.index = -1;
}
showSlide(sliderAnim.index);
sliderAnim.index += 1;
}, 5000);
});
});
};
const createCardGrid = (type, data) => {
let typeClass = type.replace(/\s+/g, '');
if (data.length != 0) {
document.querySelector(".library__page").insertAdjacentHTML("beforeend", `<div class="content ${typeClass.toLowerCase()}"><div class="grid"></div></div>`);
setTimeout(() => {
document.querySelector(`.content.${typeClass.toLowerCase()}`).insertAdjacentHTML("afterbegin", `<h2>${type}</h2>`);
}, 1);
setTimeout(() => {
for (let item of data) {
html = `<div class="card" data-index="${data.indexOf(item)}">
<div class="image__cont">
<canvas class="placeholder"></canvas>
<div class="icon__image">
<span class="mdi">
</div>
<div class="primary__image hide">
<img>
</div>
</div>
<div class="card__text__cont">
<div class="card__text primary">${item.Name}</div>
</div>
</div>`;
document.querySelector(`.content.${typeClass.toLowerCase()} .grid`).insertAdjacentHTML("beforeend", html);
if (item.CollectionType) {
if (item.ImageTags.Primary) {
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .primary__image img`).setAttribute("src", `${window.server}/Items/${item.Id}/Images/Primary?imgTag=${item.ImageTags.Primary[0]}`);
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .primary__image`).classList.remove("hide");
}
switch (item.CollectionType) {
case "books":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-book-multiple-outline");
break;
case "boxsets":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-folder-outline");
break;
case "movies":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-play-box-multiple-outline");
break;
case "music":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-music-box-multiple-outline");
break;
case "playlists":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-playlist-music");
break;
case "tvshows":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-youtube-tv");
break;
}
} else if (item.Type) {
if (item.ImageTags.Primary) {
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .primary__image img`).setAttribute("src", `${window.server}/Items/${item.Id}/Images/Primary?imgTag=${item.ImageTags.Primary[0]}`);
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .primary__image`).classList.remove("hide");
}
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .card__text__cont`).insertAdjacentHTML("beforeend", `<div class="card__text secondary">${item.ProductionYear}</div>`);
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"]`).classList.add("primary");
switch (item.Type) {
case "books":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-book-multiple-outline");
break;
case "boxsets":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-folder-outline");
break;
case "Movie":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-play-box-multiple-outline");
break;
case "music":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-music-box-multiple-outline");
break;
case "playlists":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-playlist-music");
break;
case "tvshows":
document.querySelector(`.${typeClass.toLowerCase()} .card[data-index="${data.indexOf(item)}"] .mdi`).classList.add("mdi-youtube-tv");
break;
}
}
}
}, 0);
}
};
emitter.on("logged-in", async (user) => {
html = `<div class="main__page main">
<section class="menu side__menu">
<div class="user__menu">
<div class="skeleton__loader"></div>
<div class="image"></div>
<div class="text">Hello, ${user[6]}</div>
</div>
<div class="submenu">
<div class="skeleton__loader"></div>
<div class="sub">
<div class="menu__button" data-page="home">Home</div>
</div>
</div>
</section>
<section class="main__animated__page">
<div class="library__page current" data-page="home">
<div class="skeleton__loader"></div>
<div class="latestMediaSlider">
<div class="track__cont"></div>
</div>
</div>
</section>
</div>`;
mainPageCont.insertAdjacentHTML("beforeend", html);
pageTransition(".login", ".main", false);
document.querySelector(".loader").classList.add("hide");
const UserConf = new Configuration({
apiKey: user[4],
basePath: user[0],
username: user[1],
password: user[2],
accessToken: user[3]
});
const libApi = new LibraryApi(UserConf);
const itemsApi = new ItemsApi(UserConf);
const userLibApi = new UserLibraryApi(UserConf);
const libsRaw = await libApi.getMediaFolders();
const libs = libsRaw.data.Items;
const latestMedia = await userLibApi.getLatestMedia({
userId: user[5]
});
if (!user[7].User.PrimaryImageTag) {
html = `<img src="../svg/avatar.svg">`;
document.querySelector(".user__menu .image").insertAdjacentHTML("afterbegin", html);
} else if (user[7].User.PrimaryImageTag) {
html = `<img src="${window.server}/Users/${user[5]}/Images/Primary">`;
document.querySelector(".user__menu .image").insertAdjacentHTML("afterbegin", html);
}
setTimeout(() => {
for (let item of libs) {
html = `<div class="menu__button" data-page="${item.Name.toLowerCase()}">${item.Name}</div>`;
document.querySelector(".submenu .sub").insertAdjacentHTML("beforeend", html);
}
}, 0);
document.querySelectorAll(".menu__button").forEach(btn => {
if (btn.dataset.page == document.querySelector(".library__page.current").dataset.page) {
btn.classList.add("active");
}
});
document.querySelectorAll(".menu .skeleton__loader").forEach(sk => {
sk.classList.add("hide");
});
for (let item of latestMedia.data) {
document.querySelector(".latestMediaSlider .track__cont").insertAdjacentHTML("beforeend", `<div class="track" data-index=${latestMedia.data.indexOf(item)}></div>`);
if (item.ImageBlurHashes.Backdrop) {
html = `<div class="slide" data-index=${latestMedia.data.indexOf(item)}>
<div class="slide__background" data-depth="0.8">
<img src="${window.server}/Items/${item.Id}/Images/Backdrop?imgTag=${item.BackdropImageTags[0]}">
</div>
<div class="info__cont" data-depth="0.2">
<div class="title"></div>
<div class="overview">
<div>${item.ProductionYear}</div>
<div><span class="mdi mdi-star-half-full"></span>${item.CommunityRating}</div>
<div>${ticksToMin(item.RunTimeTicks)}min</div>
</div>
<div class="buttons">
<button class="filled clicky">
<span>Play</span>
</button>
<button class="outlined clicky">
<span>More Info</span>
</button>
</div>
</div>
</div>`;
document.querySelector(".latestMediaSlider").insertAdjacentHTML("beforeend", html);
if (item.ImageTags.Logo) {
html = `<div style="background: url('${window.server}/Items/${item.Id}/Images/Logo?imgTag=${item.ImageTags.Logo[0]}');">`;
document.querySelector(`[data-index='${latestMedia.data.indexOf(item)}'] .info__cont .title`).insertAdjacentHTML("beforeend", html);
document.querySelector(`[data-index='${latestMedia.data.indexOf(item)}'] .info__cont .title`).classList.add("logo");
} else {
document.querySelector(".info__cont .title").insertAdjacentHTML("beforeend", item.Name);
}
} else {
if (item.Type == "AudioBook") {
html = `<div class="slide" data-index="${latestMedia.data.indexOf(item)}">
<div class="slide__background" data-depth="0.8">
<div class="icon__image">
<span class="mdi mdi-book-music"></span>
</div>
</div>
<div class="info__cont" data-depth="0.2">
<div class="title"></div>
<div class="overview">
<div>${item.ProductionYear}</div>
<div><span class="mdi mdi-star-half-full"></span>${item.CommunityRating}</div>
<div>${ticksToMin(item.RunTimeTicks)}min</div>
</div>
<div class="buttons">
<button class="filled clicky">
<span>Play</span>
</button>
<button class="outlined clicky">
<span>More Info</span>
</button>
</div>
</div>
</div>`;
document.querySelector(".latestMediaSlider").insertAdjacentHTML("beforeend", html);
if (item.ImageTags.Logo) {
html = `<div style="background: url('${window.server}/Items/${item.Id}/Images/Logo?imgTag=${item.ImageTags.Logo[0]}');">`;
document.querySelector(`[data-index='${latestMedia.data.indexOf(item)}'] .info__cont .title`).insertAdjacentHTML("beforeend", html);
document.querySelector(`[data-index='${latestMedia.data.indexOf(item)}'] .info__cont .title`).classList.add("logo");
} else {
document.querySelector(`[data-index="${latestMedia.data.indexOf(item)}"] .title`).insertAdjacentHTML("beforeend", `<div>${item.Name}</div>`);
}
}
// } else if (!item) { }
}
if (latestMedia.data.indexOf(item) == 0) {
document.querySelector(".slide").classList.add("active");
document.querySelector(`.track[data-index="${Array.prototype.indexOf.call(document.querySelectorAll(".slide"), document.querySelector(".slide.active"))}"]`).classList.add("active");
}
}
if (latestMedia.data.length > 1) {
sliderAnim(".slide");
} else {
document.querySelector(".track__cont").classList.add("hide");
}
createCardGrid("Library", libs);
let latest;
setTimeout(async () => {
for (let library of libs){
latest = await userLibApi.getLatestMedia({
userId: user[5],
parentId: library.Id
});
createCardGrid(library.Name, latest.data);
}
}, 0);
document.querySelectorAll(".main__animated__page .skeleton__loader").forEach(sk => {
sk.classList.add("hide");
});
});
-14
View File
@@ -1,14 +0,0 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11 6C11 6.79565 10.6839 7.55871 10.1213 8.12132C9.55871 8.68393 8.79565 9 8 9C7.20435 9 6.44129 8.68393 5.87868 8.12132C5.31607 7.55871 5 6.79565 5 6C5 5.20435 5.31607 4.44129 5.87868 3.87868C6.44129 3.31607 7.20435 3 8 3C8.79565 3 9.55871 3.31607 10.1213 3.87868C10.6839 4.44129 11 5.20435 11 6Z" fill="url(#paint0_linear_102_2)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 8C0 5.87827 0.842855 3.84344 2.34315 2.34315C3.84344 0.842855 5.87827 0 8 0C10.1217 0 12.1566 0.842855 13.6569 2.34315C15.1571 3.84344 16 5.87827 16 8C16 10.1217 15.1571 12.1566 13.6569 13.6569C12.1566 15.1571 10.1217 16 8 16C5.87827 16 3.84344 15.1571 2.34315 13.6569C0.842855 12.1566 0 10.1217 0 8ZM8 1C6.68178 1.00007 5.39037 1.37236 4.2744 2.07403C3.15844 2.77569 2.26328 3.77821 1.69196 4.96619C1.12065 6.15418 0.896386 7.47934 1.045 8.78916C1.19361 10.099 1.70905 11.3402 2.532 12.37C3.242 11.226 4.805 10 8 10C11.195 10 12.757 11.225 13.468 12.37C14.2909 11.3402 14.8064 10.099 14.955 8.78916C15.1036 7.47934 14.8794 6.15418 14.308 4.96619C13.7367 3.77821 12.8416 2.77569 11.7256 2.07403C10.6096 1.37236 9.31822 1.00007 8 1Z" fill="url(#paint1_linear_102_2)"/>
<defs>
<linearGradient id="paint0_linear_102_2" x1="3" y1="2.5" x2="14" y2="13.5" gradientUnits="userSpaceOnUse">
<stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
<linearGradient id="paint1_linear_102_2" x1="3" y1="2.5" x2="14" y2="13.5" gradientUnits="userSpaceOnUse">
<stop stop-color="#AA5CC3"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 1.6 KiB

-11
View File
@@ -1,11 +0,0 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M32 160V144C32 139.757 33.6857 135.687 36.6863 132.686C39.6869 129.686 43.7565 128 48 128C52.2435 128 56.3131 129.686 59.3137 132.686C62.3143 135.687 64 139.757 64 144V160H80C84.2435 160 88.3131 161.686 91.3137 164.686C94.3143 167.687 96 171.757 96 176C96 180.243 94.3143 184.313 91.3137 187.314C88.3131 190.314 84.2435 192 80 192H16C11.7565 192 7.68687 190.314 4.68629 187.314C1.68571 184.313 0 180.243 0 176C0 171.757 1.68571 167.687 4.68629 164.686C7.68687 161.686 11.7565 160 16 160H32ZM32 256V240C32 235.757 33.6857 231.687 36.6863 228.686C39.6869 225.686 43.7565 224 48 224C52.2435 224 56.3131 225.686 59.3137 228.686C62.3143 231.687 64 235.757 64 240V256H80C84.2435 256 88.3131 257.686 91.3137 260.686C94.3143 263.687 96 267.757 96 272C96 276.243 94.3143 280.313 91.3137 283.314C88.3131 286.314 84.2435 288 80 288H16C11.7565 288 7.68687 286.314 4.68629 283.314C1.68571 280.313 0 276.243 0 272C0 267.757 1.68571 263.687 4.68629 260.686C7.68687 257.686 11.7565 256 16 256H32ZM32 352V336C32 331.757 33.6857 327.687 36.6863 324.686C39.6869 321.686 43.7565 320 48 320C52.2435 320 56.3131 321.686 59.3137 324.686C62.3143 327.687 64 331.757 64 336V352H80C84.2435 352 88.3131 353.686 91.3137 356.686C94.3143 359.687 96 363.757 96 368C96 372.243 94.3143 376.313 91.3137 379.314C88.3131 382.314 84.2435 384 80 384H16C11.7565 384 7.68687 382.314 4.68629 379.314C1.68571 376.313 0 372.243 0 368C0 363.757 1.68571 359.687 4.68629 356.686C7.68687 353.686 11.7565 352 16 352H32Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M192 0H96C79.0261 0 62.7475 6.74284 50.7452 18.7452C38.7428 30.7475 32 47.0261 32 64V96H64V64C64 55.5131 67.3714 47.3737 73.3726 41.3726C79.3737 35.3714 87.5131 32 96 32H192V0ZM384 32H416C424.487 32 432.626 35.3714 438.627 41.3726C444.629 47.3737 448 55.5131 448 64V448C448 456.487 444.629 464.626 438.627 470.627C432.626 476.629 424.487 480 416 480H96C87.5131 480 79.3737 476.629 73.3726 470.627C67.3714 464.626 64 456.487 64 448V416H32V448C32 464.974 38.7428 481.253 50.7452 493.255C62.7475 505.257 79.0261 512 96 512H416C432.974 512 449.253 505.257 461.255 493.255C473.257 481.253 480 464.974 480 448V64C480 47.0261 473.257 30.7475 461.255 18.7452C449.253 6.74284 432.974 0 416 0H384V32Z" fill="white"/>
<path d="M384 256V32V0H192V32V256C191.994 258.834 192.74 261.618 194.163 264.069C195.586 266.519 197.634 268.548 200.097 269.948C202.561 271.347 205.353 272.067 208.186 272.034C211.019 272.001 213.793 271.216 216.224 269.76L288 226.656L359.776 269.728C362.204 271.183 364.975 271.968 367.806 272.002C370.637 272.036 373.426 271.319 375.889 269.923C378.352 268.528 380.4 266.503 381.825 264.057C383.25 261.611 384.001 258.831 384 256Z" fill="url(#paint0_radial_101_14)"/>
<defs>
<radialGradient id="paint0_radial_101_14" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(374 256) rotate(-125.927) scale(316.143 296.384)">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</radialGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 3.0 KiB

-10
View File
@@ -1,10 +0,0 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M80 128C75.7565 128 71.6869 126.314 68.6863 123.314C65.6857 120.313 64 116.243 64 112C64 107.757 65.6857 103.687 68.6863 100.686C71.6869 97.6857 75.7565 96 80 96H432C436.243 96 440.313 97.6857 443.314 100.686C446.314 103.687 448 107.757 448 112C448 116.243 446.314 120.313 443.314 123.314C440.313 126.314 436.243 128 432 128H80ZM144 64C139.757 64 135.687 62.3143 132.686 59.3137C129.686 56.3131 128 52.2435 128 48C128 43.7565 129.686 39.6869 132.686 36.6863C135.687 33.6857 139.757 32 144 32H368C372.243 32 376.313 33.6857 379.314 36.6863C382.314 39.6869 384 43.7565 384 48C384 52.2435 382.314 56.3131 379.314 59.3137C376.313 62.3143 372.243 64 368 64H144ZM0 432C0 444.73 5.05713 456.939 14.0589 465.941C23.0606 474.943 35.2696 480 48 480H464C476.73 480 488.939 474.943 497.941 465.941C506.943 456.939 512 444.73 512 432V208C512 195.27 506.943 183.061 497.941 174.059C488.939 165.057 476.73 160 464 160H48C35.2696 160 23.0606 165.057 14.0589 174.059C5.05713 183.061 0 195.27 0 208L0 432ZM200.256 226.016C202.752 224.632 205.572 223.941 208.425 224.014C211.277 224.087 214.059 224.922 216.48 226.432L344.48 306.432C346.781 307.87 348.679 309.87 349.994 312.244C351.31 314.617 352 317.286 352 320C352 322.714 351.31 325.383 349.994 327.756C348.679 330.13 346.781 332.13 344.48 333.568L216.48 413.568C214.058 415.082 211.275 415.92 208.42 415.995C205.565 416.07 202.742 415.379 200.244 413.994C197.746 412.61 195.664 410.582 194.214 408.121C192.764 405.66 192 402.856 192 400V240C192.003 237.144 192.77 234.342 194.222 231.883C195.674 229.424 197.757 227.398 200.256 226.016Z" fill="white"/>
<path d="M200.256 226.016C202.752 224.632 205.572 223.941 208.425 224.014C211.277 224.087 214.059 224.922 216.48 226.432L344.48 306.432C346.781 307.87 348.679 309.87 349.994 312.244C351.31 314.617 352 317.286 352 320C352 322.714 351.31 325.383 349.994 327.756C348.679 330.13 346.781 332.13 344.48 333.568L216.48 413.568C214.058 415.082 211.275 415.92 208.42 415.995C205.565 416.07 202.742 415.379 200.244 413.994C197.746 412.61 195.664 410.582 194.214 408.121C192.764 405.66 192 402.856 192 400V240C192.003 237.144 192.77 234.342 194.222 231.883C195.674 229.424 197.757 227.398 200.256 226.016Z" fill="url(#paint0_linear_101_11)"/>
<defs>
<linearGradient id="paint0_linear_101_11" x1="201" y1="226" x2="293" y2="366" gradientUnits="userSpaceOnUse">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 2.5 KiB

-11
View File
@@ -1,11 +0,0 @@
<svg width="52" height="12" viewBox="0 0 52 12" fill="none" xmlns="http://www.w3.org/2000/svg" xml:space="preserve">
<circle cx="6" cy="6" r="6" fill="white">
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.1"></animate>
</circle>
<circle cx="26" cy="6" r="6" fill="white">
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.2"></animate>
</circle>
<circle cx="46" cy="6" r="6" fill="white">
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.3"></animate>
</circle>
</svg>

Before

Width:  |  Height:  |  Size: 665 B

-15
View File
@@ -1,15 +0,0 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0 32C0 23.5131 3.37142 15.3737 9.37258 9.37258C15.3737 3.37142 23.5131 0 32 0L480 0C488.487 0 496.626 3.37142 502.627 9.37258C508.629 15.3737 512 23.5131 512 32V480C512 488.487 508.629 496.626 502.627 502.627C496.626 508.629 488.487 512 480 512H32C23.5131 512 15.3737 508.629 9.37258 502.627C3.37142 496.626 0 488.487 0 480V32ZM133 32C130.239 32 128 34.2386 128 37V219C128 221.761 130.239 224 133 224H379C381.761 224 384 221.761 384 219V37C384 34.2386 381.761 32 379 32H133ZM384 293C384 290.239 381.761 288 379 288H133C130.239 288 128 290.239 128 293V475C128 477.761 130.239 480 133 480H379C381.761 480 384 477.761 384 475V293ZM37 32C34.2386 32 32 34.2386 32 37V91C32 93.7614 34.2386 96 37 96H91C93.7614 96 96 93.7614 96 91V37C96 34.2386 93.7614 32 91 32H37ZM96 133C96 130.239 93.7614 128 91 128H37C34.2386 128 32 130.239 32 133V187C32 189.761 34.2386 192 37 192H91C93.7614 192 96 189.761 96 187V133ZM37 224C34.2386 224 32 226.239 32 229V283C32 285.761 34.2386 288 37 288H91C93.7614 288 96 285.761 96 283V229C96 226.239 93.7614 224 91 224H37ZM96 325C96 322.239 93.7614 320 91 320H37C34.2386 320 32 322.239 32 325V379C32 381.761 34.2386 384 37 384H91C93.7614 384 96 381.761 96 379V325ZM37 416C34.2386 416 32 418.239 32 421V475C32 477.761 34.2386 480 37 480H91C93.7614 480 96 477.761 96 475V421C96 418.239 93.7614 416 91 416H37ZM480 37C480 34.2386 477.761 32 475 32H421C418.239 32 416 34.2386 416 37V91C416 93.7614 418.239 96 421 96H475C477.761 96 480 93.7614 480 91V37ZM421 128C418.239 128 416 130.239 416 133V187C416 189.761 418.239 192 421 192H475C477.761 192 480 189.761 480 187V133C480 130.239 477.761 128 475 128H421ZM480 229C480 226.239 477.761 224 475 224H421C418.239 224 416 226.239 416 229V283C416 285.761 418.239 288 421 288H475C477.761 288 480 285.761 480 283V229ZM421 320C418.239 320 416 322.239 416 325V379C416 381.761 418.239 384 421 384H475C477.761 384 480 381.761 480 379V325C480 322.239 477.761 320 475 320H421ZM480 421C480 418.239 477.761 416 475 416H421C418.239 416 416 418.239 416 421V475C416 477.761 418.239 480 421 480H475C477.761 480 480 477.761 480 475V421Z" fill="white"/>
<path d="M133 32C130.239 32 128 34.2386 128 37V219C128 221.761 130.239 224 133 224H379C381.761 224 384 221.761 384 219V37C384 34.2386 381.761 32 379 32H133Z" fill="url(#paint0_linear_101_3)"/>
<path d="M384 293C384 290.239 381.761 288 379 288H133C130.239 288 128 290.239 128 293V475C128 477.761 130.239 480 133 480H379C381.761 480 384 477.761 384 475V293Z" fill="url(#paint1_linear_101_3)"/>
<defs>
<linearGradient id="paint0_linear_101_3" x1="128" y1="32" x2="384" y2="480" gradientUnits="userSpaceOnUse">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
<linearGradient id="paint1_linear_101_3" x1="128" y1="32" x2="384" y2="480" gradientUnits="userSpaceOnUse">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 2.9 KiB

-10
View File
@@ -1,10 +0,0 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M384 0H128C111.026 0 94.7475 6.74284 82.7452 18.7452C70.7428 30.7475 64 47.0261 64 64V448C64 464.974 70.7428 481.252 82.7452 493.255C94.7475 505.257 111.026 512 128 512H384C400.974 512 417.252 505.257 429.255 493.255C441.257 481.252 448 464.974 448 448V64C448 47.0261 441.257 30.7475 429.255 18.7452C417.252 6.74284 400.974 0 384 0ZM368 131.52V189.12L288 205.12V368C288 383.84 278.368 396.256 266.816 403.936C255.168 411.712 239.968 416 224 416C208 416 192.832 411.712 181.184 403.936C169.664 396.256 160 383.84 160 368C160 352.16 169.632 339.744 181.184 332.064C192.832 324.288 208.032 320 224 320C235.392 320 246.4 322.176 256 326.272V141.12C256.004 133.725 258.57 126.56 263.26 120.843C267.951 115.126 274.476 111.209 281.728 109.76L329.728 100.16C334.369 99.2324 339.157 99.3457 343.749 100.492C348.341 101.638 352.621 103.788 356.282 106.787C359.942 109.787 362.892 113.561 364.918 117.838C366.945 122.115 367.997 126.787 368 131.52Z" fill="white"/>
<path d="M368 131.52V189.12L288 205.12V368C288 383.84 278.368 396.256 266.816 403.936C255.168 411.712 239.968 416 224 416C208 416 192.832 411.712 181.184 403.936C169.664 396.256 160 383.84 160 368C160 352.16 169.632 339.744 181.184 332.064C192.832 324.288 208.032 320 224 320C235.392 320 246.4 322.176 256 326.272V141.12C256.004 133.725 258.57 126.56 263.26 120.843C267.951 115.126 274.476 111.209 281.728 109.76L329.728 100.16C334.369 99.2324 339.157 99.3457 343.749 100.492C348.341 101.638 352.621 103.788 356.282 106.787C359.942 109.787 362.892 113.561 364.918 117.838C366.945 122.115 367.997 126.787 368 131.52Z" fill="url(#paint0_radial_114_8)"/>
<defs>
<radialGradient id="paint0_radial_114_8" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(197.5 374) rotate(-61.0462) scale(193.141 277.759)">
<stop offset="0.0923678" stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</radialGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 2.0 KiB

-12
View File
@@ -1,12 +0,0 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M384 416C384 451.36 348.16 480 304 480C259.84 480 224 451.36 224 416C224 380.64 259.84 352 304 352C348.16 352 384 380.64 384 416Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M384 96V416H352V96H384Z" fill="white"/>
<path d="M352 90.24C352.004 82.845 354.57 75.6799 359.26 69.9627C363.951 64.2456 370.476 60.3294 377.728 58.88L473.728 39.68C478.369 38.7524 483.157 38.8657 487.749 40.0117C492.341 41.1578 496.621 43.308 500.282 46.3074C503.942 49.3069 506.892 53.081 508.918 57.3578C510.945 61.6345 511.997 66.3075 512 71.04V128L352 160V90.24Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 368C0 363.757 1.68571 359.687 4.68629 356.686C7.68687 353.686 11.7565 352 16 352H128C132.243 352 136.313 353.686 139.314 356.686C142.314 359.687 144 363.757 144 368C144 372.243 142.314 376.313 139.314 379.314C136.313 382.314 132.243 384 128 384H16C11.7565 384 7.68687 382.314 4.68629 379.314C1.68571 376.313 0 372.243 0 368ZM0 240C0 235.757 1.68571 231.687 4.68629 228.686C7.68687 225.686 11.7565 224 16 224H256C260.243 224 264.313 225.686 267.314 228.686C270.314 231.687 272 235.757 272 240C272 244.243 270.314 248.313 267.314 251.314C264.313 254.314 260.243 256 256 256H16C11.7565 256 7.68687 254.314 4.68629 251.314C1.68571 248.313 0 244.243 0 240ZM0 112C0 107.757 1.68571 103.687 4.68629 100.686C7.68687 97.6857 11.7565 96 16 96H256C260.243 96 264.313 97.6857 267.314 100.686C270.314 103.687 272 107.757 272 112C272 116.243 270.314 120.313 267.314 123.314C264.313 126.314 260.243 128 256 128H16C11.7565 128 7.68687 126.314 4.68629 123.314C1.68571 120.313 0 116.243 0 112Z" fill="url(#paint0_radial_114_10)"/>
<defs>
<radialGradient id="paint0_radial_114_10" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(1.0621e-05 240) scale(365 660.59)">
<stop offset="0.215844" stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</radialGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 2.0 KiB

-10
View File
@@ -1,10 +0,0 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M84.6863 420.686C81.6857 423.687 80 427.757 80 432C80 436.243 81.6857 440.313 84.6863 443.314C87.6869 446.314 91.7565 448 96 448H416C420.243 448 424.313 446.314 427.314 443.314C430.314 440.313 432 436.243 432 432C432 427.757 430.314 423.687 427.314 420.686C424.313 417.686 420.243 416 416 416H96C91.7565 416 87.6869 417.686 84.6863 420.686Z" fill="white"/>
<path d="M64 64H448C448 64 512 64 512 128V320C512 320 512 384 448 384H64C64 384 0 384 0 320V128C0 128 0 64 64 64Z" fill="url(#paint0_linear_101_5)"/>
<defs>
<linearGradient id="paint0_linear_101_5" x1="0" y1="64" x2="512" y2="383" gradientUnits="userSpaceOnUse">
<stop stop-color="#B62FB9"/>
<stop offset="1" stop-color="#00A4DC"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 871 B

-5
View File
@@ -1,5 +0,0 @@
--extra-index-url https://download.qt.io/official_releases/QtForPython/split-wheels/
localStoragePy==0.2.3
requests==2.27.1
pyinstaller==4.10
pyside6
+3
View File
@@ -0,0 +1,3 @@
# Generated by Cargo
# will have compiled files and executables
/target/
+29
View File
@@ -0,0 +1,29 @@
[package]
name = "app"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
license = ""
repository = ""
default-run = "app"
edition = "2021"
rust-version = "1.59"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
tauri-build = { version = "1.2.1", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.2.2", features = [] }
tauri-plugin-store = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" }
[features]
# by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
default = [ "custom-protocol" ]
# this feature is used for production builds where `devPath` points to the filesystem
# DO NOT remove this
custom-protocol = [ "tauri/custom-protocol" ]
Binary file not shown.

After

Width:  |  Height:  |  Size: 411 KiB

+3
View File
@@ -0,0 +1,3 @@
fn main() {
tauri_build::build()
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

+11
View File
@@ -0,0 +1,11 @@
#![cfg_attr(
all(not(debug_assertions), target_os = "windows"),
windows_subsystem = "windows"
)]
fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_store::Builder::default().build())
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
+66
View File
@@ -0,0 +1,66 @@
{
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"build": {
"beforeBuildCommand": "npm run build",
"beforeDevCommand": "npm run dev",
"devPath": "http://localhost:5173",
"distDir": "../dist"
},
"package": {
"productName": "JellyPlayer",
"version": "0.1.0"
},
"tauri": {
"allowlist": {
"all": false
},
"bundle": {
"active": true,
"category": "Video",
"copyright": "GPL-3.0-only",
"deb": {
"depends": []
},
"externalBin": [],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"identifier": "com.jellyplayer.prayag17",
"longDescription": "A Modern Jellyfin Client for Jellyfin",
"macOS": {
"entitlements": null,
"exceptionDomain": "",
"frameworks": [],
"providerShortName": null,
"signingIdentity": null
},
"resources": [],
"shortDescription": "A Modern Jellyfin Client for Jellyfin",
"targets": "all",
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
}
},
"security": {
"csp": null
},
"updater": {
"active": false
},
"windows": [
{
"fullscreen": false,
"height": 600,
"resizable": true,
"title": "JellyPlayer",
"width": 800
}
]
}
}
+41
View File
@@ -0,0 +1,41 @@
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}
@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
}
.card {
padding: 2em;
}
.read-the-docs {
color: #888;
}
+228
View File
@@ -0,0 +1,228 @@
/** @format */
import { useState, useEffect, useContext } from "react";
import { ThemeProvider } from "@mui/material/styles";
import { SnackbarProvider } from "notistack";
import { useCookies, Cookies } from "react-cookie";
import {
Routes,
Route,
Navigate,
useNavigate,
useLocation,
Outlet,
} from "react-router-dom";
import { AnimatePresence, motion } from "framer-motion";
import { EventEmitter as event } from "./eventEmitter.js";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
// Theming
import CssBaseline from "@mui/material/CssBaseline";
import { theme } from "./theme";
import "./styles/global.scss";
// Routes
import { ServerSetup, ServerList } from "./routes/setup/server/root";
import { Home } from "./routes/home/root";
import {
UserLogin,
LoginWithImage,
UserLoginManual,
} from "./routes/login/root";
// Fonts
import "@fontsource/open-sans";
// Jellyfin SDK TypeScript
import { Jellyfin } from "@jellyfin/sdk";
import { version as appVer } from "../package.json";
import { v4 as uuidv4 } from "uuid";
const jellyfin = new Jellyfin({
clientInfo: {
name: "JellyPlayer",
version: appVer,
},
deviceInfo: {
name: "JellyPlayer",
id: uuidv4(),
},
});
event.on("create-jellyfin-api", (serverAddress) => {
window.api = jellyfin.createApi(
serverAddress,
sessionStorage.getItem("accessToken"),
);
// window.api = jellyfin.createApi(serverAddress);
});
event.on("set-api-accessToken", (serverAddress) => {
window.api = jellyfin.createApi(
serverAddress,
sessionStorage.getItem("accessToken"),
);
});
const anim = {
initial: {
opacity: 0,
x: -50,
},
animate: {
opacity: 1,
x: 0,
},
exit: {
opacity: 0,
x: 50,
},
};
const AnimationWrapper = () => {
return (
<motion.div
className="root-page"
variants={anim}
initial="initial"
animate="animate"
exit="exit"
transition={{
duration: 0.3,
ease: "easeInOut",
}}
>
<Outlet />
</motion.div>
);
};
function App({ hideLoader }) {
const [userCookies] = useCookies(["user"]);
const navigate = useNavigate();
const cookies = new Cookies();
const serverAvailable = () => {
try {
const currentServer = cookies.get("currentServer");
const serverList = cookies.get("servers");
let currentServerIp = "";
serverList.map((item, index) => {
currentServerIp = item[currentServer];
});
if (currentServer == undefined) {
return false;
} else {
if (!window.api) {
event.emit(
"create-jellyfin-api",
currentServerIp.serverAddress,
);
}
return true;
}
} catch (error) {
return false;
}
};
const userSaved = () => {
try {
userCookies.user[0];
return true;
} catch (error) {
return false;
}
};
const userAvailable = async () => {
const users = await getUserApi(window.api).getPublicUsers();
try {
if (users.data.length >= 1) {
return true;
} else {
return false;
}
} catch (error) {
return false;
}
};
const HandleLoginRoutes = () => {
if (userSaved()) {
navigate("/home");
} else {
userAvailable().then((res) => {
if (res) {
navigate("/login/users");
} else if (!res) {
navigate("/login/manual");
}
});
}
};
const location = useLocation();
return (
<SnackbarProvider maxSnack={5}>
<ThemeProvider theme={theme}>
<AnimatePresence>
<CssBaseline />
<Routes key={location.pathname} location={location}>
<Route element={<AnimationWrapper />}>
{/* Main Routes */}
<Route path="/home" element={<Home />} />
<Route
path="/setup/server"
element={<ServerSetup />}
/>
<Route
path="/servers/list"
element={<ServerList />}
/>
<Route
exact
path="/login/withImg/:userName/:userId/"
element={<LoginWithImage />}
/>
<Route
exact
path="/login/users"
element={<UserLogin />}
/>
<Route
path="/login/manual"
element={<UserLoginManual />}
/>
{/* Logical Routes */}
<Route
exact
path="/login"
element={
<HandleLoginRoutes></HandleLoginRoutes>
}
/>
<Route
path="/"
element={
serverAvailable() ? (
<Navigate to="/login" />
) : (
<Navigate to="/setup/server" />
)
}
/>
</Route>
</Routes>
</AnimatePresence>
</ThemeProvider>
</SnackbarProvider>
);
}
export default App;
+1
View File
@@ -0,0 +1 @@
/** @format */
+28
View File
@@ -0,0 +1,28 @@
<svg width="5000" height="455" viewBox="0 0 5000 455" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M174.178 454.868C144.522 454.868 116.954 448.185 91.4748 434.818C65.9955 421.035 45.1108 402.238 28.8208 378.43C12.5308 354.621 2.92385 328.307 0 299.486H23.182C26.1058 324.13 34.6685 346.685 48.8701 367.152C63.0716 387.201 81.0324 403.074 102.752 414.769C124.89 426.047 148.699 431.686 174.178 431.686C202.163 431.686 227.852 424.794 251.242 411.01C274.633 397.226 293.22 378.221 307.004 353.995C320.788 329.769 327.68 302.619 327.68 272.545V32.58H132.2V9.39808H350.236V272.545C350.236 306.796 342.299 337.914 326.427 365.899C310.972 393.467 289.67 415.187 262.52 431.059C235.788 446.931 206.34 454.868 174.178 454.868Z" fill="white"/>
<path d="M495.113 9.39808H802.117V32.58H518.295V209.264H765.152V232.446H518.295V422.288H802.117V445.47H495.113V9.39808Z" fill="white"/>
<path d="M974.562 445.47V9.39808H997.744V422.288H1301.62V445.47H974.562Z" fill="white"/>
<path d="M1438.35 445.47V9.39808H1461.53V422.288H1765.4V445.47H1438.35Z" fill="white"/>
<path d="M1882.71 9.39808L2037.47 242.471L2190.97 9.39808H2218.54L2048.74 266.906V445.47H2025.56V266.906L1855.14 9.39808H1882.71Z" fill="white"/>
<path d="M2379.08 445.47H2355.9V9.39808H2531.33C2560.57 9.39808 2587.51 15.6635 2612.15 28.1943C2637.21 40.7251 2657.05 58.477 2671.67 81.4501C2686.29 104.423 2693.6 130.947 2693.6 161.021C2693.6 189.841 2686.08 216.365 2671.05 240.591C2656.43 264.817 2636.38 283.405 2610.9 296.353C2588.76 307.631 2562.24 313.27 2531.33 313.27H2379.08V445.47ZM2379.08 290.088H2531.33C2558.06 290.088 2579.99 285.911 2597.11 277.557C2619.25 267.115 2637 251.451 2650.37 230.566C2663.74 209.682 2670.42 186.5 2670.42 161.021C2670.42 135.959 2663.74 112.986 2650.37 92.1013C2637 71.2167 2619.04 55.5532 2596.49 45.1108C2579.36 36.757 2557.64 32.58 2531.33 32.58H2379.08V290.088Z" fill="white"/>
<path d="M2829.71 445.47V9.39808H2852.89V422.288H3156.76V445.47H2829.71Z" fill="white"/>
<path d="M3633.7 445.47H3222.69L3428.2 0L3633.7 445.47Z" fill="url(#paint0_linear_303_3)"/>
<path d="M3737.86 9.39808L3892.61 242.471L4046.11 9.39808H4073.68L3903.89 266.906V445.47H3880.71V266.906L3710.29 9.39808H3737.86Z" fill="white"/>
<path d="M4205.4 9.39808H4512.41V32.58H4228.58V209.264H4475.44V232.446H4228.58V422.288H4512.41V445.47H4205.4V9.39808Z" fill="white"/>
<path d="M4914.16 23.8085C4939.23 35.5039 4958.86 52.8382 4973.06 75.8113C4987.68 98.7844 4994.99 124.264 4994.99 152.249C4994.99 184.829 4984.96 214.068 4964.91 239.965C4945.28 265.444 4914.58 285.776 4883.67 294.13L4664.8 9.39808H4830.83C4849.21 9.39808 4864.88 10.6512 4877.83 13.1573C4891.19 15.2458 4903.3 18.7962 4914.16 23.8085Z" fill="url(#paint1_linear_303_3)"/>
<path d="M5000 445.47L4883.67 294.13H4664.8V445.47H5000Z" fill="url(#paint2_linear_303_3)"/>
<defs>
<linearGradient id="paint0_linear_303_3" x1="3532.59" y1="229.314" x2="3227.04" y2="442.278" gradientUnits="userSpaceOnUse">
<stop stop-color="#FB2576"/>
<stop offset="1" stop-color="#150050"/>
</linearGradient>
<linearGradient id="paint1_linear_303_3" x1="4953.89" y1="53.3888" x2="4666.85" y2="442.278" gradientUnits="userSpaceOnUse">
<stop stop-color="#FB2576"/>
<stop offset="1" stop-color="#150050"/>
</linearGradient>
<linearGradient id="paint2_linear_303_3" x1="4953.89" y1="53.3888" x2="4666.85" y2="442.278" gradientUnits="userSpaceOnUse">
<stop stop-color="#FB2576"/>
<stop offset="1" stop-color="#150050"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.4 KiB

+32
View File
@@ -0,0 +1,32 @@
/** @format */
import AppBar from "@mui/material/AppBar";
import Toolbar from "@mui/material/Toolbar";
import IconButton from "@mui/material/IconButton";
import { MdiArrowLeft } from "../icons/mdiArrowLeft";
import { useNavigate } from "react-router-dom";
export const AppBarBackOnly = () => {
const navigate = useNavigate();
const handleBack = () => {
navigate(-1);
};
return (
<AppBar elevation={0} color="transparent" position="fixed">
<Toolbar>
<IconButton
size="large"
edge="start"
color="white"
aria-label="back"
onClick={handleBack}
sx={{ mr: 2 }}
>
<MdiArrowLeft />
</IconButton>
</Toolbar>
</AppBar>
);
};
+82
View File
@@ -0,0 +1,82 @@
/** @format */
import PropTypes from "prop-types";
import Typography from "@mui/material/Typography";
import ButtonBase from "@mui/material/ButtonBase";
import Account from "mdi-material-ui/Account";
import "./avatar.module.scss";
export const AvatarCard = ({ userName, userId, userImageAvailable }) => {
return (
<ButtonBase className="card square">
<div className="card-image-container">
{userImageAvailable ? (
<div
className="card-image"
style={{
backgroundImage:
"url('" +
window.api.basePath +
"/Users/" +
userId +
"/Images/Primary')",
// http://localhost/Users/{userId}/Images/{imageType}
}}
></div>
) : (
<div className="card-image empty"></div>
)}
<div className="card-image-icon-container">
<Account className="card-image-icon" />
</div>
</div>
<div className="card-text-container">
<Typography
variant="button"
color="textPrimary"
className="card-text"
>
{userName}
</Typography>
</div>
</ButtonBase>
);
};
export const AvatarImage = ({ userId }) => {
return (
<div className="avatar-image-container">
<div
className="avatar-image"
style={{
backgroundImage:
"url('" +
window.api.basePath +
"/Users/" +
userId +
"/Images/Primary')",
}}
></div>
<div className="avatar-image-icon-container">
<Account className="avatar-image-icon" />
</div>
</div>
);
};
export const AvatarSideMenu = ({ userName }) => {
return <div></div>;
};
AvatarCard.propType = {
userName: PropTypes.string.isRequired,
userId: PropTypes.string.isRequired,
userImageAvailable: PropTypes.bool.isRequired,
};
AvatarImage.propType = {
userId: PropTypes.string.isRequired,
};
+62
View File
@@ -0,0 +1,62 @@
/** @format */
.userCard {
text-decoration: none !important;
}
.card.square {
width: fit-content;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 0.5em;
margin-bottom: 0.5em;
.card-image {
position: absolute;
inset: 0;
&-container {
font-size: 5em;
}
&-icon {
font-size: 1.5em !important;
&-container {
position: static;
width: 1.5em !important;
height: 1.5em !important;
aspect-ratio: 1;
border-radius: $border-radius-default;
color: $clr-accent-default;
background: $clr-accent-dark;
}
}
}
.card-text {
margin: 0 !important;
text-decoration: none !important;
}
}
.avatar-image {
aspect-ratio: 1;
height: 100%;
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
&-container {
width: fit-content;
aspect-ratio: 1;
position: relative;
border-radius: 100vh;
overflow: hidden;
}
&-icon {
height: 100%;
padding: 0.2em;
background: $clr-accent-dark;
color: $clr-accent-default;
font-size: 6em !important;
}
}
+110
View File
@@ -0,0 +1,110 @@
/** @format */
import React from "react";
import PropTypes from "prop-types";
import Typography from "@mui/material/Typography";
import {
MediaCollectionTypeIconCollectionCard,
MediaTypeIconCollectionCard,
} from "../utils/iconsCollection";
import "./card.module.scss";
export const CardLandscape = ({ itemName, itemId, imageTags, iconType }) => {
const imageAvailable = () => {
console.log(imageTags);
if (imageTags == undefined) {
console.log("hee");
return false;
} else {
return true;
}
};
return (
<div className="card landscape">
<div className="card-image-container">
{imageAvailable ? (
<div
className="card-image"
style={{
backgroundImage:
"url('" +
window.api.basePath +
"/Items/" +
itemId +
"/Images/Primary')",
}}
></div>
) : (
<div className="card-image empty"></div>
)}
<div className="card-image-icon-container">
{MediaCollectionTypeIconCollectionCard[iconType]}
</div>
</div>
<div className="card-text-container">
<Typography variant="button" color="white">
{itemName}
</Typography>
</div>
</div>
);
};
export const CardPotrait = ({ itemName, itemId, imageTags, iconType }) => {
const imageAvailable = () => {
console.log(imageTags);
if (imageTags == undefined) {
console.log("hee");
return false;
} else {
return true;
}
};
return (
<div className="card portrait">
<div className="card-image-container">
{imageAvailable ? (
<div
className="card-image"
style={{
backgroundImage:
"url('" +
window.api.basePath +
"/Items/" +
itemId +
"/Images/Primary?quality=95&fillHeight=350&fillWidth=243')",
}}
></div>
) : (
<div className="card-image empty"></div>
)}
<div className="card-image-icon-container">
{MediaTypeIconCollectionCard[iconType]}
</div>
</div>
<div className="card-text-container">
<Typography variant="button" color="white">
{itemName}
</Typography>
</div>
</div>
);
};
CardLandscape.propTypes = {
itemName: PropTypes.string.isRequired,
itemId: PropTypes.string.isRequired,
imageTags: PropTypes.object,
iconType: PropTypes.string.isRequired,
};
CardPotrait.propTypes = {
itemName: PropTypes.string.isRequired,
itemId: PropTypes.string.isRequired,
imageTags: PropTypes.object,
iconType: PropTypes.string.isRequired,
};
+52
View File
@@ -0,0 +1,52 @@
/** @format */
.card {
margin-right: 1em;
&.landscape {
--image-aspect-ratio: 1.77;
}
&.portrait {
--image-aspect-ratio: 0.65;
}
&-image {
position: relative;
z-index: 1;
border-radius: 10px;
aspect-ratio: var(--image-aspect-ratio);
background-size: cover;
background-position: center;
&-container {
position: relative;
}
&-icon {
font-size: 4.5em !important;
&-container {
display: flex;
justify-content: center;
align-items: center;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100% !important;
height: 100% !important;
border-radius: $border-radius-default;
color: $clr-accent-default;
background: $clr-accent-dark;
z-index: 0;
}
}
}
&-text-container {
margin-top: 0.5em;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
}
@@ -0,0 +1,83 @@
/** @format */
import { useRef, useEffect } from "react";
import PropTypes from "prop-types";
import Carousel from "react-multi-carousel";
import "react-multi-carousel/lib/styles.css";
import ChevronLeft from "mdi-material-ui/ChevronLeft";
import ChevronRight from "mdi-material-ui/ChevronRight";
import { styled } from "@mui/material/styles";
import Button from "@mui/material/Button";
import ButtonGroup from "@mui/material/ButtonGroup";
import "./cardScroller.module.scss";
const CarouselButton = styled(Button)(() => ({
color: "white",
height: "100%",
}));
const SliderButtonRight = ({ onClick }) => {
return (
<CarouselButton
onClick={() => onClick()}
className="card-scroller-button right"
variant="text"
>
<ChevronRight />
</CarouselButton>
);
};
const SliderButtonLeft = ({ onClick }) => {
return (
<CarouselButton
onClick={() => onClick()}
className="card-scroller-button left"
variant="text"
>
<ChevronLeft />
</CarouselButton>
);
};
export const CardScroller = ({ children, displayCards }) => {
const responsive = {
desktop: {
breakpoint: { max: 3000, min: 1024 },
items: displayCards,
slidesToSlide: displayCards, // optional, default to 1.
},
tablet: {
breakpoint: { max: 1024, min: 464 },
items: displayCards - 1,
slidesToSlide: displayCards - 1, // optional, default to 1.
},
mobile: {
breakpoint: { max: 464, min: 0 },
items: displayCards - 2,
slidesToSlide: displayCards - 2, // optional, default to 1.
},
};
return (
<Carousel
swipeable={false}
draggable={false}
responsive={responsive}
arrows={true}
customRightArrow={<SliderButtonRight />}
customLeftArrow={<SliderButtonLeft />}
className="card-scroller"
>
{children}
</Carousel>
);
};
CardScroller.propTypes = {
displayCards: PropTypes.number.isRequired,
};
@@ -0,0 +1,29 @@
/** @format */
.card-scroller {
// height: 20em;
&-slide {
overflow: visible;
display: flex;
}
&-button {
color: white;
position: absolute !important;
top: 49%;
transform: translateY(-50%);
background-color: $clr-background-dark !important;
border-radius: $border-radius-intensity-1 !important;
opacity: 0;
transition: opacity $transition-time-default !important;
&:hover,
&:focus {
opacity: 1;
}
&.right {
right: 0%;
}
&.left {
left: 0%;
}
}
}
+13
View File
@@ -0,0 +1,13 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiArrowLeft } from "@mdi/js";
export const MdiArrowLeft = () => {
return (
<SvgIcon>
<path d={mdiArrowLeft}></path>
</SvgIcon>
);
};
+13
View File
@@ -0,0 +1,13 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiChevronRight } from "@mdi/js";
export const MdiChevronRight = () => {
return (
<SvgIcon>
<path d={mdiChevronRight}></path>
</SvgIcon>
);
};
+13
View File
@@ -0,0 +1,13 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiEyeOffOutline } from "@mdi/js";
export const MdiEyeOffOutline = () => {
return (
<SvgIcon>
<path d={mdiEyeOffOutline}></path>
</SvgIcon>
);
};
+13
View File
@@ -0,0 +1,13 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiEyeOutline } from "@mdi/js";
export const MdiEyeOutline = () => {
return (
<SvgIcon>
<path d={mdiEyeOutline}></path>
</SvgIcon>
);
};
+5
View File
@@ -0,0 +1,5 @@
/** @format */
export const SplashScreen = () => {
return <h1>I am loading...</h1>;
};
+61
View File
@@ -0,0 +1,61 @@
/** @format */
import MovieOutline from "mdi-material-ui/MovieOutline";
import MusicBoxMultipleOutline from "mdi-material-ui/MusicBoxMultipleOutline";
import PlaylistMusicOutline from "mdi-material-ui/PlaylistMusicOutline";
import Television from "mdi-material-ui/Television";
import FolderOutline from "mdi-material-ui/FolderOutline";
import FolderMusicOutline from "mdi-material-ui/FolderMusicOutline";
import Youtube from "mdi-material-ui/Youtube";
import MultiMedia from "mdi-material-ui/Multimedia";
import BookMultiple from "mdi-material-ui/BookMultiple";
import ImageMultiple from "mdi-material-ui/ImageMultiple";
import TelevisionClassic from "mdi-material-ui/TelevisionClassic";
import Filmstrip from "mdi-material-ui/Filmstrip";
import Microphone from "mdi-material-ui/Microphone";
import Image from "mdi-material-ui/Image";
import Book from "mdi-material-ui/Book";
export const MediaCollectionTypeIconCollection = {
universal: <MultiMedia />,
movies: <MovieOutline />,
music: <MusicBoxMultipleOutline />,
playlists: <PlaylistMusicOutline />,
tvshows: <Television />,
boxsets: <MovieOutline />,
musicvideos: <FolderMusicOutline />,
trailers: <Youtube />,
books: <BookMultiple />,
photos: <ImageMultiple />,
livetv: <TelevisionClassic />,
folder: <FolderOutline />,
};
export const MediaCollectionTypeIconCollectionCard = {
universal: <MultiMedia className="card-image-icon" />,
movies: <MovieOutline className="card-image-icon" />,
music: <MusicBoxMultipleOutline className="card-image-icon" />,
playlists: <PlaylistMusicOutline className="card-image-icon" />,
tvshows: <Television className="card-image-icon" />,
boxsets: <MovieOutline className="card-image-icon" />,
musicvideos: <FolderMusicOutline className="card-image-icon" />,
trailers: <Youtube className="card-image-icon" />,
books: <BookMultiple className="card-image-icon" />,
photos: <ImageMultiple className="card-image-icon" />,
livetv: <TelevisionClassic className="card-image-icon" />,
folder: <FolderOutline className="card-image-icon" />,
};
export const MediaTypeIconCollection = {
Video: <Filmstrip className="hero-carousel-background-icon" />,
Audio: <Microphone className="hero-carousel-background-icon" />,
Photo: <Image className="hero-carousel-background-icon" />,
Book: <Book className="hero-carousel-background-icon" />,
};
export const MediaTypeIconCollectionCard = {
Video: <Filmstrip className="card-image-icon" />,
Audio: <Microphone className="card-image-icon" />,
Photo: <Image className="card-image-icon" />,
Book: <Book className="card-image-icon" />,
};
+6
View File
@@ -0,0 +1,6 @@
/** @format */
import { EventEmitter as eventEmitter } from "events";
// const eventEmitter = require("events");
export const EventEmitter = new eventEmitter();
+1
View File
@@ -0,0 +1 @@
/** @format */
+19
View File
@@ -0,0 +1,19 @@
/** @format */
import React from "react";
import ReactDOM from "react-dom/client";
import { BrowserRouter as Router } from "react-router-dom";
import { CookiesProvider } from "react-cookie";
import App from "./App";
ReactDOM.createRoot(document.getElementById("root")).render(
<React.StrictMode>
<CookiesProvider>
<Router>
<App />
</Router>
</CookiesProvider>
</React.StrictMode>,
);
+13
View File
@@ -0,0 +1,13 @@
/** @format */
/** @format */
@use "./styles/variables.scss" as *;
:export {
clrAccentDefault: $clr-accent-default;
clrSecondaryDefault: $clr-secondary-default;
clrBackgroundDefault: $clr-background-default;
clrBackgroundDark: $clr-background-dark;
clrBackgroundLight: $clr-background-light;
}
+99
View File
@@ -0,0 +1,99 @@
/** @format */
.hero-carousel {
position: relative;
overflow: hidden;
isolation: isolate;
&-slide {
position: relative;
height: 70vh;
border-radius: 10px !important;
overflow: hidden;
margin: 0 auto;
}
&-background {
&-container {
position: absolute;
z-index: 0;
top: 0;
left: 0;
right: 0;
bottom: 0;
mask-image: linear-gradient(
to right,
transparent 20%,
black 50%
);
-webkit-mask-image: linear-gradient(
to right,
transparent 20%,
rgb(0 0 0 / 0.5) 50%,
black 90%
);
}
&-image {
position: absolute;
background-size: cover;
z-index: 1;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
&-icon {
position: absolute;
font-size: 10em !important;
left: 70%;
top: 50%;
transform: translate(-50%, -50%);
color: $clr-accent-default;
&-container {
position: absolute;
background: $clr-accent-dark;
z-index: 0;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
}
}
&-text {
display: -webkit-box;
overflow: hidden;
-webkit-line-clamp: 2;
}
&-detail {
position: relative;
z-index: 0;
display: flex;
height: 70vh;
width: 70%;
padding: 0 2em 2em 2em;
flex-direction: column;
justify-content: center;
align-items: flex-start;
}
&-indicator {
width: 100%;
height: 5px;
border-radius: 0;
}
}
.home-section {
&-heading {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 0.35em;
position: relative;
margin-bottom: 0.25em !important;
&-decoration {
width: 0.75em;
height: 3px;
background: white;
}
}
}
+542
View File
@@ -0,0 +1,542 @@
/** @format */
import { useState, useEffect } from "react";
import { Cookies } from "react-cookie";
import { theme } from "../../theme";
import "./home.module.scss";
import { styled } from "@mui/material/styles";
import Box from "@mui/material/Box";
import Skeleton from "@mui/material/Skeleton";
import Button from "@mui/material/Button";
import MuiAppBar from "@mui/material/AppBar";
import MuiDrawer from "@mui/material/Drawer";
import List from "@mui/material/List";
import ListItem from "@mui/material/ListItem";
import ListItemText from "@mui/material/ListItemText";
import ListItemIcon from "@mui/material/ListItemIcon";
import ListItemButton from "@mui/material/ListItemButton";
import IconButton from "@mui/material/IconButton";
import Toolbar from "@mui/material/Toolbar";
import Divider from "@mui/material/Divider";
import Paper from "@mui/material/Paper";
import Typography from "@mui/material/Typography";
import useScrollTrigger from "@mui/material/useScrollTrigger";
import Carousel from "react-material-ui-carousel";
// Custom Components
import { CardLandscape, CardPotrait } from "../../components/card/card";
import { CardScroller } from "../../components/cardScroller/cardScroller";
// Icons
import {
MediaCollectionTypeIconCollection,
MediaTypeIconCollection,
} from "../../components/utils/iconsCollection.jsx";
import MenuIcon from "mdi-material-ui/Menu";
import Close from "mdi-material-ui/Close";
import { getLibraryApi } from "@jellyfin/sdk/lib/utils/api/library-api";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
import { getUserViewsApi } from "@jellyfin/sdk/lib/utils/api/user-views-api";
const drawerWidth = 320;
const DrawerHeader = styled("div")(({ theme }) => ({
display: "flex",
alignItems: "center",
justifyContent: "flex-end",
padding: theme.spacing(0, 1),
// necessary for content to be below app bar
...theme.mixins.toolbar,
}));
const MiniDrawer = styled(MuiDrawer, {
shouldForwardProp: (prop) => prop !== "open",
})(({ theme }) => ({
flexShrink: 0,
whiteSpace: "nowrap",
boxSizing: "border-box",
backgroundColor: theme.palette.primary.background.dark,
overflowX: "hidden",
width: `calc(${theme.spacing(7)} + 1px)`,
}));
const AppBar = styled(MuiAppBar, {
shouldForwardProp: (prop) => prop !== "open",
})(({ theme }) => ({
zIndex: theme.zIndex.drawer + 1,
transition: theme.transitions.create(["width", "margin"], {
easing: theme.transitions.easing.sharp,
duration: theme.transitions.duration.leavingScreen,
}),
backgroundColor: "transparent",
backgroundImage: "none",
}));
export const Home = () => {
const [skeletonStateSideMenu, setSkeletonStateSideMenu] = useState(false);
const [skeletonStateCarousel, setSkeletonStateCarousel] = useState(false);
const [userLibraries, setUserLibraries] = useState([]);
const [latestMovies, setLatestMovies] = useState([]);
const [user, setUser] = useState({
Name: "",
});
const excludeTypes = ["boxsets", "playlists", "livetv", "channels"];
const [latestMedia, setLatestMedia] = useState([]);
const [drawerState, setDrawerState] = useState(false);
const cookies = new Cookies();
const scrollTrigger = useScrollTrigger({ threshold: 5 });
const handleDrawerOpen = () => {
setDrawerState(true);
};
const handleDrawerClose = () => {
setDrawerState(false);
};
const handleLogout = async () => {
await window.api.logout();
console.log("logged out user");
};
const currentUser = async () => {
const user = await getUserApi(window.api).getCurrentUser();
return user;
};
const userLibs = async () => {
const userLibs = await getLibraryApi(window.api).getMediaFolders();
return userLibs;
};
const getLatestMedia = async (user) => {
const media = await getUserLibraryApi(window.api).getLatestMedia({
userId: user.Id,
fields: "Overview",
enableUserData: true,
});
return media;
};
const userViews = async (user) => {
const userviews = await getUserViewsApi(window.api).getUserViews({
userId: user.Id,
});
return userviews;
};
useEffect(() => {
currentUser().then((usr) => {
setUser(usr.data);
userLibs().then((libs) => {
setUserLibraries(libs.data.Items);
setSkeletonStateSideMenu(true);
});
getLatestMedia(usr.data).then((media) => {
setLatestMedia(media.data);
setSkeletonStateCarousel(true);
});
});
}, []);
return (
<>
<Box
sx={{
display: "flex",
}}
>
<AppBar
position="fixed"
open={drawerState}
color="primary"
elevation={0}
>
<Toolbar>
<IconButton
color="inherit"
aria-label="open drawer"
onClick={handleDrawerOpen}
edge="start"
sx={{
marginRight: 5,
...(drawerState && { display: "none" }),
}}
>
<MenuIcon />
</IconButton>
</Toolbar>
</AppBar>
<MiniDrawer
variant="permanent"
open={false}
PaperProps={{
sx: {
backgroundColor: "inherit",
border: "none",
},
}}
>
<DrawerHeader
className="Mui-DrawerHeader"
sx={{ position: "relative", height: "20vh" }}
>
{/* <div>
<Avatar src={""}/>
<Typography variant="h3">
{user["Name"]}
</Typography>
</div> */}
<IconButton
onClick={handleDrawerClose}
sx={{
position: "absolute",
top: "10%",
right: "5%",
opacity: drawerState ? 1 : 0,
}}
>
<Close />
</IconButton>
</DrawerHeader>
<Divider />
{skeletonStateSideMenu ? (
<List sx={{ border: "none" }}>
{userLibraries.map((library, index) => {
return (
<ListItem
disablePadding
key={index}
>
<ListItemButton
sx={{
minHeight: 48,
justifyContent:
drawerState
? "initial"
: "center",
px: 2.5,
}}
>
<ListItemIcon
sx={{
minWidth: 0,
mr: drawerState
? 3
: "auto",
justifyContent:
"center",
}}
>
{
MediaCollectionTypeIconCollection[
library
.CollectionType
]
}
</ListItemIcon>
</ListItemButton>
</ListItem>
);
})}
</List>
) : (
<>
<Skeleton
height={50}
variant="rectangular"
animation="wave"
></Skeleton>
<br />
<Skeleton
height={50}
variant="rectangular"
animation="wave"
></Skeleton>
<br />
<Skeleton
height={50}
variant="rectangular"
animation="wave"
></Skeleton>
</>
)}
</MiniDrawer>
<MuiDrawer
anchor="left"
open={drawerState}
onClose={handleDrawerClose}
>
<DrawerHeader
className="Mui-DrawerHeader"
sx={{ position: "relative", height: "20vh" }}
>
{/* <div>
<Avatar src={""}/>
<Typography variant="h3">
{user["Name"]}
</Typography>
</div> */}
<IconButton
onClick={handleDrawerClose}
sx={{
position: "absolute",
top: "10%",
right: "5%",
}}
>
<Close />
</IconButton>
</DrawerHeader>
<Divider />
<List sx={{ border: "none" }}>
{userLibraries.map((library, index) => {
return (
<ListItem disablePadding key={index}>
<ListItemButton
sx={{
minHeight: 48,
justifyContent:
drawerState
? "initial"
: "center",
px: 2.5,
}}
>
<ListItemIcon
sx={{
minWidth: 0,
mr: 3,
justifyContent:
"center",
}}
>
{
MediaCollectionTypeIconCollection[
library
.CollectionType
]
}
</ListItemIcon>
<ListItemText
primary={library.Name}
/>
</ListItemButton>
</ListItem>
);
})}
</List>
</MuiDrawer>
{/* <h1>Hey {userId} this is WIP Home</h1> */}
<Box
component="main"
className="scrollY"
sx={{ flexGrow: 1, p: 3 }}
>
<DrawerHeader />
<Carousel
className="hero-carousel"
autoPlay={true}
animation="fade"
height="70vh"
IndicatorIcon={
<div className="hero-carousel-indicator"></div>
}
activeIndicatorIconButtonProps={{
style: {
background: "rgb(255 255 255)",
},
}}
indicatorIconButtonProps={{
style: {
background: "rgb(255 255 255 / 0.3)",
borderRadius: "2px",
width: "100%",
flexShrink: "1",
},
}}
indicatorContainerProps={{
style: {
display: "flex",
gap: "1em",
},
}}
sx={{
marginBottom: "1.5em",
}}
interval={10000}
>
{skeletonStateCarousel ? (
latestMedia.map((item, index) => {
// console.log(item);
return (
<Paper
className="hero-carousel-slide"
sx={{
background:
theme.palette
.primary
.background
.dark,
}}
key={index}
>
<div className="hero-carousel-background-container">
{item.ImageBlurHashes
.Backdrop ? (
<div
className="hero-carousel-background-image"
style={{
backgroundImage: `url(${
window
.api
.basePath +
"/Items/" +
item.Id +
"/Images/Backdrop"
})`,
}}
></div>
) : (
<div className="hero-carousel-background-image empty"></div>
)}
<div className="hero-carousel-background-icon-container">
{
MediaTypeIconCollection[
item
.MediaType
]
}
</div>
</div>
<Box className="hero-carousel-detail">
<Typography
variant="h3"
className="hero-carousel-text"
>
{item.Name}
</Typography>
<Typography
variant="subtitle1"
className="hero-carousel-text"
>
{item.Overview}
</Typography>
</Box>
</Paper>
);
})
) : (
<Paper
className="hero-carousel-slide"
sx={{
background:
theme.palette.primary
.background.dark,
}}
>
<div className="hero-carousel-background">
<Skeleton
variant="rectangular"
height="100%"
animation="wave"
></Skeleton>
</div>
<Box className="hero-carousel-detail">
<Typography
variant="h3"
className="hero-carousel-text"
>
<Skeleton
variant="text"
sx={{ fontSize: "5rem" }}
width={300}
animation="wave"
></Skeleton>
</Typography>
<Typography
variant="p"
className="hero-carousel-text"
>
<Skeleton
variant="text"
sx={{ fontSize: "3rem" }}
width={400}
animation="wave"
></Skeleton>
</Typography>
</Box>
</Paper>
)}
</Carousel>
<Box className="home-section">
<Typography
variant="h4"
color="textPrimary"
className="home-section-heading"
>
<div className="home-section-heading-decoration"></div>{" "}
Libraries
</Typography>
<CardScroller displayCards={4}>
{userLibraries.map((library, index) => {
// console.log(userLibraries);
return (
<CardLandscape
key={index}
itemName={library.Name}
itemId={library.Id}
imageTags={library.imageTags}
iconType={
library.CollectionType
}
></CardLandscape>
);
})}
</CardScroller>
</Box>
<Box className="home-section">
<Typography
variant="h4"
color="textPrimary"
className="home-section-heading"
>
<div className="home-section-heading-decoration"></div>{" "}
Latest Movies
</Typography>
<CardScroller displayCards={7}>
{latestMovies.map((movie, index) => {
return (
<CardPotrait
key={index}
itemName={movie.Name}
itemId={movie.Id}
imageTags={movie.imageTags}
iconType={movie.MediaType}
></CardPotrait>
);
})}
</CardScroller>
</Box>
<Button variant="contained" onClick={handleLogout}>
Logout
</Button>
</Box>
</Box>
</>
);
};
+30
View File
@@ -0,0 +1,30 @@
/** @format */
.user {
&List {
display: flex;
gap: 1em;
width: min(60vw, 45em);
}
&Card {
display: flex;
flex-flow: column;
flex: 1 1 0px;
}
&Icon {
font-size: 5em;
display: flex;
justify-content: center;
align-items: center;
background: $clr-accent-dark;
}
}
.buttons {
display: flex;
gap: 1em;
width: 100%;
.userEventButton {
flex: 1 1 0 !important;
}
}
+395
View File
@@ -0,0 +1,395 @@
/** @format */
import { useState, useEffect } from "react";
import { Cookies, useCookies } from "react-cookie";
import { useNavigate, useParams, Link } from "react-router-dom";
import { EventEmitter as event } from "../../eventEmitter.js";
import { motion } from "framer-motion";
// import Icon from "mdi-material-ui";
import { MdiEyeOffOutline } from "../../components/icons/mdiEyeOffOutline";
import { MdiEyeOutline } from "../../components/icons/mdiEyeOutline";
import { MdiChevronRight } from "../../components/icons/mdiChevronRight";
import Container from "@mui/material/Container";
import Grid from "@mui/material/Grid";
import Typography from "@mui/material/Typography";
import OutlinedInput from "@mui/material/OutlinedInput";
import FormControl from "@mui/material/FormControl";
import InputAdornment from "@mui/material/InputAdornment";
import InputLabel from "@mui/material/InputLabel";
import IconButton from "@mui/material/IconButton";
import LoadingButton from "@mui/lab/LoadingButton";
import Button from "@mui/material/Button";
import { useSnackbar } from "notistack";
import { AvatarCard, AvatarImage } from "../../components/avatar/avatar.jsx";
import { AppBarBackOnly } from "../../components/appBar/backOnly.jsx";
// import { jellyfin } from "../../jellyfin";
// import getSystemApi from "@jellyfin/sdk";
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
import "./login.module.scss";
export const LoginWithImage = () => {
const { userName, userId } = useParams();
const [password, setPassword] = useState({
showpass: false,
});
const [loading, setLoading] = useState(false);
const navigate = useNavigate();
const { enqueueSnackbar } = useSnackbar();
const handlePassword = (prop) => (event) => {
setPassword({
...password,
[prop]: event.target.value,
});
};
const handleShowPassword = () => {
setPassword({
...password,
showpass: !password.showpass,
});
};
const authUser = async () => {
try {
const auth = await api.authenticateUserByName(
userName,
password.password,
);
return auth;
} catch (error) {
enqueueSnackbar("Incorrect Password!", { variant: "error" });
setLoading(false);
console.error(error);
}
};
const handleLogin = async () => {
setLoading(true);
const user = await authUser();
sessionStorage.setItem("accessToken", user.data.AccessToken);
event.emit("set-api-accessToken", window.api.basePath);
// setAccessToken(user.data.AccessToken)
setLoading(false);
navigate(`/home`);
};
return (
<>
<AppBarBackOnly />
<Container maxWidth="xs" className="centered">
<Grid
container
direction="column"
justifyContent="center"
alignItems="center"
spacing={2}
>
<Grid item marginBottom={2}>
<Typography
textAlign="center"
variant="h3"
color="textPrimary"
>
Login
<br />
</Typography>
</Grid>
<Grid
container
direction="column"
justifyContent="center"
alignItems="center"
>
<AvatarImage userId={userId} />
<Typography
color="textPrimary"
textAlign="center"
variant="h4"
>
{userName}
</Typography>
</Grid>
<Grid item minWidth="100%">
<br />
<FormControl variant="outlined" fullWidth>
<InputLabel htmlFor="user-password">
Password:
</InputLabel>
<OutlinedInput
id="user-password"
type={
password.showpass
? "text"
: "password"
}
variant="outlined"
onChange={handlePassword("password")}
label="Password:"
endAdornment={
<InputAdornment position="end">
<IconButton
onClick={
handleShowPassword
}
aria-label="toggle password visibility"
>
{password.showpass ? (
<MdiEyeOffOutline />
) : (
<MdiEyeOutline />
)}
</IconButton>
</InputAdornment>
}
/>
</FormControl>
</Grid>
<Grid item minWidth="100%">
<LoadingButton
variant="contained"
endIcon={<MdiChevronRight />}
onClick={handleLogin}
loading={loading}
loadingPosition="end"
size="large"
fullWidth
>
Login
</LoadingButton>
</Grid>
</Grid>
</Container>
</>
);
};
export const UserLogin = () => {
const [userList, setUsers] = useState([]);
const navigate = useNavigate();
const cookies = new Cookies();
const currentServer = cookies.get("currentServer");
const serverList = cookies.get("servers");
const handleChangeServer = () => {
navigate("/servers/list");
};
const handleManualLogin = () => {
navigate("/login/manual");
};
const getUsers = async () => {
const users = await getUserApi(window.api).getPublicUsers();
// console.log(users.data);
return users;
// return {};
};
useEffect(() => {
getUsers().then((users) => {
setUsers(users.data);
console.log(userList);
});
}, []);
return (
<>
<AppBarBackOnly />
<Container maxWidth="md" className="centered">
<h1 color="white">WIP-user login</h1>
<div className="userList">
{userList.map((item, index) => {
return (
//
<Link
to={`/login/withImg/${item.Name}/${item.Id}/`}
key={item.Id}
className="userCard"
index={index}
>
{item.PrimaryImageTag ? (
<AvatarCard
userName={item.Name}
userId={item.Id}
userImageAvailable={true}
></AvatarCard>
) : (
<AvatarCard
userName={item.Name}
userImageAvailable={false}
></AvatarCard>
)}
</Link>
);
})}
</div>
<div className="buttons">
<Button
color="secondary"
variant="contained"
className="userEventButton"
onClick={handleChangeServer}
>
Change Server
</Button>
<Button
variant="contained"
className="userEventButton"
onClick={handleManualLogin}
>
Manual Login
</Button>
</div>
</Container>
</>
);
};
export const UserLoginManual = () => {
const [loading, setLoading] = useState(false);
const navigate = useNavigate();
const { enqueueSnackbar } = useSnackbar();
const [password, setPassword] = useState({
showpass: false,
});
const [userName, setUserName] = useState("");
const handleUsername = (event) => {
setUserName(event.target.value);
};
const handlePassword = (prop) => (event) => {
setPassword({
...password,
[prop]: event.target.value,
});
};
const handleShowPassword = () => {
setPassword({
...password,
showpass: !password.showpass,
});
};
const authUser = async () => {
try {
const auth = await api.authenticateUserByName(
userName,
password.password,
);
return auth;
} catch (error) {
enqueueSnackbar("Incorrect Username or Password!", {
variant: "error",
});
setLoading(false);
console.error(error);
}
};
const handleLogin = async () => {
setLoading(true);
const user = await authUser();
sessionStorage.setItem("accessToken", user.data.AccessToken);
event.emit("set-api-accessToken", window.api.basePath);
// setAccessToken(user.data.AccessToken)
setLoading(false);
navigate(`/home`);
};
return (
<>
<AppBarBackOnly />
<Container maxWidth="xs" className="centered">
<Grid
container
spacing={2}
direction="column"
justifyContent="center"
alignItems="center"
>
<Grid item xl={5} md={6} sx={{ marginBottom: "1em" }}>
<Typography variant="h3" color="textPrimary">
Login
</Typography>
</Grid>
<Grid sx={{ width: "100%" }} item xl={5} md={6}>
<FormControl
sx={{ width: "100%" }}
variant="outlined"
>
<InputLabel htmlFor="user-name">
Username:
</InputLabel>
<OutlinedInput
fullWidth
id="user-name"
type="text"
variant="outlined"
label="Username:"
onChange={handleUsername}
/>
</FormControl>
</Grid>
<Grid sx={{ width: "100%" }} item xl={5} md={6}>
<FormControl
sx={{ width: "100%" }}
variant="outlined"
>
<InputLabel htmlFor="user-password">
Password:
</InputLabel>
<OutlinedInput
fullWidth
id="user-password"
type={
password.showpass
? "text"
: "password"
}
variant="outlined"
onChange={handlePassword("password")}
label="Password:"
endAdornment={
<InputAdornment position="end">
<IconButton
onClick={
handleShowPassword
}
aria-label="toggle password visibility"
>
{password.showpass ? (
<MdiEyeOffOutline />
) : (
<MdiEyeOutline />
)}
</IconButton>
</InputAdornment>
}
/>
</FormControl>
</Grid>
<Grid item xl={5} md={6} sx={{ width: "100%" }}>
<LoadingButton
variant="contained"
endIcon={<MdiChevronRight />}
onClick={handleLogin}
loading={loading}
loadingPosition="end"
size="large"
sx={{ width: "100%" }}
>
Login
</LoadingButton>
</Grid>
</Grid>
</Container>
</>
);
};
+253
View File
@@ -0,0 +1,253 @@
/** @format */
import { useState, useEffect } from "react";
import { Cookies, useCookies } from "react-cookie";
import { Navigate } from "react-router-dom";
import { v4 as uuidv4 } from "uuid";
import { EventEmitter as event } from "../../../eventEmitter.js";
import { getSystemApi } from "@jellyfin/sdk/lib/utils/api/system-api";
// MUI
import TextField from "@mui/material/TextField";
import Typography from "@mui/material/Typography";
import Grid from "@mui/material/Grid";
import LoadingButton from "@mui/lab/LoadingButton";
import SvgIcon from "@mui/material/SvgIcon";
import Button from "@mui/material/Button";
import LinearProgress from "@mui/material/LinearProgress";
import Container from "@mui/material/Container";
import { mdiChevronRight } from "@mdi/js";
import { useSnackbar } from "notistack";
// Svgs
import { ReactComponent as JellyplayerLogo } from "../../../assets/logo.svg";
// SCSS
import "./server.module.scss";
export const ServerList = () => {
const [renderServerList, setRenderServerList] = useState(false);
const [serverListRender, setServerListRender] = useState([]);
const cookies = new Cookies();
const currentServer = cookies.get("currentServer");
const serverList = cookies.get("servers");
let currentServerIp = "";
serverList.map((item, index) => {
currentServerIp = item[currentServer];
// console.log(item);
});
const createServerListRender = async () => {
let serverListKeys = [];
serverList.map((item, index) => {
serverListKeys.push(Object.keys(item));
// for (let item in servers) {
// if (item != "currentServer") {
// setServerList([...serverList, JSON.parse(servers[item])]);
// serverList.push(JSON.parse(servers[item]));
// }
// }
});
return serverListKeys;
// console.log(serverListRender);
// localStorage.setItem("servers", serverList);
};
const ServerList = (props) => {
const startRender = props.startRender;
if (startRender) {
return serverList.map((item, index) => {
let serverIndex = serverListRender[index];
let itm = item[serverIndex];
console.log(itm.serverAddress);
console.log("serverIndex : ", serverIndex);
return (
<div
key={index}
className="server"
style={{ color: "white" }}
>
{/* <Typography></Typography> */}
hello {itm.serverAddress} This is WIP
</div>
);
});
} else if (!startRender) {
return <h1>Hfjsi</h1>;
}
};
// const serverList = createServerList();
useEffect(() => {
createServerListRender().then((serverListKeys) => {
console.log("ServerListKeys : ", serverListKeys);
setServerListRender(serverListKeys);
setRenderServerList(true);
});
// console.log(serverList);
}, []);
return (
<>
<Container maxWidth="md" className="centered">
<Typography color="textPrimary" variant="h3">
Select Server:
</Typography>
<div className="serverList">
<ServerList
startRender={renderServerList}
></ServerList>
{/*
{serverList.map((item, index) => {
// let serverIndex = serverListRender[index];
// let itm = item[serverIndex];
// console.log(itm.serverAddress);
// console.log("serverIndex : ", serverIndex);
return (
// <></>
<div key={index} className="server">
hello{" "}
{
item[serverListRender[index]]
.serverAddress
}{" "}
</div>
);
})} */}
</div>
</Container>
</>
);
};
export const ServerSetup = (props) => {
const [serverIp, setServerIp] = useState("");
const [checkingServer, setServerCheckState] = useState(false);
const [isJfServer, setIsJfServerState] = useState(false);
const { enqueueSnackbar } = useSnackbar();
const [serverlistCookies, setServerList] = useCookies(["servers"]);
const [currentServer, setCurrentServer] = useCookies(["currentServer"]);
const cookies = new Cookies();
const [loading, setLoading] = useState(false);
const addServer = async () => {
event.emit("create-jellyfin-api", serverIp);
let sysInfo = await getSystemApi(window.api).getPublicSystemInfo();
sysInfo = sysInfo.data;
let initServerList = cookies.get("servers");
if (initServerList == null) {
initServerList = [];
} else {
initServerList = JSON.parse(initServerList);
}
let serverConf = {
serverName: sysInfo.ServerName,
id: sysInfo.Id,
jellyfinVersion: sysInfo.Version,
serverAddress: serverIp,
};
let jfId = sysInfo.Id;
let server = {};
server[sysInfo.Id] = serverConf;
server = JSON.stringify([...initServerList, server]);
setServerList("servers", server, { path: "/" });
setCurrentServer("currentServer", sysInfo.Id, { path: "/" });
setIsJfServerState(true);
};
const handleAddServer = () => {
setLoading(true);
let data;
// setServerCheckState(true);
fetch(`${serverIp}/System/Ping`, {
body: JSON.stringify(data),
})
.then((res) => res.json())
.then((data) => {
if (data == "Jellyfin Server") {
console.log(true);
// setServerCheckState(false);
addServer();
setLoading(false);
return true;
} else {
// setServerCheckState(false);
enqueueSnackbar(
"The server address does not seem be a jellyfin server",
{ variant: "error" },
);
setLoading(false);
return false;
}
})
.catch((error) => {
// setServerCheckState(false);
setLoading(false);
enqueueSnackbar(
"Unable to verify whether the give address is a valid Jellyfin server",
{ variant: "error" },
);
console.error(error);
});
};
return (
<>
{isJfServer && <Navigate to="/login" />}
<Container
maxWidth="md"
className={
checkingServer
? "centered serverContainer loading"
: "centered serverContainer"
}
>
<Grid
container
spacing={2}
direction="column"
justifyContent="center"
alignItems="center"
>
<Grid item xl={5} md={6} sx={{ marginBottom: "1em" }}>
<JellyplayerLogo className="logo" />
</Grid>
<Grid item xl={5} md={6} sx={{ width: "100%" }}>
<TextField
className="textbox"
label="Server Address:"
variant="outlined"
// inputRef={serverIp}
onChange={(event) => {
setServerIp(event.target.value);
}}
helperText="Add your server adddress with https:// or http://"
></TextField>
</Grid>
<Grid item xl={5} md={6} sx={{ width: "100%" }}>
<LoadingButton
variant="contained"
sx={{ width: "100%" }}
size="large"
loading={loading}
endIcon={
<SvgIcon>
<path d={mdiChevronRight}></path>
</SvgIcon>
}
loadingPosition="end"
onClick={handleAddServer}
>
Add Server
</LoadingButton>
</Grid>
</Grid>
</Container>
</>
);
};
@@ -0,0 +1,22 @@
/** @format */
.logo {
width: min(60vw, 45em);
height: auto;
margin-bottom: 2em;
}
.serverContainer {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 1.5em;
.textbox,
.button {
width: 100% !important;
}
.button {
padding: 1em;
border-radius: 100px;
}
}
+73
View File
@@ -0,0 +1,73 @@
/** @format */
body {
font-family: "Open Sans";
background: $clr-background-default;
margin: 0;
padding: 0;
position: relative;
width: 100vw;
height: 100vh;
}
#root,
.root-page {
height: 100vh;
width: 100vw;
overflow: hidden;
}
.centered {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.loading {
opacity: 0.35;
}
.fadeIn {
animation: 0.5s fadeIn forwards;
}
.fadeOut {
animation: 0.5s fadeOut forwards;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translate(-20px, 0);
}
to {
opacity: 1;
transform: translate(0px, 0px);
}
}
@keyframes fadeOut {
from {
opacity: 1;
transform: translate(0px, 0px);
}
to {
transform: translate(20px, 0);
opacity: 0;
}
}
h1 {
color: white !important;
}
.scrollY {
overflow-x: hidden;
overflow-y: auto;
height: 100vh;
box-sizing: border-box;
}
.empty {
display: none;
}
+14
View File
@@ -0,0 +1,14 @@
/** @format */
$clr-accent-default: hsl(337, 96%, 56%);
$clr-accent-dark: hsl(337, 96%, 10%);
$clr-secondary-default: hsl(273, 100%, 22%);
$clr-background-default: hsl(256, 100%, 6%);
$clr-background-dark: hsl(256, 100%, 4%);
$clr-background-light: hsl(256, 100%, 16%);
$border-radius-default: 10px;
$border-radius-intensity-1: 5px;
$transition-time-default: 250ms;
Loaded 100 of 102 files, more files were not shown because too many files have changed in this diff. Show more