Commit Graph

5096 Commits (6b3eb0144e1828f49380afaf120eee4ec3db4c4c)

Author SHA1 Message Date
Baris Soner Usakli caf81b7312 fixed a crash if user profile is viewed when they have no posts, fixed the footer user link it uses the userslug now
Baris Soner Usakli 99465f1ffd moved chat socket.on to footer
Julian Lam faf70d85d8 Merge branch 'master' of github.com:psychobunny/node-forum
Julian Lam 12a8775de5 hotfixing issue with set_up_posts function in new post event
Baris Usakli 07ceabd371 added space after reps in topic.tpl and topic.js
Baris Usakli cde765b17d remove socket listeners in admin/users/search
Baris Usakli a59fdcbf6a for andrew
Baris Usakli 8781f05117 Merge branch 'master' of https://github.com/designcreateplay/NodeBB
Baris Usakli 941ed7e194 user search in admin/users
Julian Lam 97f87ee003 Merge branch 'master' of github.com:psychobunny/node-forum
Julian Lam 936a284397 enabling infinite post loader (re: issue ), fixes
Baris Usakli 7ca2c949dd fixed safari script problem
Julian Lam 9df0b39a5d started integrating infinite post loading for topic view (re: issue )
Baris Usakli 0cc5b1f907 moved socket.on to admin index
Baris Usakli c870e8bbf3 testing user search in admin panel
Julian Lam 9098d61fe2 completed fb and g+ integration of buttons in category view
Baris Soner Usakli 9b43f80ff8 changed login to ajax added error message for incorret login, closes
Baris Soner Usakli 4103e1db55 removed console.log
Baris Soner Usakli e0debed04f removed ajax from make/remove admin
Baris Soner Usakli 34777fa844 Merge branch 'master' of https://github.com/designcreateplay/NodeBB
Baris Soner Usakli ea4f39ca21 server side checks for username/email/password, closes
Julian Lam 002695234b Merge pull request from Alfresco/master
Fix for reply locking new topic title as read only
Baris Soner Usakli 7d49294595 closes , used the sorted set and updated it when a new post is made to a topic
Baris Soner Usakli fcbe99870a added password confirm to registration and prettified the notifications on regiser page, need to add validation for email/username/password on server side User.create too
Matt Smith 719dedd72b Moved reply topic unlock
Matt Smith 60dfed79c1 Fixed Reply locking New Topic title edit
psychobunny 939207ef45 moved admin categories into its own file
Julian Lam bc2d7b7d0f added twitter intent, regarding issue
Julian Lam d0e5c0dcf1 Merge branch 'master' of github.com:psychobunny/node-forum
Julian Lam 87e2023c86 closed by implementing solution
Baris Usakli 51842a32da dont let users with the same username/slug register closes
psychobunny 561ebea362 attempt at fixing issues on safari, in progress
psychobunny a6ff96c455 addressed issue - removed unintentional flicker on page load
Baris Usakli a0751d6caa Merge branch 'master' of https://github.com/designcreateplay/NodeBB
Baris Usakli d3a190d74e username to userslug change
Julian Lam b1aef19ee9 finishing up topics list in admin panel with infinite loading
psychobunny f732ab4d5a fixed another issues in templates.js causing grief in topics admin view
Julian Lam c34f4e451a Merge branch 'master' of github.com:psychobunny/node-forum
Julian Lam 39aac31092 minor fix to template rendering
psychobunny 8383874304 closes issue - fixed some issues in templates.js
Julian Lam 4436dbafe9 Merge branch 'master' of github.com:psychobunny/node-forum
Julian Lam 89e852f692 adding 'load more topics' button to topic admin
psychobunny dbf7887cc6 fixes issue
psychobunny 166254b848 fixes issue (ajaxify.go is now called) and reintroduces the fadein animation for new topic post
Baris Usakli ad11be657e added turkish characters to utils.slugify
Baris Soner Usakli 281b7a16a8 account edit alert back to 2 seconds
Baris Soner Usakli 1620d1e4be fixes
Baris Soner Usakli ba3c78846d removed comments in topic.js
Baris Soner Usakli 6c63ad89de image upload sends the csrf token now
Baris Soner Usakli eff3fc9b7a fixed error in favouriting posts
Baris Usakli 9309722898 fixed indents
Baris Usakli 64a9e5844d son whitespace conflicts are so 1765
Baris Usakli 523b787e69 added csrf to ajax calls
Julian Lam 0d954b24dc removed debug statements, adding missing file re: issue
Baris Usakli a32103efbe fixed indentation of account.js
Baris Usakli 6ec23f86e6 removed commented out line in templates.js
Baris Usakli cef77c2fd8 changed res.send(JSON.stringify()); to res.json(). closes
Julian Lam ac5b7c02f8 hiding the minimize button for mobile/low resolution users - fixes issue
Baris Usakli a7bce12887 this fixes
Baris Usakli 9e7e0f6579 changed updateHeader to check for the existance of the user label
Baris Usakli 41aeee9839 send back empty object if no data for user
Baris Soner Usakli 45dec91e1b reverted updateHeader code in footer.js to fix top bar after an image upload
Baris Usakli 2498c5c486 fixed taskbar for chat so it doesnt show multiple taskbar buttons for the same person
Baris Usakli 38e1b39c2d chat windows added to taskbar
Baris Usakli ffbd777642 moved chat code to its own module
Julian Lam 9fb8701f4f added a new option "state" to taskbar push... set to 'active' to have it
load in an active (darkened) state, while 'pulse' will have it pulse
between darkened and light states
Julian Lam 4334e23c4d fixing improper use of tertiary if that hopefully resolves issue
Baris Soner Usakli b0111274ad removed friends.js
Baris Soner Usakli 44d07ea543 changed friends to following/followers, updated routes and the user.js functions
Julian Lam 417034b60a adding int support in template types too, just for kicks
Julian Lam ca13d8dd33 Merge branch 'master' of github.com:designcreateplay/NodeBB
Julian Lam 51a941b6d5 tweaking templates code to accept a template-type attribute (for boolean purposes
Baris Soner Usakli a4fc5ff981 fixed user header image
Julian Lam dd4bc61b5a allowed clicking on the taskbar button itself to minimize
Julian Lam 9d3a27ea17 splicing out taskbar related code into its own require module
Julian Lam 07d4466cb4 fixing user label when viewing with js disabled
Julian Lam 05b91caf6c noscript for home and category view (although it's not quite working for
category view yet)
Julian Lam 2dea93d0fb Merge remote-tracking branch 'origin'
Julian Lam 41187dfddb adding a confirm dialog behind the theme revert button in the acp
Julian Lam cbd03e75e2 fixing bug where the number of posts counted was incorrect (1 over), causing thread tools to not appear when a topic was locked.
also integrated bootbox into confirm dialogs for thread deletion
psychobunny 1fc596b74b fixed sidebar flashing in on empty category - got rid of javascript control and set the visibility properly from serverside
Julian Lam fa03b13209 Merge branch 'master' of github.com:psychobunny/node-forum
Julian Lam 973eb713bf auto-hiding mod tools on a new_post event, and showing them again if the user can edit that post
psychobunny d5f3f3d9fb fixed serverside templates.js bug that prevented blocks from being defined
Julian Lam 2914496799 fixing bug where an anonymous user could follow a topic... yikes
Julian Lam 882b9a917f ability for users to now follow/subscribe to threads
Julian Lam 7e55e7b3d2 fixing quoting that broke with the introduction of the new post window
Julian Lam a09cfd9304 started work on noscript tags in pages (but blocked by template bug with block processing), allowed reverting of theme in ACP
introducing mixins css file
Julian Lam 49ea40f6ee tweaks to composer pushing, fixed random extra letter in footer js
psychobunny 97ea98ed3f topics: reply button in mobile menu + icon
psychobunny a8f6222824 part2 of mobile sidebar menu. still disabled for now going to come back to this later.
psychobunny 1803595fa2 starting: mobile sidebar menu (intending to take the span3 hidden on mobile and turn it into a slidein sidebar)
psychobunny 2638c03752 added timeout to address bar hiding (as per the official way of accomplishing this task )
psychobunny 950fdefd7b rehide address bar on mobile after page load completes
psychobunny 3fa41ab316 rehide address bar on mobile after page load completes
psychobunny 5bb9933f4a added functionality to post button. also introduced some underlying concepts regarding modules and pulling template vars
psychobunny 2ffd436745 improved animations for mobile menu
psychobunny 54f86a912c mobileMenu module (categories menu), fixed bug I made in account.js when moving code to their own files,
Julian Lam 6f16088cd6 cleaning up readme file and fixing bugs in editing of posts ("asdf" anyone?)
Julian Lam 89d484c4ca removing old post_window (!!) and fixing default focus when the composer is loaded
Julian Lam 82736d8780 editing of posts using new post window
Julian Lam 061c7a9e66 half broken editing
Julian Lam 2b4782b376 removing console log
Julian Lam 1ff77f853c Merge branch 'master' into post_window_refactor
Julian Lam 676ddcd3e3 integrating the new post window into the forum
psychobunny d620c29aa9 added rss button to topics. redesigned how the topic main_post looks - buttons were previously not visible on mobile as well.
psychobunny d4e4d17c5c prevent ajaxify from working on links with "target" set. added rss button as well as social icons to category listing.
Julian Lam 446bd3a022 constructing posts window
Julian Lam 0a00eac970 added requirejs, new 'composer' module for all posting related functions (client-side)
composer module only has "push" at the moment... doesn't render a window quite yet.
Julian Lam 9af39622ed actually using identicon default across the site
psychobunny d76432a20f console.log
psychobunny 8a939fa4cc removed left over template variable in category.js
psychobunny 34131ad46c modified exec_body_scripts to load external scripts. finally moved all the js files out of tpls into their own js
todo: still need to organize the individual scripts client side,
psychobunny d36a81966a use ajaxify to load 404 (prevents weird refreshing bug); part 1 of client side refactor: moving all template javascript vars into dom;
templates.get, templates.set for dynamic variables populated via tpls
Baris Usakli a4fd54a0c3 topic titles can be edited now
Baris Usakli da46a73efe looks better without disconnect alert
Baris Usakli 2d90635dc8 added 500ms delay to disconnect message
Julian Lam 79bf5fad5b tweaks to notif window to show relative time
Julian Lam 1f7ab82f78 Merge remote-tracking branch 'origin' into notifications
Conflicts:
	src/webserver.js
psychobunny cd4ca110a1 moved utils over to client side for code sharing
Julian Lam 78713f0599 Merge remote-tracking branch 'origin' into notifications
Baris Usakli f4218264e2 successful >:)
Julian Lam ffbafc99c4 Merge remote-tracking branch 'origin' into notifications
Conflicts:
	public/css/style.less
	public/src/app.js
	src/websockets.js
