fix: links page + add more validations

This commit is contained in:
Calum committed 2025-07-13 14:34:56 +01:00
1 parent 729d584757
commit 27caf336cc
5 files changed
+238 -5

No files matched your search

-2
View File
@@ -1360,8 +1360,6 @@ const currentMember = computed(() => {
};
}
console.log("Current member:", val);
return val;
});
@@ -170,17 +170,17 @@ const wikiUrl = ref(props.project.wiki_url);
const discordUrl = ref(props.project.discord_url);
const isIssuesUrlCommon = computed(() => {
if (issuesUrl.value.trim() === "") return true;
if (issuesUrl.value?.trim().length ?? 0 === 0) return true;
return isCommonUrl(issuesUrl.value, commonLinkDomains.issues);
});
const isSourceUrlCommon = computed(() => {
if (sourceUrl.value.trim() === "") return true;
if (sourceUrl.value?.trim().length ?? 0 === 0) return true;
return isCommonUrl(sourceUrl.value, commonLinkDomains.source);
});
const isDiscordUrlCommon = computed(() => {
if (discordUrl.value.trim() === "") return true;
if (discordUrl.value?.trim().length ?? 0 === 0) return true;
return isCommonUrl(discordUrl.value, commonLinkDomains.discord);
});