Move to Tauri and rust

This commit is contained in:
Prayag Prajapati committed 2023-01-19 22:10:04 +05:30
1 parent 7a50c0f167
commit 8d3c30f4d0
77 files changed
+7861 -975

No files matched your search

+33 -1
View File
@@ -5,4 +5,36 @@ __pycache__
*.mp4
*mpv*
sh-agent*
.pytest_cache
.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
-3
View File
@@ -1,3 +0,0 @@
[submodule "jellyplayer/jellyplayer-react"]
path = jellyplayer/jellyplayer-react
url = git@github.com:prayag17/jellyplayer-react.git
+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"
}
]
}
+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"
]
}
]
}
File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 331 KiB

After

Width:  |  Height:  |  Size: 331 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 455 KiB

After

Width:  |  Height:  |  Size: 455 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 165 KiB

After

Width:  |  Height:  |  Size: 165 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 519 KiB

After

Width:  |  Height:  |  Size: 519 KiB

+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>
-114
View File
@@ -1,114 +0,0 @@
from mpv import MPV, MpvRenderContext
from ctypes import windll, cast, c_void_p
from PySide6.QtWebEngineCore import QWebEngineSettings
from PySide6.QtWebEngineWidgets import QWebEngineView
from PySide6.QtWebChannel import QWebChannel
from PySide6.QtGui import QIcon, QPixmap
from PySide6.QtCore import QUrl, Slot, QObject, QProcess, Qt, QCoreApplication, QMessageLogContext
from PySide6.QtWidgets import QApplication, QMainWindow, QWidget
from signal import SIGTERM, signal
import platform
import subprocess
import sys
import os
os.environ["PATH"] = os.path.dirname(
__file__) + os.pathsep + os.environ["PATH"]
__version__ = '0.1.0'
QCoreApplication.setAttribute(Qt.AA_ShareOpenGLContexts)
app = QApplication(["--enable-smooth-scrolling", "--enable-gpu"])
print(os.path.dirname(__file__) + os.pathsep)
try:
myappid = 'prayag17.jellyplayer.0.1.0'
windll.shell32.SetCurrentProcessExplicitAppUserModelID(myappid)
except ImportError:
pass
def restart():
QApplication.quit()
status = QProcess.startDetached(sys.executable, sys.argv)
class Backend(QObject):
def __init__(self, player):
super().__init__()
self.player = player
def restart(self):
QApplication.quit()
status = QProcess.startDetached(sys.executable, sys.argv)
@Slot(str)
def play(self, url):
self.player.play(url)
@Slot(int)
def setTime(self, time):
self.player.setTime(time)
@Slot(result=int)
def getTime(self):
return self.player.time_pos
# def filehandler()
class MainWin(QMainWindow):
def __init__(self):
super().__init__()
self.dirRaw = os.path.dirname(os.path.realpath(__file__))
self.dir = self.dirRaw.replace("\\", "/")
self.view = QWebEngineView()
self.view.load(QUrl("http://localhost:5173"))
self.view.raise_()
self.setCentralWidget(self.view)
self.setWindowIcon(QIcon(QPixmap(f"{self.dir}/assets/icon.png")))
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.LocalStorageEnabled, True)
self.view.settings().setAttribute(
QWebEngineSettings.LocalContentCanAccessFileUrls, True)
self.view.settings().setAttribute(QWebEngineSettings.ScrollAnimatorEnabled, True)
self.view.loadFinished.connect(self.handleLoaded)
self.inspector = QWebEngineView()
self.inspector.setWindowTitle("Inspector")
self.playerWid = QWidget(self)
self.playerWid.setMinimumHeight(self.view.height())
self.playerWid.setMinimumWidth(self.view.width())
self.playerWid.setAttribute(Qt.WA_DontCreateNativeAncestors)
self.playerWid.setAttribute(Qt.WA_NativeWindow)
self.playerWid.lower()
self.player = MPV(wid=str(int(self.playerWid.winId())),
gpu_context="d3d11",
hwdec="nvdec",
log_handler=print,
loglevel='debug')
self.backend = Backend(self.playerWid)
self.channel = QWebChannel()
self.channel.registerObject('backend', self.backend)
def handleLoaded(self, ok):
if ok:
self.view.page().setDevToolsPage(self.inspector.page())
self.inspector.show()
# frontend = subprocess.Popen(f"python {os.path.dirname(os.path.realpath(__file__))}/jellyplayer-jellyfin-vue/frontend/dist/server.py", shell=True)
window = MainWin()
window.showMaximized()
exitApp = app.exec()
# frontend.kill()
sys.exit(exitApp)
-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(['__init__.py'],
pathex=['D:\\Jellyfin\\JellyPlayer\\jellyplayer'],
binaries=[],
datas=[('jellyplayer-jellyfin-vue/frontend/dist', 'jellyplayer-jellyfin-vue/frontend/dist')],
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=True,
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='main_win')
-15
View File
@@ -1,15 +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">
<title>Document</title>
</head>
<body>
<h1>HEllorn vun</h1>
</body>
</html>
+5270
View File
File diff suppressed because it is too large. Load diff
+44
View File
@@ -0,0 +1,44 @@
{
"name": "jellyplayer-react",
"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",
"@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",
"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"
}
Generated
-621
View File
@@ -1,621 +0,0 @@
[[package]]
name = "altgraph"
version = "0.17.2"
description = "Python graph (network) package"
category = "main"
optional = false
python-versions = "*"
[[package]]
name = "atomicwrites"
version = "1.4.0"
description = "Atomic file writes."
category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
[[package]]
name = "attrs"
version = "21.4.0"
description = "Classes Without Boilerplate"
category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
[package.extras]
dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit", "cloudpickle"]
docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"]
tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "cloudpickle"]
tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "cloudpickle"]
[[package]]
name = "autopep8"
version = "1.6.0"
description = "A tool that automatically formats Python code to conform to the PEP 8 style guide"
category = "dev"
optional = false
python-versions = "*"
[package.dependencies]
pycodestyle = ">=2.8.0"
toml = "*"
[[package]]
name = "click"
version = "8.1.3"
description = "Composable command line interface toolkit"
category = "main"
optional = false
python-versions = ">=3.7"
[package.dependencies]
colorama = {version = "*", markers = "platform_system == \"Windows\""}
[[package]]
name = "colorama"
version = "0.4.4"
description = "Cross-platform colored terminal text."
category = "main"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
[[package]]
name = "flask"
version = "2.1.2"
description = "A simple framework for building complex web applications."
category = "main"
optional = false
python-versions = ">=3.7"
[package.dependencies]
click = ">=8.0"
importlib-metadata = {version = ">=3.6.0", markers = "python_version < \"3.10\""}
itsdangerous = ">=2.0"
Jinja2 = ">=3.0"
Werkzeug = ">=2.0"
[package.extras]
async = ["asgiref (>=3.2)"]
dotenv = ["python-dotenv"]
[[package]]
name = "future"
version = "0.18.2"
description = "Clean single-source support for Python 3 and 2"
category = "main"
optional = false
python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
[[package]]
name = "importlib-metadata"
version = "4.11.3"
description = "Read metadata from Python packages"
category = "main"
optional = false
python-versions = ">=3.7"
[package.dependencies]
zipp = ">=0.5"
[package.extras]
docs = ["sphinx", "jaraco.packaging (>=9)", "rst.linker (>=1.9)"]
perf = ["ipython"]
testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "packaging", "pyfakefs", "flufl.flake8", "pytest-perf (>=0.9.2)", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)", "importlib-resources (>=1.3)"]
[[package]]
name = "itsdangerous"
version = "2.1.2"
description = "Safely pass data to untrusted environments and back."
category = "main"
optional = false
python-versions = ">=3.7"
[[package]]
name = "jinja2"
version = "3.1.2"
description = "A very fast and expressive template engine."
category = "main"
optional = false
python-versions = ">=3.7"
[package.dependencies]
MarkupSafe = ">=2.0"
[package.extras]
i18n = ["Babel (>=2.7)"]
[[package]]
name = "macholib"
version = "1.16"
description = "Mach-O header analysis and editing"
category = "main"
optional = false
python-versions = "*"
[package.dependencies]
altgraph = ">=0.15"
[[package]]
name = "markupsafe"
version = "2.1.1"
description = "Safely add untrusted strings to HTML/XML markup."
category = "main"
optional = false
python-versions = ">=3.7"
[[package]]
name = "more-itertools"
version = "8.13.0"
description = "More routines for operating on iterables, beyond itertools"
category = "dev"
optional = false
python-versions = ">=3.5"
[[package]]
name = "packaging"
version = "21.3"
description = "Core utilities for Python packages"
category = "dev"
optional = false
python-versions = ">=3.6"
[package.dependencies]
pyparsing = ">=2.0.2,<3.0.5 || >3.0.5"
[[package]]
name = "pastel"
version = "0.2.1"
description = "Bring colors to your terminal."
category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
[[package]]
name = "pefile"
version = "2021.9.3"
description = "Python PE parsing module"
category = "main"
optional = false
python-versions = ">=3.6.0"
[package.dependencies]
future = "*"
[[package]]
name = "pluggy"
version = "0.13.1"
description = "plugin and hook calling mechanisms for python"
category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
[package.extras]
dev = ["pre-commit", "tox"]
[[package]]
name = "poethepoet"
version = "0.13.1"
description = "A task runner that works well with poetry."
category = "dev"
optional = false
python-versions = ">=3.6.2"
[package.dependencies]
pastel = ">=0.2.1,<0.3.0"
tomli = ">=1.2.2"
[package.extras]
poetry_plugin = ["poetry (>=1.0,<2.0)"]
[[package]]
name = "py"
version = "1.11.0"
description = "library with cross-python path, ini-parsing, io, code, log facilities"
category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
[[package]]
name = "pycodestyle"
version = "2.8.0"
description = "Python style guide checker"
category = "dev"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
[[package]]
name = "pyinstaller"
version = "5.0.1"
description = "PyInstaller bundles a Python application and all its dependencies into a single package."
category = "main"
optional = false
python-versions = "<3.11,>=3.7"
[package.dependencies]
altgraph = "*"
macholib = {version = ">=1.8", markers = "sys_platform == \"darwin\""}
pefile = {version = ">=2017.8.1", markers = "sys_platform == \"win32\""}
pyinstaller-hooks-contrib = ">=2020.6"
pywin32-ctypes = {version = ">=0.2.0", markers = "sys_platform == \"win32\""}
[package.extras]
encryption = ["tinyaes (>=1.0.0)"]
hook_testing = ["pytest (>=2.7.3)", "execnet (>=1.5.0)", "psutil"]
[[package]]
name = "pyinstaller-hooks-contrib"
version = "2022.4"
description = "Community maintained hooks for PyInstaller"
category = "main"
optional = false
python-versions = ">=3.7"
[[package]]
name = "pyopengl"
version = "3.1.6"
description = "Standard OpenGL bindings for Python"
category = "main"
optional = false
python-versions = "*"
[[package]]
name = "pyparsing"
version = "3.0.9"
description = "pyparsing module - Classes and methods to define and execute parsing grammars"
category = "dev"
optional = false
python-versions = ">=3.6.8"
[package.extras]
diagrams = ["railroad-diagrams", "jinja2"]
[[package]]
name = "pyside6"
version = "6.3.0"
description = "Python bindings for the Qt cross-platform application and UI framework"
category = "main"
optional = false
python-versions = "<3.11,>=3.6"
[package.dependencies]
PySide6-Addons = "6.3.0"
PySide6-Essentials = "6.3.0"
shiboken6 = "6.3.0"
[[package]]
name = "pyside6-addons"
version = "6.3.0"
description = "Python bindings for the Qt cross-platform application and UI framework (Addons)"
category = "main"
optional = false
python-versions = "<3.11,>=3.6"
[package.dependencies]
PySide6-Essentials = "6.3.0"
shiboken6 = "6.3.0"
[[package]]
name = "pyside6-essentials"
version = "6.3.0"
description = "Python bindings for the Qt cross-platform application and UI framework (Essentials)"
category = "main"
optional = false
python-versions = "<3.11,>=3.6"
[package.dependencies]
shiboken6 = "6.3.0"
[[package]]
name = "pytest"
version = "5.2.4"
description = "pytest: simple powerful testing with Python"
category = "dev"
optional = false
python-versions = ">=3.5"
[package.dependencies]
atomicwrites = ">=1.0"
attrs = ">=17.4.0"
colorama = {version = "*", markers = "sys_platform == \"win32\""}
more-itertools = ">=4.0.0"
packaging = "*"
pluggy = ">=0.12,<1.0"
py = ">=1.5.0"
wcwidth = "*"
[package.extras]
testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "requests", "xmlschema"]
[[package]]
name = "python-mpv"
version = "1.0.1"
description = "A python interface to the mpv media player"
category = "main"
optional = false
python-versions = ">=3.7"
[package.extras]
screenshot_raw = ["pillow"]
[[package]]
name = "pywin32-ctypes"
version = "0.2.0"
description = ""
category = "main"
optional = false
python-versions = "*"
[[package]]
name = "shiboken6"
version = "6.3.0"
description = "Python/C++ bindings helper module"
category = "main"
optional = false
python-versions = "<3.11,>=3.6"
[[package]]
name = "toml"
version = "0.10.2"
description = "Python Library for Tom's Obvious, Minimal Language"
category = "dev"
optional = false
python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
[[package]]
name = "tomli"
version = "2.0.1"
description = "A lil' TOML parser"
category = "dev"
optional = false
python-versions = ">=3.7"
[[package]]
name = "waitress"
version = "2.1.1"
description = "Waitress WSGI server"
category = "main"
optional = false
python-versions = ">=3.7.0"
[package.extras]
docs = ["Sphinx (>=1.8.1)", "docutils", "pylons-sphinx-themes (>=1.0.9)"]
testing = ["pytest", "pytest-cover", "coverage (>=5.0)"]
[[package]]
name = "wcwidth"
version = "0.2.5"
description = "Measures the displayed width of unicode strings in a terminal"
category = "dev"
optional = false
python-versions = "*"
[[package]]
name = "werkzeug"
version = "2.1.2"
description = "The comprehensive WSGI web application library."
category = "main"
optional = false
python-versions = ">=3.7"
[package.extras]
watchdog = ["watchdog"]
[[package]]
name = "zipp"
version = "3.8.0"
description = "Backport of pathlib-compatible object wrapper for zip files"
category = "main"
optional = false
python-versions = ">=3.7"
[package.extras]
docs = ["sphinx", "jaraco.packaging (>=9)", "rst.linker (>=1.9)"]
testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)"]
[metadata]
lock-version = "1.1"
python-versions = "~3.8"
content-hash = "211d7daff296440dc5ab6e8a40953f8245b930a81e39b137319c095f32b58c9b"
[metadata.files]
altgraph = [
{file = "altgraph-0.17.2-py2.py3-none-any.whl", hash = "sha256:743628f2ac6a7c26f5d9223c91ed8ecbba535f506f4b6f558885a8a56a105857"},
{file = "altgraph-0.17.2.tar.gz", hash = "sha256:ebf2269361b47d97b3b88e696439f6e4cbc607c17c51feb1754f90fb79839158"},
]
atomicwrites = [
{file = "atomicwrites-1.4.0-py2.py3-none-any.whl", hash = "sha256:6d1784dea7c0c8d4a5172b6c620f40b6e4cbfdf96d783691f2e1302a7b88e197"},
{file = "atomicwrites-1.4.0.tar.gz", hash = "sha256:ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a"},
]
attrs = [
{file = "attrs-21.4.0-py2.py3-none-any.whl", hash = "sha256:2d27e3784d7a565d36ab851fe94887c5eccd6a463168875832a1be79c82828b4"},
{file = "attrs-21.4.0.tar.gz", hash = "sha256:626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd"},
]
autopep8 = [
{file = "autopep8-1.6.0-py2.py3-none-any.whl", hash = "sha256:ed77137193bbac52d029a52c59bec1b0629b5a186c495f1eb21b126ac466083f"},
{file = "autopep8-1.6.0.tar.gz", hash = "sha256:44f0932855039d2c15c4510d6df665e4730f2b8582704fa48f9c55bd3e17d979"},
]
click = [
{file = "click-8.1.3-py3-none-any.whl", hash = "sha256:bb4d8133cb15a609f44e8213d9b391b0809795062913b383c62be0ee95b1db48"},
{file = "click-8.1.3.tar.gz", hash = "sha256:7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e"},
]
colorama = [
{file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"},
{file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"},
]
flask = [
{file = "Flask-2.1.2-py3-none-any.whl", hash = "sha256:fad5b446feb0d6db6aec0c3184d16a8c1f6c3e464b511649c8918a9be100b4fe"},
{file = "Flask-2.1.2.tar.gz", hash = "sha256:315ded2ddf8a6281567edb27393010fe3406188bafbfe65a3339d5787d89e477"},
]
future = [
{file = "future-0.18.2.tar.gz", hash = "sha256:b1bead90b70cf6ec3f0710ae53a525360fa360d306a86583adc6bf83a4db537d"},
]
importlib-metadata = [
{file = "importlib_metadata-4.11.3-py3-none-any.whl", hash = "sha256:1208431ca90a8cca1a6b8af391bb53c1a2db74e5d1cef6ddced95d4b2062edc6"},
{file = "importlib_metadata-4.11.3.tar.gz", hash = "sha256:ea4c597ebf37142f827b8f39299579e31685c31d3a438b59f469406afd0f2539"},
]
itsdangerous = [
{file = "itsdangerous-2.1.2-py3-none-any.whl", hash = "sha256:2c2349112351b88699d8d4b6b075022c0808887cb7ad10069318a8b0bc88db44"},
{file = "itsdangerous-2.1.2.tar.gz", hash = "sha256:5dbbc68b317e5e42f327f9021763545dc3fc3bfe22e6deb96aaf1fc38874156a"},
]
jinja2 = [
{file = "Jinja2-3.1.2-py3-none-any.whl", hash = "sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61"},
{file = "Jinja2-3.1.2.tar.gz", hash = "sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852"},
]
macholib = [
{file = "macholib-1.16-py2.py3-none-any.whl", hash = "sha256:5a0742b587e6e57bfade1ab90651d4877185bf66fd4a176a488116de36878229"},
{file = "macholib-1.16.tar.gz", hash = "sha256:001bf281279b986a66d7821790d734e61150d52f40c080899df8fefae056e9f7"},
]
markupsafe = [
{file = "MarkupSafe-2.1.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:86b1f75c4e7c2ac2ccdaec2b9022845dbb81880ca318bb7a0a01fbf7813e3812"},
{file = "MarkupSafe-2.1.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f121a1420d4e173a5d96e47e9a0c0dcff965afdf1626d28de1460815f7c4ee7a"},
{file = "MarkupSafe-2.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a49907dd8420c5685cfa064a1335b6754b74541bbb3706c259c02ed65b644b3e"},
{file = "MarkupSafe-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:10c1bfff05d95783da83491be968e8fe789263689c02724e0c691933c52994f5"},
{file = "MarkupSafe-2.1.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b7bd98b796e2b6553da7225aeb61f447f80a1ca64f41d83612e6139ca5213aa4"},
{file = "MarkupSafe-2.1.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:b09bf97215625a311f669476f44b8b318b075847b49316d3e28c08e41a7a573f"},
{file = "MarkupSafe-2.1.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:694deca8d702d5db21ec83983ce0bb4b26a578e71fbdbd4fdcd387daa90e4d5e"},
{file = "MarkupSafe-2.1.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:efc1913fd2ca4f334418481c7e595c00aad186563bbc1ec76067848c7ca0a933"},
{file = "MarkupSafe-2.1.1-cp310-cp310-win32.whl", hash = "sha256:4a33dea2b688b3190ee12bd7cfa29d39c9ed176bda40bfa11099a3ce5d3a7ac6"},
{file = "MarkupSafe-2.1.1-cp310-cp310-win_amd64.whl", hash = "sha256:dda30ba7e87fbbb7eab1ec9f58678558fd9a6b8b853530e176eabd064da81417"},
{file = "MarkupSafe-2.1.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:671cd1187ed5e62818414afe79ed29da836dde67166a9fac6d435873c44fdd02"},
{file = "MarkupSafe-2.1.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3799351e2336dc91ea70b034983ee71cf2f9533cdff7c14c90ea126bfd95d65a"},
{file = "MarkupSafe-2.1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e72591e9ecd94d7feb70c1cbd7be7b3ebea3f548870aa91e2732960fa4d57a37"},
{file = "MarkupSafe-2.1.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6fbf47b5d3728c6aea2abb0589b5d30459e369baa772e0f37a0320185e87c980"},
{file = "MarkupSafe-2.1.1-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:d5ee4f386140395a2c818d149221149c54849dfcfcb9f1debfe07a8b8bd63f9a"},
{file = "MarkupSafe-2.1.1-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:bcb3ed405ed3222f9904899563d6fc492ff75cce56cba05e32eff40e6acbeaa3"},
{file = "MarkupSafe-2.1.1-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:e1c0b87e09fa55a220f058d1d49d3fb8df88fbfab58558f1198e08c1e1de842a"},
{file = "MarkupSafe-2.1.1-cp37-cp37m-win32.whl", hash = "sha256:8dc1c72a69aa7e082593c4a203dcf94ddb74bb5c8a731e4e1eb68d031e8498ff"},
{file = "MarkupSafe-2.1.1-cp37-cp37m-win_amd64.whl", hash = "sha256:97a68e6ada378df82bc9f16b800ab77cbf4b2fada0081794318520138c088e4a"},
{file = "MarkupSafe-2.1.1-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:e8c843bbcda3a2f1e3c2ab25913c80a3c5376cd00c6e8c4a86a89a28c8dc5452"},
{file = "MarkupSafe-2.1.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0212a68688482dc52b2d45013df70d169f542b7394fc744c02a57374a4207003"},
{file = "MarkupSafe-2.1.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8e576a51ad59e4bfaac456023a78f6b5e6e7651dcd383bcc3e18d06f9b55d6d1"},
{file = "MarkupSafe-2.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4b9fe39a2ccc108a4accc2676e77da025ce383c108593d65cc909add5c3bd601"},
{file = "MarkupSafe-2.1.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:96e37a3dc86e80bf81758c152fe66dbf60ed5eca3d26305edf01892257049925"},
{file = "MarkupSafe-2.1.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:6d0072fea50feec76a4c418096652f2c3238eaa014b2f94aeb1d56a66b41403f"},
{file = "MarkupSafe-2.1.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:089cf3dbf0cd6c100f02945abeb18484bd1ee57a079aefd52cffd17fba910b88"},
{file = "MarkupSafe-2.1.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:6a074d34ee7a5ce3effbc526b7083ec9731bb3cbf921bbe1d3005d4d2bdb3a63"},
{file = "MarkupSafe-2.1.1-cp38-cp38-win32.whl", hash = "sha256:421be9fbf0ffe9ffd7a378aafebbf6f4602d564d34be190fc19a193232fd12b1"},
{file = "MarkupSafe-2.1.1-cp38-cp38-win_amd64.whl", hash = "sha256:fc7b548b17d238737688817ab67deebb30e8073c95749d55538ed473130ec0c7"},
{file = "MarkupSafe-2.1.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:e04e26803c9c3851c931eac40c695602c6295b8d432cbe78609649ad9bd2da8a"},
{file = "MarkupSafe-2.1.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:b87db4360013327109564f0e591bd2a3b318547bcef31b468a92ee504d07ae4f"},
{file = "MarkupSafe-2.1.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:99a2a507ed3ac881b975a2976d59f38c19386d128e7a9a18b7df6fff1fd4c1d6"},
{file = "MarkupSafe-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:56442863ed2b06d19c37f94d999035e15ee982988920e12a5b4ba29b62ad1f77"},
{file = "MarkupSafe-2.1.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3ce11ee3f23f79dbd06fb3d63e2f6af7b12db1d46932fe7bd8afa259a5996603"},
{file = "MarkupSafe-2.1.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:33b74d289bd2f5e527beadcaa3f401e0df0a89927c1559c8566c066fa4248ab7"},
{file = "MarkupSafe-2.1.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:43093fb83d8343aac0b1baa75516da6092f58f41200907ef92448ecab8825135"},
{file = "MarkupSafe-2.1.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:8e3dcf21f367459434c18e71b2a9532d96547aef8a871872a5bd69a715c15f96"},
{file = "MarkupSafe-2.1.1-cp39-cp39-win32.whl", hash = "sha256:d4306c36ca495956b6d568d276ac11fdd9c30a36f1b6eb928070dc5360b22e1c"},
{file = "MarkupSafe-2.1.1-cp39-cp39-win_amd64.whl", hash = "sha256:46d00d6cfecdde84d40e572d63735ef81423ad31184100411e6e3388d405e247"},
{file = "MarkupSafe-2.1.1.tar.gz", hash = "sha256:7f91197cc9e48f989d12e4e6fbc46495c446636dfc81b9ccf50bb0ec74b91d4b"},
]
more-itertools = [
{file = "more-itertools-8.13.0.tar.gz", hash = "sha256:a42901a0a5b169d925f6f217cd5a190e32ef54360905b9c39ee7db5313bfec0f"},
{file = "more_itertools-8.13.0-py3-none-any.whl", hash = "sha256:c5122bffc5f104d37c1626b8615b511f3427aa5389b94d61e5ef8236bfbc3ddb"},
]
packaging = [
{file = "packaging-21.3-py3-none-any.whl", hash = "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522"},
{file = "packaging-21.3.tar.gz", hash = "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"},
]
pastel = [
{file = "pastel-0.2.1-py2.py3-none-any.whl", hash = "sha256:4349225fcdf6c2bb34d483e523475de5bb04a5c10ef711263452cb37d7dd4364"},
{file = "pastel-0.2.1.tar.gz", hash = "sha256:e6581ac04e973cac858828c6202c1e1e81fee1dc7de7683f3e1ffe0bfd8a573d"},
]
pefile = [
{file = "pefile-2021.9.3.tar.gz", hash = "sha256:344a49e40a94e10849f0fe34dddc80f773a12b40675bf2f7be4b8be578bdd94a"},
]
pluggy = [
{file = "pluggy-0.13.1-py2.py3-none-any.whl", hash = "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d"},
{file = "pluggy-0.13.1.tar.gz", hash = "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0"},
]
poethepoet = [
{file = "poethepoet-0.13.1-py3-none-any.whl", hash = "sha256:47e7b38c8b5412f840447f7612a9330697e8633e7500a7340b6734f50e26e380"},
{file = "poethepoet-0.13.1.tar.gz", hash = "sha256:4f6962f17f5d5a453fd7fa66e3e7897e9191d4289148433efe441c81f2451a46"},
]
py = [
{file = "py-1.11.0-py2.py3-none-any.whl", hash = "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378"},
{file = "py-1.11.0.tar.gz", hash = "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719"},
]
pycodestyle = [
{file = "pycodestyle-2.8.0-py2.py3-none-any.whl", hash = "sha256:720f8b39dde8b293825e7ff02c475f3077124006db4f440dcbc9a20b76548a20"},
{file = "pycodestyle-2.8.0.tar.gz", hash = "sha256:eddd5847ef438ea1c7870ca7eb78a9d47ce0cdb4851a5523949f2601d0cbbe7f"},
]
pyinstaller = [
{file = "pyinstaller-5.0.1-py3-none-macosx_10_13_universal2.whl", hash = "sha256:0dc19ccf97584fff1766dcaf9c0425e4cd714ccc41c9f4d1222cab8c756624e4"},
{file = "pyinstaller-5.0.1-py3-none-manylinux2014_aarch64.whl", hash = "sha256:100ba42f5885e1044e45a9a1d6fa9bb17be49d8731a34ebde39519a49095d509"},
{file = "pyinstaller-5.0.1-py3-none-manylinux2014_i686.whl", hash = "sha256:943d22969ad7487ff430810e733f06e6efddc1af1cbe6453ec44dffc39f3a1f5"},
{file = "pyinstaller-5.0.1-py3-none-manylinux2014_ppc64le.whl", hash = "sha256:7b4fa281373676728e503447e5eb2a101208d0d41be62b540dcfbe073e26e60f"},
{file = "pyinstaller-5.0.1-py3-none-manylinux2014_s390x.whl", hash = "sha256:a7698ca54b1afc5ff0ef0a881fa68a878e3f12e7f1a3bade9bf198af34d15222"},
{file = "pyinstaller-5.0.1-py3-none-manylinux2014_x86_64.whl", hash = "sha256:d8384871a2e6605b49ef3293aa8b365bbdfe9aac6ff80e3743e5fe4cbd46fa62"},
{file = "pyinstaller-5.0.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:d3a587f5adb28e299781d99d6e781e3d240f6f5ecaad5b5f484ea196801476f6"},
{file = "pyinstaller-5.0.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:219e249c2bbd2ec77ba008adbc46832ddd761554167bf5f9c86e861f8ddd4589"},
{file = "pyinstaller-5.0.1-py3-none-win32.whl", hash = "sha256:3ac6f8bfe65666650bf37671d6661775692b33711a7c5e664ac5bb577100f120"},
{file = "pyinstaller-5.0.1-py3-none-win_amd64.whl", hash = "sha256:bf6148a6eb005e1106d57271681cd7799b56f7b41efa6c78ce4d375fc1cd829e"},
{file = "pyinstaller-5.0.1.tar.gz", hash = "sha256:25f5f758b005c66471af0d452c90ec328179116afe9d5bd82f5fb06d9416267b"},
]
pyinstaller-hooks-contrib = [
{file = "pyinstaller-hooks-contrib-2022.4.tar.gz", hash = "sha256:b7f7da20e5b83c22219a21b8f849525e5f735197975313208f4e07ff9549cdaf"},
{file = "pyinstaller_hooks_contrib-2022.4-py2.py3-none-any.whl", hash = "sha256:b57a90bb8520d6e1dbbaaae416875e28fa5a3b74d2e40e330d02d1ccadacc38c"},
]
pyopengl = [
{file = "PyOpenGL-3.1.6-py2-none-any.whl", hash = "sha256:57c597d989178e1413002df6b923619f6d29807501dece1c60cc6f12c0c8e8a7"},
{file = "PyOpenGL-3.1.6-py3-none-any.whl", hash = "sha256:a7139bc3e15d656feae1f7e3ef68c799941ed43fadc78177a23db7e946c20738"},
{file = "PyOpenGL-3.1.6.tar.gz", hash = "sha256:8ea6c8773927eda7405bffc6f5bb93be81569a7b05c8cac50cd94e969dce5e27"},
]
pyparsing = [
{file = "pyparsing-3.0.9-py3-none-any.whl", hash = "sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc"},
{file = "pyparsing-3.0.9.tar.gz", hash = "sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb"},
]
pyside6 = [
{file = "PySide6-6.3.0-cp36-abi3-macosx_10_9_universal2.whl", hash = "sha256:2517377c49b5d5c66afc51dab02814d76af1fc7545bf6b76b3d1de86ce9a4507"},
{file = "PySide6-6.3.0-cp36-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:53d61ff66bb81a099e71e43e7470060a9141a8e6782d6eb6cc52b9a9cf38730c"},
{file = "PySide6-6.3.0-cp36-abi3-win_amd64.whl", hash = "sha256:c2368a0f346935167bf741712772b63dee130b29a9270e018cf9474eef1948a0"},
]
pyside6-addons = [
{file = "PySide6_Addons-6.3.0-cp36-abi3-macosx_10_9_universal2.whl", hash = "sha256:4937fc42aec85d5dde62b2d47e29d76a63722d2a0d72e11772baa3e9925bf234"},
{file = "PySide6_Addons-6.3.0-cp36-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:59e96866abbe468087575b63a697c4b1cc97e65f20874d26d8f0d10f5c8c8728"},
{file = "PySide6_Addons-6.3.0-cp36-abi3-win_amd64.whl", hash = "sha256:143228bde402426df9d2b97ac4d8de8e97b7c8d51c76362bcd439dc9e2ab3e86"},
]
pyside6-essentials = [
{file = "PySide6_Essentials-6.3.0-cp36-abi3-macosx_10_9_universal2.whl", hash = "sha256:1c2a2a2b26fc923b3527907462ae5828b7e50a2c0fcf9923b086781af3911060"},
{file = "PySide6_Essentials-6.3.0-cp36-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:a486abe04be6270da798eae9c78b40f605008f19d5d9c880b1683783c715882d"},
{file = "PySide6_Essentials-6.3.0-cp36-abi3-win_amd64.whl", hash = "sha256:7304353ab13cc9b5b0a86b3487f24b133a68c5b8c1312516510c0d49469f80d8"},
]
pytest = [
{file = "pytest-5.2.4-py3-none-any.whl", hash = "sha256:8e256fe71eb74e14a4d20a5987bb5e1488f0511ee800680aaedc62b9358714e8"},
{file = "pytest-5.2.4.tar.gz", hash = "sha256:ff0090819f669aaa0284d0f4aad1a6d9d67a6efdc6dd4eb4ac56b704f890a0d6"},
]
python-mpv = [
{file = "python-mpv-1.0.1.tar.gz", hash = "sha256:4c5cc55df484232827ebfa9e498e8370698c6bf7283ba6b1e0329cc42f3aeb8e"},
]
pywin32-ctypes = [
{file = "pywin32-ctypes-0.2.0.tar.gz", hash = "sha256:24ffc3b341d457d48e8922352130cf2644024a4ff09762a2261fd34c36ee5942"},
{file = "pywin32_ctypes-0.2.0-py2.py3-none-any.whl", hash = "sha256:9dc2d991b3479cc2df15930958b674a48a227d5361d413827a4cfd0b5876fc98"},
]
shiboken6 = [
{file = "shiboken6-6.3.0-cp36-abi3-macosx_10_9_universal2.whl", hash = "sha256:ead1cee2fea2566321e725a50070c40a9e67aaa015a20a84a39a9e72ff9b426e"},
{file = "shiboken6-6.3.0-cp36-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:e68e3cbb595c3047c4d893b84ef88eb5b23dea4e94241e80f5509dcb6613ad3d"},
{file = "shiboken6-6.3.0-cp36-abi3-win_amd64.whl", hash = "sha256:096e6b2254e59729ae61acbb80d09c31ad7ea35b6624ec120c15a35b95c70b69"},
]
toml = [
{file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"},
{file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"},
]
tomli = [
{file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"},
{file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
]
waitress = [
{file = "waitress-2.1.1-py3-none-any.whl", hash = "sha256:c549f5b2b4afd44d9d97d7cec79f3ef581e25d832827f415dc175327af674aa8"},
{file = "waitress-2.1.1.tar.gz", hash = "sha256:e2e60576cf14a1539da79f7b7ee1e79a71e64f366a0b47db54a15e971f57bb16"},
]
wcwidth = [
{file = "wcwidth-0.2.5-py2.py3-none-any.whl", hash = "sha256:beb4802a9cebb9144e99086eff703a642a13d6a0052920003a230f3294bbe784"},
{file = "wcwidth-0.2.5.tar.gz", hash = "sha256:c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83"},
]
werkzeug = [
{file = "Werkzeug-2.1.2-py3-none-any.whl", hash = "sha256:72a4b735692dd3135217911cbeaa1be5fa3f62bffb8745c5215420a03dc55255"},
{file = "Werkzeug-2.1.2.tar.gz", hash = "sha256:1ce08e8093ed67d638d63879fd1ba3735817f7a80de3674d293f5984f25fb6e6"},
]
zipp = [
{file = "zipp-3.8.0-py3-none-any.whl", hash = "sha256:c4f6e5bbf48e74f7a38e7cc5b0480ff42b0ae5178957d564d18932525d5cf099"},
{file = "zipp-3.8.0.tar.gz", hash = "sha256:56bf8aadb83c24db6c4b577e13de374ccfb67da2078beba1d037c17980bf43ad"},
]
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

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

-35
View File
@@ -1,35 +0,0 @@
[tool.poetry]
name = "JellyPlayer"
version = "1.0.0"
description = "Modern Jellyfin Client made with Python and Vue"
authors = ["Prayag <prayagprajapati.17@gmail.com>"]
license = "GPL-3.0-only"
readme = "README.md"
repository = "git@github.com:prayag17/JellyPlayer.git"
keywords = [
"pyside6",
"python",
"jellyfin",
"vue"
]
[tool.poetry.dependencies]
python = "^3.10"
PySide6 = "^6.3.0"
Flask = "^2.1.2"
waitress = "^2.1.1"
python-mpv = "^1.0.1"
pyinstaller = "^5.0.1"
PyOpenGL = "^3.1.6"
[tool.poetry.dev-dependencies]
pytest = "~5.2"
poethepoet = "^0.13.1"
autopep8 = "^1.6.0"
[tool.poe.tasks]
jellyplayer = "python jellyplayer/__init__.py"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
+3
View File
@@ -0,0 +1,3 @@
# Generated by Cargo
# will have compiled files and executables
/target/
+28
View File
@@ -0,0 +1,28 @@
[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 = [] }
[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

+10
View File
@@ -0,0 +1,10 @@
#![cfg_attr(
all(not(debug_assertions), target_os = "windows"),
windows_subsystem = "windows"
)]
fn main() {
tauri::Builder::default()
.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;
}
+226
View File
@@ -0,0 +1,226 @@
/** @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 { 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() {
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>
<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

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>

After

Width:  |  Height:  |  Size: 4.0 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 ArrowLeft from "mdi-material-ui/ArrowLeft";
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 }}
>
<ArrowLeft />
</IconButton>
</Toolbar>
</AppBar>
);
};
+77
View File
@@ -0,0 +1,77 @@
/** @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')",
}}
></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>
);
};
AvatarCard.propType = {
userName: PropTypes.string.isRequired,
userId: PropTypes.string.isRequired,
userImageAvailable: PropTypes.bool.isRequired,
};
AvatarImage.propType = {
userId: PropTypes.string.isRequired,
};
+50
View File
@@ -0,0 +1,50 @@
/** @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 {
&-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 {
&-container {
width: fit-content;
aspect-ratio: 1;
}
&-icon {
border-radius: 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%;
}
}
}
+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: 0;
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;
}
}
}
+526
View File
@@ -0,0 +1,526 @@
/** @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";
const drawerWidth = 320;
const openedMixin = (theme) => ({
width: drawerWidth,
transition: theme.transitions.create("width", {
easing: theme.transitions.easing.sharp,
duration: theme.transitions.duration.enteringScreen,
}),
overflowX: "hidden",
});
const closedMixin = (theme) => ({
transition: theme.transitions.create("width", {
easing: theme.transitions.easing.sharp,
duration: theme.transitions.duration.leavingScreen,
}),
overflowX: "hidden",
width: `calc(${theme.spacing(7)} + 1px)`,
[theme.breakpoints.up("sm")]: {
width: `calc(${theme.spacing(8)} + 1px)`,
},
});
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 Drawer = styled(MuiDrawer, {
shouldForwardProp: (prop) => prop !== "open",
})(({ theme, open }) => ({
width: drawerWidth,
flexShrink: 0,
whiteSpace: "nowrap",
boxSizing: "border-box",
backgroundColor: theme.palette.primary.background.dark,
...(open && {
...openedMixin(theme),
"& .MuiDrawer-paper": openedMixin(theme),
}),
...(!open && {
...closedMixin(theme),
"& .MuiDrawer-paper": closedMixin(theme),
}),
}));
const AppBar = styled(MuiAppBar, {
shouldForwardProp: (prop) => prop !== "open",
})(({ theme, open }) => ({
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",
...(open && {
marginLeft: drawerWidth,
width: `calc(100% - ${drawerWidth}px)`,
transition: theme.transitions.create(["width", "margin"], {
easing: theme.transitions.easing.sharp,
duration: theme.transitions.duration.enteringScreen,
}),
}),
}));
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 [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 (user) => {
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 getLatestMovies = async (user) => {
const media = await getUserLibraryApi(window.api).getLatestMedia({
userId: user.Id,
fields: ["PrimaryImageAspectRatio", "Overview"],
enableUserData: true,
includeItemTypes: ["Movie"],
});
return media;
};
useEffect(() => {
currentUser().then((usr) => {
setUser(usr.data);
userLibs(usr.data).then((libs) => {
setUserLibraries(libs.data.Items);
setSkeletonStateSideMenu(true);
// console.log(userLibraries);
});
getLatestMedia(usr.data).then((media) => {
setLatestMedia(media.data);
setSkeletonStateCarousel(true);
});
getLatestMovies(usr.data).then((media) => {
setLatestMovies(media.data);
});
});
for (let lib of latestMovies) {
console.log(lib);
}
}, []);
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>
<Drawer
variant="permanent"
open={drawerState}
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>
<ListItemText
primary={
library.Name
}
sx={{
opacity: drawerState
? 1
: 0,
}}
/>
</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>
</>
)}
</Drawer>
{/* <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) => {
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;
}
}
+390
View File
@@ -0,0 +1,390 @@
/** @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 EyeOffOutline from "mdi-material-ui/EyeOffOutline";
import EyeOutline from "mdi-material-ui/EyeOutline";
import ChevronRight from "mdi-material-ui/ChevronRight";
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 Avatar from "@mui/material/Avatar";
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 item>
<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 ? (
<EyeOffOutline />
) : (
<EyeOutline />
)}
</IconButton>
</InputAdornment>
}
/>
</FormControl>
</Grid>
<Grid item minWidth="100%">
<LoadingButton
variant="contained"
endIcon={<ChevronRight />}
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);
});
});
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.ImageTags == undefined ? (
<AvatarCard
userName={item.Name}
userId={item.Id}
userImageAvailable={false}
></AvatarCard>
) : (
<AvatarCard
userName={item.Name}
userImageAvailable={true}
></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 ? (
<EyeOffOutline />
) : (
<EyeOutline />
)}
</IconButton>
</InputAdornment>
}
/>
</FormControl>
</Grid>
<Grid item xl={5} md={6} sx={{ width: "100%" }}>
<LoadingButton
variant="contained"
endIcon={<ChevronRight />}
onClick={handleLogin}
loading={loading}
loadingPosition="end"
size="large"
sx={{ width: "100%" }}
>
Login
</LoadingButton>
</Grid>
</Grid>
</Container>
</>
);
};
+238
View File
@@ -0,0 +1,238 @@
/** @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 ListItem from "@mui/material/ListItem";
import ListItemText from "@mui/material/ListItemText";
import Button from "@mui/material/Button";
import LinearProgress from "@mui/material/LinearProgress";
import Container from "@mui/material/Container";
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 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 = () => {
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();
return true;
} else {
setServerCheckState(false);
enqueueSnackbar(
"The server address does not seem be a jellyfin server",
{ variant: "error" },
);
return false;
}
})
.catch((error) => {
setServerCheckState(false);
enqueueSnackbar(
"Unable to verify whether the give address is a valid Jellyfin server",
{ variant: "error" },
);
console.error(error);
});
};
return (
<>
{checkingServer && <LinearProgress />}
{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%" }}>
<Button
variant="contained"
sx={{ width: "100%" }}
size="large"
onClick={handleAddServer}
>
Add Server
</Button>
</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;
+39
View File
@@ -0,0 +1,39 @@
/** @format */
import { createTheme } from "@mui/material/styles";
import {
clrAccentDefault,
clrBackgroundDefault,
clrBackgroundDark,
clrBackgroundLight,
clrSecondaryDefault,
} from "./palette.module.scss";
export const theme = createTheme({
palette: {
primary: {
main: clrAccentDefault,
background: {
main: clrBackgroundDefault,
light: clrBackgroundLight,
dark: clrBackgroundDark,
},
},
secondary: {
main: clrSecondaryDefault,
},
mode: "dark",
},
typography: {
fontFamily: "Open Sans",
},
components: {
MuiButton: {
styleOverrides: {
root: {
borderRadius: "100px",
},
},
},
},
});
View File
Whitespace-only changes.
-5
View File
@@ -1,5 +0,0 @@
from jellyplayer import __version__
def test_version():
assert __version__ == '0.1.0'
+42
View File
@@ -0,0 +1,42 @@
/** @format */
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
// https://vitejs.dev/config/
export default defineConfig({
base: "./",
plugins: [react(), svgr()],
css: {
modules: {
scopeBehaviour: "global",
},
preprocessorOptions: {
scss: {
additionalData: '@use "./src/styles/variables.scss" as *;',
},
},
},
// prevent vite from obscuring rust errors
clearScreen: false,
// Tauri expects a fixed port, fail if that port is not available
server: {
strictPort: true,
},
// to make use of `TAURI_PLATFORM`, `TAURI_ARCH`, `TAURI_FAMILY`,
// `TAURI_PLATFORM_VERSION`, `TAURI_PLATFORM_TYPE` and `TAURI_DEBUG`
// env variables
envPrefix: ["VITE_", "TAURI_"],
build: {
// Tauri uses Chromium on Windows and WebKit on macOS and Linux
target:
process.env.TAURI_PLATFORM == "windows"
? "chrome105"
: "safari13",
// don't minify for debug builds
minify: !process.env.TAURI_DEBUG ? "esbuild" : false,
// produce sourcemaps for debug builds
sourcemap: !!process.env.TAURI_DEBUG,
},
});