refactor(auth): streamline onboarding process and enhance registration flow

- Removed the onboarding module and its associated components to simplify the application structure.
- Introduced a new welcome module with components for site schema and registration wizard.
- Updated routing to direct users to the new welcome page for tenant registration.
- Enhanced the registration process by integrating social authentication options and improving user experience.
- Refactored related hooks and utilities to support the new onboarding flow.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-11-10 00:55:20 +08:00
parent 5cae9431c0
commit 4064c1341c
68 changed files with 1095 additions and 2815 deletions

View File

@@ -1,5 +1,48 @@
const RESERVED_SLUGS = ['admin', 'docs', 'support', 'status', 'api', 'assets', 'static', 'www'] as const
// prettier-ignore
export const RESERVED_SLUGS = [
// 基础系统路径
'admin', 'root', 'system', 'internal', 'core', 'config', 'setup', 'install', 'init',
'docs', 'documentation', 'guide', 'help', 'faq', 'manual',
'support', 'contact', 'feedback', 'status', 'about', 'legal', 'terms', 'privacy',
// 静态资源相关
'api', 'apis', 'assets', 'static', 'cdn', 'storage', 'media', 'uploads', 'files',
'images', 'img', 'videos', 'audio', 'documents', 'downloads', 'public', 'private',
'shared', 'tmp', 'cache',
// 组织 / 团队
'team', 'workspace', 'workspaces', 'project', 'projects',
'organization', 'org', 'company', 'community', 'forum', 'group', 'groups',
// 用户 / 账户相关
'user', 'users', 'profile', 'profiles', 'account', 'accounts', 'me', 'my',
'auth', 'login', 'logout', 'register', 'signup', 'signin', 'forgot', 'reset', 'verify',
// 业务逻辑 / 控制面板
'dashboard', 'panel', 'console', 'control', 'settings', 'preferences',
'manage', 'management', 'adminpanel', 'portal',
// 通信 / 消息系统
'chat', 'forum', 'discussion', 'thread', 'messaging', 'messages',
'inbox', 'notifications', 'alerts', 'logs', 'events', 'activity', 'feed', 'timeline',
// 数据 / 分析
'reports', 'analytics', 'metrics', 'insights', 'monitor', 'monitoring',
// 电商 / 支付
'billing', 'payments', 'payment', 'subscriptions', 'subscription',
'invoices', 'receipts', 'refunds', 'discounts', 'coupons', 'promotions',
'offers', 'deals', 'sales', 'shop', 'store', 'purchases', 'orders', 'cart', 'checkout',
// 站点级别
'www', 'home', 'landing', 'index', 'holding', 'test', 'dev', 'beta', 'staging',
// 其他常见保留词
'search', 'explore', 'discover', 'new', 'create', 'edit', 'update', 'delete', 'remove',
'api-docs', 'health', 'ping', 'robots', 'sitemap', 'manifest', 'favicon', 'version',
'v1', 'v2', 'old', 'archive', 'preview', 'embed', 'share', 'link', 'connect', 'integrations',
'oauth', 'callback', 'webhook', 'hooks',
] as const
export const RESERVED_TENANT_SLUGS = RESERVED_SLUGS
export type ReservedTenantSlug = (typeof RESERVED_TENANT_SLUGS)[number]