Commit Graph

247 Commits (a87416971b98cdfecde87001c06c67b34fabe0fb)

Author SHA1 Message Date
Barış Soner Uşaklı 4adbf87c6c feat: warn user if whitelisted tags are less than minTags
Barış Soner Uşaklı e09ab3dc19 feat: closes , allow configuring max topic count
Barış Soner Uşaklı bffb830d87 feat: add missing translation key
Barış Soner Uşaklı a255c8f6fd fix: language
Julian Lam 67aca822e6 feat: account content deletion, closes
Julian Lam a82e9bd7f6
feat: privileges for Admin Control Panel ()
* feat: acp privileges (WIP)

* fix: restore global privilege hooks

* refactor: using cid 0 in admin privs

* fix: no need for zebrastripe-reset

* feat: manage:categories privilege WIP

* feat: renamed prefix to admin:, settigns and dashboard privs

* fix: nofocus on acp privs group find modal

* refactor: privileges.x.get() to not used hardcoded privs

* fix: crash if unable to get latest version

* feat: setting acp priv

* Revert "fix: crash if unable to get latest version"

This reverts commit afdb235f48eb0072d88de45f3a1e0151281095b3.

* feat: user/privilege acp privs

* fix: category selector in manage/privileges

* fix: guests potentially becoming admins

* fix: bug in setting admin privs

* fix: some last minute things + api docs

* fix: some more last minute fixes
Barış Soner Uşaklı 30cc83c033 fix: , revert event delete
Julian Lam 260a482caa fix: remove duplicate link to manage/tags in settings/tags
Julian Lam 0633ad3277 fix: acp menu items
- Shuffled items in settings
- Moved post-queue and ip-blacklist to front-end
- Removed Settings > Sockets, merged with Settings > Advanced
Julian Lam a83f4259e8 fix: re-jigged tags acp pages
Julian Lam a51fff8bd1
refactor: remove general menu from ACP ()
* refactor: remove general menu from ACP

* fix: incorrect translation keys, fixed tests
Ali Cihan 256ee45d37
typo ()
Barış Soner Uşaklı 2d07634494
fix: , update gdpr link again
Barış Soner Uşaklı 17d664e098 fix: , point to official site
Opliko 6e5ebb6184
feat: manifest.json improvements from ()
* feat: manifest.json improvements from 

* Fix short title placeholder

* use lowercase letters for hex colors
Barış Soner Uşaklı 0b5fac75b0 fix: , add missing lang key
psychobunny b67af70da4 fix: hsts max-age missing translation
Barış Soner Uşaklı 5e91a67e78 feat: add user ip to admin/dev/info
Barış Soner Uşaklı 326367556f fix: tag key
Barış Soner Uşaklı 05c9fe2735 feat: , allow changing user groups from manage users page
Baris Usakli 4d66978338 fix: , configurable necroThreshold
Julian Lam 645d647248
feat: wip, better digest handling (+ eventual digest resend logic) ()
* feat: wip, better digest handling (+ eventual digest resend logic)

- await emailer.send call in digest.send method
- save send success to a new sorted set digest:{interval}:byUid

* feat: continuing work on digest tools

- Added ACP page to view digest settings and delivery times per user

* feat: added paginator and stub buttons for resending digest

* feat: wrapping up digest revamp

- New language strings in ACP digest page
- Client-side ACP script for digest ACP page
- Websocket call for ACP page to execute digests
- Broke out logic to retrieve user digest settings to getUsersInterval

* fix: minor cleanup

* fix:  and some style suggestions from baris

* fix: resolve confusing comment
Barış Soner Uşaklı 1cedc4a0d6 feat: , allow post queue based on group
allow multiple select in ACP pages
Baris Usakli 990508a533 feat: closes , translate widget-settings
Baris Usakli 554e67116f feat: remove ability to delete events from acp
Julian Lam 54c9f877a6 fix: , ACP digest wording
Barış Soner Uşaklı 5b8550f060 fix: time cutoff and lang string
Opliko b9583ed838 Add privilege for accessing user information ()
* Add view users info global privilege

* Show user ip only to global mods and admins

* fix missing comma

* Hide link for users without correct privilege

* move getting privilege information to getAllData

* Hide the link from Global Moderators as well

* Give Global Moderator view:users:info privilege

* Restrict ip in post menu to view:users:info

* add some trailing commas....

* Add privilege to categories test

* Add group privilege to categories test

* add upgrade script

* fix style for TravisCI

* more styling - change spaces to tabs

* some more styling fixes (hopefully final one)

* fix style for Travis CI

* hide ip in chat messages

* Don't show even hidden ips on user profile page
Julian Lam 1796b65d34 feat: option to restrict group leaving, closes
Barış Soner Uşaklı 3ff6e1bb64 feat: dashboard stats
show
yesterday/today
lastweek/this week
lastmonth/this month
Barış Soner Uşaklı 47e30a67be feat: move group privs above user, add labels
Barış Soner Uşaklı 6a289fbac9 fix:
Julian Lam 8a6a58ee43
feat: added new admin option newbiePostEditDuration ()
* feat: added new admin option newbiePostEditDuration

Also:
  - Grammar-checked a couple language strings
  - Moved a couple form inputs around in new user restrictions
  - Added a test for the new option
  - fix: 'defore' typo
