feat(dns): add db-backed DNS provider, domain, and record management with ops UI support
This commit is contained in:
@@ -4,7 +4,7 @@ import * as appstate from './appstate.js';
|
||||
const SmartRouter = plugins.domtools.plugins.smartrouter.SmartRouter;
|
||||
|
||||
// Flat top-level views (no subviews)
|
||||
const flatViews = ['logs', 'certificates'] as const;
|
||||
const flatViews = ['logs'] as const;
|
||||
|
||||
// Tabbed views and their valid subviews
|
||||
const subviewMap: Record<string, readonly string[]> = {
|
||||
@@ -13,6 +13,7 @@ const subviewMap: Record<string, readonly string[]> = {
|
||||
email: ['log', 'security'] as const,
|
||||
access: ['apitokens', 'users'] as const,
|
||||
security: ['overview', 'blocked', 'authentication'] as const,
|
||||
domains: ['providers', 'domains', 'dns', 'certificates'] as const,
|
||||
};
|
||||
|
||||
// Default subview when user visits the bare parent URL
|
||||
@@ -22,6 +23,7 @@ const defaultSubview: Record<string, string> = {
|
||||
email: 'log',
|
||||
access: 'apitokens',
|
||||
security: 'overview',
|
||||
domains: 'domains',
|
||||
};
|
||||
|
||||
export const validTopLevelViews = [...flatViews, ...Object.keys(subviewMap)] as const;
|
||||
|
||||
Reference in New Issue
Block a user