Commit Graph

2328 Commits (07a54b951090d710755fa720f4602a9b1a99a3e0)

Author SHA1 Message Date
Julian Lam 347d7de25b an ajaxify.go 302 will pass callback and quiet arguments along as well now
barisusakli fdf19f9025 closes
barisusakli 8eecf59c47 closes
barisusakli 69ce425ae5 closes
Julian Lam 2d9ca83ae0 better error messaging when js fails to compile when reloading
psychobunny 4384958bf2 passwords can now contain spaces
psychobunny 6a4bcf8ab8 fixed password error message
Julian Lam e497290dbc removed commented-out code
Julian Lam fcbdc5e271 added recompilation of templates to NodeBB Reloading -
barisusakli eef200be10 closes
Julian Lam 5f96823f66 allowed the "forum updated" message to show up for reloads as well
barisusakli c57b0a2199 closes
Julian Lam ab77e6767e closed
barisusakli f11601d70f Merge remote-tracking branch 'origin/master' into 0.5.1
barisusakli ab0d31bef1 closes
Julian Lam b7c7dd98c3 ACP setting and API return for subcats
psychobunny 2ced285f89 closes
psychobunny 91e29d7bb2 updated latest templates.js
barisusakli d411ed5c28 closes
barisusakli ca90afd544
(drunk) not even done yet
barisusakli d852f284da closes
barisusakli c58712e2a9 closes
barisusakli 299d7bfee3 Merge remote-tracking branch 'origin/master' into 0.5.1
Julian Lam a2fb4a66b0 migrated ACP themes page from html rendered via js to template engine
psychobunny 544afd4e4c importing latest templates.js client-side
barisusakli 37115ea3d6 Merge remote-tracking branch 'origin/master' into 0.5.1
barisusakli 1a97302d68 fix double anchors around images
if the image is already inside an anchor dont wrap again
barisusakli dae3ef49be show user names who upvoted a post on mouse over
Julian Lam 5936c72f96 further fix to
barisusakli 1cf5c3145a doing it properly this time
mainPost always has index 0
Julian Lam c818a37f0f possible fix for
barisusakli c991997552 removed off from search button
barisusakli 53d20cf058 parse variables before rendering widgets
barisusakli 41ed52a414 moved newlines from language file to core
psychobunny 193832ea9b closes
psychobunny 025403b9a8 optimizing data transfer *rolls eyes*
barisusakli f49c95c16f closes
psychobunny a880ac6e9f do one api call for template configs rather than two on cold load
barisusakli 5ce0ebb4ac single socket call on topic enter
psychobunny 39d6941603 remove chat/flag for new incoming posts
psychobunny eb297d7eab client side hooks: action:composer.topics.post, action:composer.posts.reply, action:composer.posts.edit
Filips Alpe 378fd095eb Leave the chat window within the screen
On smaller screens, the top of the chat window can appear so high that it is outside the screen, this fixes that.
barisusakli d3e57d0930 on entry to topic mark notifications read
barisusakli 214f6af324 parseInt
barisusakli e420ee5fb6 privilege fix for single category check
barisusakli 4fd2973c53 closes
chronize a2f8f54061 Merge branch 'master' of https://github.com/NodeBB/NodeBB
Julian Lam 77e0cb170f removed console.log
barisusakli 25483e376f fix online users page
insert users before the anon box if there is one
barisusakli 76ad2b8fb2 fixed to account header
chronize 4e4187417e optimize ACP groups screen, jQuery caching
barisusakli aa4089e6d7
simple solution for now, wraps images with <a> that opens in new tab
barisusakli e0be4d146f closes
root--- da7a161245 fluidized ACP groups modal dialog
Julian Lam 89a9d4b7f2 logic for
barisusakli da780cdee7 closes
barisusakli 8caedc935b online users fix
and jshint cleanup
Julian Lam bb7a71389e using websocketAddress config if supplied
barisusakli fed8cc6d53 optimize privileges and assorted fixes.
* new methods
privileges.categories.filter
privileges.topics.filter
privileges.posts.filter

they take a list of ids and a privilege, and return the filtered list of
ids, faster than doing  async.filter and calling the db for each id.

