chore: checkpoint ai search comments and i18n foundation

This commit is contained in:
2026-03-28 17:17:31 +08:00
parent d18a709987
commit ec96d91548
71 changed files with 9494 additions and 423 deletions

View File

@@ -47,7 +47,8 @@
button,
input,
textarea {
textarea,
select {
font: inherit;
}
@@ -455,7 +456,8 @@
}
.field input,
.field textarea {
.field textarea,
.field select {
width: 100%;
border: 1px solid var(--line);
border-radius: 14px;
@@ -676,6 +678,27 @@
location.reload();
}
async function adminDelete(url, successMessage) {
const confirmed = confirm("确认删除这条记录吗?此操作无法撤销。");
if (!confirmed) {
return;
}
const response = await fetch(url, {
method: "DELETE"
});
if (!response.ok) {
throw new Error(await response.text() || "request failed");
}
if (successMessage) {
alert(successMessage);
}
location.reload();
}
</script>
{% block page_scripts %}{% endblock %}
</body>