Commit Graph

147 Commits (1804373322cb5d385fbfe02a32b9e82284cbd362)

Author SHA1 Message Date
Julian Lam 0b39968a9c fixing back button behaviour and playing nice with History API
psychobunny 3dbcf8112d fixes navigation - back button
Baris Soner Usakli 2174aec0e1 closes and other refactors on client side
Julian Lam a9ce8393e4 added footer.build and page.load hooks
Julian Lam 2cf55dcf9f added action:page.load hook
Baris Usakli 4da819b02b changesto category.tpl
Baris Usakli 12f3f1a45c show admin link in header if user is admin, closes
psychobunny 37450ff00c optimized ajaxify to only recurse through script tags; updated so it looks deeper for embedded scripts (ie. within plugin subtemplates)
psychobunny 338acb8fc2 added a way to disable ajaxify on links manually if needed.
Andrew Darqui 4b0e915698 just changed the 403/404 checking logic to use regex.
Andrew Darqui ef47f3fd15 if nodebb returns 403/404, don't overwrite previousUrl. If you don't do this, when logging in after a 403/404, it will redirect you to the 403/404 page.
Julian Lam 0e18ec022c not running init() if there is no init method in each template script
Julian Lam 038e04dee6 revamped client side scripts so that they are loaded using Require.js instead.
psychobunny 22c73f3c12 closes
Julian Lam f08067bab2 fixes - issue where accessing a NodeBB using a different machine name
from one that it was set up with causing template data to not load, as it
was being accessed via absolute url, instead of relative url
Baris Usakli f2c1a92513 closes
Julian Lam 49e28f9d1e fixing bug where outgoing links didn't actually let you leave... oops!
Baris Usakli 4a7cd664fd fixed a bug in template parsing
psychobunny 1fbc038e64 fixed conflicts, added new language key for users/online
Julian Lam 964fbfe2bb fixes to get nodebb to at least load on IE
Julian Lam 0d9958afe7 HOTFIX for scripts
Julian Lam 6fd202fe36 closed , removed cheerio use altogether, and made changes to the
client side to ajaxify the user to /outgoing when an external link is
clicked
psychobunny 451ffafb9e finished initial client side & server side language parsing methods; integrated preloading into ajaxify and server app.js
psychobunny dc41c6bc0d formatting - core client side
psychobunny abd909d23b pagination - scroll to top / bottom arrows
psychobunny 7666ed3010 fixed two bugs in admin, meta.buildTitle errors out because no notification icon is present; pagination element missing
& final less cleanup for today
psychobunny 2098bf84a1 finished pagination for topic view
Baris Usakli cb6f587f24 closes
Baris Soner Usakli 5e1e1ecf6f moved refreshTitle into load_template callback
psychobunny 746fa93c80 added API call for total unread topics; moved unread notification parsing to client side
also fixed a bug where the new notification icon glow would disappear on
page refresh even if there were existing notifications.
Baris Usakli 22536e694c fixes wrong topics getting loaded into wrong categories
Julian Lam e8f1d645fe closed
new build_title function to be called via socket

also added categories.getCategoryField and refactored all calls to
getTopicField to be error-first
Baris Soner Usakli a5acf31fc6 posts on user account page scroll to the post now
Baris Soner Usakli 7297a26685 scroll to post 2
Baris Usakli 720dd9e960 scroll to posts
Baris Soner Usakli 916b46618c another fix
Baris Usakli 19b570cdcf closes
psychobunny 6f6a2e4127 closes . updated ajaxify to allow for get parameters to be passed in without issues.
Julian Lam 145898c3ba using nconf to manage config file now (issue )
Baris Soner Usakli 9f892c2e80 fixed pushState urls
Baris Soner Usakli 43e73e3aba url fixes for templates
Baris Usakli 6eb9af77e6 first pass at subfolder
Julian Lam d413d3b29a closed by removing jquery call that repetitvely bound and unbound anchors
Baris Usakli 7ca2c949dd fixed safari script problem
psychobunny a6ff96c455 addressed issue - removed unintentional flicker on page load
Baris Usakli 9309722898 fixed indents
psychobunny 2638c03752 added timeout to address bar hiding (as per the official way of accomplishing this task )
psychobunny 5bb9933f4a added functionality to post button. also introduced some underlying concepts regarding modules and pulling template vars
Julian Lam 89d484c4ca removing old post_window (!!) and fixing default focus when the composer is loaded
psychobunny d4e4d17c5c prevent ajaxify from working on links with "target" set. added rss button as well as social icons to category listing.
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,
Baris Usakli 58d12c9c7c possible fix to post window opening on page load
Julian Lam 624ccc592c resolving issue where the post window stays open during navigation
- app.close_post_window now neatly closes the post window
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 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;
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
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;
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
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 613b53ac3d removing console logs
Julian Lam c351d83418 added popstate functionality
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
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.
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 31e845f4b0 added regex matching to templates/ajaxify. needs cleanup, just unblocking baris
psychobunny 09c6aace09 custom template half in
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 5153aa7652 added template mapping, did users->account
Julian Lam b2c6d4f7c7 interim commit to thread options
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
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
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 9119a9d104 small refactor of routing, cleanup, templates are now parsed entirely on client side for /, /register, /login for now
psychobunny b2bc967e9b got ajaxify working with threads, some cleanup, fixed anon posting, got rid of a few more global.sockets calls
psychobunny 98ca14e31c started working on threadss, implemented slug url, fixed crashing bug during post creation
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 5173498180 client side templates in, fixed home page to parse templates on ajaxify, added footer to the page transition animation for smoothness
Julian Lam 8e49e0f203 fixing event propagation in ajaxify.go
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
psychobunny be954d176d prevent same state from loading again
psychobunny 1d35f369d9 clean up client side + config.json