* remove event listeners on recent page before adding
* group.exists works for both single group names and arrays
* helpers.allowedTo works for both a single cid and an array of cids
* moved filter:topic.post hook right before topic creation.
* moved filter:topic.reply hook right before topic reply.
barisusakli 96b0b449b9 closes
barisusakli 6e335ff29a removed debug
barisusakli f71bd41408 more fixes
barisusakli d7520508e3 part1
psychobunny 947c9b6eea you're now logged out server-side when you're banned, so csrf token doesn't work in app.logout
barisusakli 8146358aac closes
fixed translator.load, it wasn't passing in language and was trying to
load undefined.json
barisusakli 093e373025 removed console.log
barisusakli 2d94df93b8 isArray is enough
barisusakli 3bfad766b3 closes
barisusakli 297f523f18 closes
psychobunny df37c1e235 translator.compile
barisusakli 3557aa2f9a fixed tags page search
psychobunny 4723b6d68b danger instead of warning for banned alert
barisusakli e961e3c552 reduced hightlight duration by 2 seconds
Barış Soner Uşaklı 485f14ef7f Merge pull request from frissdiegurke/patch-2
[Settings] fixed data-empty usage within checkboxes
barisusakli 8113ed6a4d closes , no upgrade script #successkid
barisusakli 89bb11a58c closes
Julian Lam 5546b4e04d closed
frissdiegurke 021e5bfcc5 [Settings] fixed data-empty usage within checkboxes
barisusakli ed18ac7fdf category recent post fix
if a category is not displaying any recent posts dont render new posts
psychobunny 67c5477fb2 testing transition speed change without waiting for widgets to render
psychobunny 310dbc754e closes
psychobunny 224dd49102 no need to delay prefetcher anymore
psychobunny 829dcb134e logic fail, time for coffee
psychobunny e382e34656 unnecessary brackets
psychobunny 2851a9a96b don't ajaxify in until animation is completed; reduced minimum wait duration for preloader
barisusakli 9aeab08109 removed stop
psychobunny cb08d4b04f getting rid of this one for good
psychobunny b5d3186120 plugins and themes can now define their own custom language strings. closes
barisusakli ef8bbdd359 closes
doing andrew's //todo's since 1991
barisusakli 04c6ca2ebb closes
barisusakli 341a0c8190 closes
barisusakli 7a60d478f4 small tweak to chat height
barisusakli a4975cab33 closes , closes
barisusakli 523b3db3f1 no header tooltips in xs
Julian Lam bf2cba028d fixed
psychobunny 7401744112 trigger action:ajaxify.contentLoaded on cold load as well
barisusakli bb0223897f closes
barisusakli 8ff34e4dc2 parseint tid
barisusakli 161069c390 closes
barisusakli 8cfce1c91c dont select hidden br
barisusakli 6d8cc5648c some tag hooks/filters
barisusakli d999116541 wait for widgets to render to send ajaxify end
possible fix for broken masonry on f5
barisusakli 93a6402879 removed stop increase timeout to 100ms
barisusakli 0362c1a3b0 show day/week/month/year popular topics
Julian Lam 23c4b8ca35 only showing ACP setting saved alert if no callback is passed in
psychobunny 5b6acbad1e optimized widget call by bundling all queries into one for ; fixes active users widget crash
also fixes b3819fd076 properly
Julian Lam 2bd99e2d16 properly did , lol, whoops
Julian Lam 5aabe47e2e closed
psychobunny c6183f1a82 closes
psychobunny ecbb05ccca widgets.render doesn't actually use the url
Julian Lam cac3ebc9e5 vertically centering modal when opened
Julian Lam c259e0407e closed
Julian Lam cd8c1eeff6 started
Julian Lam dae2e14aac epic hax to make the chat message list resize
Julian Lam 4404387218 Merge branch 'master' into chat-route
barisusakli bb9caa7228 removed dupe
psychobunny 0aef2d2be9 closes
Julian Lam 2b15f46638 removed console.log, fixing language key reference error
Julian Lam 95102f7e74 jshinting
Julian Lam 71916f0691 marathon bugfixing with @barisusakli re:
barisusakli 64d04f7aa6 closes
Julian Lam c684ec8958 Merge remote-tracking branch 'origin/master'
Julian Lam 186473fa7b adding undefined check to hrefEmpty
Julian Lam 55afa17651 getting chats working between both page and modal, yay
Julian Lam a031bc2721 highlighting of the user with whom you are currently chatting with
barisusakli 80e69bc210 missing ;
Julian Lam 07a82ec12c more WIP
Julian Lam 1db96dc627 typing notifcation socket implementation for chat page,
barisusakli c5ccf4333b translate helpers
barisusakli dcbed4e935 closes
show alert if email not confirmed, clicking alert will send confirmation
email
barisusakli 24ebf20d7e first commit
frissdiegurke 2d9bc7eee7 fixed no href-attribute handled as external link
barisusakli e6c9647acf display user post topic stats in admin index
barisusakli 684f858415 closes
barisusakli 64f680a0a3 action:chat.loaded hook
barisusakli 9a4e6aa01c closes
barisusakli b8b6ae7b2f moved upload route into API namespace
barisusakli 1b31f5b2ca single arrows wont go all the way to bottom
barisusakli c9c68f8cbe move cursor to end
barisusakli 105acc0197 not used
barisusakli 56830d773e cleaned up resizeStop
barisusakli 7d3d9f5ae1 blockquote fix again
barisusakli e6371ad539 remove listeners before adding
Julian Lam b338ac2a4c fixing space-indentation, modifying behaviour a little bit so that the maximized position is not saved, and minimizing can return back to the previous saved position
Julian Lam 517c70951f Merge branch 'patch-3' of github.com:mani95lisa/NodeBB into mani95lisa-patch-3
barisusakli a9e5e82431 closes
Mani Wang 1050efbe65 make expand postContainer more easier
If user don't know drag to expand and move 0 after down, then think user clicked and toggle postContainer's height between max and default 400.
barisusakli fb72b4c8e0 only search tag value
barisusakli 94dbb15b21 search tags
barisusakli 1cabf885a2 closes
postCount != lastPostIndex unfortunately, that will need some rethinking
barisusakli b822e8babc render preview on image upload
barisusakli 67186edda7 fix drag drop
psychobunny 876cb878a9 added action:posts.loaded client-side hook
psychobunny 4b248804bd deprecation message for 0.6
psychobunny 0e92c7ed94 use templates.js module instead
barisusakli 9240f65f20 moved resize code, removed old tab code
barisusakli 9d11ca8cfe not used
barisusakli 197300b347 moved populateOnline users out of app.js
barisusakli aecd3b4653 handlebookmark func
barisusakli d5b36518a2 moved out scrollTo
barisusakli 7af597d7c2 closes
barisusakli eb9b4a62dc fix topic move, fix moveAll
move topic wasnt moving mainPid, also fixed crash on move all
clicking permissions on admin/categories no longer goes to top of page
barisusakli c3e4d11f69 closes
barisusakli 0d0af7ba96 closes
barisusakli f4dfae7fcb fixed lock icon side
barisusakli 0cbb440629 fix blockquote toggle and use different icons
barisusakli d90d45261e fixed on edit
barisusakli 836540ff78 replaceSelfLinks on new posts and reload
barisusakli 1296cd58b9 closes
barisusakli c296aaeb8a discard language string
barisusakli 3c3ad7d115 closes
barisusakli 36ed21ad72 closes
barisusakli ae72d8ab7e fixes block quote toggles on dynamic posts
barisusakli 35d1aacc45 no success alert on posting and editing
barisusakli 93149cebb9 fixed thread tools inside topic, closes
barisusakli ab6429c578 closes
barisusakli a4d4e53f45 speed up category purge
using eachLimit
dont emit stats on every topic delete
barisusakli 7d1ba0eb7c closes
barisusakli f9b5bf83ad added search to admin/plugins
barisusakli 6303ac4a90 closes ,
Julian Lam c41bb05711 final pass , closed
Julian Lam 454c05c391 fixed missing var in user profile
barisusakli 9151040250 side by side preview
barisusakli 13854e8774 closes
barisusakli f8afb8da3e allow plugins to add new links to user profile menu
psychobunny bbd4201a38 closes
psychobunny c8de2c02b4 Merge pull request from char101/patch-8
Fix widget drafts position
Charles 0cba152516 Redirect to category after purging topic
Charles 86634415da Fix widget drafts position
barisusakli 76190718d3 indents
Charles 6e50016a11 Cleanup the vars
Charles 23a88492a6 Get template mapping after removing relative path
Charles be06d386e5 Revert change to ajaxify.js
Charles b748a832a2 Fix client side template mapping
barisusakli 501c81e357 closes
barisusakli bf18e70d66 small fix to title escape
barisusakli 07275b5fc4 some checks to make last admin isnt removed
barisusakli 42d03cc491 closes
barisusakli 4c2765a79c closes
barisusakli ce1934e566 closes
psychobunny 8402c3edc3 closes
barisusakli 3b1e373e7b group titles
barisusakli b9139ef263 some escaping and fixed uploads in progress
psychobunny 3198275209 use "undo" icon instead of comment for restoring posts
psychobunny b12ca5ab9f closes
barisusakli 3f9fa0137c taskbar text incase <script> is title
barisusakli 4fa79dc821 closes
category purge, deletes all topics and posts in the category
barisusakli 311a7ad5b9 topic purge
psychobunny b43602f5b6 closes https://github.com/NodeBB/NodeBB/issues/1631
psychobunny 35e72dbb37 load composer-mobile.tpl if in xs/sm environment, for https://github.com/NodeBB/NodeBB/issues/1657
barisusakli a65d612907 post purge
Barış Soner Uşaklı a7bd83a549 Merge pull request from char101/patch-5
Fix relative path on topic replaceState
Charles c7b308d65e Fix relative path on topic replaceState
barisusakli b9c30aa42d possible fix to
modified the tagsinput source to use keypress instead of keydown for the
confirmKeys
Julian Lam d66bead245 Merge remote-tracking branch 'origin/master'
Julian Lam b655474150 fixed
barisusakli aadca3a675 fix calls to removeRelativePath in ajaxify.js
barisusakli db84ced78f removeRelativePath public
barisusakli 4bdbce9cd8 use removeRelativePath in app.js too
Charles 9734403114 Fix removeRelativePath
Instead of checking the existence of relative_path (without /) anywhere on the url, it really should check that the url only starts with the relative_path.

