Commit graph

53 commits

Author SHA1 Message Date
Marcin Kurczewski
6af3a0e42b SQL overhaul: introducing tree-like queries
Reason: until now, PostSearchService was using magic to get around the biggest
limitation of SqlQuery.php: it didn't support arbitrary order of operations.
You couldn't join with something and tell then to select something from it.
Additionally, forging UPDATE queries was a joke. The new Sql* classes replace
SqlQuery completely and address these issues. Using Sql* classes might be
tedious and ugly at times, but it is necessary step to improve model layer
maintainability.

It is by no menas complete implementation of SQL grammar, but for current needs
it's enough, and, what's most important, it is easily extensible.

Additional changes:
* Added sorting style aliases
  - fav_count
  - tag_count
  - comment_count
* Sorting by multiple tokens in post search is now possible
* Searching for disliked posts with "special:disliked" always yields results
  (even if user has disabled showing disliked posts by default)
* More maintainable next/prev post support
2014-02-22 19:40:10 +01:00
Marcin Kurczewski
620d1204f7 Changed footer appearance 2014-02-16 12:33:52 +01:00
Marcin Kurczewski
35cdc0cf3a Refactored scripts and stylesheets
Styles, scripts and page titles are no longer set from controllers level.
Changed because it was breaking MVC pattern and led to spaghetti code.

Also, optimized JS/CSS inclusions a bit.
2014-02-01 11:24:03 +01:00
Marcin Kurczewski
1fcced20f1 Misc CSS tweaks 2014-01-06 19:25:27 +01:00
Marcin Kurczewski
5607cfc353 Models rewrite; removed RedBeanPHP; misc changes
Pages load 1.5-2x faster
Exception trace in JSON is now represented as an array
Fixed pagination of default favorites page in user pages
Fixed thumbnail size validation for non-square thumbnails
2013-12-18 15:17:49 +01:00
Marcin Kurczewski
1c6b10f966 Fixed 1px bug 2013-12-14 16:49:43 +01:00
Marcin Kurczewski
8f906d83bf Added active section indicator 2013-12-05 23:57:33 +01:00
Marcin Kurczewski
b8e37a234a Better looking query debug 2013-12-05 22:22:11 +01:00
Marcin Kurczewski
0d3bb32e9c Refactor to HTML structure
- <script> moved outside <ul>
- Youtube posts pass W3C validation
2013-12-01 15:16:10 +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
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
fb5e851a13 Closed #66 2013-11-21 22:44:28 +01:00
Marcin Kurczewski
17bd7a7572 Added support for OpenGraph
- Linking to index and individual posts produces thumbs on sites like Facebook
- Thumbnails theoretically support custom sizes
2013-11-18 14:33:43 +01:00
Marcin Kurczewski
a5d0a3f9ef HTML validation 2013-11-18 14:00:54 +01:00
Marcin Kurczewski
da63c0fd19 Closed #61 2013-11-17 14:53:17 +01:00
Marcin Kurczewski
7b473ba06f Low-level refactor to core.php 2013-11-17 14:24:39 +01:00
Marcin Kurczewski
7faf46beb9 Changed .ini a bit 2013-11-10 11:18:00 +01:00
Marcin Kurczewski
b3f15dc049 Header becomes less bloated in favor of tabs 2013-11-01 12:58:54 +01:00
Marcin Kurczewski
ac506e8c95 Added mass tag to header 2013-11-01 12:05:06 +01:00
Marcin Kurczewski
b55a8f1dce Closed #52 - fixes for anonymous accounts
- Anonymous account is no longer created when commenting/uploading
- Anonymous users can now switch safety, if it's available
- Anonymous users can delete their own posts
- Refurbished session and logging in/out mechanism
- Possible fixes for registration/activation/account deletion issues
2013-10-27 20:39:32 +01:00
Marcin Kurczewski
ff3e4bc287 Closed #47 2013-10-21 14:24:34 +02:00
Marcin Kurczewski
f2947a2550 Added "random" tab 2013-10-21 13:13:10 +02:00
Marcin Kurczewski
07f36c710a Added versioning; changed repo name 2013-10-20 11:12:56 +02:00
Marcin Kurczewski
e15910b637 Closed #41 2013-10-19 22:56:56 +02:00
Marcin Kurczewski
4b5c13519c Added optional SQL queries debug 2013-10-19 12:53:49 +02:00
Marcin Kurczewski
019e7eea7f Closed #43 2013-10-18 00:09:50 +02:00
Marcin Kurczewski
6dd6163833 Added SQL query count in footer 2013-10-16 19:45:57 +02:00
Marcin Kurczewski
39db2a64e1 Closed #32 2013-10-16 18:07:23 +02:00
Marcin Kurczewski
28c1ce68b4 Closed #20
Changed Enum::toString() calls
Fixed chrome ghost margin
2013-10-16 08:33:45 +02:00
Marcin Kurczewski
f42ed135fa Slightly better header 2013-10-15 22:49:01 +02:00
Marcin Kurczewski
23fc89c30c User safety settings 2013-10-14 00:25:40 +02:00
Marcin Kurczewski
e125ecc1c7 Fixed HTML injection 2013-10-13 21:05:20 +02:00
Marcin Kurczewski
6c4affe454 Closed #10 2013-10-13 12:28:16 +02:00
Marcin Kurczewski
eb858bfbe1 Closed #19 2013-10-12 22:55:10 +02:00
Marcin Kurczewski
67dcc7c4f8 Better looking post view 2013-10-12 12:38:49 +02:00
Marcin Kurczewski
b92f925e94 Post viewing - sidebar 2013-10-12 10:46:15 +02:00
Marcin Kurczewski
078b95fc8e Duplicate scripts/stylesheets now included once 2013-10-09 19:41:26 +02:00
Mariusz Dziemianowicz
cb18928cbb Fixes #16: Add jquery and google fonts locally 2013-10-09 18:55:58 +02:00
Marcin Kurczewski
86724568fd Newer JQuery UI (fixes broken tag-it autocomplete) 2013-10-09 17:49:29 +02:00
Marcin Kurczewski
73ddb24296 Basic pagination 2013-10-09 11:45:18 +02:00
Marcin Kurczewski
bb9ab81fed Safety-related privileges; internals 2013-10-07 23:17:33 +02:00
Marcin Kurczewski
793d996166 Very rough post list sketch; user list placeholder 2013-10-07 20:44:14 +02:00
Marcin Kurczewski
c69ff872a9 Fixed double inclusion bug 2013-10-07 20:31:45 +02:00
Marcin Kurczewski
3fd34db37c Worked on #5 2013-10-07 00:49:41 +02:00
Marcin Kurczewski
2ddc203fb8 Login/logout->log in/log out 2013-10-06 18:50:06 +02:00
Marcin Kurczewski
af5650d4f6 Added privileges support 2013-10-06 13:21:16 +02:00
Marcin Kurczewski
c345800716 Placeholder stylesheets
Now I can look at this.
2013-10-05 22:52:55 +02:00
Marcin Kurczewski
046968b815 Page titles filled in 2013-10-05 21:22:28 +02:00