Merge pull request #244 from dan-online/main
refactor(web): update to typescript, cleanup small bugs + workspace
This commit is contained in:
189 files changed
+3307
-5342
No files matched your search
@@ -1,23 +0,0 @@
|
|||||||
{
|
|
||||||
"env": {
|
|
||||||
"browser": true,
|
|
||||||
"es2021": true
|
|
||||||
},
|
|
||||||
"extends": [
|
|
||||||
"eslint:recommended",
|
|
||||||
"plugin:react/recommended"
|
|
||||||
],
|
|
||||||
"parserOptions": {
|
|
||||||
"ecmaVersion": "latest",
|
|
||||||
"sourceType": "module"
|
|
||||||
},
|
|
||||||
"plugins": [
|
|
||||||
"react",
|
|
||||||
"react-refresh"
|
|
||||||
],
|
|
||||||
"rules": {
|
|
||||||
"no-mixed-spaces-and-tabs": "off",
|
|
||||||
"react/prop-types": "off",
|
|
||||||
"react-refresh/only-export-components": "warn"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
# @format
|
|
||||||
|
|
||||||
name: Release
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- "v*"
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
platform: [macos-latest, ubuntu-22.04, windows-latest]
|
|
||||||
runs-on: ${{ matrix.platform }}
|
|
||||||
environment: TAURI
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install dependencies (ubuntu only)
|
|
||||||
if: matrix.platform == 'ubuntu-22.04'
|
|
||||||
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
|
|
||||||
run: |
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev
|
|
||||||
|
|
||||||
- name: Rust setup
|
|
||||||
uses: dtolnay/rust-toolchain@stable
|
|
||||||
|
|
||||||
- name: Rust cache
|
|
||||||
uses: swatinem/rust-cache@v2
|
|
||||||
with:
|
|
||||||
workspaces: "./src-tauri -> target"
|
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v2
|
|
||||||
name: Install pnpm
|
|
||||||
with:
|
|
||||||
version: 7
|
|
||||||
run_install: false
|
|
||||||
|
|
||||||
- name: Get pnpm store directory
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
name: Setup pnpm cache
|
|
||||||
with:
|
|
||||||
path: ${{ env.STORE_PATH }}
|
|
||||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pnpm-store-
|
|
||||||
|
|
||||||
- name: Sync node version and setup cache
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: "lts/*"
|
|
||||||
cache: "pnpm" # Set this to npm, yarn or pnpm.
|
|
||||||
|
|
||||||
- name: Install app dependencies and build web
|
|
||||||
# Remove `&& yarn build` if you build your frontend in `beforeBuildCommand`
|
|
||||||
run: pnpm install --no-frozen-lockfile && pnpm run build # Change this to npm, yarn or pnpm.
|
|
||||||
|
|
||||||
- name: Build the app
|
|
||||||
uses: tauri-apps/tauri-action@dev
|
|
||||||
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
|
|
||||||
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
|
|
||||||
with:
|
|
||||||
tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags.
|
|
||||||
releaseName: "App Name v__VERSION__" # tauri-action replaces \_\_VERSION\_\_ with the app version.
|
|
||||||
releaseBody: "See the assets to download and install this version."
|
|
||||||
releaseDraft: true
|
|
||||||
prerelease: false
|
|
||||||
@@ -0,0 +1,109 @@
|
|||||||
|
# @format
|
||||||
|
|
||||||
|
name: Continuous Integration
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_web:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: pnpm/action-setup@v2
|
||||||
|
name: Install pnpm
|
||||||
|
with:
|
||||||
|
version: 7
|
||||||
|
run_install: false
|
||||||
|
|
||||||
|
- name: Get pnpm store directory
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
name: Setup pnpm cache
|
||||||
|
with:
|
||||||
|
path: ${{ env.STORE_PATH }}
|
||||||
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-store-
|
||||||
|
|
||||||
|
- name: Sync node version and setup cache
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "lts/*"
|
||||||
|
cache: "pnpm"
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm install --no-frozen-lockfile
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: pnpm run lint
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: pnpm run build
|
||||||
|
|
||||||
|
build:
|
||||||
|
needs: build_web
|
||||||
|
# Prevent forked PRs from running the build job which is expensive
|
||||||
|
if: github.repository == 'prayag17/JellyPlayer'
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
platform: [macos-latest, ubuntu-22.04, windows-latest]
|
||||||
|
runs-on: ${{ matrix.platform }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install dependencies (ubuntu only)
|
||||||
|
if: matrix.platform == 'ubuntu-22.04'
|
||||||
|
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev
|
||||||
|
|
||||||
|
- name: Rust setup
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
|
- name: Rust cache
|
||||||
|
uses: swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
workspaces: "./src-tauri -> target"
|
||||||
|
|
||||||
|
- uses: pnpm/action-setup@v2
|
||||||
|
name: Install pnpm
|
||||||
|
with:
|
||||||
|
version: 7
|
||||||
|
run_install: false
|
||||||
|
|
||||||
|
- name: Get pnpm store directory
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
name: Setup pnpm cache
|
||||||
|
with:
|
||||||
|
path: ${{ env.STORE_PATH }}
|
||||||
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-store-
|
||||||
|
|
||||||
|
- name: Sync node version and setup cache
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "lts/*"
|
||||||
|
cache: "pnpm"
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm install --no-frozen-lockfile
|
||||||
|
|
||||||
|
- name: Build app
|
||||||
|
run: pnpm run tauri build
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
# @format
|
||||||
|
|
||||||
|
name: Release
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
platform: [macos-latest, ubuntu-22.04, windows-latest]
|
||||||
|
runs-on: ${{ matrix.platform }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install dependencies (ubuntu only)
|
||||||
|
if: matrix.platform == 'ubuntu-22.04'
|
||||||
|
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev
|
||||||
|
|
||||||
|
- name: Rust setup
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
|
- name: Rust cache
|
||||||
|
uses: swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
workspaces: "./src-tauri -> target"
|
||||||
|
|
||||||
|
- uses: pnpm/action-setup@v2
|
||||||
|
name: Install pnpm
|
||||||
|
with:
|
||||||
|
version: 7
|
||||||
|
run_install: false
|
||||||
|
|
||||||
|
- name: Get pnpm store directory
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
name: Setup pnpm cache
|
||||||
|
with:
|
||||||
|
path: ${{ env.STORE_PATH }}
|
||||||
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-store-
|
||||||
|
|
||||||
|
- name: Sync node version and setup cache
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "lts/*"
|
||||||
|
cache: "pnpm" # Set this to npm, yarn or pnpm.
|
||||||
|
|
||||||
|
- name: Install app dependencies and build web
|
||||||
|
# Remove `&& yarn build` if you build your frontend in `beforeBuildCommand`
|
||||||
|
run: pnpm install --no-frozen-lockfile && pnpm run build # Change this to npm, yarn or pnpm.
|
||||||
|
|
||||||
|
- name: Build the app
|
||||||
|
uses: tauri-apps/tauri-action@dev
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
|
||||||
|
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
|
||||||
|
with:
|
||||||
|
tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags.
|
||||||
|
releaseName: "App Name v__VERSION__" # tauri-action replaces \_\_VERSION\_\_ with the app version.
|
||||||
|
releaseBody: "See the assets to download and install this version."
|
||||||
|
releaseDraft: true
|
||||||
|
prerelease: false
|
||||||
Vendored
+9
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"biomejs.biome",
|
||||||
|
"github.vscode-github-actions",
|
||||||
|
"esbenp.prettier-vscode",
|
||||||
|
"swellaby.rust-pack",
|
||||||
|
"1yib.rust-bundle"
|
||||||
|
]
|
||||||
|
}
|
||||||
Vendored
+25
-1
@@ -1,3 +1,27 @@
|
|||||||
{
|
{
|
||||||
"nuxt.isNuxtApp": false
|
"editor.defaultFormatter": "biomejs.biome",
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"quickfix.biome": "always",
|
||||||
|
"source.organizeImports.biome": "explicit"
|
||||||
|
},
|
||||||
|
"[github-actions-workflow]": {
|
||||||
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
|
},
|
||||||
|
"[json]": {
|
||||||
|
"editor.defaultFormatter": "biomejs.biome"
|
||||||
|
},
|
||||||
|
"[typescriptreact]": {
|
||||||
|
"editor.defaultFormatter": "biomejs.biome"
|
||||||
|
},
|
||||||
|
"[typescript]": {
|
||||||
|
"editor.defaultFormatter": "biomejs.biome"
|
||||||
|
},
|
||||||
|
"[javascriptreact]": {
|
||||||
|
"editor.defaultFormatter": "biomejs.biome"
|
||||||
|
},
|
||||||
|
"[javascript]": {
|
||||||
|
"editor.defaultFormatter": "biomejs.biome"
|
||||||
|
},
|
||||||
|
"rust-analyzer.linkedProjects": ["./src-tauri/Cargo.toml"],
|
||||||
|
"typescript.tsdk": "node_modules/typescript/lib"
|
||||||
}
|
}
|
||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://biomejs.dev/schemas/1.5.0/schema.json",
|
||||||
|
"organizeImports": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"linter": {
|
||||||
|
"enabled": true,
|
||||||
|
"rules": {
|
||||||
|
"recommended": true,
|
||||||
|
"style": {
|
||||||
|
"noNonNullAssertion": "off"
|
||||||
|
},
|
||||||
|
"a11y": {
|
||||||
|
"useKeyWithClickEvents": "off"
|
||||||
|
},
|
||||||
|
"correctness": {
|
||||||
|
"useExhaustiveDependencies": "off"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"include": [
|
||||||
|
"src/**/*.ts",
|
||||||
|
"src/**/*.tsx",
|
||||||
|
"src/**/*.jsx",
|
||||||
|
"src/**/*.js",
|
||||||
|
"*.json"
|
||||||
|
],
|
||||||
|
"ignoreUnknown": true
|
||||||
|
}
|
||||||
|
}
|
||||||
+10
-8
@@ -1,7 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
<head>
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Jellyplayer</title>
|
<title>Jellyplayer</title>
|
||||||
@@ -25,20 +24,23 @@
|
|||||||
width: 65vw;
|
width: 65vw;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="app-loading">
|
<div class="app-loading">
|
||||||
<img src="./assetsStatic/LogoBig.svg" class="app-loading-logo" />
|
<img src="./assetsStatic/LogoBig.svg" class="app-loading-logo" />
|
||||||
</div>
|
</div>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<svg style="width:0;height:0;position:absolute;" aria-hidden="true" focusable="false">
|
<svg
|
||||||
|
style="width: 0; height: 0; position: absolute"
|
||||||
|
aria-hidden="true"
|
||||||
|
focusable="false"
|
||||||
|
>
|
||||||
<linearGradient id="clr-gradient-default" x2="1" y2="1">
|
<linearGradient id="clr-gradient-default" x2="1" y2="1">
|
||||||
<stop offset="0%" stop-color="hsl(337, 96%, 56%)" />
|
<stop offset="0%" stop-color="hsl(337, 96%, 56%)" />
|
||||||
<stop offset="100%" stop-color="hsl(273, 100%, 36%)" />
|
<stop offset="100%" stop-color="hsl(273, 100%, 36%)" />
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
</svg>
|
</svg>
|
||||||
<script type="module" src="/src/main.jsx"></script>
|
<script type="module" src="/src/main.tsx"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
+8
-1
@@ -8,7 +8,8 @@
|
|||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"tauri": "tauri",
|
"tauri": "tauri",
|
||||||
"lint": "eslint"
|
"lint": "biome check src/**/*",
|
||||||
|
"lint:fix": "biome check --apply src/**/*"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/react": "^11.11.3",
|
"@emotion/react": "^11.11.3",
|
||||||
@@ -22,6 +23,9 @@
|
|||||||
"@tanstack/react-query": "^5.17.5",
|
"@tanstack/react-query": "^5.17.5",
|
||||||
"@tanstack/react-query-devtools": "^5.17.5",
|
"@tanstack/react-query-devtools": "^5.17.5",
|
||||||
"@tauri-apps/api": "^1.5.3",
|
"@tauri-apps/api": "^1.5.3",
|
||||||
|
"@types/node": "^20.10.7",
|
||||||
|
"@types/react": "^18.2.47",
|
||||||
|
"@types/react-dom": "^18.2.18",
|
||||||
"axios": "^1.6.5",
|
"axios": "^1.6.5",
|
||||||
"axios-tauri-api-adapter": "^0.2.1",
|
"axios-tauri-api-adapter": "^0.2.1",
|
||||||
"blurhash": "^2.0.5",
|
"blurhash": "^2.0.5",
|
||||||
@@ -40,13 +44,16 @@
|
|||||||
"react-use-konami": "^1.1.0",
|
"react-use-konami": "^1.1.0",
|
||||||
"tauri-plugin-log-api": "github:tauri-apps/tauri-plugin-log#v1",
|
"tauri-plugin-log-api": "github:tauri-apps/tauri-plugin-log#v1",
|
||||||
"tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store",
|
"tauri-plugin-store-api": "github:tauri-apps/tauri-plugin-store",
|
||||||
|
"typescript": "^5.3.3",
|
||||||
"uuid": "^9.0.1",
|
"uuid": "^9.0.1",
|
||||||
"vite-plugin-svgr": "^4.2.0",
|
"vite-plugin-svgr": "^4.2.0",
|
||||||
"wavesurfer.js": "^7.6.1",
|
"wavesurfer.js": "^7.6.1",
|
||||||
"zustand": "^4.4.7"
|
"zustand": "^4.4.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@biomejs/biome": "^1.5.0",
|
||||||
"@tauri-apps/cli": "^1.5.9",
|
"@tauri-apps/cli": "^1.5.9",
|
||||||
|
"@types/uuid": "^9.0.7",
|
||||||
"@vitejs/plugin-react": "^4.2.1",
|
"@vitejs/plugin-react": "^4.2.1",
|
||||||
"eslint": "^8.56.0",
|
"eslint": "^8.56.0",
|
||||||
"eslint-plugin-react": "^7.33.2",
|
"eslint-plugin-react": "^7.33.2",
|
||||||
|
|||||||
Generated
+199
-67
@@ -7,10 +7,10 @@ settings:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@emotion/react':
|
'@emotion/react':
|
||||||
specifier: ^11.11.3
|
specifier: ^11.11.3
|
||||||
version: 11.11.3(@types/react@18.2.46)(react@18.2.0)
|
version: 11.11.3(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@emotion/styled':
|
'@emotion/styled':
|
||||||
specifier: ^11.11.0
|
specifier: ^11.11.0
|
||||||
version: 11.11.0(@emotion/react@11.11.3)(@types/react@18.2.46)(react@18.2.0)
|
version: 11.11.0(@emotion/react@11.11.3)(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@fontsource-variable/jetbrains-mono':
|
'@fontsource-variable/jetbrains-mono':
|
||||||
specifier: ^5.0.19
|
specifier: ^5.0.19
|
||||||
version: 5.0.19
|
version: 5.0.19
|
||||||
@@ -25,10 +25,10 @@ dependencies:
|
|||||||
version: 7.4.47
|
version: 7.4.47
|
||||||
'@mui/lab':
|
'@mui/lab':
|
||||||
specifier: 5.0.0-alpha.159
|
specifier: 5.0.0-alpha.159
|
||||||
version: 5.0.0-alpha.159(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@mui/material@5.15.3)(@types/react@18.2.46)(react-dom@18.2.0)(react@18.2.0)
|
version: 5.0.0-alpha.159(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@mui/material@5.15.3)(@types/react@18.2.47)(react-dom@18.2.0)(react@18.2.0)
|
||||||
'@mui/material':
|
'@mui/material':
|
||||||
specifier: ^5.15.3
|
specifier: ^5.15.3
|
||||||
version: 5.15.3(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.46)(react-dom@18.2.0)(react@18.2.0)
|
version: 5.15.3(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.47)(react-dom@18.2.0)(react@18.2.0)
|
||||||
'@tanstack/react-query':
|
'@tanstack/react-query':
|
||||||
specifier: ^5.17.5
|
specifier: ^5.17.5
|
||||||
version: 5.17.5(react@18.2.0)
|
version: 5.17.5(react@18.2.0)
|
||||||
@@ -38,6 +38,15 @@ dependencies:
|
|||||||
'@tauri-apps/api':
|
'@tauri-apps/api':
|
||||||
specifier: ^1.5.3
|
specifier: ^1.5.3
|
||||||
version: 1.5.3
|
version: 1.5.3
|
||||||
|
'@types/node':
|
||||||
|
specifier: ^20.10.7
|
||||||
|
version: 20.10.7
|
||||||
|
'@types/react':
|
||||||
|
specifier: ^18.2.47
|
||||||
|
version: 18.2.47
|
||||||
|
'@types/react-dom':
|
||||||
|
specifier: ^18.2.18
|
||||||
|
version: 18.2.18
|
||||||
axios:
|
axios:
|
||||||
specifier: ^1.6.5
|
specifier: ^1.6.5
|
||||||
version: 1.6.5
|
version: 1.6.5
|
||||||
@@ -73,7 +82,7 @@ dependencies:
|
|||||||
version: 4.0.12(react@18.2.0)
|
version: 4.0.12(react@18.2.0)
|
||||||
react-markdown:
|
react-markdown:
|
||||||
specifier: ^9.0.1
|
specifier: ^9.0.1
|
||||||
version: 9.0.1(@types/react@18.2.46)(react@18.2.0)
|
version: 9.0.1(@types/react@18.2.47)(react@18.2.0)
|
||||||
react-multi-carousel:
|
react-multi-carousel:
|
||||||
specifier: ^2.8.4
|
specifier: ^2.8.4
|
||||||
version: 2.8.4
|
version: 2.8.4
|
||||||
@@ -92,23 +101,32 @@ dependencies:
|
|||||||
tauri-plugin-store-api:
|
tauri-plugin-store-api:
|
||||||
specifier: github:tauri-apps/tauri-plugin-store
|
specifier: github:tauri-apps/tauri-plugin-store
|
||||||
version: github.com/tauri-apps/tauri-plugin-store/7d2632996f290b0f18cc5f8a2b2791046400690e
|
version: github.com/tauri-apps/tauri-plugin-store/7d2632996f290b0f18cc5f8a2b2791046400690e
|
||||||
|
typescript:
|
||||||
|
specifier: ^5.3.3
|
||||||
|
version: 5.3.3
|
||||||
uuid:
|
uuid:
|
||||||
specifier: ^9.0.1
|
specifier: ^9.0.1
|
||||||
version: 9.0.1
|
version: 9.0.1
|
||||||
vite-plugin-svgr:
|
vite-plugin-svgr:
|
||||||
specifier: ^4.2.0
|
specifier: ^4.2.0
|
||||||
version: 4.2.0(vite@5.0.11)
|
version: 4.2.0(typescript@5.3.3)(vite@5.0.11)
|
||||||
wavesurfer.js:
|
wavesurfer.js:
|
||||||
specifier: ^7.6.1
|
specifier: ^7.6.1
|
||||||
version: 7.6.1
|
version: 7.6.1
|
||||||
zustand:
|
zustand:
|
||||||
specifier: ^4.4.7
|
specifier: ^4.4.7
|
||||||
version: 4.4.7(@types/react@18.2.46)(react@18.2.0)
|
version: 4.4.7(@types/react@18.2.47)(react@18.2.0)
|
||||||
|
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
'@biomejs/biome':
|
||||||
|
specifier: ^1.5.0
|
||||||
|
version: 1.5.0
|
||||||
'@tauri-apps/cli':
|
'@tauri-apps/cli':
|
||||||
specifier: ^1.5.9
|
specifier: ^1.5.9
|
||||||
version: 1.5.9
|
version: 1.5.9
|
||||||
|
'@types/uuid':
|
||||||
|
specifier: ^9.0.7
|
||||||
|
version: 9.0.7
|
||||||
'@vitejs/plugin-react':
|
'@vitejs/plugin-react':
|
||||||
specifier: ^4.2.1
|
specifier: ^4.2.1
|
||||||
version: 4.2.1(vite@5.0.11)
|
version: 4.2.1(vite@5.0.11)
|
||||||
@@ -129,7 +147,7 @@ devDependencies:
|
|||||||
version: 1.69.7
|
version: 1.69.7
|
||||||
vite:
|
vite:
|
||||||
specifier: ^5.0.11
|
specifier: ^5.0.11
|
||||||
version: 5.0.11(sass@1.69.7)
|
version: 5.0.11(@types/node@20.10.7)(sass@1.69.7)
|
||||||
vite-plugin-compression:
|
vite-plugin-compression:
|
||||||
specifier: ^0.5.1
|
specifier: ^0.5.1
|
||||||
version: 0.5.1(vite@5.0.11)
|
version: 0.5.1(vite@5.0.11)
|
||||||
@@ -350,6 +368,94 @@ packages:
|
|||||||
'@babel/helper-validator-identifier': 7.22.20
|
'@babel/helper-validator-identifier': 7.22.20
|
||||||
to-fast-properties: 2.0.0
|
to-fast-properties: 2.0.0
|
||||||
|
|
||||||
|
/@biomejs/biome@1.5.0:
|
||||||
|
resolution: {integrity: sha512-ln+o5jbs109qpeDoA+5n+vlAPai3DhlK0tHtZXzQvu4tswFgxNiJCeIXmlW1DYHziTmtBImV3Y0uhbm2iVSE3Q==}
|
||||||
|
engines: {node: '>=14.*'}
|
||||||
|
hasBin: true
|
||||||
|
requiresBuild: true
|
||||||
|
optionalDependencies:
|
||||||
|
'@biomejs/cli-darwin-arm64': 1.5.0
|
||||||
|
'@biomejs/cli-darwin-x64': 1.5.0
|
||||||
|
'@biomejs/cli-linux-arm64': 1.5.0
|
||||||
|
'@biomejs/cli-linux-arm64-musl': 1.5.0
|
||||||
|
'@biomejs/cli-linux-x64': 1.5.0
|
||||||
|
'@biomejs/cli-linux-x64-musl': 1.5.0
|
||||||
|
'@biomejs/cli-win32-arm64': 1.5.0
|
||||||
|
'@biomejs/cli-win32-x64': 1.5.0
|
||||||
|
dev: true
|
||||||
|
|
||||||
|
/@biomejs/cli-darwin-arm64@1.5.0:
|
||||||
|
resolution: {integrity: sha512-3+D7axf04dpadGMOaqb2q+zyQnhWW0o/Imt7TJBWsoE0N3/+28Wht8g3UEHHcUL5FPuGIfsE+NcYntBaaAsEIg==}
|
||||||
|
engines: {node: '>=14.*'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [darwin]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@biomejs/cli-darwin-x64@1.5.0:
|
||||||
|
resolution: {integrity: sha512-8k5aaLWE/B6ZAXLC+z/Vwh9ogyiSaiRIfvg+F9foxuneHl2R/D/2Iy7pvd3Yoi4Kf6/MBdowekPVezGP4/Kbcw==}
|
||||||
|
engines: {node: '>=14.*'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [darwin]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@biomejs/cli-linux-arm64-musl@1.5.0:
|
||||||
|
resolution: {integrity: sha512-+1B3J8tWLTOvP3+00Cap+XhEXMvxwCHvVfuywUsB7Sqd66NWic3wKJuGbGcS3PuCWtGuIFsiQMNAGqiOXG4uBQ==}
|
||||||
|
engines: {node: '>=14.*'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@biomejs/cli-linux-arm64@1.5.0:
|
||||||
|
resolution: {integrity: sha512-RiecxG71E1jnqiJZ3FaikVBDRkk2ohIxBo0O4o68g87y6Hug//G0S83sj6Wqyn8DgKMCRWQg+XYMgk5CwLVowA==}
|
||||||
|
engines: {node: '>=14.*'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@biomejs/cli-linux-x64-musl@1.5.0:
|
||||||
|
resolution: {integrity: sha512-4S2rLluc0WT+XTbLTgcm9+5EEFwJmoGiUEzR6N0P2sIjZD8c5KNf9Ou46BP1Pdg5AgqV+IIClGPK1I80ApSh1Q==}
|
||||||
|
engines: {node: '>=14.*'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@biomejs/cli-linux-x64@1.5.0:
|
||||||
|
resolution: {integrity: sha512-TlTsG+ptSmnDTUsAAYsXyGOXMcFiF8SiwhPdj4YsNkJRgx9M2curEVcTVm66FINIPK6VJTUcEDahFlx3NPUOzA==}
|
||||||
|
engines: {node: '>=14.*'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@biomejs/cli-win32-arm64@1.5.0:
|
||||||
|
resolution: {integrity: sha512-sWOi1SR+YqJuXElBncGRnWBR7IN7ni6GQY4Zm/vTpP6nVA0dX5C301eQUW1N/VnFQb6fyrJTcBslDUKyemsN/g==}
|
||||||
|
engines: {node: '>=14.*'}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [win32]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
|
/@biomejs/cli-win32-x64@1.5.0:
|
||||||
|
resolution: {integrity: sha512-OoqgUXyzmRwX466bklOsWS7WdcvWtBuxF94DXATNe7bUiBa2tlW8QX7VVZvPnMKH57E5J619AkB3b5fhzyUhXA==}
|
||||||
|
engines: {node: '>=14.*'}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [win32]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
/@emotion/babel-plugin@11.11.0:
|
/@emotion/babel-plugin@11.11.0:
|
||||||
resolution: {integrity: sha512-m4HEDZleaaCH+XgDDsPF15Ht6wTLsgDTeR3WYj9Q/k76JtWhrJjcP4+/XlG8LGT/Rol9qUfOIztXeA84ATpqPQ==}
|
resolution: {integrity: sha512-m4HEDZleaaCH+XgDDsPF15Ht6wTLsgDTeR3WYj9Q/k76JtWhrJjcP4+/XlG8LGT/Rol9qUfOIztXeA84ATpqPQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -404,7 +510,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==}
|
resolution: {integrity: sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@emotion/react@11.11.3(@types/react@18.2.46)(react@18.2.0):
|
/@emotion/react@11.11.3(@types/react@18.2.47)(react@18.2.0):
|
||||||
resolution: {integrity: sha512-Cnn0kuq4DoONOMcnoVsTOR8E+AdnKFf//6kUWc4LCdnxj31pZWn7rIULd6Y7/Js1PiPHzn7SKCM9vB/jBni8eA==}
|
resolution: {integrity: sha512-Cnn0kuq4DoONOMcnoVsTOR8E+AdnKFf//6kUWc4LCdnxj31pZWn7rIULd6Y7/Js1PiPHzn7SKCM9vB/jBni8eA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@types/react': '*'
|
'@types/react': '*'
|
||||||
@@ -420,7 +526,7 @@ packages:
|
|||||||
'@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@18.2.0)
|
'@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@18.2.0)
|
||||||
'@emotion/utils': 1.2.1
|
'@emotion/utils': 1.2.1
|
||||||
'@emotion/weak-memoize': 0.3.1
|
'@emotion/weak-memoize': 0.3.1
|
||||||
'@types/react': 18.2.46
|
'@types/react': 18.2.47
|
||||||
hoist-non-react-statics: 3.3.2
|
hoist-non-react-statics: 3.3.2
|
||||||
react: 18.2.0
|
react: 18.2.0
|
||||||
dev: false
|
dev: false
|
||||||
@@ -439,7 +545,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-0QBtGvaqtWi+nx6doRwDdBIzhNdZrXUppvTM4dtZZWEGTXL/XE/yJxLMGlDT1Gt+UHH5IX1n+jkXyytE/av7OA==}
|
resolution: {integrity: sha512-0QBtGvaqtWi+nx6doRwDdBIzhNdZrXUppvTM4dtZZWEGTXL/XE/yJxLMGlDT1Gt+UHH5IX1n+jkXyytE/av7OA==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@emotion/styled@11.11.0(@emotion/react@11.11.3)(@types/react@18.2.46)(react@18.2.0):
|
/@emotion/styled@11.11.0(@emotion/react@11.11.3)(@types/react@18.2.47)(react@18.2.0):
|
||||||
resolution: {integrity: sha512-hM5Nnvu9P3midq5aaXj4I+lnSfNi7Pmd4EWk1fOZ3pxookaQTNew6bp4JaCBYM4HVFZF9g7UjJmsUmC2JlxOng==}
|
resolution: {integrity: sha512-hM5Nnvu9P3midq5aaXj4I+lnSfNi7Pmd4EWk1fOZ3pxookaQTNew6bp4JaCBYM4HVFZF9g7UjJmsUmC2JlxOng==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@emotion/react': ^11.0.0-rc.0
|
'@emotion/react': ^11.0.0-rc.0
|
||||||
@@ -452,11 +558,11 @@ packages:
|
|||||||
'@babel/runtime': 7.23.7
|
'@babel/runtime': 7.23.7
|
||||||
'@emotion/babel-plugin': 11.11.0
|
'@emotion/babel-plugin': 11.11.0
|
||||||
'@emotion/is-prop-valid': 1.2.1
|
'@emotion/is-prop-valid': 1.2.1
|
||||||
'@emotion/react': 11.11.3(@types/react@18.2.46)(react@18.2.0)
|
'@emotion/react': 11.11.3(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@emotion/serialize': 1.1.3
|
'@emotion/serialize': 1.1.3
|
||||||
'@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@18.2.0)
|
'@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@18.2.0)
|
||||||
'@emotion/utils': 1.2.1
|
'@emotion/utils': 1.2.1
|
||||||
'@types/react': 18.2.46
|
'@types/react': 18.2.47
|
||||||
react: 18.2.0
|
react: 18.2.0
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
@@ -803,7 +909,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-KPnNOtm5i2pMabqZxpUz7iQf+mfrYZyKCZ8QNz85czgEt7cuHcGorWfdzUMWYA0SD+a6Hn4FmJ+YhzzzjkTZrQ==}
|
resolution: {integrity: sha512-KPnNOtm5i2pMabqZxpUz7iQf+mfrYZyKCZ8QNz85czgEt7cuHcGorWfdzUMWYA0SD+a6Hn4FmJ+YhzzzjkTZrQ==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@mui/base@5.0.0-beta.30(@types/react@18.2.46)(react-dom@18.2.0)(react@18.2.0):
|
/@mui/base@5.0.0-beta.30(@types/react@18.2.47)(react-dom@18.2.0)(react@18.2.0):
|
||||||
resolution: {integrity: sha512-dc38W4W3K42atE9nSaOeoJ7/x9wGIfawdwC/UmMxMLlZ1iSsITQ8dQJaTATCbn98YvYPINK/EH541YA5enQIPQ==}
|
resolution: {integrity: sha512-dc38W4W3K42atE9nSaOeoJ7/x9wGIfawdwC/UmMxMLlZ1iSsITQ8dQJaTATCbn98YvYPINK/EH541YA5enQIPQ==}
|
||||||
engines: {node: '>=12.0.0'}
|
engines: {node: '>=12.0.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -816,10 +922,10 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@babel/runtime': 7.23.7
|
'@babel/runtime': 7.23.7
|
||||||
'@floating-ui/react-dom': 2.0.5(react-dom@18.2.0)(react@18.2.0)
|
'@floating-ui/react-dom': 2.0.5(react-dom@18.2.0)(react@18.2.0)
|
||||||
'@mui/types': 7.2.12(@types/react@18.2.46)
|
'@mui/types': 7.2.12(@types/react@18.2.47)
|
||||||
'@mui/utils': 5.15.3(@types/react@18.2.46)(react@18.2.0)
|
'@mui/utils': 5.15.3(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@popperjs/core': 2.11.8
|
'@popperjs/core': 2.11.8
|
||||||
'@types/react': 18.2.46
|
'@types/react': 18.2.47
|
||||||
clsx: 2.1.0
|
clsx: 2.1.0
|
||||||
prop-types: 15.8.1
|
prop-types: 15.8.1
|
||||||
react: 18.2.0
|
react: 18.2.0
|
||||||
@@ -830,7 +936,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-sWeihiVyxdJjpLkp8SHkTy9kt2M/o11M60G1MzwljGL2BXdM3Ktzqv5QaQHdi00y7Y1ulvtI3GOSxP2xU8mQJw==}
|
resolution: {integrity: sha512-sWeihiVyxdJjpLkp8SHkTy9kt2M/o11M60G1MzwljGL2BXdM3Ktzqv5QaQHdi00y7Y1ulvtI3GOSxP2xU8mQJw==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@mui/lab@5.0.0-alpha.159(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@mui/material@5.15.3)(@types/react@18.2.46)(react-dom@18.2.0)(react@18.2.0):
|
/@mui/lab@5.0.0-alpha.159(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@mui/material@5.15.3)(@types/react@18.2.47)(react-dom@18.2.0)(react@18.2.0):
|
||||||
resolution: {integrity: sha512-42Y8nf2/mDgYSLOw6PhOfHNV6P7tPcQkQEL0DTbY7a+gc+hXDsyVEzBMYST1MrV64EHTH68msfQm+k3CvLON/g==}
|
resolution: {integrity: sha512-42Y8nf2/mDgYSLOw6PhOfHNV6P7tPcQkQEL0DTbY7a+gc+hXDsyVEzBMYST1MrV64EHTH68msfQm+k3CvLON/g==}
|
||||||
engines: {node: '>=12.0.0'}
|
engines: {node: '>=12.0.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -849,21 +955,21 @@ packages:
|
|||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/runtime': 7.23.7
|
'@babel/runtime': 7.23.7
|
||||||
'@emotion/react': 11.11.3(@types/react@18.2.46)(react@18.2.0)
|
'@emotion/react': 11.11.3(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@emotion/styled': 11.11.0(@emotion/react@11.11.3)(@types/react@18.2.46)(react@18.2.0)
|
'@emotion/styled': 11.11.0(@emotion/react@11.11.3)(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@mui/base': 5.0.0-beta.30(@types/react@18.2.46)(react-dom@18.2.0)(react@18.2.0)
|
'@mui/base': 5.0.0-beta.30(@types/react@18.2.47)(react-dom@18.2.0)(react@18.2.0)
|
||||||
'@mui/material': 5.15.3(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.46)(react-dom@18.2.0)(react@18.2.0)
|
'@mui/material': 5.15.3(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.47)(react-dom@18.2.0)(react@18.2.0)
|
||||||
'@mui/system': 5.15.3(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.46)(react@18.2.0)
|
'@mui/system': 5.15.3(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@mui/types': 7.2.12(@types/react@18.2.46)
|
'@mui/types': 7.2.12(@types/react@18.2.47)
|
||||||
'@mui/utils': 5.15.3(@types/react@18.2.46)(react@18.2.0)
|
'@mui/utils': 5.15.3(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@types/react': 18.2.46
|
'@types/react': 18.2.47
|
||||||
clsx: 2.1.0
|
clsx: 2.1.0
|
||||||
prop-types: 15.8.1
|
prop-types: 15.8.1
|
||||||
react: 18.2.0
|
react: 18.2.0
|
||||||
react-dom: 18.2.0(react@18.2.0)
|
react-dom: 18.2.0(react@18.2.0)
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@mui/material@5.15.3(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.46)(react-dom@18.2.0)(react@18.2.0):
|
/@mui/material@5.15.3(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.47)(react-dom@18.2.0)(react@18.2.0):
|
||||||
resolution: {integrity: sha512-DODBBMouyq1B5f3YkEWL9vO8pGCxuEGqtfpltF6peMJzz/78tJFyLQsDas9MNLC/8AdFu2BQdkK7wox5UBPTAA==}
|
resolution: {integrity: sha512-DODBBMouyq1B5f3YkEWL9vO8pGCxuEGqtfpltF6peMJzz/78tJFyLQsDas9MNLC/8AdFu2BQdkK7wox5UBPTAA==}
|
||||||
engines: {node: '>=12.0.0'}
|
engines: {node: '>=12.0.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -881,14 +987,14 @@ packages:
|
|||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/runtime': 7.23.7
|
'@babel/runtime': 7.23.7
|
||||||
'@emotion/react': 11.11.3(@types/react@18.2.46)(react@18.2.0)
|
'@emotion/react': 11.11.3(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@emotion/styled': 11.11.0(@emotion/react@11.11.3)(@types/react@18.2.46)(react@18.2.0)
|
'@emotion/styled': 11.11.0(@emotion/react@11.11.3)(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@mui/base': 5.0.0-beta.30(@types/react@18.2.46)(react-dom@18.2.0)(react@18.2.0)
|
'@mui/base': 5.0.0-beta.30(@types/react@18.2.47)(react-dom@18.2.0)(react@18.2.0)
|
||||||
'@mui/core-downloads-tracker': 5.15.3
|
'@mui/core-downloads-tracker': 5.15.3
|
||||||
'@mui/system': 5.15.3(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.46)(react@18.2.0)
|
'@mui/system': 5.15.3(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@mui/types': 7.2.12(@types/react@18.2.46)
|
'@mui/types': 7.2.12(@types/react@18.2.47)
|
||||||
'@mui/utils': 5.15.3(@types/react@18.2.46)(react@18.2.0)
|
'@mui/utils': 5.15.3(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@types/react': 18.2.46
|
'@types/react': 18.2.47
|
||||||
'@types/react-transition-group': 4.4.10
|
'@types/react-transition-group': 4.4.10
|
||||||
clsx: 2.1.0
|
clsx: 2.1.0
|
||||||
csstype: 3.1.3
|
csstype: 3.1.3
|
||||||
@@ -899,7 +1005,7 @@ packages:
|
|||||||
react-transition-group: 4.4.5(react-dom@18.2.0)(react@18.2.0)
|
react-transition-group: 4.4.5(react-dom@18.2.0)(react@18.2.0)
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@mui/private-theming@5.15.3(@types/react@18.2.46)(react@18.2.0):
|
/@mui/private-theming@5.15.3(@types/react@18.2.47)(react@18.2.0):
|
||||||
resolution: {integrity: sha512-Q79MhVMmywC1l5bMsMZq5PsIudr1MNPJnx9/EqdMP0vpz5iNvFpnLmxsD7d8/hqTWgFAljI+LH3jX8MxlZH9Gw==}
|
resolution: {integrity: sha512-Q79MhVMmywC1l5bMsMZq5PsIudr1MNPJnx9/EqdMP0vpz5iNvFpnLmxsD7d8/hqTWgFAljI+LH3jX8MxlZH9Gw==}
|
||||||
engines: {node: '>=12.0.0'}
|
engines: {node: '>=12.0.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -910,8 +1016,8 @@ packages:
|
|||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/runtime': 7.23.7
|
'@babel/runtime': 7.23.7
|
||||||
'@mui/utils': 5.15.3(@types/react@18.2.46)(react@18.2.0)
|
'@mui/utils': 5.15.3(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@types/react': 18.2.46
|
'@types/react': 18.2.47
|
||||||
prop-types: 15.8.1
|
prop-types: 15.8.1
|
||||||
react: 18.2.0
|
react: 18.2.0
|
||||||
dev: false
|
dev: false
|
||||||
@@ -931,14 +1037,14 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@babel/runtime': 7.23.7
|
'@babel/runtime': 7.23.7
|
||||||
'@emotion/cache': 11.11.0
|
'@emotion/cache': 11.11.0
|
||||||
'@emotion/react': 11.11.3(@types/react@18.2.46)(react@18.2.0)
|
'@emotion/react': 11.11.3(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@emotion/styled': 11.11.0(@emotion/react@11.11.3)(@types/react@18.2.46)(react@18.2.0)
|
'@emotion/styled': 11.11.0(@emotion/react@11.11.3)(@types/react@18.2.47)(react@18.2.0)
|
||||||
csstype: 3.1.3
|
csstype: 3.1.3
|
||||||
prop-types: 15.8.1
|
prop-types: 15.8.1
|
||||||
react: 18.2.0
|
react: 18.2.0
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@mui/system@5.15.3(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.46)(react@18.2.0):
|
/@mui/system@5.15.3(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(@types/react@18.2.47)(react@18.2.0):
|
||||||
resolution: {integrity: sha512-ewVU4eRgo4VfNMGpO61cKlfWmH7l9s6rA8EknRzuMX3DbSLfmtW2WJJg6qPwragvpPIir0Pp/AdWVSDhyNy5Tw==}
|
resolution: {integrity: sha512-ewVU4eRgo4VfNMGpO61cKlfWmH7l9s6rA8EknRzuMX3DbSLfmtW2WJJg6qPwragvpPIir0Pp/AdWVSDhyNy5Tw==}
|
||||||
engines: {node: '>=12.0.0'}
|
engines: {node: '>=12.0.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -955,20 +1061,20 @@ packages:
|
|||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/runtime': 7.23.7
|
'@babel/runtime': 7.23.7
|
||||||
'@emotion/react': 11.11.3(@types/react@18.2.46)(react@18.2.0)
|
'@emotion/react': 11.11.3(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@emotion/styled': 11.11.0(@emotion/react@11.11.3)(@types/react@18.2.46)(react@18.2.0)
|
'@emotion/styled': 11.11.0(@emotion/react@11.11.3)(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@mui/private-theming': 5.15.3(@types/react@18.2.46)(react@18.2.0)
|
'@mui/private-theming': 5.15.3(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@mui/styled-engine': 5.15.3(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(react@18.2.0)
|
'@mui/styled-engine': 5.15.3(@emotion/react@11.11.3)(@emotion/styled@11.11.0)(react@18.2.0)
|
||||||
'@mui/types': 7.2.12(@types/react@18.2.46)
|
'@mui/types': 7.2.12(@types/react@18.2.47)
|
||||||
'@mui/utils': 5.15.3(@types/react@18.2.46)(react@18.2.0)
|
'@mui/utils': 5.15.3(@types/react@18.2.47)(react@18.2.0)
|
||||||
'@types/react': 18.2.46
|
'@types/react': 18.2.47
|
||||||
clsx: 2.1.0
|
clsx: 2.1.0
|
||||||
csstype: 3.1.3
|
csstype: 3.1.3
|
||||||
prop-types: 15.8.1
|
prop-types: 15.8.1
|
||||||
react: 18.2.0
|
react: 18.2.0
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@mui/types@7.2.12(@types/react@18.2.46):
|
/@mui/types@7.2.12(@types/react@18.2.47):
|
||||||
resolution: {integrity: sha512-3kaHiNm9khCAo0pVe0RenketDSFoZGAlVZ4zDjB/QNZV0XiCj+sh1zkX0VVhQPgYJDlBEzAag+MHJ1tU3vf0Zw==}
|
resolution: {integrity: sha512-3kaHiNm9khCAo0pVe0RenketDSFoZGAlVZ4zDjB/QNZV0XiCj+sh1zkX0VVhQPgYJDlBEzAag+MHJ1tU3vf0Zw==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@types/react': ^17.0.0 || ^18.0.0
|
'@types/react': ^17.0.0 || ^18.0.0
|
||||||
@@ -976,10 +1082,10 @@ packages:
|
|||||||
'@types/react':
|
'@types/react':
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/react': 18.2.46
|
'@types/react': 18.2.47
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@mui/utils@5.15.3(@types/react@18.2.46)(react@18.2.0):
|
/@mui/utils@5.15.3(@types/react@18.2.47)(react@18.2.0):
|
||||||
resolution: {integrity: sha512-mT3LiSt9tZWCdx1pl7q4Q5tNo6gdZbvJel286ZHGuj6LQQXjWNAh8qiF9d+LogvNUI+D7eLkTnj605d1zoazfg==}
|
resolution: {integrity: sha512-mT3LiSt9tZWCdx1pl7q4Q5tNo6gdZbvJel286ZHGuj6LQQXjWNAh8qiF9d+LogvNUI+D7eLkTnj605d1zoazfg==}
|
||||||
engines: {node: '>=12.0.0'}
|
engines: {node: '>=12.0.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -991,7 +1097,7 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@babel/runtime': 7.23.7
|
'@babel/runtime': 7.23.7
|
||||||
'@types/prop-types': 15.7.11
|
'@types/prop-types': 15.7.11
|
||||||
'@types/react': 18.2.46
|
'@types/react': 18.2.47
|
||||||
prop-types: 15.8.1
|
prop-types: 15.8.1
|
||||||
react: 18.2.0
|
react: 18.2.0
|
||||||
react-is: 18.2.0
|
react-is: 18.2.0
|
||||||
@@ -1221,14 +1327,14 @@ packages:
|
|||||||
'@svgr/babel-plugin-transform-svg-component': 8.0.0(@babel/core@7.23.7)
|
'@svgr/babel-plugin-transform-svg-component': 8.0.0(@babel/core@7.23.7)
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@svgr/core@8.1.0:
|
/@svgr/core@8.1.0(typescript@5.3.3):
|
||||||
resolution: {integrity: sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==}
|
resolution: {integrity: sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/core': 7.23.7
|
'@babel/core': 7.23.7
|
||||||
'@svgr/babel-preset': 8.1.0(@babel/core@7.23.7)
|
'@svgr/babel-preset': 8.1.0(@babel/core@7.23.7)
|
||||||
camelcase: 6.3.0
|
camelcase: 6.3.0
|
||||||
cosmiconfig: 8.3.6
|
cosmiconfig: 8.3.6(typescript@5.3.3)
|
||||||
snake-case: 3.0.4
|
snake-case: 3.0.4
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
@@ -1251,7 +1357,7 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@babel/core': 7.23.7
|
'@babel/core': 7.23.7
|
||||||
'@svgr/babel-preset': 8.1.0(@babel/core@7.23.7)
|
'@svgr/babel-preset': 8.1.0(@babel/core@7.23.7)
|
||||||
'@svgr/core': 8.1.0
|
'@svgr/core': 8.1.0(typescript@5.3.3)
|
||||||
'@svgr/hast-util-to-babel-ast': 8.0.0
|
'@svgr/hast-util-to-babel-ast': 8.0.0
|
||||||
svg-parser: 2.0.4
|
svg-parser: 2.0.4
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
@@ -1458,6 +1564,11 @@ packages:
|
|||||||
resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==}
|
resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
|
/@types/node@20.10.7:
|
||||||
|
resolution: {integrity: sha512-fRbIKb8C/Y2lXxB5eVMj4IU7xpdox0Lh8bUPEdtLysaylsml1hOOx1+STloRs/B9nf7C6kPRmmg/V7aQW7usNg==}
|
||||||
|
dependencies:
|
||||||
|
undici-types: 5.26.5
|
||||||
|
|
||||||
/@types/parse-json@4.0.2:
|
/@types/parse-json@4.0.2:
|
||||||
resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==}
|
resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==}
|
||||||
dev: false
|
dev: false
|
||||||
@@ -1466,14 +1577,20 @@ packages:
|
|||||||
resolution: {integrity: sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==}
|
resolution: {integrity: sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
|
/@types/react-dom@18.2.18:
|
||||||
|
resolution: {integrity: sha512-TJxDm6OfAX2KJWJdMEVTwWke5Sc/E/RlnPGvGfS0W7+6ocy2xhDVQVh/KvC2Uf7kACs+gDytdusDSdWfWkaNzw==}
|
||||||
|
dependencies:
|
||||||
|
'@types/react': 18.2.47
|
||||||
|
dev: false
|
||||||
|
|
||||||
/@types/react-transition-group@4.4.10:
|
/@types/react-transition-group@4.4.10:
|
||||||
resolution: {integrity: sha512-hT/+s0VQs2ojCX823m60m5f0sL5idt9SO6Tj6Dg+rdphGPIeJbJ6CxvBYkgkGKrYeDjvIpKTR38UzmtHJOGW3Q==}
|
resolution: {integrity: sha512-hT/+s0VQs2ojCX823m60m5f0sL5idt9SO6Tj6Dg+rdphGPIeJbJ6CxvBYkgkGKrYeDjvIpKTR38UzmtHJOGW3Q==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/react': 18.2.46
|
'@types/react': 18.2.47
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@types/react@18.2.46:
|
/@types/react@18.2.47:
|
||||||
resolution: {integrity: sha512-nNCvVBcZlvX4NU1nRRNV/mFl1nNRuTuslAJglQsq+8ldXe5Xv0Wd2f7WTE3jOxhLH2BFfiZGC6GCp+kHQbgG+w==}
|
resolution: {integrity: sha512-xquNkkOirwyCgoClNk85BjP+aqnIS+ckAJ8i37gAbDs14jfW/J23f2GItAf33oiUPQnqNMALiFeoM9Y5mbjpVQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/prop-types': 15.7.11
|
'@types/prop-types': 15.7.11
|
||||||
'@types/scheduler': 0.16.8
|
'@types/scheduler': 0.16.8
|
||||||
@@ -1492,6 +1609,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==}
|
resolution: {integrity: sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
|
/@types/uuid@9.0.7:
|
||||||
|
resolution: {integrity: sha512-WUtIVRUZ9i5dYXefDEAI7sh9/O7jGvHg7Df/5O/gtH3Yabe5odI3UWopVR1qbPXQtvOxWu3mM4XxlYeZtMWF4g==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/@ungap/structured-clone@1.2.0:
|
/@ungap/structured-clone@1.2.0:
|
||||||
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
|
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
|
||||||
|
|
||||||
@@ -1506,7 +1627,7 @@ packages:
|
|||||||
'@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/core@7.23.7)
|
'@babel/plugin-transform-react-jsx-source': 7.23.3(@babel/core@7.23.7)
|
||||||
'@types/babel__core': 7.20.5
|
'@types/babel__core': 7.20.5
|
||||||
react-refresh: 0.14.0
|
react-refresh: 0.14.0
|
||||||
vite: 5.0.11(sass@1.69.7)
|
vite: 5.0.11(@types/node@20.10.7)(sass@1.69.7)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
@@ -1850,7 +1971,7 @@ packages:
|
|||||||
yaml: 1.10.2
|
yaml: 1.10.2
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/cosmiconfig@8.3.6:
|
/cosmiconfig@8.3.6(typescript@5.3.3):
|
||||||
resolution: {integrity: sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==}
|
resolution: {integrity: sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -1863,6 +1984,7 @@ packages:
|
|||||||
js-yaml: 4.1.0
|
js-yaml: 4.1.0
|
||||||
parse-json: 5.2.0
|
parse-json: 5.2.0
|
||||||
path-type: 4.0.0
|
path-type: 4.0.0
|
||||||
|
typescript: 5.3.3
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/cross-spawn@7.0.3:
|
/cross-spawn@7.0.3:
|
||||||
@@ -3486,14 +3608,14 @@ packages:
|
|||||||
resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==}
|
resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/react-markdown@9.0.1(@types/react@18.2.46)(react@18.2.0):
|
/react-markdown@9.0.1(@types/react@18.2.47)(react@18.2.0):
|
||||||
resolution: {integrity: sha512-186Gw/vF1uRkydbsOIkcGXw7aHq0sZOCRFFjGrr7b9+nVZg4UfA4enXCaxm4fUzecU38sWfrNDitGhshuU7rdg==}
|
resolution: {integrity: sha512-186Gw/vF1uRkydbsOIkcGXw7aHq0sZOCRFFjGrr7b9+nVZg4UfA4enXCaxm4fUzecU38sWfrNDitGhshuU7rdg==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@types/react': '>=18'
|
'@types/react': '>=18'
|
||||||
react: '>=18'
|
react: '>=18'
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/hast': 3.0.3
|
'@types/hast': 3.0.3
|
||||||
'@types/react': 18.2.46
|
'@types/react': 18.2.47
|
||||||
devlop: 1.1.0
|
devlop: 1.1.0
|
||||||
hast-util-to-jsx-runtime: 2.3.0
|
hast-util-to-jsx-runtime: 2.3.0
|
||||||
html-url-attributes: 3.0.0
|
html-url-attributes: 3.0.0
|
||||||
@@ -3964,6 +4086,12 @@ packages:
|
|||||||
is-typed-array: 1.1.12
|
is-typed-array: 1.1.12
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/typescript@5.3.3:
|
||||||
|
resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==}
|
||||||
|
engines: {node: '>=14.17'}
|
||||||
|
hasBin: true
|
||||||
|
dev: false
|
||||||
|
|
||||||
/unbox-primitive@1.0.2:
|
/unbox-primitive@1.0.2:
|
||||||
resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==}
|
resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==}
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -3973,6 +4101,9 @@ packages:
|
|||||||
which-boxed-primitive: 1.0.2
|
which-boxed-primitive: 1.0.2
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/undici-types@5.26.5:
|
||||||
|
resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
|
||||||
|
|
||||||
/unified@11.0.4:
|
/unified@11.0.4:
|
||||||
resolution: {integrity: sha512-apMPnyLjAX+ty4OrNap7yumyVAMlKx5IWU2wlzzUdYJO9A8f1p9m/gywF/GM2ZDFcjQPrx59Mc90KwmxsoklxQ==}
|
resolution: {integrity: sha512-apMPnyLjAX+ty4OrNap7yumyVAMlKx5IWU2wlzzUdYJO9A8f1p9m/gywF/GM2ZDFcjQPrx59Mc90KwmxsoklxQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -4089,27 +4220,27 @@ packages:
|
|||||||
chalk: 4.1.2
|
chalk: 4.1.2
|
||||||
debug: 4.3.4
|
debug: 4.3.4
|
||||||
fs-extra: 10.1.0
|
fs-extra: 10.1.0
|
||||||
vite: 5.0.11(sass@1.69.7)
|
vite: 5.0.11(@types/node@20.10.7)(sass@1.69.7)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/vite-plugin-svgr@4.2.0(vite@5.0.11):
|
/vite-plugin-svgr@4.2.0(typescript@5.3.3)(vite@5.0.11):
|
||||||
resolution: {integrity: sha512-SC7+FfVtNQk7So0XMjrrtLAbEC8qjFPifyD7+fs/E6aaNdVde6umlVVh0QuwDLdOMu7vp5RiGFsB70nj5yo0XA==}
|
resolution: {integrity: sha512-SC7+FfVtNQk7So0XMjrrtLAbEC8qjFPifyD7+fs/E6aaNdVde6umlVVh0QuwDLdOMu7vp5RiGFsB70nj5yo0XA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
vite: ^2.6.0 || 3 || 4 || 5
|
vite: ^2.6.0 || 3 || 4 || 5
|
||||||
dependencies:
|
dependencies:
|
||||||
'@rollup/pluginutils': 5.1.0
|
'@rollup/pluginutils': 5.1.0
|
||||||
'@svgr/core': 8.1.0
|
'@svgr/core': 8.1.0(typescript@5.3.3)
|
||||||
'@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0)
|
'@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0)
|
||||||
vite: 5.0.11(sass@1.69.7)
|
vite: 5.0.11(@types/node@20.10.7)(sass@1.69.7)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- rollup
|
- rollup
|
||||||
- supports-color
|
- supports-color
|
||||||
- typescript
|
- typescript
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/vite@5.0.11(sass@1.69.7):
|
/vite@5.0.11(@types/node@20.10.7)(sass@1.69.7):
|
||||||
resolution: {integrity: sha512-XBMnDjZcNAw/G1gEiskiM1v6yzM4GE5aMGvhWTlHAYYhxb7S3/V1s3m2LDHa8Vh6yIWYYB0iJwsEaS523c4oYA==}
|
resolution: {integrity: sha512-XBMnDjZcNAw/G1gEiskiM1v6yzM4GE5aMGvhWTlHAYYhxb7S3/V1s3m2LDHa8Vh6yIWYYB0iJwsEaS523c4oYA==}
|
||||||
engines: {node: ^18.0.0 || >=20.0.0}
|
engines: {node: ^18.0.0 || >=20.0.0}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
@@ -4137,6 +4268,7 @@ packages:
|
|||||||
terser:
|
terser:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
|
'@types/node': 20.10.7
|
||||||
esbuild: 0.19.11
|
esbuild: 0.19.11
|
||||||
postcss: 8.4.33
|
postcss: 8.4.33
|
||||||
rollup: 4.9.4
|
rollup: 4.9.4
|
||||||
@@ -4221,7 +4353,7 @@ packages:
|
|||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/zustand@4.4.7(@types/react@18.2.46)(react@18.2.0):
|
/zustand@4.4.7(@types/react@18.2.47)(react@18.2.0):
|
||||||
resolution: {integrity: sha512-QFJWJMdlETcI69paJwhSMJz7PPWjVP8Sjhclxmxmxv/RYI7ZOvR5BHX+ktH0we9gTWQMxcne8q1OY8xxz604gw==}
|
resolution: {integrity: sha512-QFJWJMdlETcI69paJwhSMJz7PPWjVP8Sjhclxmxmxv/RYI7ZOvR5BHX+ktH0we9gTWQMxcne8q1OY8xxz604gw==}
|
||||||
engines: {node: '>=12.7.0'}
|
engines: {node: '>=12.7.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -4236,7 +4368,7 @@ packages:
|
|||||||
react:
|
react:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/react': 18.2.46
|
'@types/react': 18.2.47
|
||||||
react: 18.2.0
|
react: 18.2.0
|
||||||
use-sync-external-store: 1.2.0(react@18.2.0)
|
use-sync-external-store: 1.2.0(react@18.2.0)
|
||||||
dev: false
|
dev: false
|
||||||
|
|||||||
+2
-5
@@ -1,8 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": [
|
"extends": ["config:base", ":disableDependencyDashboard"],
|
||||||
"config:base",
|
"labels": ["dependencies"]
|
||||||
":disableDependencyDashboard"
|
|
||||||
],
|
|
||||||
"labels": ["dependencies"],
|
|
||||||
}
|
}
|
||||||
@@ -27,12 +27,7 @@
|
|||||||
"http": {
|
"http": {
|
||||||
"all": true,
|
"all": true,
|
||||||
"request": true,
|
"request": true,
|
||||||
"scope": [
|
"scope": ["http://**", "http://*", "https://**", "https://*"]
|
||||||
"http://**",
|
|
||||||
"http://*",
|
|
||||||
"https://**",
|
|
||||||
"https://*"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bundle": {
|
"bundle": {
|
||||||
|
|||||||
-629
@@ -1,629 +0,0 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import React, { useState, useEffect } from "react";
|
|
||||||
|
|
||||||
import useKonami from "react-use-konami";
|
|
||||||
|
|
||||||
import { ThemeProvider } from "@mui/material/styles";
|
|
||||||
import { SnackbarProvider } from "notistack";
|
|
||||||
import {
|
|
||||||
Routes,
|
|
||||||
Route,
|
|
||||||
useNavigate,
|
|
||||||
useLocation,
|
|
||||||
Outlet,
|
|
||||||
Navigate,
|
|
||||||
} from "react-router-dom";
|
|
||||||
import { AnimatePresence, motion } from "framer-motion";
|
|
||||||
|
|
||||||
import {
|
|
||||||
checkUpdate,
|
|
||||||
installUpdate,
|
|
||||||
onUpdaterEvent,
|
|
||||||
} from "@tauri-apps/api/updater";
|
|
||||||
import { relaunch } from "@tauri-apps/api/process";
|
|
||||||
|
|
||||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
|
||||||
|
|
||||||
// Theming
|
|
||||||
import CssBaseline from "@mui/material/CssBaseline";
|
|
||||||
import { theme } from "./theme";
|
|
||||||
import "./styles/global.scss";
|
|
||||||
|
|
||||||
// MUI
|
|
||||||
import Dialog from "@mui/material/Dialog";
|
|
||||||
import DialogActions from "@mui/material/DialogActions";
|
|
||||||
import DialogContent from "@mui/material/DialogContent";
|
|
||||||
import DialogContentText from "@mui/material/DialogContentText";
|
|
||||||
import DialogTitle from "@mui/material/DialogTitle";
|
|
||||||
import Button from "@mui/material/Button";
|
|
||||||
import Slide from "@mui/material/Slide";
|
|
||||||
import LinearProgress from "@mui/material/LinearProgress";
|
|
||||||
import IconButton from "@mui/material/IconButton";
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
|
||||||
import Typography from "@mui/material/Typography";
|
|
||||||
import LoadingButton from "@mui/lab/LoadingButton";
|
|
||||||
|
|
||||||
// Routes
|
|
||||||
import { ServerSetup } from "./routes/setup/server";
|
|
||||||
import ServerList from "./routes/setup/serverList/index.jsx";
|
|
||||||
import Home from "./routes/home";
|
|
||||||
import { UserLogin, LoginWithImage, UserLoginManual } from "./routes/login";
|
|
||||||
import LibraryView from "./routes/library";
|
|
||||||
import ItemDetail from "./routes/item";
|
|
||||||
import SeriesTitlePage from "./routes/series/index.jsx";
|
|
||||||
import FavoritePage from "./routes/favorite/index.jsx";
|
|
||||||
import Settings from "./routes/settings";
|
|
||||||
import About from "./routes/about";
|
|
||||||
import SearchPage from "./routes/search";
|
|
||||||
|
|
||||||
import { VideoPlayer } from "./routes/player/videoPlayer.jsx";
|
|
||||||
import Markdown from "react-markdown";
|
|
||||||
|
|
||||||
import { SideMenu } from "./components/menu/sidemenu.jsx";
|
|
||||||
import { AppBar } from "./components/appBar/appBar.jsx";
|
|
||||||
|
|
||||||
// Fonts
|
|
||||||
import "@fontsource/noto-sans/100.css";
|
|
||||||
import "@fontsource/noto-sans/100-italic.css";
|
|
||||||
import "@fontsource/noto-sans/200.css";
|
|
||||||
import "@fontsource/noto-sans/200-italic.css";
|
|
||||||
import "@fontsource/noto-sans/300.css";
|
|
||||||
import "@fontsource/noto-sans/300-italic.css";
|
|
||||||
import "@fontsource/noto-sans/400.css";
|
|
||||||
import "@fontsource/noto-sans/400-italic.css";
|
|
||||||
import "@fontsource/noto-sans/500.css";
|
|
||||||
import "@fontsource/noto-sans/500-italic.css";
|
|
||||||
import "@fontsource/noto-sans/600.css";
|
|
||||||
import "@fontsource/noto-sans/600-italic.css";
|
|
||||||
import "@fontsource/noto-sans/700.css";
|
|
||||||
import "@fontsource/noto-sans/700-italic.css";
|
|
||||||
import "@fontsource/noto-sans/800.css";
|
|
||||||
import "@fontsource/noto-sans/800-italic.css";
|
|
||||||
import "@fontsource/noto-sans/900.css";
|
|
||||||
import "@fontsource/noto-sans/900-italic.css";
|
|
||||||
import "material-symbols";
|
|
||||||
import "@fontsource-variable/jetbrains-mono";
|
|
||||||
|
|
||||||
import { useBackdropStore } from "./utils/store/backdrop.js";
|
|
||||||
import { usePlaybackDataLoadStore } from "./utils/store/playback.js";
|
|
||||||
import BoxSetTitlePage from "./routes/boxset/index.jsx";
|
|
||||||
import PersonTitlePage from "./routes/person/index.jsx";
|
|
||||||
import MusicAlbumTitlePage from "./routes/album/index.jsx";
|
|
||||||
import AudioPlayer from "./components/playback/audioPlayer/index.jsx";
|
|
||||||
import { useAudioPlayback } from "./utils/store/audioPlayback.js";
|
|
||||||
import ArtistTitlePage from "./routes/artist/index.jsx";
|
|
||||||
import EpisodeTitlePage from "./routes/episode/index.jsx";
|
|
||||||
import PlaylistTitlePage from "./routes/playlist/index.jsx";
|
|
||||||
|
|
||||||
import { useApi } from "./utils/store/api.js";
|
|
||||||
import { useQuery } from "@tanstack/react-query";
|
|
||||||
import { CircularProgress } from "@mui/material";
|
|
||||||
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
|
||||||
import { useCentralStore } from "./utils/store/central.js";
|
|
||||||
import { useSnackbar } from "notistack";
|
|
||||||
import { ErrorBoundary } from "react-error-boundary";
|
|
||||||
import { ErrorNotice } from "./components/notices/errorNotice/errorNotice.jsx";
|
|
||||||
|
|
||||||
const anim = {
|
|
||||||
initial: {
|
|
||||||
transform: "scale(0.98)",
|
|
||||||
opacity: 0,
|
|
||||||
},
|
|
||||||
animate: {
|
|
||||||
transform: "scale(1)",
|
|
||||||
opacity: 1,
|
|
||||||
},
|
|
||||||
exit: {
|
|
||||||
transform: "sscale(1.02)",
|
|
||||||
opacity: 0,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const LoginRoute = () => {
|
|
||||||
const navigate = useNavigate();
|
|
||||||
const [api] = useApi((state) => [state.api]);
|
|
||||||
|
|
||||||
const usersList = useQuery({
|
|
||||||
queryKey: ["public-users"],
|
|
||||||
queryFn: async () => {
|
|
||||||
const result = await getUserApi(api).getPublicUsers();
|
|
||||||
return result.data;
|
|
||||||
},
|
|
||||||
enabled: Boolean(api),
|
|
||||||
});
|
|
||||||
if (usersList.isSuccess && !usersList.isFetching) {
|
|
||||||
if (usersList.data.length > 0) {
|
|
||||||
navigate("/login/users");
|
|
||||||
} else {
|
|
||||||
navigate("/login/manual");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return (
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
position: "fixed",
|
|
||||||
top: "50%",
|
|
||||||
left: "50%",
|
|
||||||
transform: "translate(-50%, -50%)",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<CircularProgress size={72} thickness={1.4} />
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
const AnimationWrapper = () => {
|
|
||||||
return (
|
|
||||||
<motion.div
|
|
||||||
className="root-page"
|
|
||||||
variants={anim}
|
|
||||||
initial="initial"
|
|
||||||
animate="animate"
|
|
||||||
exit="exit"
|
|
||||||
transition={{
|
|
||||||
duration: 0.25,
|
|
||||||
ease: "easeInOut",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Outlet />
|
|
||||||
</motion.div>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
// const unlisten = await onUpdaterEvent(({ error, status }) => {
|
|
||||||
// // This will log all updater events, including status updates and errors.
|
|
||||||
// console.log("Updater event", error, status);
|
|
||||||
// });
|
|
||||||
|
|
||||||
// // you need to call unlisten if your handler goes out of scope, for example if the component is unmounted.
|
|
||||||
// unlisten();
|
|
||||||
|
|
||||||
function App() {
|
|
||||||
const [playbackDataLoading] = usePlaybackDataLoadStore((state) => [
|
|
||||||
state.isPending,
|
|
||||||
]);
|
|
||||||
|
|
||||||
const handleRelaunch = async (event, reason) => {
|
|
||||||
if (reason && reason == "backdropClick") {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
await relaunch();
|
|
||||||
};
|
|
||||||
|
|
||||||
const location = useLocation();
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
window.scrollTo(0, 0);
|
|
||||||
}, [location.key]);
|
|
||||||
|
|
||||||
const [audioPlayerVisible] = useAudioPlayback((state) => [state.display]);
|
|
||||||
|
|
||||||
const [backdropUrl, backdropId] = useBackdropStore((state) => [
|
|
||||||
state.backdropUrl,
|
|
||||||
state.backdropId,
|
|
||||||
]);
|
|
||||||
|
|
||||||
const [backdropLoading, setBackdropLoading] = useState(true);
|
|
||||||
|
|
||||||
const [easterEgg, setEasterEgg] = useState(false);
|
|
||||||
const sixtyNine = () => {
|
|
||||||
setEasterEgg(true);
|
|
||||||
};
|
|
||||||
|
|
||||||
useKonami(sixtyNine, {
|
|
||||||
code: [
|
|
||||||
"ArrowUp",
|
|
||||||
"ArrowUp",
|
|
||||||
"ArrowDown",
|
|
||||||
"ArrowDown",
|
|
||||||
"ArrowLeft",
|
|
||||||
"ArrowRight",
|
|
||||||
"ArrowLeft",
|
|
||||||
"ArrowRight",
|
|
||||||
"b",
|
|
||||||
"a",
|
|
||||||
],
|
|
||||||
});
|
|
||||||
const { enqueueSnackbar } = useSnackbar();
|
|
||||||
|
|
||||||
const [updateDialog, setUpdateDialog] = useState(false);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @type {[import("@tauri-apps/api/updater.js").UpdateManifest, React.Dispatch<import("@tauri-apps/api/updater.js").UpdateManifest>]}
|
|
||||||
*/
|
|
||||||
const [updateInfo, setUpdateInfo] = useState(null);
|
|
||||||
|
|
||||||
const [updateDialogButton, setUpdateDialogButton] = useState(false);
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
async function checkForUpdates() {
|
|
||||||
try {
|
|
||||||
const { shouldUpdate, manifest } = await checkUpdate();
|
|
||||||
|
|
||||||
if (shouldUpdate) {
|
|
||||||
setUpdateInfo(manifest);
|
|
||||||
setUpdateDialog(true);
|
|
||||||
// You could show a dialog asking the user if they want to install the update here.
|
|
||||||
console.log(
|
|
||||||
`Update found : ${manifest?.version}, ${manifest?.date}`,
|
|
||||||
);
|
|
||||||
|
|
||||||
// Install the update. This will also restart the app on Windows!
|
|
||||||
// await installUpdate();
|
|
||||||
|
|
||||||
// On macOS and Linux you will need to restart the app manually.
|
|
||||||
// You could use this step to display another confirmation dialog.
|
|
||||||
// await relaunch();
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.error(error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
checkForUpdates();
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
const [initialRoute] = useCentralStore((state) => [state.initialRoute]);
|
|
||||||
|
|
||||||
const navigate = useNavigate();
|
|
||||||
if (!initialRoute) {
|
|
||||||
return (
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
position: "fixed",
|
|
||||||
top: "50%",
|
|
||||||
left: "50%",
|
|
||||||
transform: "translate(-50%, -50%)",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<CircularProgress size={72} thickness={1.4} />
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
} else if (initialRoute) {
|
|
||||||
return (
|
|
||||||
<SnackbarProvider maxSnack={5}>
|
|
||||||
<ThemeProvider theme={theme}>
|
|
||||||
{playbackDataLoading && (
|
|
||||||
<LinearProgress
|
|
||||||
sx={{
|
|
||||||
position: "fixed",
|
|
||||||
top: 0,
|
|
||||||
left: 0,
|
|
||||||
right: 0,
|
|
||||||
width: "100vw",
|
|
||||||
zIndex: 100000,
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
<Dialog
|
|
||||||
// open={true}
|
|
||||||
open={updateDialog}
|
|
||||||
// onClose={}
|
|
||||||
// maxWidth="md"
|
|
||||||
fullWidth
|
|
||||||
>
|
|
||||||
{Boolean(updateInfo) && (
|
|
||||||
<>
|
|
||||||
<DialogTitle>
|
|
||||||
Update Available!
|
|
||||||
<Typography
|
|
||||||
style={{
|
|
||||||
opacity: "0.5",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
v{updateInfo.version}
|
|
||||||
</Typography>
|
|
||||||
</DialogTitle>
|
|
||||||
<DialogContent dividers>
|
|
||||||
<DialogContentText>
|
|
||||||
<Markdown>
|
|
||||||
{updateInfo.body}
|
|
||||||
</Markdown>
|
|
||||||
</DialogContentText>
|
|
||||||
</DialogContent>
|
|
||||||
<DialogActions
|
|
||||||
style={{
|
|
||||||
padding: "1em",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<IconButton
|
|
||||||
disabled={updateDialogButton}
|
|
||||||
>
|
|
||||||
<SvgIcon>
|
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
width="16"
|
|
||||||
height="16"
|
|
||||||
fill="currentColor"
|
|
||||||
viewBox="0 0 16 16"
|
|
||||||
>
|
|
||||||
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8" />
|
|
||||||
</svg>
|
|
||||||
</SvgIcon>
|
|
||||||
</IconButton>
|
|
||||||
<Button
|
|
||||||
size="large"
|
|
||||||
color="error"
|
|
||||||
variant="outlined"
|
|
||||||
disabled={updateDialogButton}
|
|
||||||
onClick={() =>
|
|
||||||
setUpdateDialog(false)
|
|
||||||
}
|
|
||||||
>
|
|
||||||
close
|
|
||||||
</Button>
|
|
||||||
<LoadingButton
|
|
||||||
size="large"
|
|
||||||
color="success"
|
|
||||||
variant="contained"
|
|
||||||
loading={updateDialogButton}
|
|
||||||
loadingIndicator="Updating..."
|
|
||||||
onClick={async () => {
|
|
||||||
setUpdateDialogButton(
|
|
||||||
true,
|
|
||||||
);
|
|
||||||
await installUpdate();
|
|
||||||
enqueueSnackbar(
|
|
||||||
"Update has been installed! You need to relaunch JellyPlayer.",
|
|
||||||
{
|
|
||||||
variant: "success",
|
|
||||||
},
|
|
||||||
);
|
|
||||||
await relaunch();
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Update
|
|
||||||
</LoadingButton>
|
|
||||||
</DialogActions>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</Dialog>
|
|
||||||
<Dialog
|
|
||||||
open={easterEgg}
|
|
||||||
onClose={() => setEasterEgg(false)}
|
|
||||||
sx={{
|
|
||||||
background: "black",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<iframe
|
|
||||||
width="560"
|
|
||||||
height="315"
|
|
||||||
src="https://www.youtube.com/embed/dQw4w9WgXcQ?autoplay=1&disablekb=1"
|
|
||||||
title="EasterEgg"
|
|
||||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
||||||
></iframe>
|
|
||||||
</Dialog>
|
|
||||||
<Slide
|
|
||||||
direction="up"
|
|
||||||
in={easterEgg}
|
|
||||||
mountOnEnter
|
|
||||||
unmountOnExit
|
|
||||||
>
|
|
||||||
<img
|
|
||||||
src="https://i.gifer.com/PYh.gif"
|
|
||||||
width={320}
|
|
||||||
height={320}
|
|
||||||
style={{
|
|
||||||
zIndex: "99999999",
|
|
||||||
position: "fixed",
|
|
||||||
bottom: 0,
|
|
||||||
left: 0,
|
|
||||||
objectFit: "cover",
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</Slide>
|
|
||||||
|
|
||||||
{/* Show Dialog if server not reachable */}
|
|
||||||
|
|
||||||
<div className="app-backdrop-container">
|
|
||||||
<AnimatePresence>
|
|
||||||
<motion.img
|
|
||||||
key={backdropId}
|
|
||||||
src={backdropUrl}
|
|
||||||
alt=""
|
|
||||||
className="app-backdrop"
|
|
||||||
initial={{
|
|
||||||
opacity: 0,
|
|
||||||
}}
|
|
||||||
animate={{
|
|
||||||
opacity: backdropLoading ? 0 : 0.6,
|
|
||||||
}}
|
|
||||||
exit={{
|
|
||||||
opacity: 0,
|
|
||||||
}}
|
|
||||||
transition={{
|
|
||||||
duration: 0.8,
|
|
||||||
ease: "easeInOut",
|
|
||||||
}}
|
|
||||||
onLoadCapture={() => {
|
|
||||||
setBackdropLoading(true);
|
|
||||||
}}
|
|
||||||
onLoad={() => {
|
|
||||||
setBackdropLoading(false);
|
|
||||||
}}
|
|
||||||
loading="eager"
|
|
||||||
style={{
|
|
||||||
transition: "opacity 0.8s",
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</AnimatePresence>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
className={
|
|
||||||
audioPlayerVisible ? "audio-playing" : ""
|
|
||||||
}
|
|
||||||
style={{
|
|
||||||
display: "flex",
|
|
||||||
width: "100vw",
|
|
||||||
transition: "padding 250ms",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<CssBaseline />
|
|
||||||
{/* <SideMenu /> */}
|
|
||||||
<AppBar />
|
|
||||||
<AudioPlayer key={audioPlayerVisible} />
|
|
||||||
<ErrorBoundary FallbackComponent={ErrorNotice}>
|
|
||||||
<Routes location={location}>
|
|
||||||
{/* <Route
|
|
||||||
// key={location.key}
|
|
||||||
element={<AnimationWrapper />}
|
|
||||||
> */}
|
|
||||||
<Route
|
|
||||||
path="/"
|
|
||||||
exact
|
|
||||||
element={
|
|
||||||
<Navigate to={initialRoute} />
|
|
||||||
}
|
|
||||||
></Route>
|
|
||||||
<Route
|
|
||||||
path="/error"
|
|
||||||
element={
|
|
||||||
<Dialog
|
|
||||||
open
|
|
||||||
onClose={handleRelaunch}
|
|
||||||
aria-labelledby="alert-dialog-text"
|
|
||||||
aria-describedby="alert-dialog-desc"
|
|
||||||
maxWidth="md"
|
|
||||||
>
|
|
||||||
<DialogTitle id="alert-dialog-text">
|
|
||||||
Unable to reach
|
|
||||||
server
|
|
||||||
</DialogTitle>
|
|
||||||
<DialogContent>
|
|
||||||
<DialogContentText id="alert-dialog-desc">
|
|
||||||
Unable to
|
|
||||||
connect to the
|
|
||||||
jellyfin
|
|
||||||
server.
|
|
||||||
</DialogContentText>
|
|
||||||
</DialogContent>
|
|
||||||
<DialogActions>
|
|
||||||
<Button
|
|
||||||
onClick={() =>
|
|
||||||
navigate(
|
|
||||||
"/servers/list",
|
|
||||||
)
|
|
||||||
}
|
|
||||||
>
|
|
||||||
Change Server
|
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
variant="outlined"
|
|
||||||
onClick={
|
|
||||||
handleRelaunch
|
|
||||||
}
|
|
||||||
>
|
|
||||||
Restart
|
|
||||||
JellyPlayer
|
|
||||||
</Button>
|
|
||||||
</DialogActions>
|
|
||||||
</Dialog>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/login/index"
|
|
||||||
exact
|
|
||||||
element={<LoginRoute />}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Route
|
|
||||||
path="/home"
|
|
||||||
element={<Home />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/setup/server"
|
|
||||||
element={<ServerSetup />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/servers/list"
|
|
||||||
element={<ServerList />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/login/withImg/:userName/:userId/"
|
|
||||||
element={<LoginWithImage />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/login/users"
|
|
||||||
element={<UserLogin />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/login/manual"
|
|
||||||
element={<UserLoginManual />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
exact
|
|
||||||
path="/library/:id"
|
|
||||||
element={<LibraryView />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
exact
|
|
||||||
path="/item/:id"
|
|
||||||
element={<ItemDetail />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
exact
|
|
||||||
path="/musicalbum/:id"
|
|
||||||
element={<MusicAlbumTitlePage />}
|
|
||||||
errorElement={<div>Error</div>}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
exact
|
|
||||||
path="/artist/:id"
|
|
||||||
element={<ArtistTitlePage />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
exact
|
|
||||||
path="/boxset/:id"
|
|
||||||
element={<BoxSetTitlePage />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
exact
|
|
||||||
path="/episode/:id"
|
|
||||||
element={<EpisodeTitlePage />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
exact
|
|
||||||
path="/person/:id"
|
|
||||||
element={<PersonTitlePage />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
exact
|
|
||||||
path="/playlist/:id"
|
|
||||||
element={<PlaylistTitlePage />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/series/:id"
|
|
||||||
element={<SeriesTitlePage />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/search"
|
|
||||||
element={<SearchPage />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/favorite"
|
|
||||||
element={<FavoritePage />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/settings"
|
|
||||||
element={<Settings />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/about"
|
|
||||||
element={<About />}
|
|
||||||
/>
|
|
||||||
<Route
|
|
||||||
path="/player"
|
|
||||||
element={<VideoPlayer />}
|
|
||||||
/>
|
|
||||||
{/* </Route> */}
|
|
||||||
</Routes>
|
|
||||||
</ErrorBoundary>
|
|
||||||
</div>
|
|
||||||
<ReactQueryDevtools buttonPosition="bottom-left" />
|
|
||||||
</ThemeProvider>
|
|
||||||
</SnackbarProvider>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default App;
|
|
||||||
+417
@@ -0,0 +1,417 @@
|
|||||||
|
import React, { useState, useEffect } from "react";
|
||||||
|
|
||||||
|
import { ThemeProvider } from "@mui/material/styles";
|
||||||
|
import { AnimatePresence, motion } from "framer-motion";
|
||||||
|
import { SnackbarProvider } from "notistack";
|
||||||
|
import {
|
||||||
|
Navigate,
|
||||||
|
Route,
|
||||||
|
Routes,
|
||||||
|
useLocation,
|
||||||
|
useNavigate,
|
||||||
|
} from "react-router-dom";
|
||||||
|
|
||||||
|
import { relaunch } from "@tauri-apps/api/process";
|
||||||
|
import {
|
||||||
|
UpdateManifest,
|
||||||
|
checkUpdate,
|
||||||
|
installUpdate,
|
||||||
|
} from "@tauri-apps/api/updater";
|
||||||
|
|
||||||
|
// Theming
|
||||||
|
import CssBaseline from "@mui/material/CssBaseline";
|
||||||
|
import "./styles/global.scss";
|
||||||
|
import { theme } from "./theme";
|
||||||
|
|
||||||
|
import LoadingButton from "@mui/lab/LoadingButton";
|
||||||
|
import Button from "@mui/material/Button";
|
||||||
|
|
||||||
|
// MUI
|
||||||
|
import Dialog from "@mui/material/Dialog";
|
||||||
|
import DialogActions from "@mui/material/DialogActions";
|
||||||
|
import DialogContent from "@mui/material/DialogContent";
|
||||||
|
import DialogContentText from "@mui/material/DialogContentText";
|
||||||
|
import DialogTitle from "@mui/material/DialogTitle";
|
||||||
|
import IconButton from "@mui/material/IconButton";
|
||||||
|
import LinearProgress from "@mui/material/LinearProgress";
|
||||||
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
import Typography from "@mui/material/Typography";
|
||||||
|
|
||||||
|
// Routes
|
||||||
|
import About from "./routes/about";
|
||||||
|
import MusicAlbumTitlePage from "./routes/album/index.jsx";
|
||||||
|
import ArtistTitlePage from "./routes/artist/index.jsx";
|
||||||
|
import BoxSetTitlePage from "./routes/boxset/index.jsx";
|
||||||
|
import EpisodeTitlePage from "./routes/episode/index.jsx";
|
||||||
|
import FavoritePage from "./routes/favorite/index.jsx";
|
||||||
|
import Home from "./routes/home";
|
||||||
|
import ItemDetail from "./routes/item";
|
||||||
|
import LibraryView from "./routes/library";
|
||||||
|
import {
|
||||||
|
LoginRoute,
|
||||||
|
LoginWithImage,
|
||||||
|
UserLogin,
|
||||||
|
UserLoginManual,
|
||||||
|
} from "./routes/login";
|
||||||
|
import PersonTitlePage from "./routes/person/index.jsx";
|
||||||
|
import { VideoPlayer } from "./routes/player/videoPlayer.jsx";
|
||||||
|
import PlaylistTitlePage from "./routes/playlist/index.jsx";
|
||||||
|
import SearchPage from "./routes/search";
|
||||||
|
import SeriesTitlePage from "./routes/series/index.jsx";
|
||||||
|
import Settings from "./routes/settings";
|
||||||
|
import { ServerSetup } from "./routes/setup/server";
|
||||||
|
import ServerList from "./routes/setup/serverList/index.jsx";
|
||||||
|
|
||||||
|
import Markdown from "react-markdown";
|
||||||
|
|
||||||
|
// Fonts
|
||||||
|
import "@fontsource-variable/jetbrains-mono";
|
||||||
|
import "@fontsource/noto-sans/100-italic.css";
|
||||||
|
import "@fontsource/noto-sans/100.css";
|
||||||
|
import "@fontsource/noto-sans/200-italic.css";
|
||||||
|
import "@fontsource/noto-sans/200.css";
|
||||||
|
import "@fontsource/noto-sans/300-italic.css";
|
||||||
|
import "@fontsource/noto-sans/300.css";
|
||||||
|
import "@fontsource/noto-sans/400-italic.css";
|
||||||
|
import "@fontsource/noto-sans/400.css";
|
||||||
|
import "@fontsource/noto-sans/500-italic.css";
|
||||||
|
import "@fontsource/noto-sans/500.css";
|
||||||
|
import "@fontsource/noto-sans/600-italic.css";
|
||||||
|
import "@fontsource/noto-sans/600.css";
|
||||||
|
import "@fontsource/noto-sans/700-italic.css";
|
||||||
|
import "@fontsource/noto-sans/700.css";
|
||||||
|
import "@fontsource/noto-sans/800-italic.css";
|
||||||
|
import "@fontsource/noto-sans/800.css";
|
||||||
|
import "@fontsource/noto-sans/900-italic.css";
|
||||||
|
import "@fontsource/noto-sans/900.css";
|
||||||
|
|
||||||
|
import "material-symbols";
|
||||||
|
|
||||||
|
// Components
|
||||||
|
import { AppBar } from "./components/appBar/appBar.jsx";
|
||||||
|
import { ErrorNotice } from "./components/notices/errorNotice/errorNotice.jsx";
|
||||||
|
import AudioPlayer from "./components/playback/audioPlayer/index.jsx";
|
||||||
|
|
||||||
|
// Utils
|
||||||
|
import { useAudioPlayback } from "./utils/store/audioPlayback.js";
|
||||||
|
import { useBackdropStore } from "./utils/store/backdrop.js";
|
||||||
|
import { useCentralStore } from "./utils/store/central.js";
|
||||||
|
import { usePlaybackDataLoadStore } from "./utils/store/playback";
|
||||||
|
|
||||||
|
// 3rd Party
|
||||||
|
import { CircularProgress } from "@mui/material";
|
||||||
|
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
||||||
|
import { useSnackbar } from "notistack";
|
||||||
|
import { ErrorBoundary } from "react-error-boundary";
|
||||||
|
import { EasterEgg } from "./components/utils/easterEgg.jsx";
|
||||||
|
import { handleRelaunch } from "./utils/misc/relaunch";
|
||||||
|
|
||||||
|
// const anim = {
|
||||||
|
// initial: {
|
||||||
|
// transform: "scale(0.98)",
|
||||||
|
// opacity: 0,
|
||||||
|
// },
|
||||||
|
// animate: {
|
||||||
|
// transform: "scale(1)",
|
||||||
|
// opacity: 1,
|
||||||
|
// },
|
||||||
|
// exit: {
|
||||||
|
// transform: "sscale(1.02)",
|
||||||
|
// opacity: 0,
|
||||||
|
// },
|
||||||
|
// };
|
||||||
|
// const AnimationWrapper = () => {
|
||||||
|
// return (
|
||||||
|
// <motion.div
|
||||||
|
// className="root-page"
|
||||||
|
// variants={anim}
|
||||||
|
// initial="initial"
|
||||||
|
// animate="animate"
|
||||||
|
// exit="exit"
|
||||||
|
// transition={{
|
||||||
|
// duration: 0.25,
|
||||||
|
// ease: "easeInOut",
|
||||||
|
// }}
|
||||||
|
// >
|
||||||
|
// <Outlet />
|
||||||
|
// </motion.div>
|
||||||
|
// );
|
||||||
|
// };
|
||||||
|
|
||||||
|
function App() {
|
||||||
|
const [audioPlayerVisible] = useAudioPlayback((state) => [state.display]);
|
||||||
|
const { enqueueSnackbar } = useSnackbar();
|
||||||
|
|
||||||
|
const [initialRoute] = useCentralStore((state) => [state.initialRoute]);
|
||||||
|
const [backdropUrl, backdropId] = useBackdropStore((state) => [
|
||||||
|
state.backdropUrl,
|
||||||
|
state.backdropId,
|
||||||
|
]);
|
||||||
|
const [playbackDataLoading] = usePlaybackDataLoadStore((state) => [
|
||||||
|
state.isPending,
|
||||||
|
]);
|
||||||
|
|
||||||
|
const location = useLocation();
|
||||||
|
const navigate = useNavigate();
|
||||||
|
|
||||||
|
const [updateDialog, setUpdateDialog] = useState(false);
|
||||||
|
const [updateDialogButton, setUpdateDialogButton] = useState(false);
|
||||||
|
const [backdropLoading, setBackdropLoading] = useState(true);
|
||||||
|
const [updateInfo, setUpdateInfo] = useState<UpdateManifest | undefined>(
|
||||||
|
undefined,
|
||||||
|
);
|
||||||
|
|
||||||
|
// biome-ignore lint/correctness/useExhaustiveDependencies: this dependency is required
|
||||||
|
useEffect(() => {
|
||||||
|
window.scrollTo(0, 0);
|
||||||
|
}, [location.key]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
async function checkForUpdates() {
|
||||||
|
try {
|
||||||
|
const { shouldUpdate, manifest } = await checkUpdate();
|
||||||
|
|
||||||
|
if (shouldUpdate) {
|
||||||
|
setUpdateInfo(manifest);
|
||||||
|
setUpdateDialog(true);
|
||||||
|
|
||||||
|
console.log(`Update found : ${manifest?.version}, ${manifest?.date}`);
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error(error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
checkForUpdates();
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!initialRoute) {
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
position: "fixed",
|
||||||
|
top: "50%",
|
||||||
|
left: "50%",
|
||||||
|
transform: "translate(-50%, -50%)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CircularProgress size={72} thickness={1.4} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<SnackbarProvider maxSnack={5}>
|
||||||
|
<ThemeProvider theme={theme}>
|
||||||
|
{playbackDataLoading && (
|
||||||
|
<LinearProgress
|
||||||
|
sx={{
|
||||||
|
position: "fixed",
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
|
width: "100vw",
|
||||||
|
zIndex: 100000,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
<Dialog
|
||||||
|
// open={true}
|
||||||
|
open={updateDialog}
|
||||||
|
// onClose={}
|
||||||
|
// maxWidth="md"
|
||||||
|
fullWidth
|
||||||
|
>
|
||||||
|
{updateInfo !== undefined && (
|
||||||
|
<>
|
||||||
|
<DialogTitle>
|
||||||
|
Update Available!
|
||||||
|
<Typography
|
||||||
|
style={{
|
||||||
|
opacity: "0.5",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
v{updateInfo.version}
|
||||||
|
</Typography>
|
||||||
|
</DialogTitle>
|
||||||
|
<DialogContent dividers>
|
||||||
|
<DialogContentText>
|
||||||
|
<Markdown>{updateInfo.body}</Markdown>
|
||||||
|
</DialogContentText>
|
||||||
|
</DialogContent>
|
||||||
|
<DialogActions
|
||||||
|
style={{
|
||||||
|
padding: "1em",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<IconButton disabled={updateDialogButton}>
|
||||||
|
<SvgIcon>
|
||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
width="16"
|
||||||
|
height="16"
|
||||||
|
fill="currentColor"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
>
|
||||||
|
<title>Update</title>
|
||||||
|
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8" />
|
||||||
|
</svg>
|
||||||
|
</SvgIcon>
|
||||||
|
</IconButton>
|
||||||
|
<Button
|
||||||
|
size="large"
|
||||||
|
color="error"
|
||||||
|
variant="outlined"
|
||||||
|
disabled={updateDialogButton}
|
||||||
|
onClick={() => setUpdateDialog(false)}
|
||||||
|
>
|
||||||
|
close
|
||||||
|
</Button>
|
||||||
|
<LoadingButton
|
||||||
|
size="large"
|
||||||
|
color="success"
|
||||||
|
variant="contained"
|
||||||
|
loading={updateDialogButton}
|
||||||
|
loadingIndicator="Updating..."
|
||||||
|
onClick={async () => {
|
||||||
|
setUpdateDialogButton(true);
|
||||||
|
await installUpdate();
|
||||||
|
enqueueSnackbar(
|
||||||
|
"Update has been installed! You need to relaunch JellyPlayer.",
|
||||||
|
{
|
||||||
|
variant: "success",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
await relaunch();
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Update
|
||||||
|
</LoadingButton>
|
||||||
|
</DialogActions>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</Dialog>
|
||||||
|
<EasterEgg />
|
||||||
|
|
||||||
|
{/* Show Dialog if server not reachable */}
|
||||||
|
|
||||||
|
<div className="app-backdrop-container">
|
||||||
|
<AnimatePresence>
|
||||||
|
<motion.img
|
||||||
|
key={backdropId}
|
||||||
|
src={backdropUrl}
|
||||||
|
alt=""
|
||||||
|
className="app-backdrop"
|
||||||
|
initial={{
|
||||||
|
opacity: 0,
|
||||||
|
}}
|
||||||
|
animate={{
|
||||||
|
opacity: backdropLoading ? 0 : 0.6,
|
||||||
|
}}
|
||||||
|
exit={{
|
||||||
|
opacity: 0,
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
duration: 0.8,
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
onLoadCapture={() => {
|
||||||
|
setBackdropLoading(true);
|
||||||
|
}}
|
||||||
|
onLoad={() => {
|
||||||
|
setBackdropLoading(false);
|
||||||
|
}}
|
||||||
|
loading="eager"
|
||||||
|
style={{
|
||||||
|
transition: "opacity 0.8s",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</AnimatePresence>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
className={audioPlayerVisible ? "audio-playing" : ""}
|
||||||
|
style={{
|
||||||
|
display: "flex",
|
||||||
|
width: "100vw",
|
||||||
|
transition: "padding 250ms",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CssBaseline />
|
||||||
|
{/* <SideMenu /> */}
|
||||||
|
<AppBar />
|
||||||
|
<AudioPlayer key={audioPlayerVisible} />
|
||||||
|
<ErrorBoundary FallbackComponent={ErrorNotice}>
|
||||||
|
<Routes location={location}>
|
||||||
|
{/* <Route
|
||||||
|
// key={location.key}
|
||||||
|
element={<AnimationWrapper />}
|
||||||
|
> */}
|
||||||
|
<Route path="/" element={<Navigate to={initialRoute} />} />
|
||||||
|
<Route
|
||||||
|
path="/error"
|
||||||
|
element={
|
||||||
|
<Dialog
|
||||||
|
open
|
||||||
|
onClose={handleRelaunch}
|
||||||
|
aria-labelledby="alert-dialog-text"
|
||||||
|
aria-describedby="alert-dialog-desc"
|
||||||
|
maxWidth="md"
|
||||||
|
>
|
||||||
|
<DialogTitle id="alert-dialog-text">
|
||||||
|
Unable to reach server
|
||||||
|
</DialogTitle>
|
||||||
|
<DialogContent>
|
||||||
|
<DialogContentText id="alert-dialog-desc">
|
||||||
|
Unable to connect to the jellyfin server.
|
||||||
|
</DialogContentText>
|
||||||
|
</DialogContent>
|
||||||
|
<DialogActions>
|
||||||
|
<Button onClick={() => navigate("/servers/list")}>
|
||||||
|
Change Server
|
||||||
|
</Button>
|
||||||
|
<Button variant="outlined" onClick={handleRelaunch}>
|
||||||
|
Restart JellyPlayer
|
||||||
|
</Button>
|
||||||
|
</DialogActions>
|
||||||
|
</Dialog>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
<Route path="/login/index" element={<LoginRoute />} />
|
||||||
|
|
||||||
|
<Route path="/home" element={<Home />} />
|
||||||
|
<Route path="/setup/server" element={<ServerSetup />} />
|
||||||
|
<Route path="/servers/list" element={<ServerList />} />
|
||||||
|
<Route
|
||||||
|
path="/login/withImg/:userName/:userId/"
|
||||||
|
element={<LoginWithImage />}
|
||||||
|
/>
|
||||||
|
<Route path="/login/users" element={<UserLogin />} />
|
||||||
|
<Route path="/login/manual" element={<UserLoginManual />} />
|
||||||
|
<Route path="/library/:id" element={<LibraryView />} />
|
||||||
|
<Route path="/item/:id" element={<ItemDetail />} />
|
||||||
|
<Route
|
||||||
|
path="/musicalbum/:id"
|
||||||
|
element={<MusicAlbumTitlePage />}
|
||||||
|
errorElement={<div>Error</div>}
|
||||||
|
/>
|
||||||
|
<Route path="/artist/:id" element={<ArtistTitlePage />} />
|
||||||
|
<Route path="/boxset/:id" element={<BoxSetTitlePage />} />
|
||||||
|
<Route path="/episode/:id" element={<EpisodeTitlePage />} />
|
||||||
|
<Route path="/person/:id" element={<PersonTitlePage />} />
|
||||||
|
<Route path="/playlist/:id" element={<PlaylistTitlePage />} />
|
||||||
|
<Route path="/series/:id" element={<SeriesTitlePage />} />
|
||||||
|
<Route path="/search" element={<SearchPage />} />
|
||||||
|
<Route path="/favorite" element={<FavoritePage />} />
|
||||||
|
<Route path="/settings" element={<Settings />} />
|
||||||
|
<Route path="/about" element={<About />} />
|
||||||
|
<Route path="/player" element={<VideoPlayer />} />
|
||||||
|
{/* </Route> */}
|
||||||
|
</Routes>
|
||||||
|
</ErrorBoundary>
|
||||||
|
</div>
|
||||||
|
<ReactQueryDevtools buttonPosition="bottom-left" />
|
||||||
|
</ThemeProvider>
|
||||||
|
</SnackbarProvider>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default App;
|
||||||
@@ -1,46 +1,45 @@
|
|||||||
/** @format */
|
|
||||||
import React, { useEffect, useRef, useState } from "react";
|
import React, { useEffect, useRef, useState } from "react";
|
||||||
|
|
||||||
import { relaunch } from "@tauri-apps/api/process";
|
import { relaunch } from "@tauri-apps/api/process";
|
||||||
|
|
||||||
import MuiAppBar from "@mui/material/AppBar";
|
import MuiAppBar from "@mui/material/AppBar";
|
||||||
import IconButton from "@mui/material/IconButton";
|
|
||||||
import Toolbar from "@mui/material/Toolbar";
|
|
||||||
import Avatar from "@mui/material/Avatar";
|
import Avatar from "@mui/material/Avatar";
|
||||||
|
import Button from "@mui/material/Button";
|
||||||
|
import Grow from "@mui/material/Grow";
|
||||||
|
import IconButton from "@mui/material/IconButton";
|
||||||
import ListItemIcon from "@mui/material/ListItemIcon";
|
import ListItemIcon from "@mui/material/ListItemIcon";
|
||||||
import Menu from "@mui/material/Menu";
|
import Menu from "@mui/material/Menu";
|
||||||
import MenuItem from "@mui/material/MenuItem";
|
import MenuItem from "@mui/material/MenuItem";
|
||||||
import useScrollTrigger from "@mui/material/useScrollTrigger";
|
|
||||||
import Typography from "@mui/material/Typography";
|
|
||||||
import Button from "@mui/material/Button";
|
|
||||||
import Popper from "@mui/material/Popper";
|
|
||||||
import Paper from "@mui/material/Paper";
|
import Paper from "@mui/material/Paper";
|
||||||
import Grow from "@mui/material/Grow";
|
import Popper from "@mui/material/Popper";
|
||||||
|
import Toolbar from "@mui/material/Toolbar";
|
||||||
|
import Typography from "@mui/material/Typography";
|
||||||
|
import useScrollTrigger from "@mui/material/useScrollTrigger";
|
||||||
|
|
||||||
import { red } from "@mui/material/colors";
|
import { red } from "@mui/material/colors";
|
||||||
|
|
||||||
import { useLocation, useNavigate, NavLink } from "react-router-dom";
|
import { NavLink, useLocation, useNavigate } from "react-router-dom";
|
||||||
|
|
||||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||||
import { getUserViewsApi } from "@jellyfin/sdk/lib/utils/api/user-views-api";
|
import { getUserViewsApi } from "@jellyfin/sdk/lib/utils/api/user-views-api";
|
||||||
|
|
||||||
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
||||||
|
|
||||||
import "./appBar.module.scss";
|
|
||||||
import { MdiAccount } from "../icons/mdiAccount";
|
|
||||||
import { MdiHeartOutline } from "../icons/mdiHeartOutline";
|
|
||||||
import { MdiArrowLeft } from "../icons/mdiArrowLeft";
|
|
||||||
import { MdiCog } from "../icons/mdiCog";
|
|
||||||
import { MdiInformation } from "../icons/mdiInformation";
|
|
||||||
import { MdiMenu } from "../icons/mdiMenu";
|
|
||||||
import { useDrawerStore } from "../../utils/store/drawer";
|
|
||||||
import { delServer } from "../../utils/storage/servers";
|
import { delServer } from "../../utils/storage/servers";
|
||||||
import { delUser } from "../../utils/storage/user";
|
import { delUser } from "../../utils/storage/user";
|
||||||
|
import { useDrawerStore } from "../../utils/store/drawer";
|
||||||
|
import { MdiAccount } from "../icons/mdiAccount";
|
||||||
|
import { MdiArrowLeft } from "../icons/mdiArrowLeft";
|
||||||
|
import { MdiCog } from "../icons/mdiCog";
|
||||||
import { MdiDelete } from "../icons/mdiDelete";
|
import { MdiDelete } from "../icons/mdiDelete";
|
||||||
|
import { MdiHeartOutline } from "../icons/mdiHeartOutline";
|
||||||
|
import { MdiInformation } from "../icons/mdiInformation";
|
||||||
|
import { MdiMenu } from "../icons/mdiMenu";
|
||||||
|
import "./appBar.module.scss";
|
||||||
|
|
||||||
import { MdiLogoutVariant } from "../icons/mdiLogoutVariant";
|
|
||||||
import { EventEmitter as event } from "../../eventEmitter";
|
import { EventEmitter as event } from "../../eventEmitter";
|
||||||
import { useApi } from "../../utils/store/api";
|
import { useApi } from "../../utils/store/api";
|
||||||
|
import { MdiLogoutVariant } from "../icons/mdiLogoutVariant";
|
||||||
|
|
||||||
import { getTypeIcon } from "../../components/utils/iconsCollection";
|
import { getTypeIcon } from "../../components/utils/iconsCollection";
|
||||||
|
|
||||||
@@ -53,9 +52,7 @@ const forwardRefNavLink = React.forwardRef({
|
|||||||
ref={ref}
|
ref={ref}
|
||||||
to={props.to}
|
to={props.to}
|
||||||
className={({ isActive }) =>
|
className={({ isActive }) =>
|
||||||
`${props.className} ${
|
`${props.className} ${isActive ? props.activeClassName : ""}`
|
||||||
isActive ? props.activeClassName : ""
|
|
||||||
}`
|
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{props.children}
|
{props.children}
|
||||||
@@ -75,16 +72,16 @@ export const AppBar = () => {
|
|||||||
const user = useQuery({
|
const user = useQuery({
|
||||||
queryKey: ["user"],
|
queryKey: ["user"],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
let usr = await getUserApi(api).getCurrentUser();
|
const usr = await getUserApi(api).getCurrentUser();
|
||||||
return usr.data;
|
return usr.data;
|
||||||
},
|
},
|
||||||
enabled: display,
|
enabled: display,
|
||||||
networkMode: "always",
|
networkMode: "always",
|
||||||
});
|
});
|
||||||
let libraries = useQuery({
|
const libraries = useQuery({
|
||||||
queryKey: ["libraries"],
|
queryKey: ["libraries"],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
let libs = await getUserViewsApi(api).getUserViews({
|
const libs = await getUserViewsApi(api).getUserViews({
|
||||||
userId: user.data.Id,
|
userId: user.data.Id,
|
||||||
});
|
});
|
||||||
return libs.data;
|
return libs.data;
|
||||||
@@ -157,7 +154,7 @@ export const AppBar = () => {
|
|||||||
setDisplay(true);
|
setDisplay(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (location.pathname == "/home") {
|
if (location.pathname === "/home") {
|
||||||
setBackButtonVisible(false);
|
setBackButtonVisible(false);
|
||||||
} else {
|
} else {
|
||||||
setBackButtonVisible(true);
|
setBackButtonVisible(true);
|
||||||
@@ -198,9 +195,7 @@ export const AppBar = () => {
|
|||||||
justifySelf: "left",
|
justifySelf: "left",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="material-symbols-rounded">
|
<div className="material-symbols-rounded">arrow_back</div>
|
||||||
arrow_back
|
|
||||||
</div>
|
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
@@ -219,10 +214,7 @@ export const AppBar = () => {
|
|||||||
size="large"
|
size="large"
|
||||||
className="appBar-text active"
|
className="appBar-text active"
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography variant="subtitle1" fontWeight={600}>
|
||||||
variant="subtitle1"
|
|
||||||
fontWeight={600}
|
|
||||||
>
|
|
||||||
Home
|
Home
|
||||||
</Typography>
|
</Typography>
|
||||||
</Button>
|
</Button>
|
||||||
@@ -235,10 +227,7 @@ export const AppBar = () => {
|
|||||||
size="large"
|
size="large"
|
||||||
color="white"
|
color="white"
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography variant="subtitle1" fontWeight={600}>
|
||||||
variant="subtitle1"
|
|
||||||
fontWeight={600}
|
|
||||||
>
|
|
||||||
Home
|
Home
|
||||||
</Typography>
|
</Typography>
|
||||||
</Button>
|
</Button>
|
||||||
@@ -253,19 +242,12 @@ export const AppBar = () => {
|
|||||||
style={{ textTransform: "none" }}
|
style={{ textTransform: "none" }}
|
||||||
size="large"
|
size="large"
|
||||||
disableFocusRipple={false}
|
disableFocusRipple={false}
|
||||||
color={
|
color={isBrowsingLibrary ? "primary" : "white"}
|
||||||
isBrowsingLibrary ? "primary" : "white"
|
|
||||||
}
|
|
||||||
className={
|
className={
|
||||||
isBrowsingLibrary
|
isBrowsingLibrary ? "appBar-text active" : "appBar-text"
|
||||||
? "appBar-text active"
|
|
||||||
: "appBar-text"
|
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography variant="subtitle1" fontWeight={600}>
|
||||||
variant="subtitle1"
|
|
||||||
fontWeight={600}
|
|
||||||
>
|
|
||||||
Libraries
|
Libraries
|
||||||
</Typography>
|
</Typography>
|
||||||
</Button>
|
</Button>
|
||||||
@@ -335,45 +317,33 @@ export const AppBar = () => {
|
|||||||
<div className="appBar-library-scrollContainer">
|
<div className="appBar-library-scrollContainer">
|
||||||
{libraries.isPending
|
{libraries.isPending
|
||||||
? "loading..."
|
? "loading..."
|
||||||
: libraries.data.Items.map(
|
: libraries.data.Items.map((library) => (
|
||||||
(
|
|
||||||
library,
|
|
||||||
) => (
|
|
||||||
<NavLink
|
<NavLink
|
||||||
key={
|
key={library.Id}
|
||||||
library.Id
|
|
||||||
}
|
|
||||||
className="appBar-library"
|
className="appBar-library"
|
||||||
to={`library/${library.Id}`}
|
to={`library/${library.Id}`}
|
||||||
style={{
|
style={{
|
||||||
borderRadius:
|
borderRadius: "10px",
|
||||||
"10px",
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{Object.keys(
|
{Object.keys(library.ImageTags).includes(
|
||||||
library.ImageTags,
|
|
||||||
).includes(
|
|
||||||
"Primary",
|
"Primary",
|
||||||
) ? (
|
) ? (
|
||||||
<img
|
<img
|
||||||
|
alt={library.Name}
|
||||||
src={`${api.basePath}/Items/${library.Id}/Images/Primary?quality=90&fillHeight=226&fillWidth=127`}
|
src={`${api.basePath}/Items/${library.Id}/Images/Primary?quality=90&fillHeight=226&fillWidth=127`}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<div className="appBar-library-icon">
|
<div className="appBar-library-icon">
|
||||||
{" "}
|
{" "}
|
||||||
{getTypeIcon(
|
{getTypeIcon(library.CollectionType)}{" "}
|
||||||
library.CollectionType,
|
|
||||||
)}{" "}
|
|
||||||
<Typography variant="h6">
|
<Typography variant="h6">
|
||||||
{
|
{library.Name}
|
||||||
library.Name
|
|
||||||
}
|
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</NavLink>
|
</NavLink>
|
||||||
),
|
))}
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</Paper>
|
</Paper>
|
||||||
</Grow>
|
</Grow>
|
||||||
@@ -386,37 +356,21 @@ export const AppBar = () => {
|
|||||||
style={{ justifySelf: "right", gap: "0.6em" }}
|
style={{ justifySelf: "right", gap: "0.6em" }}
|
||||||
>
|
>
|
||||||
<IconButton onClick={() => navigate("/search")}>
|
<IconButton onClick={() => navigate("/search")}>
|
||||||
<div className="material-symbols-rounded">
|
<div className="material-symbols-rounded">search</div>
|
||||||
search
|
|
||||||
</div>
|
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton onClick={() => navigate("/favorite")}>
|
<IconButton onClick={() => navigate("/favorite")}>
|
||||||
<div className="material-symbols-rounded">
|
<div className="material-symbols-rounded">favorite</div>
|
||||||
favorite
|
|
||||||
</div>
|
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton
|
<IconButton sx={{ p: 0 }} onClick={handleMenuOpen}>
|
||||||
sx={{ p: 0 }}
|
|
||||||
onClick={handleMenuOpen}
|
|
||||||
>
|
|
||||||
{user.isSuccess &&
|
{user.isSuccess &&
|
||||||
(user.data.PrimaryImageTag ==
|
(user.data.PrimaryImageTag === undefined ? (
|
||||||
undefined ? (
|
<Avatar className="appBar-avatar" alt={user.data.Name}>
|
||||||
<Avatar
|
|
||||||
className="appBar-avatar"
|
|
||||||
alt={user.data.Name}
|
|
||||||
>
|
|
||||||
<MdiAccount className="appBar-avatar-icon" />
|
<MdiAccount className="appBar-avatar-icon" />
|
||||||
</Avatar>
|
</Avatar>
|
||||||
) : (
|
) : (
|
||||||
<Avatar
|
<Avatar
|
||||||
className="appBar-avatar"
|
className="appBar-avatar"
|
||||||
src={
|
src={`${api.basePath}/Users/${user.data.Id}/Images/Primary`}
|
||||||
api.basePath +
|
|
||||||
"/Users/" +
|
|
||||||
user.data.Id +
|
|
||||||
"/Images/Primary"
|
|
||||||
}
|
|
||||||
alt={user.data.Name}
|
alt={user.data.Name}
|
||||||
>
|
>
|
||||||
<MdiAccount className="appBar-avatar-icon" />
|
<MdiAccount className="appBar-avatar-icon" />
|
||||||
@@ -430,30 +384,21 @@ export const AppBar = () => {
|
|||||||
sx={{ mt: 2 }}
|
sx={{ mt: 2 }}
|
||||||
disableScrollLock
|
disableScrollLock
|
||||||
>
|
>
|
||||||
<MenuItem
|
<MenuItem onClick={() => navigate("/settings")} disabled>
|
||||||
onClick={() => navigate("/settings")}
|
|
||||||
disabled
|
|
||||||
>
|
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<div className="material-symbols-rounded">
|
<div className="material-symbols-rounded">settings</div>
|
||||||
settings
|
|
||||||
</div>
|
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
Settings
|
Settings
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem onClick={() => navigate("/about")}>
|
<MenuItem onClick={() => navigate("/about")}>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<div className="material-symbols-rounded">
|
<div className="material-symbols-rounded">info</div>
|
||||||
info
|
|
||||||
</div>
|
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
About
|
About
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem onClick={handleLogout}>
|
<MenuItem onClick={handleLogout}>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<div className="material-symbols-rounded">
|
<div className="material-symbols-rounded">logout</div>
|
||||||
logout
|
|
||||||
</div>
|
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
Logout
|
Logout
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
.appBar {
|
.appBar {
|
||||||
transition: background-color $transition-time-fast,
|
transition: background-color $transition-time-fast,
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import AppBar from "@mui/material/AppBar";
|
import AppBar from "@mui/material/AppBar";
|
||||||
import Toolbar from "@mui/material/Toolbar";
|
|
||||||
import IconButton from "@mui/material/IconButton";
|
import IconButton from "@mui/material/IconButton";
|
||||||
import { MdiArrowLeft } from "../icons/mdiArrowLeft";
|
import Toolbar from "@mui/material/Toolbar";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
|
import { MdiArrowLeft } from "../icons/mdiArrowLeft";
|
||||||
|
|
||||||
export const AppBarBackOnly = () => {
|
export const AppBarBackOnly = () => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
/** @format */
|
|
||||||
import React from "react";
|
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
import Box from "@mui/material/Box";
|
import Box from "@mui/material/Box";
|
||||||
|
|
||||||
@@ -17,14 +16,9 @@ export const AvatarImage = ({ userId }) => {
|
|||||||
<div
|
<div
|
||||||
className="avatar-image"
|
className="avatar-image"
|
||||||
style={{
|
style={{
|
||||||
backgroundImage:
|
backgroundImage: `url('${api.basePath}/Users/${userId}/Images/Primary')`,
|
||||||
"url('" +
|
|
||||||
api.basePath +
|
|
||||||
"/Users/" +
|
|
||||||
userId +
|
|
||||||
"/Images/Primary')",
|
|
||||||
}}
|
}}
|
||||||
></div>
|
/>
|
||||||
|
|
||||||
<div className="avatar-image-icon-container">
|
<div className="avatar-image-icon-container">
|
||||||
<MdiAccount className="avatar-image-icon" />
|
<MdiAccount className="avatar-image-icon" />
|
||||||
@@ -34,7 +28,7 @@ export const AvatarImage = ({ userId }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const AvatarSideMenu = ({ userName }) => {
|
export const AvatarSideMenu = ({ userName }) => {
|
||||||
return <div></div>;
|
return <div />;
|
||||||
};
|
};
|
||||||
|
|
||||||
AvatarImage.propType = {
|
AvatarImage.propType = {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
.avatar-image {
|
.avatar-image {
|
||||||
aspect-ratio: 1;
|
aspect-ratio: 1;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
@@ -6,12 +5,12 @@ import React from "react";
|
|||||||
import IconButton from "@mui/material/IconButton";
|
import IconButton from "@mui/material/IconButton";
|
||||||
|
|
||||||
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
|
import { getUserLibraryApi } from "@jellyfin/sdk/lib/utils/api/user-library-api";
|
||||||
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
import CircularProgress from "@mui/material/CircularProgress";
|
||||||
import { pink } from "@mui/material/colors";
|
import { pink } from "@mui/material/colors";
|
||||||
|
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
||||||
|
import { useSnackbar } from "notistack";
|
||||||
import { MdiHeart } from "../icons/mdiHeart";
|
import { MdiHeart } from "../icons/mdiHeart";
|
||||||
import { MdiHeartOutline } from "../icons/mdiHeartOutline";
|
import { MdiHeartOutline } from "../icons/mdiHeartOutline";
|
||||||
import { useSnackbar } from "notistack";
|
|
||||||
import CircularProgress from "@mui/material/CircularProgress";
|
|
||||||
|
|
||||||
import { useApi } from "../../utils/store/api";
|
import { useApi } from "../../utils/store/api";
|
||||||
|
|
||||||
@@ -39,12 +38,9 @@ const LikeButton = ({ itemId, isFavorite, queryKey, userId, itemName }) => {
|
|||||||
enqueueSnackbar(`${error}`, {
|
enqueueSnackbar(`${error}`, {
|
||||||
variant: "error",
|
variant: "error",
|
||||||
});
|
});
|
||||||
enqueueSnackbar(
|
enqueueSnackbar(`An error occured while updating "${itemName}"`, {
|
||||||
`An error occured while updating "${itemName}"`,
|
|
||||||
{
|
|
||||||
variant: "error",
|
variant: "error",
|
||||||
},
|
});
|
||||||
);
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
},
|
},
|
||||||
onSettled: async () => {
|
onSettled: async () => {
|
||||||
|
|||||||
@@ -1,18 +1,17 @@
|
|||||||
/** @format */
|
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
import IconButton from "@mui/material/IconButton";
|
|
||||||
import CircularProgress from "@mui/material/CircularProgress";
|
import CircularProgress from "@mui/material/CircularProgress";
|
||||||
|
import IconButton from "@mui/material/IconButton";
|
||||||
|
|
||||||
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
||||||
import { green } from "@mui/material/colors";
|
import { green } from "@mui/material/colors";
|
||||||
|
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
||||||
|
|
||||||
import { getPlaystateApi } from "@jellyfin/sdk/lib/utils/api/playstate-api";
|
import { getPlaystateApi } from "@jellyfin/sdk/lib/utils/api/playstate-api";
|
||||||
import { MdiCheck } from "../icons/mdiCheck";
|
|
||||||
import { useSnackbar } from "notistack";
|
import { useSnackbar } from "notistack";
|
||||||
import { useApi } from "../../utils/store/api";
|
import { useApi } from "../../utils/store/api";
|
||||||
|
import { MdiCheck } from "../icons/mdiCheck";
|
||||||
|
|
||||||
const MarkPlayedButton = ({ itemId, isPlayed, queryKey, userId, itemName }) => {
|
const MarkPlayedButton = ({ itemId, isPlayed, queryKey, userId, itemName }) => {
|
||||||
const [api] = useApi((state) => [state.api]);
|
const [api] = useApi((state) => [state.api]);
|
||||||
@@ -39,12 +38,9 @@ const MarkPlayedButton = ({ itemId, isPlayed, queryKey, userId, itemName }) => {
|
|||||||
enqueueSnackbar(`${error}`, {
|
enqueueSnackbar(`${error}`, {
|
||||||
variant: "error",
|
variant: "error",
|
||||||
});
|
});
|
||||||
enqueueSnackbar(
|
enqueueSnackbar(`An error occured while updating "${itemName}"`, {
|
||||||
`An error occured while updating "${itemName}"`,
|
|
||||||
{
|
|
||||||
variant: "error",
|
variant: "error",
|
||||||
},
|
});
|
||||||
);
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
},
|
},
|
||||||
onSettled: async () => {
|
onSettled: async () => {
|
||||||
|
|||||||
@@ -1,30 +1,29 @@
|
|||||||
/** @format */
|
|
||||||
import React from "react";
|
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
import Button from "@mui/material/Button";
|
import Button from "@mui/material/Button";
|
||||||
import Fab from "@mui/material/Fab";
|
import Fab from "@mui/material/Fab";
|
||||||
import LinearProgress from "@mui/material/LinearProgress";
|
import LinearProgress from "@mui/material/LinearProgress";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
|
|
||||||
import {
|
|
||||||
setItem,
|
|
||||||
usePlaybackDataLoadStore,
|
|
||||||
usePlaybackStore,
|
|
||||||
} from "../../utils/store/playback";
|
|
||||||
import { useNavigate } from "react-router-dom";
|
|
||||||
import { useMutation } from "@tanstack/react-query";
|
|
||||||
import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api/tv-shows-api";
|
|
||||||
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
|
|
||||||
import {
|
import {
|
||||||
BaseItemKind,
|
BaseItemKind,
|
||||||
ItemFields,
|
ItemFields,
|
||||||
SortOrder,
|
SortOrder,
|
||||||
} from "@jellyfin/sdk/lib/generated-client";
|
} from "@jellyfin/sdk/lib/generated-client";
|
||||||
import { useSnackbar } from "notistack";
|
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
|
||||||
import { useAudioPlayback } from "../../utils/store/audioPlayback";
|
|
||||||
import { getPlaylistsApi } from "@jellyfin/sdk/lib/utils/api/playlists-api";
|
import { getPlaylistsApi } from "@jellyfin/sdk/lib/utils/api/playlists-api";
|
||||||
|
import { getTvShowsApi } from "@jellyfin/sdk/lib/utils/api/tv-shows-api";
|
||||||
|
import { useMutation } from "@tanstack/react-query";
|
||||||
|
import { useSnackbar } from "notistack";
|
||||||
|
import { useNavigate } from "react-router-dom";
|
||||||
import { useApi } from "../../utils/store/api";
|
import { useApi } from "../../utils/store/api";
|
||||||
|
import { useAudioPlayback } from "../../utils/store/audioPlayback";
|
||||||
|
import {
|
||||||
|
setItem,
|
||||||
|
usePlaybackDataLoadStore,
|
||||||
|
usePlaybackStore,
|
||||||
|
} from "../../utils/store/playback";
|
||||||
|
|
||||||
const PlayButton = ({
|
const PlayButton = ({
|
||||||
itemId,
|
itemId,
|
||||||
@@ -114,17 +113,12 @@ const PlayButton = ({
|
|||||||
seriesId: itemId,
|
seriesId: itemId,
|
||||||
limit: 1,
|
limit: 1,
|
||||||
startIndex: 0,
|
startIndex: 0,
|
||||||
fields: [
|
fields: [ItemFields.MediaSources, ItemFields.MediaStreams],
|
||||||
ItemFields.MediaSources,
|
|
||||||
ItemFields.MediaStreams,
|
|
||||||
],
|
|
||||||
enableUserData: true,
|
enableUserData: true,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case BaseItemKind.Playlist:
|
case BaseItemKind.Playlist:
|
||||||
result = await getPlaylistsApi(
|
result = await getPlaylistsApi(api).getPlaylistItems({
|
||||||
api,
|
|
||||||
).getPlaylistItems({
|
|
||||||
userId: userId,
|
userId: userId,
|
||||||
playlistId: playlistItemId,
|
playlistId: playlistItemId,
|
||||||
});
|
});
|
||||||
@@ -133,10 +127,7 @@ const PlayButton = ({
|
|||||||
result = await getItemsApi(api).getItems({
|
result = await getItemsApi(api).getItems({
|
||||||
parentId: itemId,
|
parentId: itemId,
|
||||||
userId: userId,
|
userId: userId,
|
||||||
fields: [
|
fields: [ItemFields.MediaSources, ItemFields.MediaStreams],
|
||||||
ItemFields.MediaSources,
|
|
||||||
ItemFields.MediaStreams,
|
|
||||||
],
|
|
||||||
sortOrder: SortOrder.Ascending,
|
sortOrder: SortOrder.Ascending,
|
||||||
sortBy: "IndexNumber",
|
sortBy: "IndexNumber",
|
||||||
});
|
});
|
||||||
@@ -147,26 +138,16 @@ const PlayButton = ({
|
|||||||
recursive: true,
|
recursive: true,
|
||||||
includeItemTypes: [BaseItemKind.Audio],
|
includeItemTypes: [BaseItemKind.Audio],
|
||||||
userId: userId,
|
userId: userId,
|
||||||
fields: [
|
fields: [ItemFields.MediaSources, ItemFields.MediaStreams],
|
||||||
ItemFields.MediaSources,
|
|
||||||
ItemFields.MediaStreams,
|
|
||||||
],
|
|
||||||
sortOrder: SortOrder.Ascending,
|
sortOrder: SortOrder.Ascending,
|
||||||
sortBy: [
|
sortBy: ["PremiereDate", "ProductionYear", "SortName"],
|
||||||
"PremiereDate",
|
|
||||||
"ProductionYear",
|
|
||||||
"SortName",
|
|
||||||
],
|
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
result = await getItemsApi(api).getItems({
|
result = await getItemsApi(api).getItems({
|
||||||
ids: [itemId],
|
ids: [itemId],
|
||||||
userId: userId,
|
userId: userId,
|
||||||
fields: [
|
fields: [ItemFields.MediaSources, ItemFields.MediaStreams],
|
||||||
ItemFields.MediaSources,
|
|
||||||
ItemFields.MediaStreams,
|
|
||||||
],
|
|
||||||
sortOrder: SortOrder.Ascending,
|
sortOrder: SortOrder.Ascending,
|
||||||
sortBy: "IndexNumber",
|
sortBy: "IndexNumber",
|
||||||
});
|
});
|
||||||
@@ -198,7 +179,7 @@ const PlayButton = ({
|
|||||||
setItemId(item.Items[0].Id);
|
setItemId(item.Items[0].Id);
|
||||||
setDuration(item.Items[0].RunTimeTicks);
|
setDuration(item.Items[0].RunTimeTicks);
|
||||||
|
|
||||||
if (item.Items[0].Type == BaseItemKind.Episode) {
|
if (item.Items[0].Type === BaseItemKind.Episode) {
|
||||||
setSeriesId(item.Items[0].SeriesId);
|
setSeriesId(item.Items[0].SeriesId);
|
||||||
// setEpisodeIndex(item.Ite)
|
// setEpisodeIndex(item.Ite)
|
||||||
}
|
}
|
||||||
@@ -218,6 +199,7 @@ const PlayButton = ({
|
|||||||
setItemName(
|
setItemName(
|
||||||
<div className="video-osd-name">
|
<div className="video-osd-name">
|
||||||
<img
|
<img
|
||||||
|
alt={item.Items[0].Name}
|
||||||
src={`${api.basePath}/Items/${item.Items[0].Id}/Images/Logo`}
|
src={`${api.basePath}/Items/${item.Items[0].Id}/Images/Logo`}
|
||||||
className="video-osd-name-logo"
|
className="video-osd-name-logo"
|
||||||
onLoad={(e) => {
|
onLoad={(e) => {
|
||||||
@@ -229,9 +211,7 @@ const PlayButton = ({
|
|||||||
} else {
|
} else {
|
||||||
setItemName(
|
setItemName(
|
||||||
<div className="video-osd-name">
|
<div className="video-osd-name">
|
||||||
<Typography variant="h6">
|
<Typography variant="h6">{item.Items[0].Name}</Typography>
|
||||||
{item.Items[0].Name}
|
|
||||||
</Typography>
|
|
||||||
</div>,
|
</div>,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -241,6 +221,7 @@ const PlayButton = ({
|
|||||||
setItemName(
|
setItemName(
|
||||||
<div className="video-osd-name">
|
<div className="video-osd-name">
|
||||||
<img
|
<img
|
||||||
|
alt={item.Items[0].SeriesName}
|
||||||
src={`${api.basePath}/Items/${item.Items[0].SeriesId}/Images/Logo`}
|
src={`${api.basePath}/Items/${item.Items[0].SeriesId}/Images/Logo`}
|
||||||
className="video-osd-name-logo"
|
className="video-osd-name-logo"
|
||||||
onLoad={(e) => {
|
onLoad={(e) => {
|
||||||
@@ -248,16 +229,9 @@ const PlayButton = ({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Typography variant="subtitle1">
|
<Typography variant="subtitle1">
|
||||||
S
|
S{item.Items[0].ParentIndexNumber}
|
||||||
{
|
|
||||||
item.Items[0]
|
|
||||||
.ParentIndexNumber
|
|
||||||
}
|
|
||||||
:E
|
:E
|
||||||
{
|
{item.Items[0].IndexNumber} {item.Items[0].Name}
|
||||||
item.Items[0].IndexNumber
|
|
||||||
}{" "}
|
|
||||||
{item.Items[0].Name}
|
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>,
|
</div>,
|
||||||
);
|
);
|
||||||
@@ -268,16 +242,9 @@ const PlayButton = ({
|
|||||||
{item.Items[0].SeriesName}
|
{item.Items[0].SeriesName}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="subtitle1">
|
<Typography variant="subtitle1">
|
||||||
S
|
S{item.Items[0].ParentIndexNumber}
|
||||||
{
|
|
||||||
item.Items[0]
|
|
||||||
.ParentIndexNumber
|
|
||||||
}
|
|
||||||
:E
|
:E
|
||||||
{
|
{item.Items[0].IndexNumber} {item.Items[0].Name}
|
||||||
item.Items[0].IndexNumber
|
|
||||||
}{" "}
|
|
||||||
{item.Items[0].Name}
|
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>,
|
</div>,
|
||||||
);
|
);
|
||||||
@@ -287,9 +254,7 @@ const PlayButton = ({
|
|||||||
default:
|
default:
|
||||||
setItemName(
|
setItemName(
|
||||||
<div className="video-osd-name">
|
<div className="video-osd-name">
|
||||||
<Typography variant="h6">
|
<Typography variant="h6">{item.Items[0].Name}</Typography>
|
||||||
{item.Items[0].Name}
|
|
||||||
</Typography>
|
|
||||||
</div>,
|
</div>,
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
@@ -302,7 +267,7 @@ const PlayButton = ({
|
|||||||
?Static=true&mediaSourceId=${item.Items[0].Id}&deviceId=${api.deviceInfo.id}&api_key=${api.accessToken}&Tag=${item.Items[0].MediaSources[0].ETag}&videoStreamIndex=${currentVideoTrack}&audioStreamIndex=${currentAudioTrack}`,
|
?Static=true&mediaSourceId=${item.Items[0].Id}&deviceId=${api.deviceInfo.id}&api_key=${api.accessToken}&Tag=${item.Items[0].MediaSources[0].ETag}&videoStreamIndex=${currentVideoTrack}&audioStreamIndex=${currentAudioTrack}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
navigate(`/player`);
|
navigate("/player");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onSettled: () => {
|
onSettled: () => {
|
||||||
@@ -339,7 +304,7 @@ const PlayButton = ({
|
|||||||
</div>
|
</div>
|
||||||
</Fab>
|
</Fab>
|
||||||
);
|
);
|
||||||
} else {
|
}
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
className={className}
|
className={className}
|
||||||
@@ -385,7 +350,6 @@ const PlayButton = ({
|
|||||||
{itemUserData.PlaybackPositionTicks > 0 ? "Resume" : "Play"}
|
{itemUserData.PlaybackPositionTicks > 0 ? "Resume" : "Play"}
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default PlayButton;
|
export default PlayButton;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
|
|
||||||
@@ -10,8 +9,8 @@ import { Blurhash } from "react-blurhash";
|
|||||||
|
|
||||||
import { MdiAccountTie } from "../icons/mdiAccountTie";
|
import { MdiAccountTie } from "../icons/mdiAccountTie";
|
||||||
|
|
||||||
import "./card.module.scss";
|
|
||||||
import { useApi } from "../../utils/store/api";
|
import { useApi } from "../../utils/store/api";
|
||||||
|
import "./card.module.scss";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {Object} Props
|
* @typedef {Object} Props
|
||||||
@@ -70,11 +69,10 @@ export const ActorCard = ({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<div className="card-image-icon-container">
|
<div className="card-image-icon-container">
|
||||||
<div className="material-symbols-rounded">
|
<div className="material-symbols-rounded">person</div>
|
||||||
person
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img
|
||||||
|
alt={item.Name}
|
||||||
src={api.getItemImageUrl(
|
src={api.getItemImageUrl(
|
||||||
seriesId ? item.SeriesId : item.Id,
|
seriesId ? item.SeriesId : item.Id,
|
||||||
"Primary",
|
"Primary",
|
||||||
@@ -90,7 +88,9 @@ export const ActorCard = ({
|
|||||||
opacity: 0,
|
opacity: 0,
|
||||||
}}
|
}}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
onLoad={(e) => (e.target.style.opacity = 1)}
|
onLoad={(e) => {
|
||||||
|
e.target.style.opacity = 1;
|
||||||
|
}}
|
||||||
className="card-image"
|
className="card-image"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,19 +1,18 @@
|
|||||||
/** @format */
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
|
|
||||||
import Typography from "@mui/material/Typography";
|
|
||||||
import LinearProgress from "@mui/material/LinearProgress";
|
import LinearProgress from "@mui/material/LinearProgress";
|
||||||
|
import Typography from "@mui/material/Typography";
|
||||||
|
|
||||||
import { getTypeIcon } from "../utils/iconsCollection";
|
import { getTypeIcon } from "../utils/iconsCollection";
|
||||||
import "./card.module.scss";
|
import "./card.module.scss";
|
||||||
|
|
||||||
|
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
|
||||||
|
import { useApi } from "../../utils/store/api";
|
||||||
import LikeButton from "../buttons/likeButton";
|
import LikeButton from "../buttons/likeButton";
|
||||||
import MarkPlayedButton from "../buttons/markPlayedButton";
|
import MarkPlayedButton from "../buttons/markPlayedButton";
|
||||||
import PlayButton from "../buttons/playButton";
|
import PlayButton from "../buttons/playButton";
|
||||||
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
|
|
||||||
import { useApi } from "../../utils/store/api";
|
|
||||||
import ErrorBoundary from "../errorBoundary";
|
import ErrorBoundary from "../errorBoundary";
|
||||||
|
|
||||||
const cardImageAspectRatios = {
|
const cardImageAspectRatios = {
|
||||||
@@ -73,9 +72,9 @@ export const Card = ({
|
|||||||
const defaultOnClick = () => {
|
const defaultOnClick = () => {
|
||||||
if (availableSpecialRoutes.includes(item.Type)) {
|
if (availableSpecialRoutes.includes(item.Type)) {
|
||||||
navigate(`/${item.Type.toLocaleLowerCase()}/${item.Id}`);
|
navigate(`/${item.Type.toLocaleLowerCase()}/${item.Id}`);
|
||||||
} else if (!!item.Role || item.Type == BaseItemKind.Person) {
|
} else if (!!item.Role || item.Type === BaseItemKind.Person) {
|
||||||
navigate(`/person/${item.Id}`);
|
navigate(`/person/${item.Id}`);
|
||||||
} else if (item.Type == BaseItemKind.MusicArtist) {
|
} else if (item.Type === BaseItemKind.MusicArtist) {
|
||||||
navigate(`/artist/${item.Id}`);
|
navigate(`/artist/${item.Id}`);
|
||||||
} else {
|
} else {
|
||||||
navigate(`/item/${item.Id}`);
|
navigate(`/item/${item.Id}`);
|
||||||
@@ -85,7 +84,6 @@ export const Card = ({
|
|||||||
<div
|
<div
|
||||||
className="card"
|
className="card"
|
||||||
elevation={0}
|
elevation={0}
|
||||||
tabIndex={0}
|
|
||||||
onClick={onClick ? onClick : defaultOnClick}
|
onClick={onClick ? onClick : defaultOnClick}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -94,23 +92,19 @@ export const Card = ({
|
|||||||
aspectRatio: cardImageAspectRatios[cardType],
|
aspectRatio: cardImageAspectRatios[cardType],
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ErrorBoundary fallback={<></>}>
|
<ErrorBoundary fallback>
|
||||||
<div
|
<div
|
||||||
className="card-indicator check"
|
className="card-indicator check"
|
||||||
style={{
|
style={{
|
||||||
opacity: item.UserData?.Played ? 1 : 0,
|
opacity: item.UserData?.Played ? 1 : 0,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="material-symbols-rounded">
|
<div className="material-symbols-rounded">done</div>
|
||||||
done
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className={`card-indicator text`}
|
className={"card-indicator text"}
|
||||||
style={{
|
style={{
|
||||||
opacity: item.UserData?.UnplayedItemCount
|
opacity: item.UserData?.UnplayedItemCount ? 1 : 0,
|
||||||
? 1
|
|
||||||
: 0,
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
@@ -133,13 +127,12 @@ export const Card = ({
|
|||||||
/>
|
/>
|
||||||
)} */}
|
)} */}
|
||||||
<div className="card-image-icon-container">
|
<div className="card-image-icon-container">
|
||||||
{overrideIcon
|
{overrideIcon ? getTypeIcon(overrideIcon) : getTypeIcon(item.Type)}
|
||||||
? getTypeIcon(overrideIcon)
|
|
||||||
: getTypeIcon(item.Type)}
|
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img
|
||||||
|
alt={item.Name}
|
||||||
src={
|
src={
|
||||||
overrideIcon == "User"
|
overrideIcon === "User"
|
||||||
? `${api.basePath}/Users/${item.Id}/Images/Primary`
|
? `${api.basePath}/Users/${item.Id}/Images/Primary`
|
||||||
: api.getItemImageUrl(
|
: api.getItemImageUrl(
|
||||||
seriesId
|
seriesId
|
||||||
@@ -152,10 +145,7 @@ export const Card = ({
|
|||||||
quality: 90,
|
quality: 90,
|
||||||
fillHeight: 226,
|
fillHeight: 226,
|
||||||
fillWidth: Math.floor(
|
fillWidth: Math.floor(
|
||||||
226 /
|
226 / cardImageAspectRatios[cardType],
|
||||||
cardImageAspectRatios[
|
|
||||||
cardType
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
@@ -166,7 +156,9 @@ export const Card = ({
|
|||||||
opacity: 0,
|
opacity: 0,
|
||||||
}}
|
}}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
onLoad={(e) => (e.target.style.opacity = 1)}
|
onLoad={(e) => {
|
||||||
|
e.target.style.opacity = 1;
|
||||||
|
}}
|
||||||
className="card-image"
|
className="card-image"
|
||||||
/>
|
/>
|
||||||
<div className="card-overlay">
|
<div className="card-overlay">
|
||||||
@@ -185,16 +177,12 @@ export const Card = ({
|
|||||||
}}
|
}}
|
||||||
iconOnly
|
iconOnly
|
||||||
audio={
|
audio={
|
||||||
item.Type ==
|
item.Type === BaseItemKind.MusicAlbum ||
|
||||||
BaseItemKind.MusicAlbum ||
|
item.Type === BaseItemKind.Audio ||
|
||||||
item.Type == BaseItemKind.Audio ||
|
item.Type === BaseItemKind.AudioBook ||
|
||||||
item.Type ==
|
item.Type === BaseItemKind.Playlist
|
||||||
BaseItemKind.AudioBook ||
|
|
||||||
item.Type == BaseItemKind.Playlist
|
|
||||||
}
|
|
||||||
playlistItem={
|
|
||||||
item.Type == BaseItemKind.Playlist
|
|
||||||
}
|
}
|
||||||
|
playlistItem={item.Type === BaseItemKind.Playlist}
|
||||||
playlistItemId={item.Id}
|
playlistItemId={item.Id}
|
||||||
/>
|
/>
|
||||||
<LikeButton
|
<LikeButton
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
.card {
|
.card {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: visible !important;
|
overflow: visible !important;
|
||||||
|
|||||||
@@ -1,23 +1,22 @@
|
|||||||
/** @format */
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
|
|
||||||
import MuiCard from "@mui/material/Card";
|
import MuiCard from "@mui/material/Card";
|
||||||
import CardActionArea from "@mui/material/CardActionArea";
|
import CardActionArea from "@mui/material/CardActionArea";
|
||||||
import Typography from "@mui/material/Typography";
|
|
||||||
import LinearProgress from "@mui/material/LinearProgress";
|
import LinearProgress from "@mui/material/LinearProgress";
|
||||||
|
import Typography from "@mui/material/Typography";
|
||||||
|
|
||||||
import { Blurhash } from "react-blurhash";
|
import { Blurhash } from "react-blurhash";
|
||||||
|
|
||||||
import "./card.module.scss";
|
|
||||||
import { MdiCheck } from "../icons/mdiCheck";
|
import { MdiCheck } from "../icons/mdiCheck";
|
||||||
|
import "./card.module.scss";
|
||||||
|
|
||||||
|
import { getRuntimeCompact } from "../../utils/date/time";
|
||||||
|
import { useApi } from "../../utils/store/api";
|
||||||
import LikeButton from "../buttons/likeButton";
|
import LikeButton from "../buttons/likeButton";
|
||||||
import MarkPlayedButton from "../buttons/markPlayedButton";
|
import MarkPlayedButton from "../buttons/markPlayedButton";
|
||||||
import PlayButton from "../buttons/playButton";
|
import PlayButton from "../buttons/playButton";
|
||||||
import { MdiTelevisionClassic } from "../icons/mdiTelevisionClassic";
|
import { MdiTelevisionClassic } from "../icons/mdiTelevisionClassic";
|
||||||
import { getRuntimeCompact } from "../../utils/date/time";
|
|
||||||
import { useApi } from "../../utils/store/api";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {Object} Props
|
* @typedef {Object} Props
|
||||||
@@ -70,9 +69,7 @@ export const EpisodeCard = ({
|
|||||||
opacity: item.UserData?.Played ? 1 : 0,
|
opacity: item.UserData?.Played ? 1 : 0,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="material-symbols-rounded">
|
<div className="material-symbols-rounded">done</div>
|
||||||
done
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!!imageBlurhash && (
|
{!!imageBlurhash && (
|
||||||
@@ -86,11 +83,10 @@ export const EpisodeCard = ({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<div className="card-image-icon-container">
|
<div className="card-image-icon-container">
|
||||||
<div className="material-symbols-rounded">
|
<div className="material-symbols-rounded">tv_gen</div>
|
||||||
tv_gen
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img
|
||||||
|
alt={item.Name}
|
||||||
src={api.getItemImageUrl(item.Id, "Primary", {
|
src={api.getItemImageUrl(item.Id, "Primary", {
|
||||||
quality: 90,
|
quality: 90,
|
||||||
fillHeight: 512,
|
fillHeight: 512,
|
||||||
@@ -102,7 +98,9 @@ export const EpisodeCard = ({
|
|||||||
opacity: 0,
|
opacity: 0,
|
||||||
}}
|
}}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
onLoad={(e) => (e.target.style.opacity = 1)}
|
onLoad={(e) => {
|
||||||
|
e.target.style.opacity = 1;
|
||||||
|
}}
|
||||||
className="card-image"
|
className="card-image"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -146,8 +144,7 @@ export const EpisodeCard = ({
|
|||||||
bottom: 0,
|
bottom: 0,
|
||||||
zIndex: 2,
|
zIndex: 2,
|
||||||
height: "6px",
|
height: "6px",
|
||||||
background:
|
background: "rgb(5 5 5 / 0.5) !important",
|
||||||
"rgb(5 5 5 / 0.5) !important",
|
|
||||||
backdropFilter: "blur(5px)",
|
backdropFilter: "blur(5px)",
|
||||||
}}
|
}}
|
||||||
color="primary"
|
color="primary"
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import React, { useState } from "react";
|
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
|
import React, { useState } from "react";
|
||||||
|
|
||||||
import Carousel from "react-multi-carousel";
|
import Carousel from "react-multi-carousel";
|
||||||
import "react-multi-carousel/lib/styles.css";
|
import "react-multi-carousel/lib/styles.css";
|
||||||
@@ -9,10 +7,10 @@ import "react-multi-carousel/lib/styles.css";
|
|||||||
import { MdiChevronLeft } from "../icons/mdiChevronLeft";
|
import { MdiChevronLeft } from "../icons/mdiChevronLeft";
|
||||||
import { MdiChevronRight } from "../icons/mdiChevronRight";
|
import { MdiChevronRight } from "../icons/mdiChevronRight";
|
||||||
|
|
||||||
import IconButton from "@mui/material/IconButton";
|
|
||||||
import Box from "@mui/material/Box";
|
import Box from "@mui/material/Box";
|
||||||
import Typography from "@mui/material/Typography";
|
|
||||||
import ButtonGroup from "@mui/material/ButtonGroup";
|
import ButtonGroup from "@mui/material/ButtonGroup";
|
||||||
|
import IconButton from "@mui/material/IconButton";
|
||||||
|
import Typography from "@mui/material/Typography";
|
||||||
|
|
||||||
import "./cardScroller.module.scss";
|
import "./cardScroller.module.scss";
|
||||||
export const CardScroller = ({
|
export const CardScroller = ({
|
||||||
@@ -65,8 +63,8 @@ export const CardScroller = ({
|
|||||||
sx={{ mb: 1 }}
|
sx={{ mb: 1 }}
|
||||||
className={
|
className={
|
||||||
disableDecoration
|
disableDecoration
|
||||||
? `card-scroller-header-container hidden-decoration`
|
? "card-scroller-header-container hidden-decoration"
|
||||||
: `card-scroller-header-container`
|
: "card-scroller-header-container"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
@@ -75,25 +73,20 @@ export const CardScroller = ({
|
|||||||
className="card-scroller-heading"
|
className="card-scroller-heading"
|
||||||
{...headingProps}
|
{...headingProps}
|
||||||
>
|
>
|
||||||
<div className="card-scroller-heading-decoration"></div>{" "}
|
<div className="card-scroller-heading-decoration" /> {title}
|
||||||
{title}
|
|
||||||
</Typography>
|
</Typography>
|
||||||
<ButtonGroup className="card-scroller-button-group">
|
<ButtonGroup className="card-scroller-button-group">
|
||||||
<IconButton
|
<IconButton
|
||||||
className="card-scroller-button"
|
className="card-scroller-button"
|
||||||
onClick={() => carouselRef.previous()}
|
onClick={() => carouselRef.previous()}
|
||||||
>
|
>
|
||||||
<div className="material-symbols-rounded">
|
<div className="material-symbols-rounded">chevron_left</div>
|
||||||
chevron_left
|
|
||||||
</div>
|
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton
|
<IconButton
|
||||||
className="card-scroller-button"
|
className="card-scroller-button"
|
||||||
onClick={() => carouselRef.next()}
|
onClick={() => carouselRef.next()}
|
||||||
>
|
>
|
||||||
<div className="material-symbols-rounded">
|
<div className="material-symbols-rounded">chevron_right</div>
|
||||||
chevron_right
|
|
||||||
</div>
|
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</ButtonGroup>
|
</ButtonGroup>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
.card-scroller {
|
.card-scroller {
|
||||||
// height: 20em;
|
// height: 20em;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
.carousel {
|
.carousel {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
/** @format */
|
|
||||||
import React, { useEffect, useState } from "react";
|
|
||||||
import { AnimatePresence, motion } from "framer-motion";
|
import { AnimatePresence, motion } from "framer-motion";
|
||||||
|
import React, { useEffect, useState } from "react";
|
||||||
|
|
||||||
import IconButton from "@mui/material/IconButton";
|
import IconButton from "@mui/material/IconButton";
|
||||||
import { MdiChevronLeft } from "../icons/mdiChevronLeft";
|
import { MdiChevronLeft } from "../icons/mdiChevronLeft";
|
||||||
import { MdiChevronRight } from "../icons/mdiChevronRight";
|
import { MdiChevronRight } from "../icons/mdiChevronRight";
|
||||||
|
|
||||||
import "./carousel.scss";
|
|
||||||
import { useCarouselStore } from "../../utils/store/carousel";
|
import { useCarouselStore } from "../../utils/store/carousel";
|
||||||
|
import "./carousel.scss";
|
||||||
|
|
||||||
const swipeConfidenceThreshold = 8000;
|
const swipeConfidenceThreshold = 8000;
|
||||||
const swipePower = (offset, velocity) => {
|
const swipePower = (offset, velocity) => {
|
||||||
@@ -21,6 +20,8 @@ const Carousel = ({ content, onChange }) => {
|
|||||||
state.setDirection,
|
state.setDirection,
|
||||||
state.direction,
|
state.direction,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
onChange(currentSlide);
|
onChange(currentSlide);
|
||||||
}, [content[currentSlide].key]);
|
}, [content[currentSlide].key]);
|
||||||
@@ -30,7 +31,7 @@ const Carousel = ({ content, onChange }) => {
|
|||||||
<IconButton
|
<IconButton
|
||||||
className="carousel-button left"
|
className="carousel-button left"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (currentSlide == 0) {
|
if (currentSlide === 0) {
|
||||||
setDirection("left");
|
setDirection("left");
|
||||||
setCurrentSlide(content.length - 1);
|
setCurrentSlide(content.length - 1);
|
||||||
}
|
}
|
||||||
@@ -62,15 +63,12 @@ const Carousel = ({ content, onChange }) => {
|
|||||||
onDragEnd={(e, { offset, velocity }) => {
|
onDragEnd={(e, { offset, velocity }) => {
|
||||||
const swipe = swipePower(offset.x, velocity.x);
|
const swipe = swipePower(offset.x, velocity.x);
|
||||||
if (
|
if (
|
||||||
currentSlide != content.length - 1 &&
|
currentSlide !== content.length - 1 &&
|
||||||
swipe < -swipeConfidenceThreshold
|
swipe < -swipeConfidenceThreshold
|
||||||
) {
|
) {
|
||||||
setDirection("right");
|
setDirection("right");
|
||||||
setCurrentSlide((init) => init + 1);
|
setCurrentSlide((init) => init + 1);
|
||||||
} else if (
|
} else if (currentSlide !== 0 && swipe > swipeConfidenceThreshold) {
|
||||||
currentSlide != 0 &&
|
|
||||||
swipe > swipeConfidenceThreshold
|
|
||||||
) {
|
|
||||||
setDirection("left");
|
setDirection("left");
|
||||||
setCurrentSlide((init) => init - 1);
|
setCurrentSlide((init) => init - 1);
|
||||||
}
|
}
|
||||||
@@ -87,7 +85,7 @@ const Carousel = ({ content, onChange }) => {
|
|||||||
<IconButton
|
<IconButton
|
||||||
className="carousel-button right"
|
className="carousel-button right"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (currentSlide == content.length - 1) {
|
if (currentSlide === content.length - 1) {
|
||||||
setDirection("right");
|
setDirection("right");
|
||||||
setCurrentSlide(0);
|
setCurrentSlide(0);
|
||||||
} else if (currentSlide < content.length - 1) {
|
} else if (currentSlide < content.length - 1) {
|
||||||
@@ -106,11 +104,11 @@ const Carousel = ({ content, onChange }) => {
|
|||||||
{content.map((item, index) => (
|
{content.map((item, index) => (
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
currentSlide == index
|
currentSlide === index
|
||||||
? "carousel-indicator active"
|
? "carousel-indicator active"
|
||||||
: "carousel-indicator"
|
: "carousel-indicator"
|
||||||
}
|
}
|
||||||
key={index}
|
key={item.Id}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (currentSlide > index) {
|
if (currentSlide > index) {
|
||||||
setDirection("left");
|
setDirection("left");
|
||||||
|
|||||||
@@ -1,34 +1,33 @@
|
|||||||
/** @format */
|
|
||||||
import React, { memo } from "react";
|
import React, { memo } from "react";
|
||||||
import { Blurhash } from "react-blurhash";
|
import { Blurhash } from "react-blurhash";
|
||||||
|
|
||||||
import { motion } from "framer-motion";
|
import { motion } from "framer-motion";
|
||||||
|
|
||||||
import Paper from "@mui/material/Paper";
|
|
||||||
import Typography from "@mui/material/Typography";
|
|
||||||
import Stack from "@mui/material/Stack";
|
|
||||||
import Chip from "@mui/material/Chip";
|
|
||||||
import Button from "@mui/material/Button";
|
import Button from "@mui/material/Button";
|
||||||
|
import Chip from "@mui/material/Chip";
|
||||||
|
import Paper from "@mui/material/Paper";
|
||||||
|
import Stack from "@mui/material/Stack";
|
||||||
|
import Typography from "@mui/material/Typography";
|
||||||
|
|
||||||
import { yellow } from "@mui/material/colors";
|
import { yellow } from "@mui/material/colors";
|
||||||
import ErrorBoundary from "../errorBoundary";
|
import ErrorBoundary from "../errorBoundary";
|
||||||
|
|
||||||
import CarouselSlideError from "../errors/carousel";
|
import { green, red } from "@mui/material/colors";
|
||||||
import { MdiStar } from "../icons/mdiStar";
|
|
||||||
import { endsAt, getRuntime } from "../../utils/date/time";
|
|
||||||
import { useNavigate } from "react-router-dom";
|
|
||||||
import { MediaTypeIconCollection, getTypeIcon } from "../utils/iconsCollection";
|
|
||||||
import { MdiChevronRight } from "../icons/mdiChevronRight";
|
|
||||||
import { useQuery } from "@tanstack/react-query";
|
import { useQuery } from "@tanstack/react-query";
|
||||||
import { red, green } from "@mui/material/colors";
|
import { useNavigate } from "react-router-dom";
|
||||||
|
import { endsAt, getRuntime } from "../../utils/date/time";
|
||||||
|
import CarouselSlideError from "../errors/carousel";
|
||||||
|
import { MdiChevronRight } from "../icons/mdiChevronRight";
|
||||||
|
import { MdiStar } from "../icons/mdiStar";
|
||||||
|
import { MediaTypeIconCollection, getTypeIcon } from "../utils/iconsCollection";
|
||||||
|
|
||||||
|
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
|
||||||
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api";
|
||||||
|
import { useApi } from "../../utils/store/api";
|
||||||
|
import { useCarouselStore } from "../../utils/store/carousel";
|
||||||
import LikeButton from "../buttons/likeButton";
|
import LikeButton from "../buttons/likeButton";
|
||||||
import MarkPlayedButton from "../buttons/markPlayedButton";
|
import MarkPlayedButton from "../buttons/markPlayedButton";
|
||||||
import { useCarouselStore } from "../../utils/store/carousel";
|
|
||||||
import PlayButton from "../buttons/playButton";
|
import PlayButton from "../buttons/playButton";
|
||||||
import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
|
|
||||||
import { useApi } from "../../utils/store/api";
|
|
||||||
|
|
||||||
const availableSpecialRoutes = [
|
const availableSpecialRoutes = [
|
||||||
BaseItemKind.Series,
|
BaseItemKind.Series,
|
||||||
@@ -53,7 +52,7 @@ const CarouselSlide = ({ item }) => {
|
|||||||
const user = useQuery({
|
const user = useQuery({
|
||||||
queryKey: ["user"],
|
queryKey: ["user"],
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
let usr = await getUserApi(api).getCurrentUser();
|
const usr = await getUserApi(api).getCurrentUser();
|
||||||
return usr.data;
|
return usr.data;
|
||||||
},
|
},
|
||||||
networkMode: "always",
|
networkMode: "always",
|
||||||
@@ -69,9 +68,7 @@ const CarouselSlide = ({ item }) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const [animationDirection] = useCarouselStore((state) => [
|
const [animationDirection] = useCarouselStore((state) => [state.direction]);
|
||||||
state.direction,
|
|
||||||
]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ErrorBoundary fallback={<CarouselSlideError itemName={item.Name} />}>
|
<ErrorBoundary fallback={<CarouselSlideError itemName={item.Name} />}>
|
||||||
@@ -86,15 +83,11 @@ const CarouselSlide = ({ item }) => {
|
|||||||
<div className="hero-carousel-background-container">
|
<div className="hero-carousel-background-container">
|
||||||
{!!item.ImageBlurHashes.Backdrop && (
|
{!!item.ImageBlurHashes.Backdrop && (
|
||||||
<>
|
<>
|
||||||
{Object.keys(item.ImageBlurHashes.Backdrop)
|
{Object.keys(item.ImageBlurHashes.Backdrop).length !== 0 && (
|
||||||
.length != 0 && (
|
|
||||||
<Blurhash
|
<Blurhash
|
||||||
hash={
|
hash={
|
||||||
item.ImageBlurHashes.Backdrop[
|
item.ImageBlurHashes.Backdrop[
|
||||||
Object.keys(
|
Object.keys(item.ImageBlurHashes.Backdrop)[0]
|
||||||
item.ImageBlurHashes
|
|
||||||
.Backdrop,
|
|
||||||
)[0]
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
// hash="LEHV6nWB2yk8pyo0adR*.7kCMdnj"
|
// hash="LEHV6nWB2yk8pyo0adR*.7kCMdnj"
|
||||||
@@ -107,6 +100,7 @@ const CarouselSlide = ({ item }) => {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<img
|
<img
|
||||||
|
alt={item.Name}
|
||||||
className="hero-carousel-background-image"
|
className="hero-carousel-background-image"
|
||||||
src={
|
src={
|
||||||
item.ParentBackdropItemId
|
item.ParentBackdropItemId
|
||||||
@@ -116,9 +110,9 @@ const CarouselSlide = ({ item }) => {
|
|||||||
style={{
|
style={{
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
}}
|
}}
|
||||||
onLoad={(e) =>
|
onLoad={(e) => {
|
||||||
(e.target.style.opacity = 1)
|
e.target.style.opacity = 1;
|
||||||
}
|
}}
|
||||||
loading="eager"
|
loading="eager"
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
@@ -132,7 +126,7 @@ const CarouselSlide = ({ item }) => {
|
|||||||
component={motion.div}
|
component={motion.div}
|
||||||
initial={{
|
initial={{
|
||||||
transform:
|
transform:
|
||||||
animationDirection == "right"
|
animationDirection === "right"
|
||||||
? "translateX(60px)"
|
? "translateX(60px)"
|
||||||
: "translateX(-60px)",
|
: "translateX(-60px)",
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
@@ -143,7 +137,7 @@ const CarouselSlide = ({ item }) => {
|
|||||||
}}
|
}}
|
||||||
exit={{
|
exit={{
|
||||||
transform:
|
transform:
|
||||||
animationDirection == "right"
|
animationDirection === "right"
|
||||||
? "translateX(-60px)"
|
? "translateX(-60px)"
|
||||||
: "translateX(60px)",
|
: "translateX(60px)",
|
||||||
|
|
||||||
@@ -165,22 +159,17 @@ const CarouselSlide = ({ item }) => {
|
|||||||
item.Name
|
item.Name
|
||||||
) : (
|
) : (
|
||||||
<img
|
<img
|
||||||
|
alt={item.Name}
|
||||||
className="hero-carousel-text-logo"
|
className="hero-carousel-text-logo"
|
||||||
src={
|
src={`${api.basePath}/Items/${item.Id}/Images/Logo?quality=90&tag=${item.ImageTags.Logo}`}
|
||||||
api.basePath +
|
|
||||||
"/Items/" +
|
|
||||||
item.Id +
|
|
||||||
"/Images/Logo?quality=90&tag=" +
|
|
||||||
item.ImageTags.Logo
|
|
||||||
}
|
|
||||||
style={{
|
style={{
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
transition: "opacity 0.2s",
|
transition: "opacity 0.2s",
|
||||||
objectFit: "contain",
|
objectFit: "contain",
|
||||||
}}
|
}}
|
||||||
onLoad={(e) =>
|
onLoad={(e) => {
|
||||||
(e.target.style.opacity = 1)
|
e.target.style.opacity = 1;
|
||||||
}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -188,7 +177,7 @@ const CarouselSlide = ({ item }) => {
|
|||||||
component={motion.div}
|
component={motion.div}
|
||||||
initial={{
|
initial={{
|
||||||
transform:
|
transform:
|
||||||
animationDirection == "right"
|
animationDirection === "right"
|
||||||
? "translateX(20px)"
|
? "translateX(20px)"
|
||||||
: "translateX(-20px)",
|
: "translateX(-20px)",
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
@@ -199,7 +188,7 @@ const CarouselSlide = ({ item }) => {
|
|||||||
}}
|
}}
|
||||||
exit={{
|
exit={{
|
||||||
transform:
|
transform:
|
||||||
animationDirection == "right"
|
animationDirection === "right"
|
||||||
? "translateX(-20px)"
|
? "translateX(-20px)"
|
||||||
: "translateX(20px)",
|
: "translateX(20px)",
|
||||||
|
|
||||||
@@ -216,18 +205,10 @@ const CarouselSlide = ({ item }) => {
|
|||||||
justifyItems="flex-start"
|
justifyItems="flex-start"
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography style={{ opacity: "0.8" }} variant="subtitle1">
|
||||||
style={{ opacity: "0.8" }}
|
{item.ProductionYear ? item.ProductionYear : "Unknown"}
|
||||||
variant="subtitle1"
|
|
||||||
>
|
|
||||||
{item.ProductionYear
|
|
||||||
? item.ProductionYear
|
|
||||||
: "Unknown"}
|
|
||||||
</Typography>
|
</Typography>
|
||||||
<Chip
|
<Chip variant="filled" label={item.OfficialRating ?? "Not Rated"} />
|
||||||
variant="filled"
|
|
||||||
label={item.OfficialRating ?? "Not Rated"}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{item.CommunityRating && (
|
{item.CommunityRating && (
|
||||||
<div
|
<div
|
||||||
@@ -255,9 +236,7 @@ const CarouselSlide = ({ item }) => {
|
|||||||
}}
|
}}
|
||||||
variant="subtitle1"
|
variant="subtitle1"
|
||||||
>
|
>
|
||||||
{Math.round(
|
{Math.round(item.CommunityRating * 10) / 10}
|
||||||
item.CommunityRating * 10,
|
|
||||||
) / 10}
|
|
||||||
</Typography>
|
</Typography>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
@@ -273,17 +252,12 @@ const CarouselSlide = ({ item }) => {
|
|||||||
<div
|
<div
|
||||||
className="material-symbols-rounded "
|
className="material-symbols-rounded "
|
||||||
style={{
|
style={{
|
||||||
color:
|
color: item.CriticRating > 50 ? green[400] : red[400],
|
||||||
item.CriticRating > 50
|
|
||||||
? green[400]
|
|
||||||
: red[400],
|
|
||||||
fontVariationSettings:
|
fontVariationSettings:
|
||||||
'"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
|
'"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{item.CriticRating > 50
|
{item.CriticRating > 50 ? "thumb_up" : "thumb_down"}
|
||||||
? "thumb_up"
|
|
||||||
: "thumb_down"}
|
|
||||||
</div>
|
</div>
|
||||||
<Typography
|
<Typography
|
||||||
style={{
|
style={{
|
||||||
@@ -297,18 +271,12 @@ const CarouselSlide = ({ item }) => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{!!item.RunTimeTicks && (
|
{!!item.RunTimeTicks && (
|
||||||
<Typography
|
<Typography style={{ opacity: "0.8" }} variant="subtitle1">
|
||||||
style={{ opacity: "0.8" }}
|
|
||||||
variant="subtitle1"
|
|
||||||
>
|
|
||||||
{getRuntime(item.RunTimeTicks)}
|
{getRuntime(item.RunTimeTicks)}
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
{!!item.RunTimeTicks && (
|
{!!item.RunTimeTicks && (
|
||||||
<Typography
|
<Typography style={{ opacity: "0.8" }} variant="subtitle1">
|
||||||
style={{ opacity: "0.8" }}
|
|
||||||
variant="subtitle1"
|
|
||||||
>
|
|
||||||
{endsAt(item.RunTimeTicks)}
|
{endsAt(item.RunTimeTicks)}
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
@@ -317,7 +285,7 @@ const CarouselSlide = ({ item }) => {
|
|||||||
component={motion.div}
|
component={motion.div}
|
||||||
initial={{
|
initial={{
|
||||||
transform:
|
transform:
|
||||||
animationDirection == "right"
|
animationDirection === "right"
|
||||||
? "translateX(20px)"
|
? "translateX(20px)"
|
||||||
: "translateX(-20px)",
|
: "translateX(-20px)",
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
@@ -328,7 +296,7 @@ const CarouselSlide = ({ item }) => {
|
|||||||
}}
|
}}
|
||||||
exit={{
|
exit={{
|
||||||
transform:
|
transform:
|
||||||
animationDirection == "right"
|
animationDirection === "right"
|
||||||
? "translateX(-20px)"
|
? "translateX(-20px)"
|
||||||
: "translateX(20px)",
|
: "translateX(20px)",
|
||||||
|
|
||||||
@@ -373,14 +341,12 @@ const CarouselSlide = ({ item }) => {
|
|||||||
}}
|
}}
|
||||||
itemUserData={item.UserData}
|
itemUserData={item.UserData}
|
||||||
audio={
|
audio={
|
||||||
item.Type == BaseItemKind.MusicAlbum ||
|
item.Type === BaseItemKind.MusicAlbum ||
|
||||||
item.Type == BaseItemKind.Audio ||
|
item.Type === BaseItemKind.Audio ||
|
||||||
item.Type == BaseItemKind.AudioBook ||
|
item.Type === BaseItemKind.AudioBook ||
|
||||||
item.Type == BaseItemKind.Playlist
|
item.Type === BaseItemKind.Playlist
|
||||||
}
|
|
||||||
playlistItem={
|
|
||||||
item.Type == BaseItemKind.Playlist
|
|
||||||
}
|
}
|
||||||
|
playlistItem={item.Type === BaseItemKind.Playlist}
|
||||||
playlistItemId={item.Id}
|
playlistItemId={item.Id}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
class ErrorBoundary extends React.Component {
|
class ErrorBoundary extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/** @format */
|
|
||||||
import React from "react";
|
|
||||||
import Paper from "@mui/material/Paper";
|
import Paper from "@mui/material/Paper";
|
||||||
import Stack from "@mui/material/Stack";
|
import Stack from "@mui/material/Stack";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
|
import React from "react";
|
||||||
import { MdiEmoticonDead } from "../icons/mdiEmoticonDead";
|
import { MdiEmoticonDead } from "../icons/mdiEmoticonDead";
|
||||||
|
|
||||||
import slideBackground from "../../assets/errorbg.png";
|
import slideBackground from "../../assets/errorbg.png";
|
||||||
@@ -20,9 +19,7 @@ const CarouselSlideError = ({ itemName }) => {
|
|||||||
backgroundSize: "cover",
|
backgroundSize: "cover",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<MdiEmoticonDead
|
<MdiEmoticonDead sx={{ fontSize: "10em", opacity: "0.8" }} />
|
||||||
sx={{ fontSize: "10em", opacity: "0.8" }}
|
|
||||||
/>
|
|
||||||
<Typography mb={2} variant="h4" sx={{ opacity: "0.5" }}>
|
<Typography mb={2} variant="h4" sx={{ opacity: "0.5" }}>
|
||||||
Error caused by
|
Error caused by
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import React from "react";
|
|
||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
import React from "react";
|
||||||
|
|
||||||
const Icon = (icon, extraProps) => {
|
const Icon = (icon, extraProps) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...extraProps}>
|
<SvgIcon {...extraProps}>
|
||||||
<path d={icon}></path>
|
<path d={icon} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import { MdiChevronLeft } from "./mdiChevronLeft";
|
|
||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
import { MdiChevronLeft } from "./mdiChevronLeft";
|
||||||
|
|
||||||
import { mdiAccount } from "@mdi/js";
|
import { mdiAccount } from "@mdi/js";
|
||||||
|
|
||||||
export const MdiAccount = (props) => {
|
export const MdiAccount = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiAccount}></path>
|
<path d={mdiAccount} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiAccountMusic } from "@mdi/js";
|
import { mdiAccountMusic } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiAccountMusic } from "@mdi/js";
|
|||||||
export const MdiAccountMusic = (props) => {
|
export const MdiAccountMusic = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiAccountMusic}></path>
|
<path d={mdiAccountMusic} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiAccountTie } from "@mdi/js";
|
import { mdiAccountTie } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiAccountTie } from "@mdi/js";
|
|||||||
export const MdiAccountTie = (props) => {
|
export const MdiAccountTie = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiAccountTie}></path>
|
<path d={mdiAccountTie} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiAlbum } from "@mdi/js";
|
import { mdiAlbum } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiAlbum } from "@mdi/js";
|
|||||||
export const MdiAlbum = (props) => {
|
export const MdiAlbum = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiAlbum}></path>
|
<path d={mdiAlbum} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiAlertDecagram } from "@mdi/js";
|
import { mdiAlertDecagram } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiAlertDecagram } from "@mdi/js";
|
|||||||
export const MdiAlertDecagram = (props) => {
|
export const MdiAlertDecagram = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiAlertDecagram}></path>
|
<path d={mdiAlertDecagram} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiArrowLeft } from "@mdi/js";
|
import { mdiArrowLeft } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiArrowLeft } from "@mdi/js";
|
|||||||
export const MdiArrowLeft = (props) => {
|
export const MdiArrowLeft = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiArrowLeft}></path>
|
<path d={mdiArrowLeft} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiBackburger } from "@mdi/js";
|
import { mdiBackburger } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiBackburger } from "@mdi/js";
|
|||||||
export const MdiBackburger = (props) => {
|
export const MdiBackburger = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiBackburger}></path>
|
<path d={mdiBackburger} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiBook } from "@mdi/js";
|
import { mdiBook } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiBook } from "@mdi/js";
|
|||||||
export const MdiBook = (props) => {
|
export const MdiBook = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiBook}></path>
|
<path d={mdiBook} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiBookMultiple } from "@mdi/js";
|
import { mdiBookMultiple } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiBookMultiple } from "@mdi/js";
|
|||||||
export const MdiBookMultiple = (props) => {
|
export const MdiBookMultiple = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiBookMultiple}></path>
|
<path d={mdiBookMultiple} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiBookMusic } from "@mdi/js";
|
import { mdiBookMusic } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiBookMusic } from "@mdi/js";
|
|||||||
export const MdiBookMusic = (props) => {
|
export const MdiBookMusic = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiBookMusic}></path>
|
<path d={mdiBookMusic} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiCheck } from "@mdi/js";
|
import { mdiCheck } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiCheck } from "@mdi/js";
|
|||||||
export const MdiCheck = (props) => {
|
export const MdiCheck = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiCheck}></path>
|
<path d={mdiCheck} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiChevronDown } from "@mdi/js";
|
import { mdiChevronDown } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiChevronDown } from "@mdi/js";
|
|||||||
export const MdiChevronDown = (props) => {
|
export const MdiChevronDown = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiChevronDown}></path>
|
<path d={mdiChevronDown} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiChevronLeft } from "@mdi/js";
|
import { mdiChevronLeft } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiChevronLeft } from "@mdi/js";
|
|||||||
export const MdiChevronLeft = (props) => {
|
export const MdiChevronLeft = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiChevronLeft}></path>
|
<path d={mdiChevronLeft} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiChevronRight } from "@mdi/js";
|
import { mdiChevronRight } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiChevronRight } from "@mdi/js";
|
|||||||
export const MdiChevronRight = (props) => {
|
export const MdiChevronRight = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiChevronRight}></path>
|
<path d={mdiChevronRight} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiClockOutline } from "@mdi/js";
|
import { mdiClockOutline } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiClockOutline } from "@mdi/js";
|
|||||||
export const MdiClockOutline = (props) => {
|
export const MdiClockOutline = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiClockOutline}></path>
|
<path d={mdiClockOutline} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiClose } from "@mdi/js";
|
import { mdiClose } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiClose } from "@mdi/js";
|
|||||||
export const MdiClose = (props) => {
|
export const MdiClose = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiClose}></path>
|
<path d={mdiClose} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,15 +1,12 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import { MdiChevronLeft } from "./mdiChevronLeft";
|
|
||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
import { MdiChevronLeft } from "./mdiChevronLeft";
|
||||||
|
|
||||||
import { mdiCog } from "@mdi/js";
|
import { mdiCog } from "@mdi/js";
|
||||||
|
|
||||||
export const MdiCog = (props) => {
|
export const MdiCog = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiCog}></path>
|
<path d={mdiCog} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiCogSync } from "@mdi/js";
|
import { mdiCogSync } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiCogSync } from "@mdi/js";
|
|||||||
export const MdiCogSync = (props) => {
|
export const MdiCogSync = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiCogSync}></path>
|
<path d={mdiCogSync} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiDelete } from "@mdi/js";
|
import { mdiDelete } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiDelete } from "@mdi/js";
|
|||||||
export const MdiDelete = (props) => {
|
export const MdiDelete = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiDelete}></path>
|
<path d={mdiDelete} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiDramaMasks } from "@mdi/js";
|
import { mdiDramaMasks } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiDramaMasks } from "@mdi/js";
|
|||||||
export const MdiDramaMasks = (props) => {
|
export const MdiDramaMasks = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiDramaMasks}></path>
|
<path d={mdiDramaMasks} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiEmoticonCry } from "@mdi/js";
|
import { mdiEmoticonCry } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiEmoticonCry } from "@mdi/js";
|
|||||||
export const MdiEmoticonCry = (props) => {
|
export const MdiEmoticonCry = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiEmoticonCry}></path>
|
<path d={mdiEmoticonCry} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiEmoticonCryOutline } from "@mdi/js";
|
import { mdiEmoticonCryOutline } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiEmoticonCryOutline } from "@mdi/js";
|
|||||||
export const MdiEmoticonCryOutline = (props) => {
|
export const MdiEmoticonCryOutline = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiEmoticonCryOutline}></path>
|
<path d={mdiEmoticonCryOutline} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiEmoticonDead } from "@mdi/js";
|
import { mdiEmoticonDead } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiEmoticonDead } from "@mdi/js";
|
|||||||
export const MdiEmoticonDead = (props) => {
|
export const MdiEmoticonDead = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiEmoticonDead}></path>
|
<path d={mdiEmoticonDead} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiEyeOffOutline } from "@mdi/js";
|
import { mdiEyeOffOutline } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiEyeOffOutline } from "@mdi/js";
|
|||||||
export const MdiEyeOffOutline = (props) => {
|
export const MdiEyeOffOutline = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiEyeOffOutline}></path>
|
<path d={mdiEyeOffOutline} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiEyeOutline } from "@mdi/js";
|
import { mdiEyeOutline } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiEyeOutline } from "@mdi/js";
|
|||||||
export const MdiEyeOutline = (props) => {
|
export const MdiEyeOutline = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiEyeOutline}></path>
|
<path d={mdiEyeOutline} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiFastForward } from "@mdi/js";
|
import { mdiFastForward } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiFastForward } from "@mdi/js";
|
|||||||
export const MdiFastForward = (props) => {
|
export const MdiFastForward = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiFastForward}></path>
|
<path d={mdiFastForward} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiFilmstrip } from "@mdi/js";
|
import { mdiFilmstrip } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiFilmstrip } from "@mdi/js";
|
|||||||
export const MdiFilmstrip = (props) => {
|
export const MdiFilmstrip = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiFilmstrip}></path>
|
<path d={mdiFilmstrip} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiFilmstripBoxMultiple } from "@mdi/js";
|
import { mdiFilmstripBoxMultiple } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiFilmstripBoxMultiple } from "@mdi/js";
|
|||||||
export const MdiFilmstripBoxMultiple = (props) => {
|
export const MdiFilmstripBoxMultiple = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiFilmstripBoxMultiple}></path>
|
<path d={mdiFilmstripBoxMultiple} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiFilterOutline } from "@mdi/js";
|
import { mdiFilterOutline } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiFilterOutline } from "@mdi/js";
|
|||||||
export const MdiFilterOutline = (props) => {
|
export const MdiFilterOutline = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiFilterOutline}></path>
|
<path d={mdiFilterOutline} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiFolderMultiple } from "@mdi/js";
|
import { mdiFolderMultiple } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiFolderMultiple } from "@mdi/js";
|
|||||||
export const MdiFolderMultiple = (props) => {
|
export const MdiFolderMultiple = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiFolderMultiple}></path>
|
<path d={mdiFolderMultiple} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiFolderMusicOutline } from "@mdi/js";
|
import { mdiFolderMusicOutline } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiFolderMusicOutline } from "@mdi/js";
|
|||||||
export const MdiFolderMusicOutline = (props) => {
|
export const MdiFolderMusicOutline = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiFolderMusicOutline}></path>
|
<path d={mdiFolderMusicOutline} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiFolderOutline } from "@mdi/js";
|
import { mdiFolderOutline } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiFolderOutline } from "@mdi/js";
|
|||||||
export const MdiFolderOutline = (props) => {
|
export const MdiFolderOutline = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiFolderOutline}></path>
|
<path d={mdiFolderOutline} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiFullscreen } from "@mdi/js";
|
import { mdiFullscreen } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiFullscreen } from "@mdi/js";
|
|||||||
export const MdiFullscreen = (props) => {
|
export const MdiFullscreen = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiFullscreen}></path>
|
<path d={mdiFullscreen} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiFullscreenExit } from "@mdi/js";
|
import { mdiFullscreenExit } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiFullscreenExit } from "@mdi/js";
|
|||||||
export const MdiFullscreenExit = (props) => {
|
export const MdiFullscreenExit = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiFullscreenExit}></path>
|
<path d={mdiFullscreenExit} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiHdr } from "@mdi/js";
|
import { mdiHdr } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiHdr } from "@mdi/js";
|
|||||||
export const MdiHdr = (props) => {
|
export const MdiHdr = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiHdr}></path>
|
<path d={mdiHdr} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiHeart } from "@mdi/js";
|
import { mdiHeart } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiHeart } from "@mdi/js";
|
|||||||
export const MdiHeart = (props) => {
|
export const MdiHeart = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiHeart}></path>
|
<path d={mdiHeart} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiHeartOutline } from "@mdi/js";
|
import { mdiHeartOutline } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiHeartOutline } from "@mdi/js";
|
|||||||
export const MdiHeartOutline = (props) => {
|
export const MdiHeartOutline = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiHeartOutline}></path>
|
<path d={mdiHeartOutline} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiHomeVariant } from "@mdi/js";
|
import { mdiHomeVariant } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiHomeVariant } from "@mdi/js";
|
|||||||
export const MdiHomeVariant = (props) => {
|
export const MdiHomeVariant = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiHomeVariant}></path>
|
<path d={mdiHomeVariant} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiHomeVariantOutline } from "@mdi/js";
|
import { mdiHomeVariantOutline } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiHomeVariantOutline } from "@mdi/js";
|
|||||||
export const MdiHomeVariantOutline = (props) => {
|
export const MdiHomeVariantOutline = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiHomeVariantOutline}></path>
|
<path d={mdiHomeVariantOutline} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiImage } from "@mdi/js";
|
import { mdiImage } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiImage } from "@mdi/js";
|
|||||||
export const MdiImage = (props) => {
|
export const MdiImage = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiImage}></path>
|
<path d={mdiImage} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiImageMultiple } from "@mdi/js";
|
import { mdiImageMultiple } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiImageMultiple } from "@mdi/js";
|
|||||||
export const MdiImageMultiple = (props) => {
|
export const MdiImageMultiple = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiImageMultiple}></path>
|
<path d={mdiImageMultiple} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiInformation } from "@mdi/js";
|
import { mdiInformation } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiInformation } from "@mdi/js";
|
|||||||
export const MdiInformation = (props) => {
|
export const MdiInformation = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiInformation}></path>
|
<path d={mdiInformation} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiLogoutVariant } from "@mdi/js";
|
import { mdiLogoutVariant } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiLogoutVariant } from "@mdi/js";
|
|||||||
export const MdiLogoutVariant = (props) => {
|
export const MdiLogoutVariant = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiLogoutVariant}></path>
|
<path d={mdiLogoutVariant} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiMagnify } from "@mdi/js";
|
import { mdiMagnify } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiMagnify } from "@mdi/js";
|
|||||||
export const MdiMagnify = (props) => {
|
export const MdiMagnify = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiMagnify}></path>
|
<path d={mdiMagnify} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiMenu } from "@mdi/js";
|
import { mdiMenu } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiMenu } from "@mdi/js";
|
|||||||
export const MdiMenu = (props) => {
|
export const MdiMenu = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiMenu}></path>
|
<path d={mdiMenu} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiMicrophone } from "@mdi/js";
|
import { mdiMicrophone } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiMicrophone } from "@mdi/js";
|
|||||||
export const MdiMicrophone = (props) => {
|
export const MdiMicrophone = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiMicrophone}></path>
|
<path d={mdiMicrophone} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiMovieOutline } from "@mdi/js";
|
import { mdiMovieOutline } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiMovieOutline } from "@mdi/js";
|
|||||||
export const MdiMovieOutline = (props) => {
|
export const MdiMovieOutline = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiMovieOutline}></path>
|
<path d={mdiMovieOutline} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiMultimedia } from "@mdi/js";
|
import { mdiMultimedia } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiMultimedia } from "@mdi/js";
|
|||||||
export const MdiMultimedia = (props) => {
|
export const MdiMultimedia = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiMultimedia}></path>
|
<path d={mdiMultimedia} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiMusic } from "@mdi/js";
|
import { mdiMusic } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiMusic } from "@mdi/js";
|
|||||||
export const MdiMusic = (props) => {
|
export const MdiMusic = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiMusic}></path>
|
<path d={mdiMusic} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiMusicBoxMultipleOutline } from "@mdi/js";
|
import { mdiMusicBoxMultipleOutline } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiMusicBoxMultipleOutline } from "@mdi/js";
|
|||||||
export const MdiMusicBoxMultipleOutline = (props) => {
|
export const MdiMusicBoxMultipleOutline = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiMusicBoxMultipleOutline}></path>
|
<path d={mdiMusicBoxMultipleOutline} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiPause } from "@mdi/js";
|
import { mdiPause } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiPause } from "@mdi/js";
|
|||||||
export const MdiPause = (props) => {
|
export const MdiPause = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiPause}></path>
|
<path d={mdiPause} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiPictureInPictureBottomRight } from "@mdi/js";
|
import { mdiPictureInPictureBottomRight } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiPictureInPictureBottomRight } from "@mdi/js";
|
|||||||
export const MdiPictureInPictureBottomRight = (props) => {
|
export const MdiPictureInPictureBottomRight = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiPictureInPictureBottomRight}></path>
|
<path d={mdiPictureInPictureBottomRight} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiPlay } from "@mdi/js";
|
import { mdiPlay } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiPlay } from "@mdi/js";
|
|||||||
export const MdiPlay = (props) => {
|
export const MdiPlay = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiPlay}></path>
|
<path d={mdiPlay} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiPlayBoxMultiple } from "@mdi/js";
|
import { mdiPlayBoxMultiple } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiPlayBoxMultiple } from "@mdi/js";
|
|||||||
export const MdiPlayBoxMultiple = (props) => {
|
export const MdiPlayBoxMultiple = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiPlayBoxMultiple}></path>
|
<path d={mdiPlayBoxMultiple} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiPlayOutline } from "@mdi/js";
|
import { mdiPlayOutline } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiPlayOutline } from "@mdi/js";
|
|||||||
export const MdiPlayOutline = (props) => {
|
export const MdiPlayOutline = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiPlayOutline}></path>
|
<path d={mdiPlayOutline} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiPlaySpeed } from "@mdi/js";
|
import { mdiPlaySpeed } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiPlaySpeed } from "@mdi/js";
|
|||||||
export const MdiPlaySpeed = (props) => {
|
export const MdiPlaySpeed = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiPlaySpeed}></path>
|
<path d={mdiPlaySpeed} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiPlaylistMusicOutline } from "@mdi/js";
|
import { mdiPlaylistMusicOutline } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiPlaylistMusicOutline } from "@mdi/js";
|
|||||||
export const MdiPlaylistMusicOutline = (props) => {
|
export const MdiPlaylistMusicOutline = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiPlaylistMusicOutline}></path>
|
<path d={mdiPlaylistMusicOutline} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiRewind } from "@mdi/js";
|
import { mdiRewind } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiRewind } from "@mdi/js";
|
|||||||
export const MdiRewind = (props) => {
|
export const MdiRewind = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiRewind}></path>
|
<path d={mdiRewind} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiSkipNext } from "@mdi/js";
|
import { mdiSkipNext } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiSkipNext } from "@mdi/js";
|
|||||||
export const MdiSkipNext = (props) => {
|
export const MdiSkipNext = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiSkipNext}></path>
|
<path d={mdiSkipNext} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiSkipPrevious } from "@mdi/js";
|
import { mdiSkipPrevious } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiSkipPrevious } from "@mdi/js";
|
|||||||
export const MdiSkipPrevious = (props) => {
|
export const MdiSkipPrevious = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiSkipPrevious}></path>
|
<path d={mdiSkipPrevious} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiSortAscending } from "@mdi/js";
|
import { mdiSortAscending } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiSortAscending } from "@mdi/js";
|
|||||||
export const MdiSortAscending = (props) => {
|
export const MdiSortAscending = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiSortAscending}></path>
|
<path d={mdiSortAscending} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiSortDescending } from "@mdi/js";
|
import { mdiSortDescending } from "@mdi/js";
|
||||||
@@ -6,7 +5,7 @@ import { mdiSortDescending } from "@mdi/js";
|
|||||||
export const MdiSortDescending = (props) => {
|
export const MdiSortDescending = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiSortDescending}></path>
|
<path d={mdiSortDescending} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiStar } from "@mdi/js";
|
import { mdiStar } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiStar } from "@mdi/js";
|
|||||||
export const MdiStar = (props) => {
|
export const MdiStar = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiStar}></path>
|
<path d={mdiStar} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiStarHalfFull } from "@mdi/js";
|
import { mdiStarHalfFull } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiStarHalfFull } from "@mdi/js";
|
|||||||
export const MdiStarHalfFull = (props) => {
|
export const MdiStarHalfFull = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiStarHalfFull}></path>
|
<path d={mdiStarHalfFull} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiTelevision } from "@mdi/js";
|
import { mdiTelevision } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiTelevision } from "@mdi/js";
|
|||||||
export const MdiTelevision = (props) => {
|
export const MdiTelevision = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiTelevision}></path>
|
<path d={mdiTelevision} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import SvgIcon from "@mui/material/SvgIcon";
|
import SvgIcon from "@mui/material/SvgIcon";
|
||||||
|
|
||||||
import { mdiTelevisionClassic } from "@mdi/js";
|
import { mdiTelevisionClassic } from "@mdi/js";
|
||||||
@@ -7,7 +5,7 @@ import { mdiTelevisionClassic } from "@mdi/js";
|
|||||||
export const MdiTelevisionClassic = (props) => {
|
export const MdiTelevisionClassic = (props) => {
|
||||||
return (
|
return (
|
||||||
<SvgIcon {...props}>
|
<SvgIcon {...props}>
|
||||||
<path d={mdiTelevisionClassic}></path>
|
<path d={mdiTelevisionClassic} />
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
Loaded 100 of 189 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user