Make custom domain configuration not required
This commit is contained in:
parent
7789065353
commit
ac0b584ae0
@ -1,14 +1,12 @@
|
||||
import InfoBlock from '@/components/InfoBlock';
|
||||
import SiteGrid from '@/components/SiteGrid';
|
||||
import { CONFIG_CHECKLIST_STATUS } from '@/site/config';
|
||||
import { IS_CHECKLIST_COMPLETE } from '@/site/config';
|
||||
import SiteChecklist from '@/site/SiteChecklist';
|
||||
import { cc } from '@/utility/css';
|
||||
import Link from 'next/link';
|
||||
import { HiOutlinePhotograph } from 'react-icons/hi';
|
||||
|
||||
export default function PhotosEmptyState() {
|
||||
const showChecklist = Object.values(CONFIG_CHECKLIST_STATUS).some(v => !v);
|
||||
|
||||
return (
|
||||
<SiteGrid
|
||||
contentMain={
|
||||
@ -21,9 +19,9 @@ export default function PhotosEmptyState() {
|
||||
'font-bold text-2xl',
|
||||
'text-gray-700 dark:text-gray-200',
|
||||
)}>
|
||||
{showChecklist ? 'Finish Setup' : 'Welcome!'}
|
||||
{!IS_CHECKLIST_COMPLETE ? 'Finish Setup' : 'Welcome!'}
|
||||
</div>
|
||||
{showChecklist
|
||||
{!IS_CHECKLIST_COMPLETE
|
||||
? <SiteChecklist />
|
||||
: <div className="max-w-md leading-[1.7] text-center">
|
||||
<div className="mb-2">
|
||||
|
||||
@ -31,3 +31,10 @@ export const CONFIG_CHECKLIST_STATUS = {
|
||||
(process.env.ADMIN_PASSWORD ?? '').length > 0
|
||||
),
|
||||
};
|
||||
|
||||
export const IS_CHECKLIST_COMPLETE =
|
||||
CONFIG_CHECKLIST_STATUS.hasTitle &&
|
||||
CONFIG_CHECKLIST_STATUS.hasPostgres &&
|
||||
CONFIG_CHECKLIST_STATUS.hasBlob &&
|
||||
CONFIG_CHECKLIST_STATUS.hasAuth &&
|
||||
CONFIG_CHECKLIST_STATUS.hasAdminUser;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user