1616 Commits (d586b8b6b554d6c0f8459d3f4e0d9e4782b4270d)

Author SHA1 Message Date
Barış Soner Uşaklı f054a4f44d fix: get cid from pid instead of passing in 2 years ago
Julian Lam 36bcdf8f9d Merge branch 'master' into develop 2 years ago
Eldor 3bd9a87154 fix: show error alert if password change fails 2 years ago
Barış Soner Uşaklı 79731735c0 feat: allow file uploads on mobile chat
closes https://github.com/NodeBB/NodeBB/issues/11217
2 years ago
Julian Lam 97d8b53fd3 Merge branch 'master' into develop 3 years ago
Barış Soner Uşaklı d264c6ac4b refactor: use utils.debounce 3 years ago
Julian Lam 1e864a7518 Merge remote-tracking branch 'origin/master' into develop 3 years ago
Julian Lam 803398e915 fix: broken flag history on flag update 3 years ago
Julian Lam 6391f77b01 Merge remote-tracking branch 'origin/master' into develop 3 years ago
Julian Lam aeb94c32b9 feat: j and k hotkeys in topic to navigate through it quickly 3 years ago
Julian Lam 5b9de0e521 fix: be tidier and explicitly clean up ctrl-f hotkey on topic page 3 years ago
Barış Soner Uşaklı b5dd89e1c0
feat: store topic title and tags in diffs (#10900)
* feat: store topic title and tags in diffs

allow restoring post diff if tags didn't change

* test: fix tests, fast computer problems
3 years ago
Julian Lam d3e38df8ea fix: add back timeago to post history modal 3 years ago
Barış Soner Uşaklı f6f37dc1cd fix: registration regression, closes #10875 3 years ago
Barış Soner Uşaklı b7addffc9e breaking: reduce nodebb.min.js size by around 800kb
const zxcvbn = require('zxcvbn');
bundles a huge amount of code, now it won't be in nodebb.min.js
3 years ago
Julian Lam df36d96788 fix: empty thread tools container on open 3 years ago
Julian Lam 3dd3cd8297 fix: add dropup handler to thread tools menu, updated how post tools menu adds dropup handler 3 years ago
Barış Soner Uşaklı a2d0cd162d
refactor: remove console.log 3 years ago
Julian Lam bc2ea86023 chore: remove client-side js file for tpl that no longer exists 3 years ago
Julian Lam d05705183f refactor: move export generation logic to v3 controller, GET/HEAD routes for exports
re: #10384
3 years ago
Barış Soner Uşaklı 0a6900fc77 feat: don't show signatures again in pagination mode in same topic 3 years ago
Barış Soner Uşaklı aba420a3f3 feat: setting to show signatures only once in topics, closes #10071 3 years ago
Julian Lam 847d2b9141 fix: #10795, early return for selection tooltip based on calling user privilege 3 years ago
Barış Soner Uşaklı b2da02d676 feat: add client side filter:chat.send, closes #10729 3 years ago
Barış Soner Uşaklı 6a0339dea4 https://github.com/pichalite/nodebb-theme-slick/issues/60 3 years ago
Barış Soner Uşaklı 9acdc6808c feat: allow unban/unmute on flag details page. closes #10593 3 years ago
Barış Soner Uşaklı b17a81bfb0 fix: translate api error messages to user lang, closes #10623, 3 years ago
Barış Soner Uşaklı 7867ccd780 feat: #10585, ability to mute from flag details 3 years ago
Barış Soner Uşaklı 5e82cf23c6 fix: closes #10583, replace removed socket method with api method 3 years ago
Barış Soner Uşaklı 012860a49a feat: show number of selected posts in reject confirm 3 years ago
Barış Soner Uşaklı 23175110a2 feat: post queue bulk actions closes #10520, fix #10555, 3 years ago
Barış Soner Uşaklı d20b07cfea
Webpack5 (#10311)
* feat: webpack 5 part 1

* fix: gruntfile fixes

* fix: fix taskbar warning

add app.importScript
copy public/src/modules to build folder

* refactor: remove commented old code

* feat: reenable admin

* fix: acp settings pages, fix sortable on manage categories

embedded require in html not allowed

* fix: bundle serialize/deserizeli so plugins dont break

* test: fixe util tests

* test: fix require path

* test: more test fixes

* test: require correct utils module

* test: require correct utils

* test: log stack

* test: fix db require blowing up tests

* test: move and disable bundle test

* refactor: add aliases

* test: disable testing route

* fix: move webpack modules necessary for build, into `dependencies`

* test: fix one more test

remove 500-embed.tpl

* fix: restore use of assets/nodebb.min.js, at least for now

* fix: remove unnecessary line break

* fix: point to proper ACP bundle

* test: maybe fix build test

* test: composer

* refactor: dont need dist

* refactor: more cleanup

use everything from build/public folder

* get rid of conditional import in app.js

* fix: ace

* refactor: cropper alias

* test: lint and test fixes

* lint: fix

* refactor: rename function to app.require

* refactor: go back to using app.require

* chore: use github branch

* chore: use webpack branch

* feat: webpack webinstaller

* feat: add chunkFile name with contenthash

* refactor: move hooks to top

* refactor: get rid of template500Function

* fix(deps): use webpack5 branch of 2factor plugin

* chore: tagging v2.0.0-beta.0 pre-release version 💥 :shipit: 🎉 🚀

* refactor: disable cache on templates

loadTemplate is called once by benchpress and the result is cache internally

* refactor: add server side helpers.js

* feat: deprecate /plugins shorthand route, closes #10343

* refactor: use build/public for webpack

* test: fix filename

* fix: more specific selector

* lint: ignore

* refactor: fix comments

* test: add debug for random failing test

* refactor: cleanup

remove test page, remove dupe functions in utils.common

* lint: use relative path  for now

* chore: bump prerelease version

* feat: add translateKeys

* fix: optional params

* fix: get rid of extra timeago files

* refactor: cleanup, require timeago locale earlier

remove translator.prepareDOM, it is in header.tpl html tag

* refactor: privileges system to use a Map in the backend instead of separate objects for keys and labels (#10378)

* refactor: privileges system to use a Map in the backend instead of separate objects for keys and labels

- Existing hooks are preserved (to be deprecated at a later date, possibly)
- New init hooks are called on NodeBB start, and provide a one-stop shop to add new privileges, instead of having to add to four different hooks

* docs: fix typo in comment

* test: spec changes

* refactor: privileges system to use a Map in the backend instead of separate objects for keys and labels (#10378)

* refactor: privileges system to use a Map in the backend instead of separate objects for keys and labels

- Existing hooks are preserved (to be deprecated at a later date, possibly)
- New init hooks are called on NodeBB start, and provide a one-stop shop to add new privileges, instead of having to add to four different hooks

* docs: fix typo in comment

* test: spec changes

* feat: allow app.require('bootbox'/'benchpressjs')

* refactor: require server side utils

* test: jquery ready

* change istaller to use build/public

* test: use document.addEventListener

* refactor: closes #10301

* refactor: generateTopicClass

* fix: column counts for other privileges

* fix: #10443, regression where sorted-list items did not render into the DOM in the predicted order [breaking]

* fix: typo in hook name

* refactor: introduce a generic autocomplete.init() method that can be called to add nodebb-style autocompletion but using different data sources (e.g. not user/groups/tags)

* fix: crash if `delay` not passed in (as it cannot be destructured)

* refactor: replace substr

* feat: set --panel-offset style in html element based on stored value in localStorage

* refactor: addDropupHandler() logic to be less naive

- Take into account height of the menu
- Don't apply dropUp logic if there's nothing in the dropdown
- Remove 'hidden' class (added by default in Persona for post tools) when menu items are added

closes #10423

* refactor: simplify utils.params [breaking]

Retrospective analysis of the usage of this method suggests that the options passed in are superfluous, and that only `url` is required. Using a browser built-in makes more sense to accomplish what this method sets out to do.

* feat: add support for returning full URLSearchParams for utils.params

* fix: utils.params() fallback handling

* fix: default empty obj for params()

* fix: remove \'loggedin\' and \'register\' qs parameters once they have been used, delay invocation of messages until ajaxify.end

* fix: utils.params() not allowing relative paths to be passed in

* refactor(DRY): new assertPasswordValidity utils method

* fix: incorrect error message returned on insufficient privilege on flag edit

* fix: read/update/delete access to flags API should be limited for moderators to only post flags in categories they moderate

- added failing tests and patched up middleware.assert.flags to fix

* refactor: flag api v3 tests to create new post and flags on every round

* fix: missing error:no-flag language key

* refactor: flags.canView to check flag existence, simplify middleware.assert.flag

* feat: flag deletion API endpoint, #10426

* feat: UI for flag deletion, closes #10426

* chore: update plugin versions

* chore: up emoji

* chore: update markdown

* chore: up emoji-android

* fix: regression caused by utils.params() refactor, supports arrays and pipes all values through utils.toType, adjusts tests to type check

Co-authored-by: Julian Lam <julian@nodebb.org>
3 years ago
CommanderRoot 200f0b2e4f
refactor: replace deprecated String.prototype.substr() (#10432)
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
3 years ago
Barış Soner Uşaklı 538ad9e18b feat: add confirm to reject, closes #10427 3 years ago
Barış Soner Uşaklı be6bbabd0e feat: ability to mute users
new mute privilege
3 years ago
Barış Soner Uşaklı 37ef8366d0 fix: #10360, only take top level posts 3 years ago
Julian Lam fec907d99d fix: #10354, flag actions regression 3 years ago
Barış Soner Uşaklı 40230725c3 refactor: move header unread code to separate module 3 years ago
Barış Soner Uşaklı 4a1e761adb refactor: remove code that doesn't do anything 3 years ago
Barış Soner Uşaklı 0b813d601e fix: #10316, fix quoting regression 3 years ago
Barış Soner Uşaklı 503e27f709 fix: #10302, fix regression 3 years ago
Barış Soner Uşaklı 946d351f3a refactor: lazy load slugify 3 years ago
Barış Soner Uşaklı fb3f4f9a13 fix: #10256, allow quote tooltip on mobile 3 years ago
Barış Soner Uşaklı dcb201dfa8 fix: https://github.com/NodeBB/NodeBB/issues/10242 3 years ago
Barış Soner Uşaklı cf5c096806 feat: add upload helper module for drag&drop, paste, closes #6388
fix chat input not getting focused
3 years ago
Barış Soner Uşaklı dc6e629d59 fix: https://github.com/julianlam/nodebb-plugin-mentions/issues/170 3 years ago
Barış Soner Uşaklı 94da502629 fix: if no group label is selected, select no group title option
dont save groupTitle: "['null']" if nothing is selected
3 years ago
Barış Soner Uşaklı 1c80adf1ef feat: revert label js change 3 years ago
Barış Soner Uşaklı fdfafb44fb fix: mark unread button showing the selected category 3 years ago
Barış Soner Uşaklı 69a7634a78 fix: #10115, fix chat autocomplete hook 3 years ago
Barış Soner Uşaklı b179f0fc0f fix: use component instead of class name 4 years ago
Julian Lam 2fe53cf849 feat: `GET /api/v3/chats/:roomId/messages` 4 years ago
Julian Lam aaa6f752d0 refactor: put message api calls behind `/messages` prefix, #10097 4 years ago
Julian Lam 16ba16cdc4 fix: deprecate chats.leave 4 years ago
Julian Lam fe17c94c35 feat: `DELETE /api/v3/chats/:roomId/users` and `DELETE /api/v3/chats/:roomId/users/:uid` 4 years ago
Julian Lam d62ee84637 feat: `POST /chats/:roomId/users` 4 years ago
Julian Lam 6eea6451d2 feat: `GET /chats/:roomId/users` [breaking] 4 years ago
Julian Lam d5fd098ecf feat: `POST /chats/:roomId/:mid` and `DELETE /chats/:roomId/:mid` 4 years ago
Julian Lam f48ed3658a feat: `PUT /chats/:roomId/:mid` 4 years ago
Julian Lam 9a4fd5dc7e feat: `PUT /api/v3/chats/:roomId` 4 years ago
Julian Lam eeffb9d978 feat: `POST /api/v3/chats/:roomId` 4 years ago
Barış Soner Uşaklı a115b771f0 fix: #10096, don't display preview for links if hostname doesnt match 4 years ago
Barış Soner Uşaklı a9f81215cf fix: only render preview on topic page 4 years ago
Nazim d23ac79839 Revert 4 years ago
Barış Soner Uşaklı fdaf8274cf fix: #10090, remove left over necro posts messages 4 years ago
Barış Soner Uşaklı c4042c70de feat: #9506, allow seeing and editing your queued posts
allow regular users access to post queue
allow regular users to edit their queued post/topic title
allow regular users to remove their post from post queue
ability to send a notification to user without removing from post queue
allow accessing single post queue items from notifications
4 years ago
Barış Soner Uşaklı 633061f4a7 refactor: remove comment 4 years ago
Barış Soner Uşaklı d4f3ee67fa refactor: use .map to return promises 4 years ago
Barış Soner Uşaklı 6ad0472106 breaking: remove socket.emit('topics.post')
remove socket.emit('topics.search')
remove socket.emit('topics.getTopic')
4 years ago
Barış Soner Uşaklı bd1cb2d4f9 breaking: remove socket.emit('posts.delete')
remove socket.emit('posts.restore')
remove socket.emit('posts.purge')
remove socket.emit('posts.deletePosts')
remove socket.emit('posts.purgePosts')
4 years ago
Barış Soner Uşaklı 236d4e8056 fix: #10068, update data-index values after sort 4 years ago
Barış Soner Uşaklı 9af2335134 fix: #10068, baseIndex should be read before sort update fix off by one error 4 years ago
Barış Soner Uşaklı 906dc5675e fix: handle start=0 stop=0 for topics.getTopicPosts
add more tests
4 years ago
Barış Soner Uşaklı 621c142f8e refactor: alerts 4 years ago
Barış Soner Uşaklı 0a6eeb933e lint: fix 4 years ago
Barış Soner Uşaklı cba78aee16 refactor: use alerts.error/success 4 years ago
Barış Soner Uşaklı 1980feed46 refactor: use alerts module 4 years ago
Barış Soner Uşaklı 36aa60346b breaking: remove action:category.loaded, use action:topics.loading
action:category.loaded will not fire on infintite load of topics
4 years ago
Baris Usakli d378bf4c9c fix: quote button staying on screen on slow computers 4 years ago
Barış Soner Uşaklı fb363957d1 refactor: tab rules 4 years ago
Barış Soner Uşaklı d5bfd51267 fix: #10010, handle reverse sorting for topic events
dont add events to dom if sort is most votes
if sorting is reverse add new events after the main post or at the top instead of bottom
4 years ago
Barış Soner Uşaklı 4359e5c97c refactor: remove tabs after declaration 4 years ago
Barış Soner Uşaklı 258f368e32 refactor: add filter:topic.getPosts
this hook only fires when loading the posts of a topic cold load + infinite scroll
do not remove posts if they have index =-1
use topics.getTopicPosts instead of getMainPostAndReplies
4 years ago
Barış Soner Uşaklı 231472354e perf: create user tooltips on demand 4 years ago
Barış Soner Uşaklı 7f8783555b Revert "perf: remove createUserTooltips"
This reverts commit facc10e40f.
4 years ago
Baris Usakli facc10e40f perf: remove createUserTooltips 4 years ago
Barış Soner Uşaklı 8b4510cc70 refactor: deprecate app.logout
use logout module instead
move header related code out of app.js
4 years ago
Barış Soner Uşaklı f352be63dc refactor: deprecate app.openChat/newChat
use chat.openChat/newChat instead
4 years ago
Barış Soner Uşaklı 1a9b15989b refactor: move search functions from app.js to search module
deprecate:
app.handleSearch, use search.init(options) instead
app.enableTopicSearch, use search.enableQuickSearch(options) instead
app.prepareSearch, use search.showAndFocusInput() instead
4 years ago
Barış Soner Uşaklı 3d2398ac4c test: lint 4 years ago
Barış Soner Uşaklı 518552543d refactor: move warnings/messages out of app.js 4 years ago
Barış Soner Uşaklı 41e0240010 fix: dont show previews on mobile 4 years ago
Barış Soner Uşaklı 054685265d fix: category load more btn visibility 4 years ago
Barış Soner Uşaklı f728abda06 fix: remove tooltip on ajaxify 4 years ago
Barış Soner Uşaklı 9fbb3b11ef perf: only load posts once 4 years ago
Barış Soner Uşaklı 5a0efd2d42 fix: don't use # for previews 4 years ago
Barış Soner Uşaklı 8c67031609 feat: show posts previews if enabled on mouse over 4 years ago
Barış Soner Uşaklı a7f235dbac fix: topic events not rendered in infinitescroll 4 years ago
Barış Soner Uşaklı e8c17feedb refactor: use utils.debounce 4 years ago
Barış Soner Uşaklı 50b2ebf844 fix: remove unused code 4 years ago