Example

```
relative_path = /forum
without / = forum
url = /category/forum/5
removeRelativePath = ory/forum/5
```
barisusakli 178f567659 closes
barisusakli 7610c11cd1 closes
backup database before upgrade!
upgrade script will take the first post of each topic and set the
`mainPid` property on the topic. then it will remove that pid from the
sorted sets for that topic, this was done to make alternative sorting
work.

added a new sorted set called `tid:<id>:posts:votes` that is used to
sort topic posts by vote count, the original sorted set `tid:<id>:posts`
is used to sort by oldest first or newest first.

the main post is added to the returned posts array on topic load and is
always at the top.
theme changes are minimal just a few new data properties on the posts
and the sorting dropdown.
hopefully didn't miss anything too critical.
barisusakli efe04c12d3 closes
if email isnt confirmed, show a warning in account/edit and let users
resend confirm email
barisusakli b2e48b21a2 pass url to onAjaxError
psychobunny e88abcc1d9 fixed updated language strings
psychobunny b881131a65 fixes
barisusakli 6bd4524a79 fixed share for category
barisusakli 573cb4b4d7 fixed share links
barisusakli 0574022e02 fixes to infinitescroll
psychobunny c342e75f6e Merge branch 'master' of https://github.com/NodeBB/NodeBB
psychobunny 94312cfda8 closes
barisusakli 55dbc5c823 closes
changed post links to "topic/<topic_id>/<topic_slug>/<post_id>"
psychobunny 46028e49f7 closes
psychobunny 0816928949 unset preloader cache after loading url
psychobunny 22d459d4cc temporary fixes for chrome users who have cookies disabled
barisusakli aa0b9f9029 semicolon
barisusakli 09d4f4b47b leaving tags box will create tag
barisusakli 69ac63ed4e updated repo link in admin
psychobunny 09c632330b render widgets sooner
psychobunny cad10a3f9e implemented caching for widgets
psychobunny bfcd13144e Merge branch 'master' of https://github.com/NodeBB/NodeBB
psychobunny 4ee055c3ea closes
psychobunny bbcff6a0a5 moved widget rendering up a bit
barisusakli e035d8f1de closes
fixes user images in subfolder installs, if user image has https dont
append relative_path,
also removes relative_path in ajaxify.loadData so it doesnt call
/forum/api/forum/category etc.
psychobunny c7691a8cdc Merge remote-tracking branch 'origin/master' into require.js
Conflicts:
	src/meta.js
