mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
feat(about): show config directory (#2600)
* feat(about): show config directory * feat(about): run yarn i18n:extract * refactor(about): use existing appdata path method * feat(about): suggested changes * refactor(logs): rename variable to be more consistent * feat: suggested changes
This commit is contained in:

committed by
GitHub

parent
d92f169375
commit
0c7373c7e8
@@ -3042,6 +3042,9 @@ paths:
|
||||
type: string
|
||||
nullable: true
|
||||
example: Asia/Tokyo
|
||||
appDataPath:
|
||||
type: string
|
||||
example: /app/config
|
||||
/auth/me:
|
||||
get:
|
||||
summary: Get logged-in user
|
||||
|
@@ -17,6 +17,7 @@ export interface SettingsAboutResponse {
|
||||
totalRequests: number;
|
||||
totalMediaItems: number;
|
||||
tz?: string;
|
||||
appDataPath: string;
|
||||
}
|
||||
|
||||
export interface PublicSettingsResponse {
|
||||
|
@@ -26,6 +26,7 @@ import { plexFullScanner } from '../../lib/scanners/plex';
|
||||
import { getSettings, MainSettings } from '../../lib/settings';
|
||||
import logger from '../../logger';
|
||||
import { isAuthenticated } from '../../middleware/auth';
|
||||
import { appDataPath } from '../../utils/appDataVolume';
|
||||
import { getAppVersion } from '../../utils/appVersion';
|
||||
import notificationRoutes from './notifications';
|
||||
import radarrRoutes from './radarr';
|
||||
@@ -564,6 +565,7 @@ settingsRoutes.get('/about', async (req, res) => {
|
||||
totalMediaItems,
|
||||
totalRequests,
|
||||
tz: process.env.TZ,
|
||||
appDataPath: appDataPath(),
|
||||
} as SettingsAboutResponse);
|
||||
});
|
||||
|
||||
|
@@ -24,6 +24,7 @@ const messages = defineMessages({
|
||||
gettingsupport: 'Getting Support',
|
||||
githubdiscussions: 'GitHub Discussions',
|
||||
timezone: 'Time Zone',
|
||||
appDataPath: 'Data Directory',
|
||||
supportoverseerr: 'Support Overseerr',
|
||||
helppaycoffee: 'Help Pay for Coffee',
|
||||
documentation: 'Documentation',
|
||||
@@ -143,6 +144,9 @@ const SettingsAbout: React.FC = () => {
|
||||
<List.Item title={intl.formatMessage(messages.totalrequests)}>
|
||||
{intl.formatNumber(data.totalRequests)}
|
||||
</List.Item>
|
||||
<List.Item title={intl.formatMessage(messages.appDataPath)}>
|
||||
<code>{data.appDataPath}</code>
|
||||
</List.Item>
|
||||
{data.tz && (
|
||||
<List.Item title={intl.formatMessage(messages.timezone)}>
|
||||
<code>{data.tz}</code>
|
||||
|
@@ -31,7 +31,7 @@ import Transition from '../../Transition';
|
||||
const messages = defineMessages({
|
||||
logs: 'Logs',
|
||||
logsDescription:
|
||||
'You can also view these logs directly via <code>stdout</code>, or in <code>{configDir}/logs/overseerr.log</code>.',
|
||||
'You can also view these logs directly via <code>stdout</code>, or in <code>{appDataPath}/logs/overseerr.log</code>.',
|
||||
time: 'Timestamp',
|
||||
level: 'Severity',
|
||||
label: 'Label',
|
||||
@@ -235,7 +235,7 @@ const SettingsLogs: React.FC = () => {
|
||||
code: function code(msg) {
|
||||
return <code className="bg-opacity-50">{msg}</code>;
|
||||
},
|
||||
configDir: appData ? appData.appDataPath : '/app/config',
|
||||
appDataPath: appData ? appData.appDataPath : '/app/config',
|
||||
})}
|
||||
</p>
|
||||
<div className="mt-2 flex flex-grow flex-row sm:flex-grow-0 sm:justify-end">
|
||||
|
@@ -564,6 +564,7 @@
|
||||
"components.Settings.SettingsAbout.Releases.viewchangelog": "View Changelog",
|
||||
"components.Settings.SettingsAbout.Releases.viewongithub": "View on GitHub",
|
||||
"components.Settings.SettingsAbout.about": "About",
|
||||
"components.Settings.SettingsAbout.appDataPath": "Data Directory",
|
||||
"components.Settings.SettingsAbout.betawarning": "This is BETA software. Features may be broken and/or unstable. Please report any issues on GitHub!",
|
||||
"components.Settings.SettingsAbout.documentation": "Documentation",
|
||||
"components.Settings.SettingsAbout.gettingsupport": "Getting Support",
|
||||
@@ -625,7 +626,7 @@
|
||||
"components.Settings.SettingsLogs.level": "Severity",
|
||||
"components.Settings.SettingsLogs.logDetails": "Log Details",
|
||||
"components.Settings.SettingsLogs.logs": "Logs",
|
||||
"components.Settings.SettingsLogs.logsDescription": "You can also view these logs directly via <code>stdout</code>, or in <code>{configDir}/logs/overseerr.log</code>.",
|
||||
"components.Settings.SettingsLogs.logsDescription": "You can also view these logs directly via <code>stdout</code>, or in <code>{appDataPath}/logs/overseerr.log</code>.",
|
||||
"components.Settings.SettingsLogs.message": "Message",
|
||||
"components.Settings.SettingsLogs.pauseLogs": "Pause",
|
||||
"components.Settings.SettingsLogs.resumeLogs": "Resume",
|
||||
|
Reference in New Issue
Block a user