Baris Usakli 9e54602d16 removed debug code
Baris Usakli 3c0b86689a if same id is used it replaces the current alerts contents
Baris Usakli 58d12c9c7c possible fix to post window opening on page load
Baris Usakli fe37dfecf7 connection/disconnection handling
Julian Lam 64f320743a renaming the notification window to 'alert_window'
Baris Usakli 8d0ac4cb07 chat feature
psychobunny 17cde19020 potential fix for templates bug
Julian Lam 624ccc592c resolving issue where the post window stays open during navigation
- app.close_post_window now neatly closes the post window
Julian Lam 74c13ba299 Merge remote-tracking branch 'origin'
Julian Lam fd38b60bd6 fixing issue with teasers showing deleted post info
psychobunny ab492f147f check for online/offline users, added custom redis sismembers method, fix for category view not showing up if it has no topics
psychobunny 47d491b266 some left over unfinished templates fixes from last week. deeper urls now take higher precedence.
psychobunny 19cfef9570 fixed /recent /popular /active /users/name
psychobunny cb6d98cecb derp conflicts
Merge branch 'master' of https://github.com/psychobunny/NodeBB

Conflicts:
	public/src/templates.js
psychobunny fb52dfc6c8 templates refactor part 2
updated so that tpls get loaded on demand as opposed to all at once on
load; added a function to pull the tpl list on load instead of having to
manually define new templates in code; some clean up; added utils.walk;
Baris Usakli d8489e2c66 Merge branch 'master' of https://github.com/designcreateplay/NodeBB
Baris Usakli dfdbc3bea2 admin/redis page
psychobunny 1cdbd376ba deprecated server side templates finally. code sharing between client side and server side templates; force_refresh parameter added to temasd
deprecated server side templates finally. code sharing between client
side and server side templates; force_refresh parameter added to
templates config.json; created initialization fn for webserver
Baris Usakli 37b5680db0 fixed admin page loading
Baris Usakli c8b8899219 while you are editing a post you still need to write something dude
Baris Usakli c2c4c003ab if the user updates their email change the email uid mapping, added 500ms delay to the disconnect modal
Baris Usakli 5c2efafa0b disconnect modal
Baris Usakli 0e39acb366 moved addCommas to app, using addCommas in topic.tpl
Baris Usakli aac8182a1d dont allow empty or short post title and body
psychobunny e583c5ffc2 console.log
psychobunny a663f4e835 Merge branch 'master' of https://github.com/psychobunny/NodeBB
psychobunny 88de8cd824 fixed an issue in bootstrap.js causing ctrl-click to not work. removed ctrl-click / middle click simulation code in ajaxify. am currently using unminified bootstrap TODO minifiy fixed version;
Baris Usakli 34432773d6 fix crash when you go to /topics/nonexistant
Baris Usakli 9d5f6364ad removed console.logs
Julian Lam 826edbd669 added linking to formatting opts in editor
Julian Lam dcbc93cacf fixing up formatting bar to not be highlightable (and not have an outline
when the span is focused on), also tweaked the formatting options to
behave a little more smartly when text is currently highlighted when it is
invoked.
Julian Lam 5e9340a4fe fixing ajaxify bug where external links (and the logout link!) did not
work -- basically any link that wasn't a template didn't work
Baris Usakli b949105142 Merge branch 'master' of https://github.com/psychobunny/NodeBB
Baris Usakli ecc621e0c1 disconnect event
Julian Lam e31f6af774 Merge branch 'master' of github.com:psychobunny/node-forum
Julian Lam b0cf97c5d6 editing features, part 1
Baris Usakli 58aa0ee647 friends
Julian Lam 6c82ffa09a fixed bug where middle-click didn't work on firefox. Now ajaxify is capturing both onclick and mouseup
Julian Lam 1d78c6a35d removing debug statements from ajaxify
building in middle click and ctrl-click listeners for new tab opening
instructing git to ignore everything in the /uploads folder
Julian Lam e4364b5362 pushing fix to ajaxify where the homepage did not get added to the history (and thus was unreachable via history action
Julian Lam 3eff46bb52 restricting posting by anons, redirects to login page and saves post to localstorage
psychobunny 3fa0f7c8b5 fixed three bugs in templates: 1) if you're sending in null as a value it should now correctly replace that field as ''. 2) you don't need to put objects last in data anymore (stupid bug) 3) you can now send multiple objects to be parsed in templates properly; Also added deprecation message to server side templates
Julian Lam 613b53ac3d removing console logs
Julian Lam c351d83418 added popstate functionality
Baris Soner Usakli 0aeeac9d61 image upload and changing images will clean up later andrew stayla
psychobunny 42b4f90fed bad commit earlier, lost the footer. just reduced delay to 200ms now and it looks much better
psychobunny 88f64b4a79 optimized the transition between pages just a bit
Julian Lam e9a552eab4 editing of posts
psychobunny a4e8f9e706 cleaned up webserver a bit, moved over authentication stuff into its own file, got rid of unused routes, user routes still need to be moved out but am waiting for baris to finish
psychobunny d77ab9048d removed logs
psychobunny 09c9d0ee1f fixed topics bug that was prevent /latest /popular /active and subsequently the admin versions of those routes from working. removed debug statements. added admin socket room. added dynamic updating of active users on acp index
psychobunny 30323fa29f Merge branch 'master' of https://github.com/psychobunny/NodeBB
psychobunny f3f08a9c94 more fixes to ajaxify, updated /users blocks to sit flush to the left, started work on the ACP including basic templates, added a method to get active users in all rooms (socket connections), added more routes mostly pointing to admin, added a routing folder to start organizing routes better, starting with admin.
Julian Lam 2acd40a8bb fixing up the post window to extend the body when opened, so it doesn't clip stuff
psychobunny 8e1ee88878 removed derpy + from header ill come back to that later when im more inspired... fixed ajaxify for custom routed urls, fixed recent/popular/active tab's invalid object initializer
psychobunny baecab84de added code to remove fields that are not passed in for templates
psychobunny 31e845f4b0 added regex matching to templates/ajaxify. needs cleanup, just unblocking baris
Baris Usakli 36e7baa84d userS
Julian Lam 4dced643c5 tweaking app.alert so that on regular fadeout (after timeout expiry), the alert is removed from the DOM
Baris Soner Usakli 781c99295c fix so templates load when custom_tpl is 'undefined'
psychobunny e061fe061b added custom routing from server side, started moving hardcoded scripts into create_route
psychobunny 09c6aace09 custom template half in
Julian Lam f0eeec8932 fixing alert removal by alert_id and adding alerts when thread is locked or pinned
Julian Lam 7ed2413d96 Merge remote-tracking branch 'origin' into thread_options
added some styling and elements to thread deletion

