- Sep 06, 2012
-
-
Rene Saarsoo authored
Esprima now rejects those pieces of code as invalid JavaScript.
-
Rene Saarsoo authored
The new esprima no more considers newlines as part of line comments.
-
Rene Saarsoo authored
Let Esprima have its window object - otherwise it'll just crash.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
We could simply query the forum database every time we need the e-mail address, but I think it's better to keep interaction with forum database to a minimum. Besides, changing the e-mail address happens very rarely and at least we now have this case covered.
-
Rene Saarsoo authored
This way we can take advantage of automatic updating of the created_at fields and don't need to insert new Date() into all of those columns.
-
Rene Saarsoo authored
The old comments backend worked just fine with one shared connection, so we shouldn't get quickly into troubles with this approach. Previously the number of open connections just kept growing and growing because they never got closed. At least this problem is now gone - there's just one open connection which we never close.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
- Actaul application files go to comments/lib/ - Jasmine tests go to comments/spec/
-
- Sep 05, 2012
-
-
Rene Saarsoo authored
The e-mail sender we use is configurable in ./config.js.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
- Sep 04, 2012
-
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
- Validator class now takes care of all the validations. - Request class implements the actual requests performed. - TableFactory sets up all database connections and provides access to Table classes.
-
- Sep 03, 2012
-
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
Performs queries to: - retrieve all targets a user has subscribed to. - retrieve all users who have subscribed to a target.
-
Rene Saarsoo authored
Added Comments#showVoteDirBy method to set the user who's vote directions are shown when using the #get #find and #findRecent.
-
- Aug 31, 2012
-
-
Rene Saarsoo authored
To be able to query the deleted comments, the Comments#showDeleted method can be called to define whether deleted comments should be included to the query. This is implemented through having two views in the database: full_comments and full_visible_comments.
-
Rene Saarsoo authored
Added triggers to database to recalculate the comments.vote column when votes table is updated. Plus minor fix to test data.
-
Rene Saarsoo authored
-
- Aug 30, 2012
-
-
Rene Saarsoo authored
Allows first phase in comment editing - popping up the editor.
-
Rene Saarsoo authored
Added requireLogin service. Added _id field to comments response.
-
Rene Saarsoo authored
When doing #add or #update the content_html field is generated from content field.
-
Rene Saarsoo authored
Performs formatting of comments markdown.
-
Rene Saarsoo authored
Instead of listing all target properties inside the comment object separately, there's now a target property that should contain object with type,cls,member fields.
-
Rene Saarsoo authored
Created Users class, which uses the ForumAuth to first log in through Sencha Forum and then when needed creates entry to users table in comments database. The main thing is that now the user object stored into session contains an `id` field which we can use in further queries to add/update/delete comments.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
It's responsibility is to convert between DB structures and the JSON objects that out HTTP API expects.
-
Rene Saarsoo authored
-
Rene Saarsoo authored
-
Rene Saarsoo authored
Turn off logging of what MySQL session store is doing. Instead enable logging of HTTP requests that our express server gets.
-
Rene Saarsoo authored
Simple initial implementation.
-