Reduced aliases for searches
This commit is contained in:
parent
8c108ccfbf
commit
e811b1a876
3 changed files with 15 additions and 15 deletions
24
TODO
24
TODO
|
@ -30,13 +30,13 @@ everything related to posts:
|
||||||
- search filters
|
- search filters
|
||||||
- submit:rr-
|
- submit:rr-
|
||||||
- comment:rr-
|
- comment:rr-
|
||||||
- comment: 3..5
|
- comment_count: 3..5
|
||||||
- fav:rr-
|
- fav:rr-
|
||||||
- fav:3..5
|
- fav_count:3..5
|
||||||
- score:3..5
|
- score:3..5
|
||||||
- tag:3..5
|
- tag_count:3..5
|
||||||
- filesize:3K..5M
|
- file_size:3K..5M
|
||||||
- imgsize:huge/large/medium/small
|
- image_size:huge/large/medium/small
|
||||||
- hash:postName
|
- hash:postName
|
||||||
- type:img/flash/yt/video
|
- type:img/flash/yt/video
|
||||||
- special:liked
|
- special:liked
|
||||||
|
@ -45,14 +45,14 @@ everything related to posts:
|
||||||
- special:hidden
|
- special:hidden
|
||||||
- search order
|
- search order
|
||||||
- order:id
|
- order:id
|
||||||
- order:date
|
- order:time
|
||||||
- order:score
|
- order:score
|
||||||
- order:comments
|
- order:comment_count
|
||||||
- order:favs
|
- order:fav_count
|
||||||
- order:tags
|
- order:tag_count
|
||||||
- order:commentdate
|
- order:comment_time
|
||||||
- order:favdate
|
- order:fav_time
|
||||||
- order:filesize
|
- order:file_size
|
||||||
- order:random (at least unstable version)
|
- order:random (at least unstable version)
|
||||||
|
|
||||||
everything related to users:
|
everything related to users:
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
<a class="big-button" data-order="name,desc">Sort Z→A</a>
|
<a class="big-button" data-order="name,desc">Sort Z→A</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a class="big-button" data-order="registrationTime,asc">Sort old→new</a>
|
<a class="big-button" data-order="registration_time,asc">Sort old→new</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a class="big-button" data-order="registrationTime,desc">Sort new→old</a>
|
<a class="big-button" data-order="registration_time,desc">Sort new→old</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ class UserSearchParser extends AbstractSearchParser
|
||||||
if ($token === 'name')
|
if ($token === 'name')
|
||||||
return \Szurubooru\SearchServices\Filters\UserFilter::ORDER_NAME;
|
return \Szurubooru\SearchServices\Filters\UserFilter::ORDER_NAME;
|
||||||
|
|
||||||
if (in_array($token, ['registrationDate', 'registrationTime', 'registered', 'joinDate', 'joinTime', 'joined']))
|
elseif ($token === 'registration_time')
|
||||||
return \Szurubooru\SearchServices\Filters\UserFilter::ORDER_REGISTRATION_TIME;
|
return \Szurubooru\SearchServices\Filters\UserFilter::ORDER_REGISTRATION_TIME;
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue