Fix CI errors

This commit is contained in:
2026-06-22 23:37:06 +09:30
parent 5df9169705
commit 410c953933
8 changed files with 158 additions and 30 deletions
@@ -260,7 +260,7 @@
const hideModal = (relatedTheme?: Theme | null) => {
const hideModal = (relatedTheme = null) => {
animate(
+8 -3
View File
@@ -101,10 +101,15 @@
showCloudPanel = true;
};
const showDisclaimer = (onConfirm: () => void, onCancel: () => void, title?: string, message?: string) => {
const showDisclaimer = (
onConfirm: () => void,
onCancel: () => void,
title = "Confirm",
message = "",
) => {
disclaimerCallbacks = { onConfirm, onCancel };
disclaimerTitle = title ?? "Confirm";
disclaimerMessage = message ?? "";
disclaimerTitle = title;
disclaimerMessage = message;
showDisclaimerModal = true;
};
@@ -10,7 +10,7 @@
const segments = $derived(getSegments(text, term, matches));
// Build highlight map (copied and adapted from highlightMatch)
function getSegments(text: string, term: string, matches?: readonly FuseResultMatch[]) {
function getSegments(text: string, term: string, matches = undefined) {
if (!term.trim() || !matches || matches.length === 0) return [{ text, highlight: false }];
try {