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
Marcin Kurczewski
fdfb4acbf9
Refactored config
2014-10-18 18:48:20 +02:00
Marcin Kurczewski
2fab532fde
Fixed authentication with credentials
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
968a15ef60
Changed login so it leads to previously viewed page
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
c117367974
Added IValidatable; moved validation to FormData
...
I still struggle to find out how to deal with arguments like
$userNameOrEmail. Should I trim() them in controllers, or in service?
If I do it in service, shouldn't all of such validation belong in there?
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
e6c7ed7e11
Moved test running to gruntfile
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
65da8e9948
Added missing thumbnail generators
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
109aa1c39e
Refactored thumbs; fixed setting custom avatars
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
7e492e044c
Added style checkers and build tasks
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
45e18a9ba3
Improved PHP style
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
553c33b860
Improved Javascript coding style
2014-10-18 18:48:19 +02:00