Commit Graph

7852 Commits (4d66978338d802a05cafd03bafcba0890da4cfdb)

Author SHA1 Message Date
Julian Lam 1894cd9b81 fix: middle vertical-align for .avatar elements
Julian Lam 2523889990
refactor: replace avatar conditional code with buildAvatar helper ()
* feat: helper for building avatars

* feat: benchpress truefalse globals, componentPrefix in buildAvatar

* refactor: remove componentPrefix

* feat: changes to buildAvatar helper

- removed extra .avatar-xl class in generics.less
- added support for component override
- "size" can be a number now

* fix: prevent overflow of alt text in avatars

* fix: update doc on buildAvatar helper
Aziz Khoury a6436716ea feat: hooks can now return promise or call callbacks
* hooks can now return promise or call callbacks, either way works

* cleanups

* moar cleanups and fix callback 1st null arg

* rm unnessesary spread
Misty (Bot) 232b35f938 Latest translations and fallbacks
Misty (Bot) 23502c9074 Latest translations and fallbacks
Misty (Bot) 8ee5d32d4f Latest translations and fallbacks
Barış Soner Uşaklı 5fa5e999f8
Plugin metrics ()
* feat: add enable/disable checkbox for plugin usage

* feat: submit plugin data to packages.nodebb.org

only submit in production mode
submit once every 24 hours
dont submit for plugins that have "private": true in plugin.json
enabled on new installs
disabled on existing installs

* fix: hash not working after first send

fix statusCode

* fix: remove url

* feat: show compatibilty

* feat: add install question for submit plugin usage
Misty (Bot) 25d289c6f6 Latest translations and fallbacks
Misty (Bot) 86da15bedd Latest translations and fallbacks
Misty (Bot) 99120676bb feat: fallback strings for ACP events
Julian Lam c7f95ccecc
feat: design revamp of ACP events page ()
* feat: design revamp of ACP events page

- minor UX changes
- new filter controls, filters moved to sidebar
- form usable without js
- start/end filters NOT programmed yet

* feat: events ACP limit by date and perPage

* feat: pre-fill applied filters on template render

* fix: missing translation for ACP events perPage filter

* fix: added some comments to explain setHours behaviour

* fix: stop - start + 1

* fix: socket tests

* fix: +inf, not just inf

* fix: tests, because I am an idiot
Barış Soner Uşaklı 4b843ba16f fix: , allow invite and approval at the same time
Misty (Bot) a097b19293 Latest translations and fallbacks
Julian Lam 868dedd194 revert: accidental removal of some needed translation source strings
Barış Soner Uşaklı 8aef689f05 fix: no need for moderate bit for global mods and admins
Barış Soner Uşaklı 035f624758
Remove implicit mod privs. closes ()
* feat: add upgrade script to give mods privs

* feat: give all privileges when making a moderator

* feat: remove implicit privs

* feat: give global mods default privs

* feat: more priv fixes

* feat: use lodash

* fix: remove implicit mod priv from topic delete

* fix: more privs

* fix: posts.canEdit

* fix: canDelete and canEdit

* fix: tests, remove console.log

* feat: shorter functions

* feat: add tests

* fix: uids

* fix: redis random test fail
Barış Soner Uşaklı ebb32e7891 fix: attribute name so it works for both templates
Barış Soner Uşaklı 0721bee146 feat: on category search reveal children and parents
Barış Soner Uşaklı 6cebc7f069 feat: , close chat on ajaxify on mobile
Julian Lam 5cd9e1bf86 fix:
Misty (Bot) 1d26aac8b8 Latest translations and fallbacks
Misty (Bot) b09749ff00 Latest translations and fallbacks
Misty (Bot) 64a20f5616 Latest translations and fallbacks
Barış Soner Uşaklı 157b921e14 fix: , make strip exif configurable
Barış Soner Uşaklı e65ddc98b5 fix: https://github.com/barisusakli/nodebb-plugin-dbsearch/issues/53
Misty (Bot) 4da9a1eb38 Latest translations and fallbacks
Julian Lam a97e97b9c3 fix: incorrect pathname format for app.previousUrl
Barış Soner Uşaklı 106d52a47f fix: , use notice element instead of alert
Misty (Bot) d95e644720 Latest translations and fallbacks
Misty (Bot) c6449c106b Latest translations and fallbacks
Misty (Bot) b692dd87cd Latest translations and fallbacks
Julian Lam 7e5cb72a59 fix: save pathname into app.previousUrl ins. of entire url
Julian Lam f552cea523
fix: , removing nbsp from email CTAs ()
* fix: , removing nbsp from email CTAs

