Commit graph

582 commits

Author SHA1 Message Date
Marcin Kurczewski
eafc47bfb3 Fixed forms width on Chrome 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
8176184b51 Changed times on user profile to relative form 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
4c3bc0004b Hidden user tabs if only basic info is available 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
1a41e60515 Improved stylesheet 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
f032460621 Fixed MIME retrieval for files 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
ef451d93ac Added protection against too big uploads 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
c155cc3e5c Fixed file size check in FileService::download() 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
c8f0cb6e56 Removed print_r from banned functions
Used by HttpHelper to report json encoding problems.
2014-10-18 18:48:23 +02:00
Marcin Kurczewski
d72c6c5d6e Fixed page exit confirmation 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
ac312ccb49 Added test for anonymous uploads 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
ef1a3b9843 Minified exception traces 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
0ebe4d5d3e Added checks for malformed JSON data 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
047c84ec3a Bypassed phpcs warnings that shouldn't be there 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
bc8e1b05a6 Implemented post uploads (closed #11) 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
bb7b1f3321 Turned errors into exceptions 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
6e196637eb Moved type conversion to EntityConverters 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
9bd114e5b6 Moved base64 decoding to FormData 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
f6df009085 Split EntityConverter to separate strategies
Reflection turned out to be bad, since I cannot implement my own method
in entities, like Post::setUser() instead of Post::setUserId().
2014-10-18 18:48:22 +02:00
Marcin Kurczewski
b53e2752ca Reduced post upload presenter complexity somewhat 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
0ca03cae60 Moved functions to outer scope 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
6035cf89b7 Added transaction manager 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
f71fd106f0 Fixed privilege checks for changing avatars 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
20b3dfc76d Added additional type safety 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
e6073ba7c7 Fixed extra spaces between items in top navigation 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
3e1aaebf89 Fixed account activation for first user
Until now, AuthService used to check for empty e-mail in order to tell
whether an account is activated. This was wrong for following scenario:

1. User doesn't enter any e-mail.
2. Because he is about to become the first user to register, he will
   become an administrator.
3. Administrators don't need to confirm their e-mail address. Activation
   e-mail is not sent, code for e-mail activation is run instead.
4. The user succeeds to create an e-mail-less administrator account.
5. The user fails to login due to unconfirmed e-mail.
6. The code that activates an e-mail just moves unconfirmed e-mail to
   primary e-mail. That was the bug, there's no e-mail to confirm.

Things got (hopefully) simpler now, since I added separate column for
indicating whether account is activated.
2014-10-18 18:48:22 +02:00
Marcin Kurczewski
cf0312ce43 Changed EntityConverter inner workings
In order to understand data types returned by DB engine better,
EntityConverter was changed to use getter/settter methods instead of raw
properties. That way, the methods inside entities can cast to desired
data types when accessed.
2014-10-18 18:48:21 +02:00
Marcin Kurczewski
f0a077f2b4 Fixed vendor autoloader placement 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
4526345e5b Switched to sqlite (closed #38) 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
d450f5794e Fixed magic strings in Dao layer 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
2d9865f1d3 Fixed unused variable in abstract search service 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
76f78d61bd Turned on notifications about unused variables 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
0548890d97 Introduced entity property getters/setters 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
847117a408 Shifted data transform responsibility from service 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
dfb1198143 Worked on post uploads (#11) - added GUI 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
7ec3715cdd Removed unnecessary values 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
23f5100cf8 Changed file dropper to autodetect "allowmultiple" 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
12b43b1bb8 Added endless scroll (closed #5)
The code for paged collections now feels like playing ping-pong with
callbacks, and like I have no idea on who should render who.

It works, though.
2014-10-18 18:48:21 +02:00
Marcin Kurczewski
0828a0aa89 Fixed A/D hotkeys with regard to browser's Alt+D 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
fa8b7b5376 Added hotkeys to paged collections (closed #36) 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
c1739d1d1d Added page title management (closed #33) 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
2bb20c49fd Removed {mangle: false} requirement to uglify-js
Improves solution to #4 for javasript files by 12K (in current build).
2014-10-18 18:48:21 +02:00
Marcin Kurczewski
a7d4490b4f Changed minification engine (closed #4) 2014-10-18 18:48:20 +02:00
Marcin Kurczewski
6ce7beffd2 Fixed frontend behavior after edited user name 2014-10-18 18:48:20 +02:00
Marcin Kurczewski
cb08f68469 Fixed losing entity IDs upon updates 2014-10-18 18:48:20 +02:00
Marcin Kurczewski
29b173de65 Simplified UserService 2014-10-18 18:48:20 +02:00
Marcin Kurczewski
f81fe6bb65 Simplified EmailService 2014-10-18 18:48:20 +02:00
Marcin Kurczewski
73c20d3901 Fixed inability to activate e-mail when logged in 2014-10-18 18:48:20 +02:00
Marcin Kurczewski
56cd1b965a Added info about activation to account settings 2014-10-18 18:48:20 +02:00
Marcin Kurczewski
0283b2055d Fixed editing account settings 2014-10-18 18:48:20 +02:00
Marcin Kurczewski
d44e9c9ac9 Fixed tests not calling parent::setUp() 2014-10-18 18:48:20 +02:00