Commit Graph

255 Commits (32369f61910be9cd9672b48471ebe16c7342b00c)

Author SHA1 Message Date
psychobunny b023ef01af moving widgets and variables code out of ajaxify
psychobunny 1b206a6ae8 ajaxify cleanup
psychobunny 7e11d29f06 got rid of all templates.prepare; pull blocks using templates.getBlock instead of parsing twice
psychobunny 113eb38f9a moving ajaxify-related things out of templates and into ajaxify
barisusakli d2af4a6b69 user images wont be responsive in widgets
psychobunny ef97f627f4 closes
psychobunny 653007b72e closes
psychobunny e60b2f7716 closes
psychobunny 0d625761be fixing bug introduced @ da0355ef79 (multiple widget areas defined = explosion)
psychobunny bdc7a19bd7 don't attempt to parse a non-existing widget area
psychobunny da0355ef79 remove async dep for widgets (30kb was overkill for one use of async.each); linting
psychobunny 62afe65ccf bugfix + deprecated templates.getTemplateNameFromUrl
psychobunny 712c382a28 optimizing ajaxify (still needs work though)
psychobunny bcd8137d0e console.log
psychobunny 55a7838725 temporary templateMapping fix for admin side; will come back to this after merging this branch
psychobunny 88e5ddac76 deprecating hook events on body
psychobunny c67182204f clean-up + bugfixes
psychobunny c26af77a24 fixing cold load of admin/index
psychobunny b9264dea76 ajaxify.loadScript
psychobunny 6f21547a8d ajaxify.fadeIn, ajaxify.fadeOut
psychobunny 6827dbc9c4 render widgets on cold load
psychobunny 23c283f06c ajaxify.getTemplateMapping
psychobunny 49997639e9 moved widget rendering code into ajaxify.renderWidgets
Baris Soner Usakli 091723a8c5 closes
Baris Soner Usakli c49c3e3550 fixed jquery ui package
akhoury 2209a55afc - changes per PR conversation
akhoury 1b207d8276 IE8 support, general cleanups, from native to $ objects ...
psychobunny a3191227de closes
psychobunny ef65f510a5 fomatting
psychobunny 599027f2d3 send full url to widgets as well so they can parse based on path
psychobunny aea7329871 animate page load only after widgets load
psychobunny 163b0f964e Merge remote-tracking branch 'origin/master' into Widgets
psychobunny c0df95b2dc render widgets upon ajaxify - this widget feetorez iz completified!
Baris Soner Usakli ea222c4f8a crash fix for notifications, removed exec_body_script, closes
psychobunny d69835e115 allow any hash to be pushed to history
psychobunny 1e47953efd expanding hash regex to alphanumeric
Baris Soner Usakli 21367a1847 reverse infinite loading
psychobunny a53c35f071 added back 'body' trigger - to be deprecated in 0.4x
psychobunny 3955ca560f changed hook triggers to window from body
Baris Soner Usakli d0702f663b disable scroll events on ajaxify'
Julian Lam 3f876fec80 added ajaxify.start and ajaxify.end client-side hooks
Baris Soner Usakli 5759b1b1a2 closes
Julian Lam ab85ef6b7b fixed issue where back button stopped ajaxifying internally.
Julian Lam 459d5ddccd fixed - added proper detection so that onpopstate would not react if it was a proper page load
Julian Lam b587d7b5ad fixed issue where calls to ajaxify.go were sending in a "template" argument that had since been removed, navigating back to NodeBB from an external link now no longer clobbers the History stack.
Julian Lam ef450edfea Revert "possible fix to #840", please see
This reverts commit 1d666bf7f0.
Baris Soner Usakli 1d666bf7f0 possible fix to
Baris Soner Usakli cd4cb240c8 upload file icon in composer was visible even when uploads were disabled
Julian Lam 127261100e fixed - ajaxify.go will now cancel any active API requests when it is called
psychobunny 0e5358a701 closes
Julian Lam d86aefb518 removing defunct "template" argument in ajaxify.go
psychobunny 67e49db797 ajaxify.refresh(); removed console.log
psychobunny 4348e1efa4 use ajaxify.currentPage to find the user's location easily
psychobunny ca087e6fa7 fixes
psychobunny 98cf6eec71 shift clicking now opens links in a new window, closes
Julian Lam b81737bc0f moved refreshTitle into app.js, messaging someone now invokes an alternating title, hehe
Julian Lam b9f1176ec1 moved paginator progress bar into paginator block, better mobile handling, and hiding it on page load
Julian Lam e5c1edd5f5 using ajaxifying class for content and footer instead of jquery fadein/out
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