* fix: added right arrow to CTA button
Julian Lam b32da57faf
fix: shortened CTA text and added custom text for some notifs ()
* fix:  shortened CTA text and added custom text for some notifs

Specifically, new-reply and new-chat have different CTA text as they
do not go to the forum home like other email templates send users to.

* fix: minor optimization as suggested by @barisusakli
Julian Lam a41769e61c
feat: update meta tags on ajaxify (), fixes
* feat: wip -- refresh meta tags on ajaxify

* feat: wrapped up meta tags update on ajaxify feature

* fix: removed commented-out line

* fix: removed another commented-out line
Misty (Bot) f6ce0e655d Latest translations and fallbacks
Barış Soner Uşaklı dfab231afd
Copy group privs ()
* feat: ability to copy a groups privileges

ability to copy a group's privileges to all categories, or children of current category

* feat: switch to dropdown

added copy from category to groups

* fix: indents
Misty (Bot) 05a6413e44 Latest translations and fallbacks
Misty (Bot) 58311b6cf6 Latest translations and fallbacks
Julian Lam 4f0dc44307 fix: updated chat and post edit and delete timeout labels in ACP
yossizahn 1703233f48 fix: , switchTimeagoLanguage shouldn't discriminate against languages w/o shorthands
Baris Usakli cf5aeace6b feat: closes
Misty (Bot) 31f347daad Latest translations and fallbacks
Misty (Bot) c838ad153d Latest translations and fallbacks
Misty (Bot) 69d14cc6dd Latest translations and fallbacks
Barış Soner Uşaklı bf6fc502c4 fix:
Barış Soner Uşaklı c940a73359 fix:
Barış Soner Uşaklı 9385c8e3ee feat:
Misty (Bot) ed79f37b3e Latest translations and fallbacks
Misty (Bot) edc26a5b66 Latest translations and fallbacks
Barış Soner Uşaklı 32cf07d732 fix:
Barış Soner Uşaklı f86d74d8b9 fix:
Barış Soner Uşaklı 09681e6ccf fix:
Misty (Bot) a876c53b55 Latest translations and fallbacks
Misty (Bot) 81f3fbdcfc Latest translations and fallbacks
Misty (Bot) 0fe954816f Latest translations and fallbacks
Misty (Bot) 35618de1a7 Latest translations and fallbacks
Misty (Bot) 3a35b77d5f Latest translations and fallbacks
Julian Lam c38db4f765 feat:
This reverts commit 81f8cfe3da.
Misty (Bot) c87ebc93c7 Latest translations and fallbacks
Barış Soner Uşaklı 81f8cfe3da Revert "feat: #7515"
This reverts commit ac889db16b.
Barış Soner Uşaklı ac889db16b feat:
Misty (Bot) 8cd3d43322 Latest translations and fallbacks
Misty (Bot) 4de53d5316 Latest translations and fallbacks
Misty (Bot) 4f303a85ce Latest translations and fallbacks
Misty (Bot) a8627d33c4 Latest translations and fallbacks
Julian Lam 3871a02ccc fix: resolve CORS error on uploading via URL
On uploading a new profile picture via URL, a CORS error presents
itself during the .toDataUrl() call due to misconfigured CORS
handling in the library. The change here allows cropper.js to
check crossorigin attribute in image and handle appropriately.

