From d9788c4aa9f87e2eda3f7e3f1adc985f16039552 Mon Sep 17 00:00:00 2001 From: sct Date: Wed, 16 Dec 2020 01:35:26 +0000 Subject: [PATCH] feat(frontend): temporary logs page to clear up confusion about it 404ing This commit also disables the "Run Now" buttons under Jobs until they actually work re #272 --- src/components/Settings/SettingsJobs.tsx | 2 +- src/components/Settings/SettingsLogs/index.tsx | 17 +++++++++++++++++ src/pages/settings/logs.tsx | 14 ++++++++++++++ src/styles/globals.css | 4 ++++ 4 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 src/components/Settings/SettingsLogs/index.tsx create mode 100644 src/pages/settings/logs.tsx diff --git a/src/components/Settings/SettingsJobs.tsx b/src/components/Settings/SettingsJobs.tsx index 5e9364b04..78e5e3f74 100644 --- a/src/components/Settings/SettingsJobs.tsx +++ b/src/components/Settings/SettingsJobs.tsx @@ -46,7 +46,7 @@ const SettingsJobs: React.FC = () => { - diff --git a/src/components/Settings/SettingsLogs/index.tsx b/src/components/Settings/SettingsLogs/index.tsx new file mode 100644 index 000000000..9c6d9cf79 --- /dev/null +++ b/src/components/Settings/SettingsLogs/index.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + +// We will localize this file when the complete version is released. + +const SettingsLogs: React.FC = () => { + return ( + <> +
+ Logs page is still being built. For now, you can access your logs + directly in stdout (container logs) or looking in{' '} + /app/config/logs/overseerr.logs +
+ + ); +}; + +export default SettingsLogs; diff --git a/src/pages/settings/logs.tsx b/src/pages/settings/logs.tsx new file mode 100644 index 000000000..2b50be3ac --- /dev/null +++ b/src/pages/settings/logs.tsx @@ -0,0 +1,14 @@ +import { NextPage } from 'next'; +import React from 'react'; +import SettingsLayout from '../../components/Settings/SettingsLayout'; +import SettingsLogs from '../../components/Settings/SettingsLogs'; + +const SettingsLogsPage: NextPage = () => { + return ( + + + + ); +}; + +export default SettingsLogsPage; diff --git a/src/styles/globals.css b/src/styles/globals.css index 0bbdb4881..18c2b0ff0 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -47,3 +47,7 @@ body { -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */ } + +code { + @apply bg-gray-800 py-1 px-2 rounded-md; +}