feat: add contributing guidelines and pull request template; update schema comments and documentation

This commit is contained in:
shuaiplus committed 2026-05-07 20:29:39 +08:00
1 parent 33f7c5d88a
commit 37ae493fa7
22 files changed
+284 -5

No files matched your search

@@ -1,6 +1,12 @@
import type { UserDomainSettings } from '../types';
import { normalizeCustomEquivalentDomains, normalizeEquivalentDomains } from './domain-rules';
// Storage adapter for the domain_settings table.
//
// CONTRACT:
// equivalent_domains is kept as the active derived groups for compatibility and
// fallback reads. custom_equivalent_domains is the full rule list that preserves
// UI/client state. Save both together through saveUserDomainSettings().
function parseJsonArray<T>(raw: string | null | undefined, fallback: T[]): T[] {
if (!raw) return fallback;
try {