feat(links): align the friends page layout and submit UI

- assemble the friends template with page header, search cover, content position, widget zones and comments
- render the three page title styles and the tabbed search cover
- restore card, category nav and submit modal markup for the friends page
- add page content style support to the page editor
- port the linked card, category nav and submit modal styles to the mobile and desktop breakpoints

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Opus 5 committed 2026-11-05 21:09:40 +08:00
1 parent 4c562428b4
commit f53cdd4dc8
7 files changed
+328 -402

No files matched your search

+21 -5
View File
@@ -30,6 +30,18 @@
});
}
function closeModal() {
var modal = document.getElementById('submit-links-modal');
if (!modal) return;
if (window.jQuery) {
window.jQuery(modal).modal('hide');
return;
}
modal.classList.remove('show', 'in', 'is-open');
modal.setAttribute('aria-hidden', 'true');
document.body.classList.remove('modal-open');
}
form.addEventListener('submit', function (event) {
event.preventDefault();
if (button && button.disabled) return;
@@ -70,11 +82,7 @@
if (button) button.disabled = false;
if (button) button.innerHTML = original;
if (captcha) captcha.reset('friend_link', form);
window.setTimeout(function () {
var modal = document.getElementById('submit-links-modal');
if (modal) modal.classList.remove('show', 'is-open');
setStatus('', '');
}, 1800);
window.setTimeout(closeModal, 1800);
}).catch(function (error) {
setStatus(error.message || i18n.error || '提交失败,请重试', 'danger');
if (button) {
@@ -84,4 +92,12 @@
if (captcha) captcha.reset('friend_link', form);
});
});
document.addEventListener('click', function (event) {
var dismiss = event.target.closest('#submit-links-modal [data-dismiss="modal"]');
if (dismiss) {
event.preventDefault();
closeModal();
}
});
})();