Also, the error handling is improved so the error is caught on
Firefox, as it sends a different error message than on Chrome.
Misty (Bot) da2e0e78d2 Latest translations and fallbacks
Barış Soner Uşaklı 2ee2cd528f feat:
Misty (Bot) 6d8880db43 Latest translations and fallbacks
Barış Soner Uşaklı e906bea470 fix: escape search snippet closes
Misty (Bot) 8fb07f8131 Latest translations and fallbacks
Barış Soner Uşaklı 1f3554ff00 fix:
Julian Lam 63e16ec0a2 fix: , email throttling options set
Misty (Bot) af2663d6da Latest translations and fallbacks
Andrew Rodrigues 78e0b9834c fix:
Misty (Bot) 148ccb6165 Latest translations and fallbacks
Andrew Rodrigues 24dcae2193 feat: manual password expiry. closes
Julian Lam c289b904e6 fix:
Andrew Rodrigues c37b2f2ed3 fix:
Andrew Rodrigues dcdd41c7ce fix:
Andrew Rodrigues 962b7f73d3 fix:
Misty (Bot) 438d19bb64 Latest translations and fallbacks
Baris Usakli 7211dde7b9 feat:
Baris Usakli 777ca03264 fix:
Barış Soner Uşaklı 2b6f1a05bf feat: admin/groups style change
Misty (Bot) 593261293b Latest translations and fallbacks
Misty (Bot) eef456b864 Latest translations and fallbacks
Barış Soner Uşaklı db47753877 feat: add process cpu usage to admin
Misty (Bot) 2a6f18f656 Latest translations and fallbacks
Misty (Bot) d9697f8ff1 Latest translations and fallbacks
Misty (Bot) 5c18b299b1 Latest translations and fallbacks
Misty (Bot) d60514b09b Latest translations and fallbacks
Julian Lam 6f272e3474 fix: removed notification subheader translation string
Julian Lam d3a10628e7 fix: broken 50% border radius on emails, failing tests
Misty (Bot) 3f945c2b12 Latest translations and fallbacks
Julian Lam 3a7f1c192b fix: failing tests from revamped-emails branch
Barış Soner Uşaklı 03305db845 fix:
Julian Lam f32a992237
feat: revamp email templates to be more style agnostic ()
* feat: re-designed digest

Updated design, logic no longer shows "no topics", just doesn't
show the list at all, teaser re-retrieved for digest so that it
always grabs a teaser even if there is no reply, changed default
email background to a light grey.

* fix: minor padding issues in digest

* fix: banned template

* fix: invitation.tpl

* fix: removed unused notif_chat and notif_post email templates

* fix: notification template

* fix: registration_accepted template

* fix: reset tpl

* fix: test tpl

* fix: email verify tpl

* fix: reset notify tpl

* fix: welcome tpl

* fix: additional minor font fixes

* fix: removed unused email header image assets

* fix: internationalised 'your daily digest' string

* fix: broken url in digest 🤦

* feat: added RTL support for emailer