Julian Lam be19222817 en_US will no longer throw js error from missing timeago file
psychobunny 3ba51b05f7 fixing the minified version of string.js instead
psychobunny 65f3fa1bbc fixing string.js compatibility
psychobunny f98a52013a Merge remote-tracking branch 'origin/master' into require.js
psychobunny 281aa0049c init, attempt to increase cold load speed
barisusakli 652e1ef574 closes
turns out clicking back causes double script.init() calls and
ajaxify.variables.get('topic_id') can be undefined in one of those
calls.
psychobunny 5b17f9a7a4 added caching per url + rate limiting mechanism to prefetcher, closes
psychobunny 1e05a92c1e no need to send prefetched state anymor
psychobunny d81351579d don't require passing in uid for topics.markAsRead
psychobunny 791fde7904 fixing properly for unread count
psychobunny 08bbf7fdd8 console.log
psychobunny 0334a487b5 fixing properly for profile views
psychobunny 71214c6255 fixed preloader
psychobunny fee591e551 fixes
psychobunny 1fecbd0b90 fixed function signature for ajaxify.loadData
psychobunny bfa3b0f22f global header widgets
barisusakli 351e376812 hide area if there are no widgets
barisusakli e1ad2537b6 fixes navigator progress bar
barisusakli 60742ce316 closes , closes
barisusakli eb0a06b777 closes
Julian Lam 667a78902e closed
barisusakli 48aba5fc64 category widget changes
barisusakli 4e8a9fbe27 closes
psychobunny 9c2bb027d3 fire action:widgets.loaded regardless of callback
psychobunny bf63c927c6 trigger ajaxify.loadingData regardless of cached state
psychobunny 6aeec3a399 action:widgets.loaded
Julian Lam b0b28fad8e removing console logs
barisusakli 04309ac09c show error message if password empty
psychobunny 7f011fe583 calling it ajaxify.preloader instead
psychobunny eb69d898ce use cache-buster in translator instead of timestamp
psychobunny d5bf83f43f closes
Julian Lam b1eb5b175c Merge remote-tracking branch 'origin/master' into groups-pages
Conflicts:
	src/topics/tags.js
