feat: dont generate xxx domains
Lint / Oxlint (push) Successful in 46s
Lint / TypeScript (push) Successful in 46s
Lint / ESLint (push) Successful in 1m19s
Deploy / Build (push) Successful in 1m19s
Deploy / Deploy to Stapler (push) Successful in 5m30s

This commit is contained in:
2026-06-26 10:58:22 +02:00
parent a6a07b7001
commit ecf427b1e2
5 changed files with 87 additions and 56 deletions
+16
View File
@@ -60,6 +60,13 @@ function checkAvailability() {
}
}
function removeExt() {
if (domain.value) {
props.factory.removeExt(domain.value.extension);
newDomain();
}
}
function getTextClass() {
if (!domain.value || domain.value.name.length < 15) {
return "text-5xl";
@@ -121,5 +128,14 @@ watch(i18n.locale, newDomain);
>
{{ $t("button.new_domain") }}
</button>
<br />
<p v-if="domain && state === State.Ready">
<small
><a class="underline" href="#" @click.prevent="removeExt">{{
$t("page_random.dont_suggest", { ext: `.${domain.extension}` })
}}</a></small
>
</p>
<p v-else>&nbsp;</p>
</div>
</template>