Commit Graph

52 Commits (b484f309e2c77481dc5d008751972bc7b884b8cc)

Author SHA1 Message Date
Barış Soner Uşaklı 4eaa630b1c refactor: async/await controllers/api
Barış Soner Uşaklı f3a679e268 remove parseInts
Barış Soner Uşaklı d5e85c2eb3 closes , closes
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ı 7b6282f530 closes
Barış Soner Uşaklı a11058bce2 closes
Barış Soner Uşaklı f57b5f4e4c refactor
Barış Soner Uşaklı 01e2263c01 more tests
Peter Jaszkowiak c4bdb72941 ESlint no-unneeded-ternary
and no-extend-native, no-sequences
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing
Peter Jaszkowiak a038c66549 ESlint quotes
Peter Jaszkowiak b1b486f729 ESlint quote-props
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle
Peter Jaszkowiak 05b68391dd Use `/assets` for client assets
- Route `/assets` -> `build/public`, falling back on `public`
- Moved destinations for `nodebb.min.js`, `acp.min.js`, `admin.css`, `stylesheet.css`, `templates`, and `sounds` to `build/public`
- r.js modules previously routed through express are now symlinked into `public/build/src/modules`
- minfiles no longer served from a memory cache
- use config `views_dir` setting everywhere template directory is used
- fix cache buster `v=v=`
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule
barisusakli 98fff29869 closes
barisusakli 8f408faf46 organize middlewares
removed app.locals.middleware
middlewares can be required anywhere, ie in controllers
Julian Lam 2e2c8b8e77 fixes
psychobunny 9430a626f4
psychobunny 9bef54b5ed fix title for dashboard
psychobunny 07c50cba7d titles for ACP routes
barisusakli 75af978145 closes
barisusakli 48512bff6b get rid of app.exposeConfigToTemplates
barisusakli eaefd9d24c remove meta/title.js and meta.title.build
Julian Lam 170126680b
barisusakli 2fd4bcde3f added req.uid user id for logged in users, 0 for guests
barisusakli 3809b331bc acp shenans
Barış Soner Uşaklı e6e755dd46
barisusakli 87435c1a9e return email:confirmed on admin header
barisusakli 4ce6341d85 fix acp for header changes
barisusakli 9d78a204df missing return
barisusakli 09a5d92dba correct method name
barisusakli 9075a8d4c9 added back isAdmin into admin middleware with a warning
barisusakli 97d01de155 fix acp
barisusakli ddd6ed9e8c 403 page
Julian Lam 3ad509b93a fixed
barisusakli b919d2ee77 shorther
Julian Lam deac12c540 closed
barisusakli 698d113857 error checks in middleware/admin
psychobunny 1b2ccda40b closes ; see
Julian Lam 40e5ad075f started work on
Julian Lam 08c9cbdf70 changing admin API calls to return 404 if unauthenticated, and redirect user to login for regular URL. closes
Julian Lam 4fa80263b0 fixed
Julian Lam b56df975e0 fixed 1495
barisusakli 89225c80ca related to
psychobunny 2627ed0fcd fixed filter:admin.scripts.get
Micheil Smith 3e82cab398 Add missing new lines at end of files.
psychobunny 6262312747 closes
psychobunny d3aead7c13 changing renderHeader function signature to req, res, next
psychobunny 48b9289002 use the proper footer for admin