/cc @PostMidnight
Barış Soner Uşaklı fc830c0f41 feat: lower search timeout
Barış Soner Uşaklı 8a0e1280d6 feat: quick search
Misty (Bot) ea66fc3fa0 Latest translations and fallbacks
Julian Lam 158f68eb47 fix: search.api not working on subfolder
Baris Usakli d2b8396764 feat: make topic search a function
Julian Lam 57069a5c48 fix: better handling for errors in Adv>Databases
Barış Soner Uşaklı c01d43e01d feat: quick search
Misty (Bot) 4518198786 Latest translations and fallbacks
Barış Soner Uşaklı d5ece9a4c3 fix: don't refresh page when enabling/disabling categories
Barış Soner Uşaklı c2e7ae7f41 fix:
Julian Lam ab0e547d23 fix: autocomplete not triggered if chat switched
Julian Lam 6c2f48f189 fix:
Barış Soner Uşaklı 45c322aeb0 fix:
Julian Lam e8f3c25676 fix: re-introducing indeterminate checkbox state to ACP privs
Julian Lam 0fffcb3855 fix: , missing success alert on group name change in ACP
Julian Lam 91a7b9070a fix: , panel-header widget colours in ACP
Julian Lam 96b6ce1f3c fix: eslint failure from daadcc4889
Julian Lam 0c09b7402d feat: logging password resets and errors into event log
closes , also adds tests for password reset socket calls
Misty (Bot) 250674c8a8 Latest translations and fallbacks
Andrew Rodrigues d864da1a2e
fix: move `action:alert.update` to after translator
Andrew Rodrigues daadcc4889
feat: add `action:alert.new`, `action:alert.update` hooks
Barış Soner Uşaklı fc6767e140 fix:
Barış Soner Uşaklı 70d9c6c4ce fix:
Barış Soner Uşaklı e59b907d7c fix:
Barış Soner Uşaklı 12c5899099 fix:
Barış Soner Uşaklı 8e3bf58106 fix:
Barış Soner Uşaklı c72da5595a fix:
3 new global privileges
view:users
view:tags
view:groups
Barış Soner Uşaklı ae779ea4f9 fix:
Barış Soner Uşaklı 9d1fcf4e36 fix: closes
Barış Soner Uşaklı f6cfbbb520 fix: don't crash if body doesn't have `skin-`
Barış Soner Uşaklı c7abf07a3d fix:
added disableToType option
Misty (Bot) 7abcb0f199 Latest translations and fallbacks
Barış Soner Uşaklı 0366cfd8ec fix: allow regular groups to local login
Barış Soner Uşaklı 5353960ae7 fix:
Misty (Bot) 5a2ad3a502 Latest translations and fallbacks
Julian Lam 8aebe88417 fix:
Julian Lam 02a8ed9b11 feat: textcomplete over jquery-textcomplete, closes
Julian Lam df6f75eb05 fix: privilege header misalignment
Misty (Bot) fefec8ba57 Latest translations and fallbacks
Barış Soner Uşaklı cf918078e5 fix:
Julian Lam 7fb3c16882 fix: , local login privilege available to registered-users only
Barış Soner Uşaklı d03220cdaf fix:
Julian Lam 63061ffd37 feat: new hook filter:user.logout
- used for setting "next" for post logout redirection
Julian Lam cee47f78b2 fix: timeago shorthand toggle fails on non-existant language
- Exposing timeagoCodes to frontend
- Timeago language and shorthand toggling will fall back to 'en'
  if the requested language does not exist
Julian Lam 5ee173c2f6 fix: improper request for client-noskin.css
Misty (Bot) 40637828af Latest translations and fallbacks
Julian Lam 8ceb35f537 fix: Flags graph label not translatable
Misty (Bot) 73c8cf807c Latest translations and fallbacks
Misty (Bot) 0bb5681471 Latest translations and fallbacks
Misty (Bot) 2cd1be0d04 Latest translations and fallbacks
Barış Soner Uşaklı ac655564bb fix: post queue notifs
fix moderators not showing up immediately when adding them
Misty (Bot) 2614a2e5ce Latest translations and fallbacks
Julian Lam 51b5fb9826 fix: added missing translation and error state for password change
Julian Lam 3859d417ce fix: , header search stops working after header update
Misty (Bot) a4ab13d323 Latest translations and fallbacks
Julian Lam 87c2d10811 fix: , added placeholder styling for fa-nbb-none
Julian Lam af4fd5979f Revert "fix: , hide taskbar on chat modal invocation on mobile"
This reverts commit a70db885cf.
Misty (Bot) 0a54f8bde4 Latest translations and fallbacks
Julian Lam a70db885cf fix: , hide taskbar on chat modal invocation on mobile
Misty (Bot) 27e82aeaab Latest translations and fallbacks
Barış Soner Uşaklı 428f587cbe fix:
Misty (Bot) d443fe85bd Latest translations and fallbacks
Misty (Bot) 7990597740 Latest translations and fallbacks
Barış Soner Uşaklı 28459d04c6 fix:
Misty (Bot) 64f263afe5 Latest translations and fallbacks
Julian Lam 954af0f0d2 fix: , FUOC on app.reskin()
Baris Usakli 8da3b2a487 fix:
due to no refresh on login socket listeners were added more than once,
so remove them before adding the listeners
Barış Soner Uşaklı 8566205214 Merge branch 'master' of https://github.com/NodeBB/NodeBB
Barış Soner Uşaklı 03299736dc fix:
don't consider pinned topics in widget areas
Misty (Bot) 25e05805ad Latest translations and fallbacks
Julian Lam 629b35546c fix: , composer and chat not closing on logout
Barış Soner Uşaklı 43e7cc0afb fix: shorter function
Barış Soner Uşaklı 2da0a65765 fix:
Misty (Bot) 90e72f4ea6 Latest translations and fallbacks
Misty (Bot) 8e0ba9d76f Latest translations and fallbacks
Misty (Bot) 439fa63a9c Latest translations and fallbacks
Misty (Bot) 9f3efd79db Latest translations and fallbacks
Julian Lam 8e9de540b4 fix: socket.disconnect() now called on invalid session
Julian Lam 4873a339c1 fix: RTL not respected when changed in user settings, related to
Julian Lam d81e0a5f5b fix: Better RTL handling on (de-)authentication
- RTL is applied (or unapplied) on login and logout depending on
  user language/guest-detected language.
