chore: initialize WanderQ MiniAPP 2.0 repository

This commit is contained in:
inman
2026-07-23 15:48:34 +08:00
commit b4c0a1c516
93 changed files with 53525 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
export const DESTINATION_PAGE_CONFIG_ID = "destination-home";
export const DESTINATION_RECOMMENDATION_LIMIT = 4;
export function normalizeDestinationRecommendationIds(value: unknown) {
if (!Array.isArray(value)) return [];
return [...new Set(value.filter((item): item is string => typeof item === "string" && item.trim().length > 0).map((item) => item.trim()))].slice(
0,
DESTINATION_RECOMMENDATION_LIMIT,
);
}