Barış Soner Uşaklı 25ea634787 fix: add option to change cookie link url
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
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
Julian Lam 5cd9e1bf86 fix:
Barış Soner Uşaklı 157b921e14 fix: , make strip exif configurable
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
Julian Lam 4f0dc44307 fix: updated chat and post edit and delete timeout labels in ACP
Baris Usakli cf5aeace6b feat: closes
Julian Lam c38db4f765 feat:
This reverts commit 81f8cfe3da.
Barış Soner Uşaklı 81f8cfe3da Revert "feat: #7515"
This reverts commit ac889db16b.
Barış Soner Uşaklı ac889db16b feat:
Barış Soner Uşaklı 2ee2cd528f feat:
Julian Lam 63e16ec0a2 fix: , email throttling options set
Andrew Rodrigues 24dcae2193 feat: manual password expiry. closes
Baris Usakli 7211dde7b9 feat:
Barış Soner Uşaklı 2b6f1a05bf feat: admin/groups style change
Barış Soner Uşaklı db47753877 feat: add process cpu usage to admin
Julian Lam 57069a5c48 fix: better handling for errors in Adv>Databases
Julian Lam e8f3c25676 fix: re-introducing indeterminate checkbox state to ACP privs
Barış Soner Uşaklı 70d9c6c4ce fix:
Barış Soner Uşaklı c72da5595a fix:
3 new global privileges
view:users
view:tags
view:groups
Barış Soner Uşaklı 9d1fcf4e36 fix: closes
Julian Lam df6f75eb05 fix: privilege header misalignment
Barış Soner Uşaklı cf918078e5 fix:
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
Barış Soner Uşaklı 6330d51446 less derpy output
Barış Soner Uşaklı ed1bf9a16f add more info to advanced db page
Peter Jaszkowiak 57b39d5ba2 fix(acp): small UI fixes for ACP privileges category selector ()
- Add dropdown chevron
- Change translations
- Safety against `category` not an object
Barış Soner Uşaklı b6771836cf closes
Julian Lam 5ccdc1c017 internationalising english labels in session time ACP block,
Barış Soner Uşaklı 2e579ee0f9 closes
Julian Lam 4919e9efa3 feat: allow disabling of GDPR features via ACP toggle, closes
Barış Soner Uşaklı 9c03881d5a add threshold for image resizing
Barış Soner Uşaklı 9f36ce3997
Barış Soner Uşaklı ab7657d445 closes
Barış Soner Uşaklı 77beaf2e15
Allow local login,closes ()
* WIP

* reset groups cache after every suite
Baris Usakli edefab1d69 closes
add option to disable a category on creation
show disabled categories on manage privileges
Barış Soner Uşaklı b7ead6dc9c
Replace jimp with sharp ()
* add probe image size and max image size

* replace jimp and image-probe with sharp

* better name for test

* resize with just path

* resize thumb inplace

* use filename
Barış Soner Uşaklı 669a5135e1 closes
Andrew Rodrigues 12940b577b closes
Ben Lubar 33228bb7fe PostgreSQL database driver ()
* [test/database/list] Fix test list 4 being used in two different tests

* [database/postgres] PostgreSQL database driver

* [database/postgres] Make transactions work based on continuation scope.

* [database/postgres] Implement nested transactions

* eslint --fix

* Add database changes from earlier this week to the PostgreSQL driver.

* Fix typo

* Fix postgres.incrObjectFieldBy returning undefined instead of null when given NaN

* [database/postgres] Fix sortedSetsCard returning an array of strings.

* Update socket.io postgres adapter

* Fix PostgreSQL erroring when multiple updates are made to the same sorted set entry in a single operation.

Add a test case to catch this error.

* Fix lint errors.

* Only prune sessions on one instance in a cluster to avoid deadlocks.

They're caught and handled by the database server, but they spam the logs.

* Fix arguments.slice.
Jimb Esser 3cccbbc1f2 Add option to enable/disable HSTS
Also fix HSTS middleware being added twice.
Barış Soner Uşaklı 1c286e4536 not even used
Barış Soner Uşaklı 85a55d1740 closes
Julian Lam 5cf662e565 closes
Julian Lam cb3b2bd27b closes
Julian Lam 99dc3feeb2 Edit history is now a category-level privilege
Closes 
Julian Lam f51bab5d86 fixing incorrect moderate privilege label and pushing to tx config
Barış Soner Uşaklı 14f6e74bad closes
Barış Soner Uşaklı d5e85c2eb3 closes , closes
Barış Soner Uşaklı 5bb908b836 fix lang strings
Barış Soner Uşaklı 6eea11a4fd closes
Barış Soner Uşaklı a7267df404 closes
Barış Soner Uşaklı 1f8b000530 log and show last restart on ACP dashboard
Julian Lam 7089e5c6a6 Merge remote-tracking branch 'origin/master' into develop
Andrew Rodrigues 1c09094011 show success alert + rebuild msg when ordering plugins
Julian Lam 777d9aeee6 implement proper file sorting by mtime in ACP uploads
Julian Lam 388765bdf9 added post usage column to uploads ACP page
re: 
Julian Lam 364ded4f8e Merge remote-tracking branch 'origin/master' into develop
Barış Soner Uşaklı 501d02220c closes
Barış Soner Uşaklı 47606c8df5 merge
Julian Lam c1aa46c663 added new option to disable post diffs /cc @BenLubar
Timothy Fike 585d613d4b fix reload actions ()
* fix reload actions

* wait until restart action is complete instead of using timeouts.

* Change Reload nominclature to Rebuild and Restart.
Barış Soner Uşaklı ae0f1847ae allow multiple origins for access-control-allow-origin header
add access-control-allow-credentials header to acp
Peter Jaszkowiak eaae5b52cd ACP quick actions ()
* ACP quick actions

- Moved restart, build & restart, and logout into separate buttons
- Moved buttons on mobile into the side menu
- Added version and upgrade alert to header / mobile menu
- Moved version checking to server-side with a cache for rate limiting
- Changed "reload" translations to "rebuild and restart"

* Change info alert to black-on-white to match focused search bar

* Fix tests

* Fallback for failed fetch of latest version
Barış Soner Uşaklı dcb6af5768 closes