Conflicts:
	public/src/ajaxify.js
psychobunny 4b32089367 temporary fix for templates loading twice
psychobunny 6ebc5398a7 fixed custom_mapping bug
Julian Lam 7bbc630dfb Merge remote-tracking branch 'origin' into thread_options
Conflicts:
	public/src/templates.js
psychobunny 31542cd9be finished recent, popular and active posts shells, just need to update api methods
psychobunny 5153aa7652 added template mapping, did users->account
Julian Lam b2c6d4f7c7 interim commit to thread options
psychobunny fa64e84dcc fixed a bug in templates, introduced categories, added default setup script onload, moved home.tpl code over to category, created hierachies
psychobunny 178bc82a55 removed deprecated functions from topics.js (server side parsing) and fixed the 150ms initial delay on first load
psychobunny 8a2c18de5b fixed ajaxify bug that was rendering pages twice (solved flicker issue); fixed entering rooms that was casuing rep/streaming posts to not work; fixed /accounts to work by adding get data route; fixed bug that preventing gravatars from loading if there was more than one post in the thread
Baris Soner Usakli fee76db8dc more fixes
psychobunny 3947b6b6fd modified ajaxify slightly to make transitions between pages a bit more fluid (although first load doesn't look that awesome); fixed up rooms - resolved DRY failure and properly leave rooms
psychobunny 8133ac53de small change to ajaxify to ignore href='#', added some design to future features, up for grabs if anybody wants to do them
Julian Lam 1fc6e0db2c added email verification on registration
added email header and footer
Julian Lam 458cd31b4b adding account to the template index
psychobunny 5aa3dab289 added popstate check to trigger ajaxify on back button keypress. forward button doesn't work yet
psychobunny 3e96f64191 streaming posts. also moved topics to be entirely client side parsed. made some changes. added block level caching to templates. added a prepare method to templates
psychobunny bcb672e1fe socket rooms! and almost finished rep (socket updates) except for one small bug where current_user isnt being pulled
psychobunny 2bc9876852 fixed ready_callback bug
psychobunny 517b4de2fe threads look awesome now
Baris Soner Usakli a47491225a clear topic and content after post
Julian Lam 69bafcf19c refactoring register to use form post instead of socket (for passport integration)
psychobunny 9119a9d104 small refactor of routing, cleanup, templates are now parsed entirely on client side for /, /register, /login for now
psychobunny 1bec9fc5aa breadcrumbs, and changed home in nav to 'forum'
psychobunny b2bc967e9b got ajaxify working with threads, some cleanup, fixed anon posting, got rid of a few more global.sockets calls
psychobunny e658531a67 replies are up
psychobunny 0f3f2bb859 post replies, unfinished
psychobunny ab456e07af fixes to template parser: hide block if no data exists (prevents the default tpl skeleton from showing up)
Baris Soner Usakli 20aa5d439e log server errors in browser
added uid to posts
psychobunny 7f4ea6e19b Merge branch 'master' of https://github.com/psychobunny/node-forum
psychobunny 98ca14e31c started working on threadss, implemented slug url, fixed crashing bug during post creation
Julian Lam 2a9c33b9f8 user activity counter (bug present where all users register as same session? this isn't good....)
psychobunny e5a6d1bf8b added a way to track socket listners added to the page to prevent memory leaks and duplicated definitions of events
psychobunny faa3924734 prevent scripts in tpls from being executed more than once
psychobunny 880d6832be Merge branch 'master' of https://github.com/psychobunny/node-forum
psychobunny 5173498180 client side templates in, fixed home page to parse templates on ajaxify, added footer to the page transition animation for smoothness
Julian Lam 81364580ed new 403 page
Julian Lam f774974803 logout functionality
psychobunny 877219cb58 fixed conflicts
psychobunny e50e136d83 inbetween some changes but asked to pull so I'll comment better later
Julian Lam a98cd26fa6 Merge branch 'master' of github.com:psychobunny/node-forum
Julian Lam 0985087f5d auth...
psychobunny 78d753b8f9 Merge branch 'master' of https://github.com/psychobunny/node-forum
psychobunny fffe5eb78c tried to get innerHTML of an input by accident
Julian Lam 71e410d571 Merge branch 'master' of github.com:psychobunny/node-forum
Conflicts:
	src/webserver.js
Julian Lam c1186f396e some work on session login etc
psychobunny d711a4e334 added post button, post window, added click handler to toaster alert, started on posts and topics schema and code
Julian Lam 8e49e0f203 fixing event propagation in ajaxify.go
Julian Lam 19f9a48a8c Merge branch 'master' of github.com:psychobunny/node-forum
Julian Lam e56e7b549b more stuff on pw reset
psychobunny a06b3519a1 moved event alert to serverside, now node controls the registration alert. added some transition animation to page changes
psychobunny 67bf1b6041 updated ajaxify to do a callback after page change, added toaster style notifications (app.alert), changes to webserver to update automatically
Julian Lam 96a4cbd8d1 fixed menu "active" state
Julian Lam 3c04a71b08 renaming functions so that they're less derpy (from enable/enableAll to
enable/onclick)
Julian Lam 2b4e562e21 committed fix to ajaxify that caused any newly appended anchors to not be
ajaxified, also tweaked ajaxify so that it only unbinds its own events
instead of clobbering any other events attached to anchors (#futureproof)
psychobunny fd9cb2eaf7 ajaxify.go(relative_url); - use this to navigate to a page manually
Julian Lam f975105176 added email to registration fields, email existence check
psychobunny be954d176d prevent same state from loading again
psychobunny 5b64500da3 switch loading of config file to synchronous to prevent socket server from opening pre-emptively
psychobunny 1d35f369d9 clean up client side + config.json