mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-06 20:16:57 +00:00
swap search blocks to reduce merge effort
This commit is contained in:
parent
7b4089b8e4
commit
ffa92d222c
1 changed files with 11 additions and 11 deletions
|
@ -88,17 +88,6 @@ async function search() {
|
|||
}
|
||||
//#endregion
|
||||
|
||||
if (query.length > 1 && !query.includes(' ') && query.startsWith('#')) {
|
||||
const confirm = await os.confirm({
|
||||
type: 'info',
|
||||
text: i18n.ts.openTagPageConfirm,
|
||||
});
|
||||
if (!confirm.canceled) {
|
||||
router.push(`/user-tags/${encodeURIComponent(query.substring(1))}`);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (query.match(/^@[a-z0-9_.-]+@[a-z0-9_.-]+$/i)) {
|
||||
const confirm = await os.confirm({
|
||||
type: 'info',
|
||||
|
@ -110,6 +99,17 @@ async function search() {
|
|||
}
|
||||
}
|
||||
|
||||
if (query.length > 1 && !query.includes(' ') && query.startsWith('#')) {
|
||||
const confirm = await os.confirm({
|
||||
type: 'info',
|
||||
text: i18n.ts.openTagPageConfirm,
|
||||
});
|
||||
if (!confirm.canceled) {
|
||||
router.push(`/user-tags/${encodeURIComponent(query.substring(1))}`);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
userPagination.value = {
|
||||
endpoint: 'users/search',
|
||||
limit: 10,
|
||||
|
|
Loading…
Add table
Reference in a new issue