Unify workspace dropdowns; Update layouts (#458)
Unified Account and Workspace drop-downs; Layout updates, now header lives within the PageBody component; Sidebars now use floating variant
This commit is contained in:
committed by
GitHub
parent
ca585e09be
commit
4bc8448a1d
@@ -1,4 +1,4 @@
|
||||
import { z } from 'zod';
|
||||
import * as z from 'zod';
|
||||
|
||||
export const MailerSchema = z
|
||||
.object({
|
||||
|
||||
@@ -1,28 +1,21 @@
|
||||
import 'server-only';
|
||||
|
||||
import { z } from 'zod';
|
||||
import * as z from 'zod';
|
||||
|
||||
export const SmtpConfigSchema = z.object({
|
||||
user: z.string({
|
||||
description:
|
||||
'This is the email account to send emails from. This is specific to the email provider.',
|
||||
required_error: `Please provide the variable EMAIL_USER`,
|
||||
error: `Please provide the variable EMAIL_USER`,
|
||||
}),
|
||||
pass: z.string({
|
||||
description: 'This is the password for the email account',
|
||||
required_error: `Please provide the variable EMAIL_PASSWORD`,
|
||||
error: `Please provide the variable EMAIL_PASSWORD`,
|
||||
}),
|
||||
host: z.string({
|
||||
description: 'This is the SMTP host for the email provider',
|
||||
required_error: `Please provide the variable EMAIL_HOST`,
|
||||
error: `Please provide the variable EMAIL_HOST`,
|
||||
}),
|
||||
port: z.number({
|
||||
description:
|
||||
'This is the port for the email provider. Normally 587 or 465.',
|
||||
required_error: `Please provide the variable EMAIL_PORT`,
|
||||
error: `Please provide the variable EMAIL_PORT`,
|
||||
}),
|
||||
secure: z.boolean({
|
||||
description: 'This is whether the connection is secure or not',
|
||||
required_error: `Please provide the variable EMAIL_TLS`,
|
||||
error: `Please provide the variable EMAIL_TLS`,
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user