Skip to content

Commit 5be66fb

Browse files
committed
♻️ Rename (#1619)
1 parent ddd51e8 commit 5be66fb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib/components/TaskSearchBox.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
);
5050
};
5151
52-
let searchWordsOrURL = $state('');
52+
let searchQueryOrURL = $state('');
5353
let filteredTasks = $derived(
5454
tasks
55-
.filter((task: Task) => isMatched(task, searchWordsOrURL))
55+
.filter((task: Task) => isMatched(task, searchQueryOrURL))
5656
.slice(0, 30)
5757
.sort((firstTask: Task, secondTask: Task) =>
5858
firstTask.task_table_index.localeCompare(secondTask.task_table_index),
@@ -105,10 +105,10 @@
105105
type="search"
106106
placeholder="問題名かURLを入力してください。"
107107
class="flex-grow space-y-2"
108-
bind:value={searchWordsOrURL}
108+
bind:value={searchQueryOrURL}
109109
onchange={(e) => {
110110
if (e.target instanceof HTMLInputElement) {
111-
searchWordsOrURL = e.target.value;
111+
searchQueryOrURL = e.target.value;
112112
focusingId = PENDING;
113113
}
114114
}}
@@ -129,7 +129,7 @@
129129
workBookTaskMaxForTable = results.updatedWorkBookTasksForTable.length;
130130
selectedIndex = results.updatedWorkBookTasksForTable.length;
131131

132-
searchWordsOrURL = '';
132+
searchQueryOrURL = '';
133133
focusingId = PENDING;
134134
}
135135
} else if (e.key === 'ArrowDown') {
@@ -193,7 +193,7 @@
193193
workBookTaskMaxForTable = results.updatedWorkBookTasksForTable.length;
194194
selectedIndex = results.updatedWorkBookTasksForTable.length;
195195

196-
searchWordsOrURL = '';
196+
searchQueryOrURL = '';
197197
focusingId = PENDING;
198198
}}
199199
>

0 commit comments

Comments
 (0)