- config is automatically saved into res.locals.config whenever
  loadConfig is called
- On login/logout, buildHeader is called instead of getting config
- On logout, req.uid is deleted instead of set to 0
Misty (Bot) 1ecedefae7 Latest translations and fallbacks
Julian Lam 900f0a0b78 fix: , invoking autoLocale middleware on logout
Also:
- firing client-side hook on header update
- updating bootbox locale on header update
Misty (Bot) 9d36ee868c Latest translations and fallbacks
Andrew Rodrigues 7fb29f4272 fix: closes ()
* fix: closes 

*  also fix homepage + subfolder installs

*  fixes suburls as well (ex. /tags/x and /groups/y)

*  more elegant solution @pitaj

and the last time I touch this function, lol

*  regis, final answer

I lied in that last commit
Barış Soner Uşaklı ab81cca735 fix: 7100
Misty (Bot) 591cd0925b Latest translations and fallbacks
Barış Soner Uşaklı 7e828404f6 fix:
dont save relative_path in db for group covers
Barış Soner Uşaklı 29a85aecc7 fix:
Baris Usakli b47f939bfc fix: lint
Baris Usakli 69e0dbbf4a fix: ,
Baris Usakli f4ea2c43ab feat:
Baris Usakli 0c1ac4d6a2 feat:
Misty (Bot) 2811259f78 Latest translations and fallbacks
Misty (Bot) 7a43f26055 Latest translations and fallbacks
Misty (Bot) 998ed55ab6 Latest translations and fallbacks
Barış Soner Uşaklı 4650a76036 fix:
Barış Soner Uşaklı 9f5062682d fix: unread badge
- only increase unread badge if topic or category is watched
- fix logic for "there are new posts/topics" on /unread and /recent
Barış Soner Uşaklı eb7ae54f81
Category watch state ()
* feat: wip, category watch change

* feat: pass data to client

* feat: allow changing state

* fix: account page categories

* fix: show in unread if topic is followed or category is watched

* feat: add default watch state to acp

* feat: save user category watch state

* feat: update unread recent pages

* fix: remove dupe code

* fix: flip conditions

* fix: handle empty arrays

* fix: ignore/watch on others profile

* feat: upgrade script for category states

if there are any users ignoring categories set their state in new zset and delete cid:<cid>:ignorers

* fix: upgrade

* fix: tests

* fix: redis count

* fix: more tests
Misty (Bot) 81e854b37f Latest translations and fallbacks
Misty (Bot) 7b8d7aee3c Latest translations and fallbacks
Barış Soner Uşaklı f103390aa5 fix:
update counter when user navigates to /unread
fix new topic alert on /unread
moved unread code from footer to unread