Fixing code formatting, prettier
This commit is contained in:
@@ -59,6 +59,7 @@ yarn install --frozen-lockfile --network-timeout 1000000
|
|||||||
yarn run build
|
yarn run build
|
||||||
yarn start
|
yarn start
|
||||||
```
|
```
|
||||||
|
|
||||||
(you can use task scheduler to run a bat script with `@echo off` and `yarn start` to run jellyseerr in the background)
|
(you can use task scheduler to run a bat script with `@echo off` and `yarn start` to run jellyseerr in the background)
|
||||||
|
|
||||||
_to set env variables such as `JELLYFIN_TYPE=emby` create a file called `.env` in the root directory of jellyseerr_
|
_to set env variables such as `JELLYFIN_TYPE=emby` create a file called `.env` in the root directory of jellyseerr_
|
||||||
@@ -136,6 +137,7 @@ ExecStart=/usr/bin/node dist/index.js
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
```
|
```
|
||||||
|
|
||||||
### Packages:
|
### Packages:
|
||||||
|
|
||||||
Archlinux: [AUR](https://aur.archlinux.org/packages/jellyseerr)
|
Archlinux: [AUR](https://aur.archlinux.org/packages/jellyseerr)
|
||||||
|
|||||||
@@ -222,7 +222,8 @@ const JellyfinLogin: React.FC<JellyfinLoginProps> = ({
|
|||||||
const baseUrl = settings.currentSettings.jellyfinExternalHost
|
const baseUrl = settings.currentSettings.jellyfinExternalHost
|
||||||
? settings.currentSettings.jellyfinExternalHost
|
? settings.currentSettings.jellyfinExternalHost
|
||||||
: settings.currentSettings.jellyfinHost;
|
: settings.currentSettings.jellyfinHost;
|
||||||
const jellyfinForgotPasswordUrl = settings.currentSettings.jellyfinForgotPasswordUrl;
|
const jellyfinForgotPasswordUrl =
|
||||||
|
settings.currentSettings.jellyfinForgotPasswordUrl;
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Formik
|
<Formik
|
||||||
@@ -299,11 +300,15 @@ const JellyfinLogin: React.FC<JellyfinLoginProps> = ({
|
|||||||
<Button
|
<Button
|
||||||
as="a"
|
as="a"
|
||||||
buttonType="ghost"
|
buttonType="ghost"
|
||||||
href={jellyfinForgotPasswordUrl ? `${jellyfinForgotPasswordUrl}` :
|
href={
|
||||||
`${baseUrl}/web/index.html#!/${process.env.JELLYFIN_TYPE === 'emby'
|
jellyfinForgotPasswordUrl
|
||||||
? 'startup/'
|
? `${jellyfinForgotPasswordUrl}`
|
||||||
: ''
|
: `${baseUrl}/web/index.html#!/${
|
||||||
}forgotpassword.html`}
|
process.env.JELLYFIN_TYPE === 'emby'
|
||||||
|
? 'startup/'
|
||||||
|
: ''
|
||||||
|
}forgotpassword.html`
|
||||||
|
}
|
||||||
>
|
>
|
||||||
{intl.formatMessage(messages.forgotpassword)}
|
{intl.formatMessage(messages.forgotpassword)}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -176,20 +176,20 @@ const SettingsJellyfin: React.FC<SettingsJellyfinProps> = ({
|
|||||||
<h3 className="heading">
|
<h3 className="heading">
|
||||||
{publicRuntimeConfig.JELLYFIN_TYPE == 'emby'
|
{publicRuntimeConfig.JELLYFIN_TYPE == 'emby'
|
||||||
? intl.formatMessage(messages.jellyfinlibraries, {
|
? intl.formatMessage(messages.jellyfinlibraries, {
|
||||||
mediaServerName: 'Emby',
|
mediaServerName: 'Emby',
|
||||||
})
|
})
|
||||||
: intl.formatMessage(messages.jellyfinlibraries, {
|
: intl.formatMessage(messages.jellyfinlibraries, {
|
||||||
mediaServerName: 'Jellyfin',
|
mediaServerName: 'Jellyfin',
|
||||||
})}
|
})}
|
||||||
</h3>
|
</h3>
|
||||||
<p className="description">
|
<p className="description">
|
||||||
{publicRuntimeConfig.JELLYFIN_TYPE == 'emby'
|
{publicRuntimeConfig.JELLYFIN_TYPE == 'emby'
|
||||||
? intl.formatMessage(messages.jellyfinlibrariesDescription, {
|
? intl.formatMessage(messages.jellyfinlibrariesDescription, {
|
||||||
mediaServerName: 'Emby',
|
mediaServerName: 'Emby',
|
||||||
})
|
})
|
||||||
: intl.formatMessage(messages.jellyfinlibrariesDescription, {
|
: intl.formatMessage(messages.jellyfinlibrariesDescription, {
|
||||||
mediaServerName: 'Jellyfin',
|
mediaServerName: 'Jellyfin',
|
||||||
})}
|
})}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="section">
|
<div className="section">
|
||||||
@@ -228,11 +228,11 @@ const SettingsJellyfin: React.FC<SettingsJellyfinProps> = ({
|
|||||||
<p className="description">
|
<p className="description">
|
||||||
{publicRuntimeConfig.JELLYFIN_TYPE == 'emby'
|
{publicRuntimeConfig.JELLYFIN_TYPE == 'emby'
|
||||||
? intl.formatMessage(messages.manualscanDescriptionJellyfin, {
|
? intl.formatMessage(messages.manualscanDescriptionJellyfin, {
|
||||||
mediaServerName: 'Emby',
|
mediaServerName: 'Emby',
|
||||||
})
|
})
|
||||||
: intl.formatMessage(messages.manualscanDescriptionJellyfin, {
|
: intl.formatMessage(messages.manualscanDescriptionJellyfin, {
|
||||||
mediaServerName: 'Jellyfin',
|
mediaServerName: 'Jellyfin',
|
||||||
})}
|
})}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="section">
|
<div className="section">
|
||||||
@@ -276,11 +276,11 @@ const SettingsJellyfin: React.FC<SettingsJellyfinProps> = ({
|
|||||||
values={{
|
values={{
|
||||||
count: dataSync.currentLibrary
|
count: dataSync.currentLibrary
|
||||||
? dataSync.libraries.slice(
|
? dataSync.libraries.slice(
|
||||||
dataSync.libraries.findIndex(
|
dataSync.libraries.findIndex(
|
||||||
(library) =>
|
(library) =>
|
||||||
library.id === dataSync.currentLibrary?.id
|
library.id === dataSync.currentLibrary?.id
|
||||||
) + 1
|
) + 1
|
||||||
).length
|
).length
|
||||||
: 0,
|
: 0,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
@@ -338,20 +338,20 @@ const SettingsJellyfin: React.FC<SettingsJellyfinProps> = ({
|
|||||||
<h3 className="heading">
|
<h3 className="heading">
|
||||||
{publicRuntimeConfig.JELLYFIN_TYPE == 'emby'
|
{publicRuntimeConfig.JELLYFIN_TYPE == 'emby'
|
||||||
? intl.formatMessage(messages.jellyfinSettings, {
|
? intl.formatMessage(messages.jellyfinSettings, {
|
||||||
mediaServerName: 'Emby',
|
mediaServerName: 'Emby',
|
||||||
})
|
})
|
||||||
: intl.formatMessage(messages.jellyfinSettings, {
|
: intl.formatMessage(messages.jellyfinSettings, {
|
||||||
mediaServerName: 'Jellyfin',
|
mediaServerName: 'Jellyfin',
|
||||||
})}
|
})}
|
||||||
</h3>
|
</h3>
|
||||||
<p className="description">
|
<p className="description">
|
||||||
{publicRuntimeConfig.JELLYFIN_TYPE == 'emby'
|
{publicRuntimeConfig.JELLYFIN_TYPE == 'emby'
|
||||||
? intl.formatMessage(messages.jellyfinSettingsDescription, {
|
? intl.formatMessage(messages.jellyfinSettingsDescription, {
|
||||||
mediaServerName: 'Emby',
|
mediaServerName: 'Emby',
|
||||||
})
|
})
|
||||||
: intl.formatMessage(messages.jellyfinSettingsDescription, {
|
: intl.formatMessage(messages.jellyfinSettingsDescription, {
|
||||||
mediaServerName: 'Jellyfin',
|
mediaServerName: 'Jellyfin',
|
||||||
})}
|
})}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<Formik
|
<Formik
|
||||||
@@ -445,7 +445,10 @@ const SettingsJellyfin: React.FC<SettingsJellyfinProps> = ({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="form-row">
|
<div className="form-row">
|
||||||
<label htmlFor="jellyfinForgotPasswordUrl" className="text-label">
|
<label
|
||||||
|
htmlFor="jellyfinForgotPasswordUrl"
|
||||||
|
className="text-label"
|
||||||
|
>
|
||||||
{intl.formatMessage(messages.jellyfinForgotPasswordUrl)}
|
{intl.formatMessage(messages.jellyfinForgotPasswordUrl)}
|
||||||
</label>
|
</label>
|
||||||
<div className="form-input-area">
|
<div className="form-input-area">
|
||||||
|
|||||||
Reference in New Issue
Block a user