Commit graph

280 commits

Author SHA1 Message Date
Marcin Kurczewski
992b9ba5ac Restored previous entity retrieval
Using temporary tables turned out to be more expensive on bigger databases.
Restoring two queries version.
2013-11-30 18:13:46 +01:00
Marcin Kurczewski
4285aff671 Fixes to preloading 2013-11-30 16:19:48 +01:00
Marcin Kurczewski
31ccb9a281 Optimalization: changed entity retrieval 2013-11-30 14:23:53 +01:00
Marcin Kurczewski
01c54d4d83 Optimalization: simplified selectors
Squash
2013-11-30 14:23:46 +01:00
Marcin Kurczewski
d7cb024f24 Refactored pagination queries 2013-11-30 13:59:29 +01:00
Marcin Kurczewski
c9a8f99f6a Optimization: preloading moved back to controllers
- Nearly twice faster page load
- Query count greatly dropped
2013-11-30 01:10:58 +01:00
Marcin Kurczewski
5a231b19c3 Bugfix to JS (unknown variable error) 2013-11-30 01:10:58 +01:00
Marcin Kurczewski
3dd3ca5d99 Optimalization: moved <script> from HEAD to footer 2013-11-30 01:10:58 +01:00
Marcin Kurczewski
1e954bb815 Optimalization: faster but dirty row retrieval 2013-11-30 01:10:55 +01:00
Marcin Kurczewski
d570bc1790 Optimalization: sidebar options structure
- options rendering moved to separate file
- simplified template code
- removed redundant JS
2013-11-30 00:55:28 +01:00
Marcin Kurczewski
5e58488f3e Optimalization: simplified tabs structure 2013-11-30 00:05:03 +01:00
Marcin Kurczewski
2a625db683 Added support for backets in tag names 2013-11-29 10:42:56 +01:00
Marcin Kurczewski
ef70c1523f HTML validation 2013-11-27 17:42:26 +01:00
Marcin Kurczewski
89a1b1acf7 Version upgrade (0.5.0) 2013-11-26 18:18:54 +01:00
Marcin Kurczewski
f226c3eb0c Fixed hotkeys conflicting with Flash on Chrome 2013-11-25 22:23:48 +01:00
Marcin Kurczewski
c683fa3b0f User settings: added opt-in tags in post thumbs 2013-11-25 22:23:48 +01:00
Marcin Kurczewski
505fe1bac3 Mass tag: fixed concurrent tag toggling 2013-11-25 22:23:48 +01:00
Marcin Kurczewski
9819416f35 Markdown: fixed matching ( ) and { } in links 2013-11-25 22:23:48 +01:00
Marcin Kurczewski
aa37ee66ff Various JS optimizations 2013-11-25 22:23:48 +01:00
Marcin Kurczewski
20022ea4ab Next/prev links are bound to latest search query 2013-11-25 22:23:45 +01:00
Marcin Kurczewski
d461a88001 Refactor to query builder; added triggers
Instead of recomputing comment/fav/tag count from scratch on every request,
store it in DB as *_count columns that get updated with proper triggers.
2013-11-24 21:41:38 +01:00
Marcin Kurczewski
0ef5f1b46d Absolute paths used where necessary
- No random chdir() calls
- No more exceptions when executing scripts from dirs other than root
- find-posts.php prints absolute paths making piping more useful
2013-11-23 20:52:41 +01:00
Marcin Kurczewski
0b22f2621e Markdown tweaks
- Faster log rendering
- New transform kind: simpleTransform()
2013-11-23 20:00:02 +01:00
Marcin Kurczewski
c5292580ce Post edit: added custom thumbnail indicator 2013-11-23 17:29:08 +01:00
Marcin Kurczewski
f8e19779a0 Cosmetic change to property model 2013-11-23 17:29:01 +01:00
Marcin Kurczewski
3b532532d1 Post edit: post content can now be replaced 2013-11-23 17:27:56 +01:00
Marcin Kurczewski
ee224b84db Tag list: added info when there are no tags 2013-11-23 16:03:43 +01:00
Marcin Kurczewski
d274f1c044 Fixed featured post quirks
- fixes for empty database
- when post was deleted, new one is selected automatically
2013-11-23 16:03:40 +01:00
Marcin Kurczewski
fdd49d783a Compressed logs from uploads 2013-11-23 15:39:19 +01:00
Marcin Kurczewski
18f7fff21f Uploading: empty files yield better error message 2013-11-23 15:39:19 +01:00
Marcin Kurczewski
81017e18cb Logging: improved grammar a little 2013-11-23 15:39:19 +01:00
Marcin Kurczewski
618f9e3d77 Any post type can be featured now
Automatic generator still searches only for images though.
2013-11-23 15:39:19 +01:00
Marcin Kurczewski
676c3a41e2 Logging: removed logEvent() and log prefixes
This looked ugly.
2013-11-23 15:39:19 +01:00
Marcin Kurczewski
db602f08d3 Better handling of anonymous user names 2013-11-23 15:39:19 +01:00
Marcin Kurczewski
d8997edc57 Refactor of controllers and models
- Most of model-related code moved from controllers to model classes, much
  fewer calls to R::whatever() in controllers
- Post editing and uploading shares the same code, thus making implementing
  stuff easier in the future
- Added support for default bean wiring, no more calls to R::preload() all over
  the place
- More robust concurrent post editing detection
2013-11-23 15:39:13 +01:00
Marcin Kurczewski
0a5169a7d6 JSON serializer: added exception info 2013-11-23 15:39:13 +01:00
Marcin Kurczewski
c1e763316a Fav and comments are shown only if there are any 2013-11-23 15:39:13 +01:00
Marcin Kurczewski
95b2eec461 Search queries: added search by likes/dislikes 2013-11-23 15:39:08 +01:00
Marcin Kurczewski
6e9a18c0ae Paginator: introducing "..." pseudo-pages
If delta between pages in paginator is greater than 2, it adds "..." inbetween.
If delta is equal to 2, it adds missing page link instead.

Examples:

    1,4,5 gets converted to 1,...,4,5
    1,3,4 gets converted to 1,2,3,4
2013-11-23 13:54:13 +01:00
Marcin Kurczewski
0bbeb4604f Introducing tag list sort styles
Also, increased margin in /users
2013-11-23 13:54:13 +01:00
Marcin Kurczewski
007e797d3a Faster tag list 2013-11-23 13:54:09 +01:00
Marcin Kurczewski
6e62a46110 Search queries: fixed broken order 2013-11-22 00:26:05 +01:00
Marcin Kurczewski
9c0ed1e930 Markdown: fixed some [spoiler] bugs 2013-11-22 00:26:05 +01:00
Marcin Kurczewski
909026ae0f User names: removed case sensitivity 2013-11-22 00:26:05 +01:00
Marcin Kurczewski
c8fb9c20c6 Search queries: removed case sensitivity 2013-11-22 00:26:05 +01:00
Marcin Kurczewski
6549237dda Mass tag: fixed tag case sensitiveness bug 2013-11-22 00:25:59 +01:00
Marcin Kurczewski
601bdab8e1 Mass tag: don't show buttons if no tag specified 2013-11-21 22:44:28 +01:00
Marcin Kurczewski
1f2ce725ff Mass tag redirection from /tags accepts empty tag
User was already able to enter masstag mode without specifying what they want
to tag with, through "mass tag" tab.
2013-11-21 22:44:28 +01:00
Marcin Kurczewski
cab63895c2 Fixed "tag already exists" when only changing case 2013-11-21 22:44:28 +01:00
Marcin Kurczewski
a98c61ebf3 Closed #67 2013-11-21 22:44:28 +01:00