Aziz Khoury e0a5cb2b44 my bad
:/
barisusakli b6e0a2ecce parseInt
psychobunny 4cd86affae update all files with new url
barisusakli dbf07f786d closes
Julian Lam 840a56006c added missing files for
barisusakli 66701afdaa closes
fixes the notification image too, the property was called image not
picture
barisusakli b8b482e287 closes
barisusakli fa1275c03a closes
barisusakli 3f43db090b return topics tags
barisusakli 56f442f283 remove punctuation and limit tag length
barisusakli 90cea84af9 max 5 tags per topic
asdasd
barisusakli df73ceaeb7 closes
added tag input box to composer when creating a topic
added new routes for viewing tags 'tags' and 'tags/:tagname'
respectively
post_bar.tpl shows the tags of the topic
can edit the main post to remove or add new tags
added a new menu item to header to go to the tags page
psychobunny 7f7cc8dc62 merging in latest templates.js
barisusakli b30dee2601 no need to store titleEl
barisusakli 9ba0dc3363 closes
barisusakli 20a707e6c1 uploads cleanup
barisusakli e869a6a15a composer refactor
barisusakli ff2bad635c infinite scroll refactor
Julian Lam e43ebb0423 Merge pull request from akhoury/master
captcha support
Julian Lam b1534b7798 removing allowGuestPosting logic in NodeBB
barisusakli 629648bc7d closes
Aziz Khoury 0e0f66ba9e minor cleanups.
Aziz Khoury 230b4a0952 now really fix topic/1503