Shish
615da9e9d2
fix all the tests (for sqlite, php7.4, osx, at least)
2020-01-28 21:19:59 +00:00
Shish
3631084afd
format
2020-01-26 16:38:26 +00:00
Shish
9eb5acf2dc
use strict types
2020-01-26 16:27:56 +00:00
Shish
d7a290b635
index prefetch
2020-01-19 19:13:05 +00:00
Shish
c7d90c2df7
nits
2019-11-04 01:04:12 +00:00
Shish
ee3754ae79
Merge branch 'master' of https://github.com/shish/shimmie2
2019-11-03 16:28:00 +00:00
Shish
b568933f45
remove extension metadata comments (we have metadata objects now)
2019-11-02 20:19:09 +00:00
Matthew Barbour
6b030c00eb
Constants for index config
2019-10-18 16:26:11 +01:00
Shish
5b2e9e44a2
note a TODO
2019-10-04 21:08:33 +01:00
Shish
134d2c029c
limit results by default (ideally we'd have a --limit flag...)
2019-10-04 21:02:16 +01:00
Shish
577d5c572a
search from CLI for integration with other unix tools
2019-10-04 20:48:59 +01:00
Shish
e08cdb1638
make Cache its own thing, separate from Database
2019-10-02 10:49:32 +01:00
Shish
a6bb15d859
formatting
2019-09-29 14:30:55 +01:00
Matthew Barbour
de98e86938
ExtensionInfo conversions what have I done
2019-08-07 15:40:01 -05:00
Matthew Barbour
a18589ee0a
Help extension
...
Provides foundation for help pages that are generated from loaded extensions, starting with comprehensive search documentation. Addresses #522
2019-08-05 09:03:49 -05:00
Matthew Barbour
00464d2579
Implemented a nav link generating system so that extension power what shows up in the menus rather than being hard-coded in the themes.
2019-08-05 09:01:20 -05:00
Matthew Barbour
972b68bdd3
Setup constants
2019-08-05 09:00:23 -05:00
Shish
eb3cc73bce
make pages >500 visible to logged-in users
2019-07-19 10:24:17 +01:00
Shish
3dce134fe9
better error for >500 pages
2019-07-08 11:10:35 +01:00
Shish
38df37a9aa
limit 500 pages of search results in speed hax mode
2019-07-07 19:23:48 +01:00
Matthew Barbour
1370afec72
Moved database driver constants to DatabaseDriver
2019-06-20 10:47:15 -05:00
Matthew Barbour
826c623538
PageMode constants
2019-06-18 21:04:31 -05:00
Matthew Barbour
6f501a6e74
Database driver constants
2019-06-14 13:38:47 -05:00
Shish
bf473f6d51
more lint fixes
2019-05-29 18:23:29 +01:00
Shish
2396ae2ef9
fix a bunch of lints
2019-05-28 20:27:23 +01:00
Shish
93cc732d39
fix tests
2019-05-28 19:00:23 +01:00
Shish
34b05cca7c
PSR-2. I'm not a huge fan, but ugly consistency beats no consistency...
2019-05-28 17:59:38 +01:00
Shish
5ec3e89884
php7.1 all the things
2019-05-28 17:31:20 +01:00
Shish
60a28af000
s/implode/Tag::implode/
2019-02-02 12:07:33 +00:00
Shish
f772b30301
fix some tests
2018-11-07 15:12:09 +00:00
Shish
9d3f4ea4b3
move ext-specific js into that ext
2018-11-05 23:12:18 +00:00
Shish
9b0edcf449
also don't even follow links from deep search pages
2018-07-19 08:51:19 +01:00
Shish
4c73b27d1e
tell google to stop indexing /post/list/-cake%20-pie/34342
2018-07-15 20:34:52 +01:00
Shish
977c3db1e3
PHP7 type annotations
2017-09-21 05:21:42 +01:00
Shish
d875ab66a1
60 second post-list cache
2017-08-22 01:05:18 +01:00
jgen
204ea1d239
And more linting.
2017-03-12 17:13:32 -07:00
Scrutinizer Auto-Fixer
1caef6d633
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2017-03-12 23:45:38 +00:00
jgen
8de816d7dd
Some more linting via PHPDoc comments.
2017-03-12 00:18:26 -08:00
Shish
7be951b271
Convert tags from user-supplied string to array once, on input
...
This results in a fuckton of refactoring and code cancelling out
other code -- we no longer have a whole bunch of places trying
to support string params and array params, and doing their own
esaping and unescaping, never being quite sure if the data they've
been passed is escaped or not.
Also adds a bunch of type hinting, since we can now know what
data we're dealing with better.
2016-07-30 22:11:49 +01:00
Shish
8c8106c6a9
fix index var access
2016-07-03 11:48:08 +01:00
Shish
6febdec7b5
more explicit variable types
2016-06-19 23:05:57 +01:00
Shish
edd3e49a2f
mark wildcard test incomplete on pgsql / sqlite
2016-06-19 14:06:26 +01:00
Shish
7bc9a73357
migrate to a non-deprecated (and dependency-free) cookie library
2016-06-18 00:00:02 +01:00
Shish
3d05c2896a
expand test cases
2016-06-07 01:56:05 +01:00
Shish
c41c9d680f
search tests
2016-06-06 22:42:40 +01:00
Daku
6d1c7c414b
mysql < 5.6 has terrible subquery optimization, using EXISTS / JOIN fixes this
2015-12-04 11:38:44 +00:00
Shish
1ac88e8923
more comments
2015-09-27 12:38:48 +01:00
Shish
8c1e3bc92a
mark tests as public
2015-09-26 11:17:13 +01:00
Shish
c337abe280
skip tests for extensions who don't support the current db
2015-09-21 10:05:32 +01:00
Shish
fc2bbefcb9
test all the things
2015-09-20 22:40:04 +01:00
Shish
9af5995dcc
PHPUnit proof of concept
2015-09-20 20:03:29 +01:00
Shish
35a4f385b3
phpstorm tidying
2015-09-12 11:43:28 +01:00
Shish
18490ed488
more global removal
2015-08-02 20:39:41 +01:00
Daku
be18140944
added option to hide random link on paginator (only post/list should show now)
2015-04-18 10:41:32 +01:00
Daku
8c2d8df81d
use html5 input types
...
we would use type='url' for source but non-urls can be used as source too
2015-04-18 10:39:34 +01:00
Daku
7166259cc5
autocomplete='off' for tag input
...
this disables autocomplete/captilize on "most" mobile keyboards
autocompletejs still works with this off
2015-04-18 10:39:22 +01:00
Shish
5d099c06f9
remove references to unused cache values
2014-12-06 23:51:58 +00:00
Shish
c0dfd9adc0
a little extra consistency in cache variable names
2014-11-26 13:09:49 +00:00
Shish
50d40c1c81
give IndexTheme:display_page some sub-functions to make them easier to customise
2014-08-24 16:29:32 +01:00
jgen
8a2eb4b121
Fixing more PHP Doc related issues.
2014-04-27 19:29:36 -04:00
jgen
50686ac61e
More linting, fix PHPDoc style.
2014-04-24 22:29:29 -04:00
jgen
daee99c1bc
Removing the closing PHP "?>" tag as per style guidelines.
2014-04-24 22:28:53 -04:00
Shish
f72bfbb050
fix indentation
2014-04-06 20:47:01 +01:00
Shish
c8aa3327a1
A bunch of small changes from scrutinizer-ci; some tidying, some actual bug fixes
2014-03-30 13:26:48 +01:00
Shish
7b68d8ebfd
use new-style constructors everywhere
2014-03-22 09:00:59 +00:00
Daku
258fda188e
use different selector rather than hardcoding url
2014-03-08 15:20:50 +00:00
Daku
d675827173
order[=|:]random_#### metatag
...
possible replacement for random_list ext?
2014-02-24 19:54:15 +00:00
jgen
f4f94e6273
Merge pull request #379 from DakuTree/patch-2
...
Misc tweaks/fixes (fixes/closes issue 17 & 323)
2014-02-21 13:40:15 -05:00
Daku
eb16ab09ed
order images sorted by score
...
this is solution for issue #17 (Method to sort by top scored images in numeric_score module)
2014-02-16 02:28:39 +00:00
Daku
16bb38f343
onSearchTermParse regex should be case insensitive
2014-02-15 21:26:31 +00:00
Daku
b7a4de90e4
updated docs with new metatags
2014-02-05 14:11:13 +00:00
Daku
b5f70de496
change source metatag regex to allow searching for URLs
2014-01-14 07:52:45 +00:00
Daku
55ff224ac0
added any/none options to the source/pool metatags
2014-01-14 06:27:12 +00:00
Daku
ce256f5bf4
added pool & pool_by_name search metatags
2014-01-14 06:12:34 +00:00
Daku
325da11119
artist/comment/numeric_score metatags now work using :
...
also updated docs
2014-01-13 09:13:56 +00:00
Daku
7d49e21792
readability + moved stuff
2014-01-13 08:19:12 +00:00
Daku
152f5fbf26
add config option for default order
2014-01-13 08:19:11 +00:00
Daku
2c2f27ca64
add order metatag
...
not too happy with how this works...but it does work
2014-01-13 08:19:11 +00:00
Daku
14899e79ad
added height & width metatags
2014-01-02 14:10:08 +00:00
Daku
25c286b71f
add support for using : as a metatag seperator + updated docs
2014-01-02 14:00:24 +00:00
jgen
0512858bd4
Some more small tweaks for speed.
2013-10-04 17:17:42 -04:00
Shish
07304861f3
log IDs of things
2013-08-30 00:19:46 +01:00
Shish
2b628a395f
resolve_list -> resolve_aliases, to better describe what it actually does
2013-08-04 18:13:50 +01:00
Shish
7e89481105
have Tag::resolve_list always take an array
2013-08-04 18:11:02 +01:00
Shish
47c1b5d094
move query-string-passing to JS rather than embedding in the HTML, so that the HTML can be commonised and cached better
2013-07-05 22:32:16 +01:00
Shish
5c13fcac62
resolve aliases on input as well, so the target shows in the url
2013-06-20 22:59:42 +01:00
Shish
b6235695da
unique IDs for 'posted' search params
2013-06-16 12:20:53 +01:00
Shish
f3aad43fa3
merge the two List Controls blocks
2012-08-18 19:23:11 +01:00
Shish
5022d2b965
more tags, more opera glitch workarounds
2012-08-15 21:19:51 +01:00
Shish
6394cd8100
make shm-thumb use consistent across themes, with data-tags and data-post-id
2012-08-15 20:42:56 +01:00
Shish
8c39c29528
make tag hiding a little more consistent
2012-08-15 20:22:25 +01:00
Shish
0bc4ebafa5
somewhat excessive caching for index pages
2012-06-24 02:07:59 +01:00
Shish
4cbd00c039
Merge branch 'master' of github.com:shish/shimmie2
2012-05-16 05:32:56 +01:00
Daku
3618c2dbb9
forgot to removing testing :x
2012-05-02 21:13:37 +01:00
Daku
d6de529ca5
should work properly with lite theme now..
2012-05-02 20:48:39 +01:00
Shish
f81fa08077
source search
2012-04-05 17:33:50 +01:00
Shish
fdb6727f41
don't fail at multiple searches on the same param (eg 'id>=X id<=Y')
2012-04-05 16:18:41 +01:00
Shish
6991bb9462
tag_editcloud breaks 'for i in array'
2012-04-03 03:52:17 +01:00
Shish
e24b144acb
test updates
2012-04-01 18:47:14 +01:00
Shish
678215e4bd
width / height were never used individually, now just have images
2012-04-01 17:47:39 +01:00
Daku
546b7ea21e
blocked tags will also set thumbblock div to 0 if theme is lite
2012-03-30 05:05:16 +01:00
Shish
0b45042161
ui- prefix for UI cookies
2012-03-24 11:23:06 +00:00
Shish
ecad3b9891
only refresh if needed
2012-03-22 16:35:44 +00:00
Shish
f993b3c19d
js cookie expires
2012-03-22 16:28:57 +00:00
Shish
cfe0547755
force reflow after hiding some thumbs
2012-03-22 15:44:04 +00:00
Shish
898df24dd9
function for selecting blocks
2012-03-22 14:19:46 +00:00
Shish
2226bc9f15
hide thumbnails with given tags
2012-03-22 13:40:13 +00:00
Shish
4db92471e1
404 for no images
2012-03-19 14:25:43 +00:00
Shish
05f8d0d23e
justify~
2012-03-12 15:43:18 +00:00
Shish
aaf9280ee4
more styling
2012-03-12 04:56:30 +00:00
Shish
f2dfbb9080
no background for image-list
2012-03-12 04:41:57 +00:00
Shish
eb8c15b9a0
whitespace
2012-03-09 22:08:55 +00:00
Shish
5d3d4e8d76
test fixes
2012-03-09 18:56:06 +00:00
Shish
7b6112dc2c
and document it
2012-02-17 01:45:55 +00:00
Shish
a6f8ce2a14
better search by date
2012-02-17 01:43:49 +00:00
Shish
339f2b0497
more jquery magic, less inline scripting
2012-02-09 14:45:18 +00:00
Shish
efa7f4f17c
autocomplete on a class name
2012-02-09 14:34:29 +00:00
Shish
0698b780f9
remove regular Extension, have SimpleExtension take its place, optimise the event system based on SimpleExtension methods
2012-02-08 12:07:01 +00:00
Shish
ab7c62515e
move JS bits into static files
2012-02-07 11:33:42 +00:00
Shish
dc6c173efd
type hints for hiphop
2012-02-02 08:07:57 +00:00
Shish
465011a68c
hiphop chokes on this
2012-02-02 05:27:40 +00:00
green-ponies (jgen)
8252534cff
Small changes with quotes.
2012-01-15 23:03:27 -05:00
green-ponies (jgen)
2c6b5128c6
More tweaks for minor speed gains.
2012-01-12 21:17:37 -05:00
green-ponies (jgen)
6c3e91e01c
changed script tags to include language
2011-08-12 21:40:51 -04:00
Shish
66e6cdd0a1
hopefully fix search by ID range, and related bits
2011-02-22 15:03:16 +00:00
Shish
46ce762949
A bunch of testing / fixes
2010-05-05 14:16:24 +01:00
Shish
c94e16f814
selectfirst is annoying
2010-04-28 11:21:02 +01:00
Shish
c8b7d639df
a bunch of autocompletion
2010-04-26 06:00:41 +01:00
Shish
65962a591a
Revert "search field autocomplete"
...
This reverts commit 29d9c7ae16
.
zshall has already done this, better >_<
2010-04-26 05:03:58 +01:00
Shish
29d9c7ae16
search field autocomplete
2010-04-26 04:56:45 +01:00
Shish
a92a91dedb
index extension
2010-04-26 02:36:05 +01:00
Shish
f0b9f8909d
test another path
2010-04-06 14:44:19 +01:00
Shish
1ede4443fc
test wildcards
2010-04-06 14:44:13 +01:00
Shish
4c24f44af8
more tests for search methods
2010-03-12 18:55:03 +00:00
Shish
ffb625fde5
doc fix
2010-02-27 02:09:10 +00:00
Shish
5f88ba906f
post/view?search -> post/view#search for better caching
2010-02-09 10:05:57 +00:00
Shish
18c0fa7df8
more documentation, and set some extensions to be hidden from the user docs list
2010-01-05 13:13:11 +00:00
Shish
31201aeab9
documentation
2010-01-05 09:40:26 +00:00
Shish
6c5e917864
search by number of tags
2010-01-05 09:05:16 +00:00
Shish
bd42beded8
update extensions links
2010-01-04 12:44:20 +00:00
Shish
c7b4cf8ead
documentation updates
2010-01-04 12:41:04 +00:00
Shish
440fdb88c2
don't redirect-to-image if this is a single image on the last page of several pages
2009-12-30 09:29:25 +00:00
Shish
1946e3c943
consistent naming for test functions
2009-08-19 01:28:48 +01:00
Shish
28fd3e311f
replace numeric_score 'favorite' with 'upvoted_by=name' (and add the same for downvote)
2009-08-13 19:28:14 +01:00
Shish
92217f0435
test that too
2009-08-02 08:59:19 +01:00
Shish
e340927b07
also allow search by 'md5='
2009-08-02 08:58:32 +01:00
Shish
aa7969cdde
MOAR TESTING.
2009-07-20 06:51:51 +01:00
Shish
d959c174a1
more tests, more fixes
2009-07-19 18:00:16 +01:00
Shish
f574d0d81d
more tests and fixes
2009-07-19 17:39:24 +01:00
Shish
4abf2ac7dd
more tests
2009-07-16 20:21:28 +01:00