698 Commits (acf188b00fdabc1b648ebe868f0b19f0255932fc)

Author SHA1 Message Date
Baris Usakli 934e1854d3 remove unnecessary escape 7 years ago
Baris Usakli 0d409610c4 fix: #7181 7 years ago
Julian Lam a07d9898df fix: #7071 buildSkinAsset won't rebuild continuously 7 years ago
Baris Usakli 67ac8e3d06 closes #7053 7 years ago
Barış Soner Uşaklı ec0c50d4e0 fix: #7041 7 years ago
Peter Jaszkowiak ba619c7ec8 style(eslint): match operator-linebreak preferences 7 years ago
Barış Soner Uşaklı 63c0a9a3b7 closes #6928 7 years ago
Barış Soner Uşaklı 1ce15e69ab dont require search and moustrap on topic page until needed 7 years ago
Barış Soner Uşaklı c02d584b53 reduce initial js payload/requests 7 years ago
Barış Soner Uşaklı 9fecad138c limit number of js files minified, dont crash upgrade script of widget-settings is not found 7 years ago
Julian Lam a5022ce425 fix: #6922, skin assets not including plugin LESS files 7 years ago
renovate[bot] 64b9dabff8 chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599)
* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: #6599, linting 😬
7 years ago
Julian Lam 501b3a79ca
Refactor skins to be built on server-side (#6849)
* WIP

* using bootswatch from npm instead of bootswatch CDN url

* feat: on-demand client css building for skins

* added ability for client-side to select a skin

* updated loading and saving logic of bootstrapSkin on client side user settings

* fix: broken test for #6849
7 years ago
Barış Soner Uşaklı c27be9db5a
Recent refactor (#6879)
* wip

* fix inf scroll

* remove duplicated code

* remove dupe code in /unread

* use topicList

* update tag page to use topicList

* fix tests

* combine ifs

* remove more dupe code

* disable timeout
7 years ago
Baris Usakli 138154a71c move modules 7 years ago
Barış Soner Uşaklı 7a44424214 parse '123' to 123 if it has no default 7 years ago
Barış Soner Uşaklı d07e3e6d97 if not in defaults use string 7 years ago
Barış Soner Uşaklı 4fff5e9baf closes #6855 7 years ago
Barış Soner Uşaklı 9c022afae1
Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
7 years ago
Barış Soner Uşaklı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
7 years ago
Barış Soner Uşaklı 85c60316ed
upgrade to winston 3.1, closes #6590 (#6838)
* upgrade to winston 3.1

* fix winston in web/install and tests
7 years ago
Sebastian G. Marinescu e35d4a7d85 closes #6283 7 years ago
Peter Jaszkowiak 04d31fe1d4 Precompile all templates
- Benchpress compilation is 33x faster now
- Native module with JS fallback and pre-built binaries
- Dev template build is <1sec now
- Minified template build is ~5sec (uglify accounts for almost all)
7 years ago
Peter Jaszkowiak 65b4bafb16 Fix @scoped themes 7 years ago
Peter Jaszkowiak 7cd8274c0f Add series flag for `./nodebb build` 7 years ago
Julian Lam cb8e62cd7c fixes #6626 7 years ago
Barış Soner Uşaklı c2b0be1f2c if stack is undefined fallback to message and then to hardcoded string 7 years ago
Peter Jaszkowiak 70ff2d9b88 Support scoped theme packages 7 years ago
Barış Soner Uşaklı 0c60351960 add error log for invalid clientIP 7 years ago
Barış Soner Uşaklı 0630915cad when settings are saved publish it to all nodes
add runJobs value to nconf, only true on nodes that should run jobs ie
isPrimary and jobs are not disabled
7 years ago
Barış Soner Uşaklı 81328806a0 closes #6511 7 years ago
Barış Soner Uşaklı c1fb3c2da4 closes #6525 7 years ago
Barış Soner Uşaklı 871cbedac1 dont require meta before db.init 7 years ago
Barış Soner Uşaklı 5461f9fa5f don't crash if there is no pluginData 7 years ago
Andrew Rodrigues 73bc96528a better to use theme_templates_path instead 7 years ago
Andrew Rodrigues ebd0899714 closes #6471 7 years ago
Julian Lam 90a99fe158 closes #6442 7 years ago
Julian Lam 8fcf57dfad stripped double relative path from og urls, #6442 7 years ago
Peter Jaszkowiak ce09813bf0 Show failed minify file and fix username editing privilege (#6445)
* Fix global mods and admins being unable to change usernames

* Message file which failed to minify
7 years ago
Barış Soner Uşaklı 50f4fd5345 remove dupe code in minify_js 7 years ago
Peter Jaszkowiak a00f1f9a81 Use uglify-es for ES6 support (#6402) 7 years ago
Peter Jaszkowiak dcf1865b54 Fix ACP alerts to use same system as client (#6396)
* Fix PostCSS warning message

* Fix disconnect indicator styling

Would increase size of quick actions when active

* Use same alert system in ACP and client

- Remove snackbar
- Add styling and fix template for ACP (based on Persona)
7 years ago
Julian Lam 2b95b13397 closes #6328 7 years ago
Barış Soner Uşaklı 15e9bbac92 closes #6311 7 years ago
Julian Lam 598675d597 outputting friendly warning if build target contains commas 8 years ago
psychobunny c0cf9e64fd remove lodash from built modules, use utils.debounce instead 8 years ago
Julian Lam 3df2ab7cb9 exposing lodash as a client-side module 8 years ago
Barış Soner Uşaklı 4b5c87e93f send stack instead of message 8 years ago
Barış Soner Uşaklı 7b04b4876d closes #6241 8 years ago
Peter Jaszkowiak 7d7c51f8e9 Fix `acp.min.js` ENOENT error on CI tests
Hopefully
8 years ago
Peter Jaszkowiak ed9166b796 Refactor template compilation
Always use persona as a fallback for templates
8 years ago
Peter Jaszkowiak 4387d5d466 Ensure installed correct version of modules on startup, bump dependencies (#6207)
* Ensure installed correct version of modules

* Bump dependencies

* Bump promise-polyfill

* Fix emailer test

* Fix auto-install regression

introduced in 9b5e0f9e95
8 years ago
Julian Lam 9b5e0f9e95 updated upgrade logic to not break ACP restart flow 8 years ago
Peter Jaszkowiak be00a1c013 Support for using yarn instead of npm, include unread counts on cold load (#6179)
* Close #6178

* Support for package managers besides npm

- Also fixes issue where upgrade-plugins wouldn't work
8 years ago
Julian Lam acc58d707c Updated plugin checking logic
* Fixes #6183
* Also changed a bunch of console.logs to process.stdout.write,
  so the command line output is cleaner
8 years ago
Barış Soner Uşaklı 691fc2c6fd closes #5812 8 years ago
Baris Usakli 3551d7d68e closes #4804 8 years ago
Barış Soner Uşaklı a7a3f3619b dont allow login with invalid ip, escape ip display on user/info page 8 years ago
Barış Soner Uşaklı fe3a75812f closes #6113 closes #6114 8 years ago
Barış Soner Uşaklı 3f2a1d3e8e check error first #6116 8 years ago
Peter Jaszkowiak 9b11413d14 Bundle admin scripts, remove CDN scripts (#6122)
Close #6120
8 years ago
Peter Jaszkowiak ae24bca16e CLI refactor with commander (#6058)
* CLI refactor with commander

- Modularized the functionality
- All functionality done directly from `./nodebb` now
(still available from `app` for backwards compatibility)
- Moved all CLI code from `./nodebb` to `src/cli`
- Fixed `nodebb.bat` to work from any location, like `./nodebb`, and
also hides command output
- Overwrite some commander methods to add CLI color support
- Added `./nodebb info` for quick info including git hash, NodeBB
version, node version, and some database info
- Refactored `./nodebb reset` to allow multiple resets at once
- Changed `./nodebb restart` to essentially stop and start, as Windows
doesn't support signals
- Added `-l, --log` option which works on `./nodebb start` and `./nodebb
restart` to show logging, like `./nodebb slog`
- Expanded `-d, --dev` option which works on them as well, like
`./nodebb dev`
- Improvements to self-help. `./nodebb build -h` will output all
possible targets
- `./nodebb reset` explains usage better

* Fix some style inconsistencies

* Fix prestart being required before modules installed

* Fix travis failures

* Fix `help` command to output help for subcommands

* Pick steps of the upgrade process to run

* Fix formatting for upgrade help

* Fix web installer
8 years ago
Julian Lam 2fa4b2918e removing premature return 😆 8 years ago
Julian Lam c3c22cfdcc closes #6107 8 years ago
Barış Soner Uşaklı eb47a81c46 remove package.default.json 8 years ago
Peter Jaszkowiak 4fcedc6f31 Enable imports in custom email templates (#6052)
* Enable imports in custom email templates

* Compile emails on config change

* Add error logging

* Add emailer tests

* Fix tests

* Only build when config changes
8 years ago
Peter Jaszkowiak c47c47f7e3 Use less memory to build translation files (#6070)
* Change languages build to use less memory

Add graceful-fs so no ned to worry about fs limits

* Specify encoding for fs.readFile

Use eachLimit since graceful-fs handles that now
8 years ago
Barış Soner Uşaklı fae8ee83e8 closes #6039 8 years ago
Peter Jaszkowiak bbdc55cb3a Better fix for #5993 (#6034)
* Better fix for #5993

Also a nice newline so the line doesn't get overwritten when running `./nodebb upgrade`

* Optimizations for custom homepage

Move it into a separate module
8 years ago
Barış Soner Uşaklı 845f01f297 dont set meta.config to null 8 years ago
Julian Lam 7e0d0e0eb5 Merge remote-tracking branch 'origin/develop' 8 years ago
Peter Jaszkowiak dfad76120d Support npm@5 and yarn (#6010)
* Support npm@5 and yarn

Use package.default.json
Partial #6008

- Overwrite package.json with package.default.json values
- `dependencies` field is merged with package.default.json version taking precidence
- `./nodebb upgrade` automatically does those things and runs `git pull`
- use `./nodebb upgrade --dev` to avoid the `git pull`

* added logic to preserve extraneous plugins installed in node_modules/

* Don't automatically git pull

* Simplify package-install, run it on upgrade just in case
8 years ago
Peter Jaszkowiak e609e497b3 Provide more error information to logs
Provides full stack instead of just message
8 years ago
Peter Jaszkowiak adc47fd053 Use relative linking (#6011)
* Use relative linking

* Add copyFile method and tests

Closes #5988

* Fix relative linking on Windows

Hard links and junctions don't work with relative paths

* Fix tests

* Revert ghange to gitignore
8 years ago
Baris Usakli 47143a4a09 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 8 years ago
Julian Lam cb80c7729b linting 8 years ago
Dr Luke Angel 999a7abc5d
updated equality operator
small update to equality operator
8 years ago
Dr Luke Angel 4854888fcf
update blacklist.js to strip ports from v4
Blacklist.test in blacklist.js to strip port from ipv4.
my site was passing in 
24.18.192.75:52506
and nodebb was giving 
28/10 04:34:41 [6680] - error: /login
 Error: ipaddr: the address has neither IPv6 nor IPv4 format
So i updated the client Ip to strip the port number if its a v4 IP
8 years ago
Peter Jaszkowiak 62ae171432 Merge remote-tracking branch 'origin/master' into develop 8 years ago
Barış Soner Uşaklı e7318a1cea Mongo cache (#6002)
* cache mongodb objects

remove user settings cache since it is cached at the object level

* removed indexOf from isMemberOfSets

* change has to get, change maxAge to 0
8 years ago
Peter Jaszkowiak 46fafb20b9 Remove string.js dependency 8 years ago
Peter Jaszkowiak 1c35213934 Fix #5970 and forking while debugging (#5965)
* Fix forking while debugging

Debugger address in use no longer happens

* Fix cropper error
8 years ago
Julian Lam 6852c92ed6 Merge remote-tracking branch 'origin/develop' 8 years ago
RoiEX 1fd160a4e6 Add Support for Firefox OSD 8 years ago
Barış Soner Uşaklı b70f328520 closes #5948 8 years ago
Peter Jaszkowiak da9da8190f Bump dependencies
Bumping eslint & configs meant making some linting fixes

For future reference, the `xmlhttprequest-ssl` library must be of equal versioning to the one in `engine.io-client`, otherwise it won't be deduped which causes the socket.io tests to fail
8 years ago
Peter Jaszkowiak dc87d7fc0f Use .js instead of .jst
Fix #5934
8 years ago
Julian Lam 26d4c18340 Merge remote-tracking branch 'origin/master' into develop 8 years ago
Julian Lam 2c2a28c5b6 closes #5919 8 years ago
Barış Soner Uşaklı a4532f011a Blacklist fix (#5918)
* closes #5917

* fix callback for upgrade script

* delete key even if falsy, could be empty string

* DRYer ternary
8 years ago
Peter Jaszkowiak 61b0f0c4c3 Catch uglify errors 8 years ago
psychobunny d4a11de07d move blacklist.less into admin/manage/ip-blacklist.less 8 years ago
Barış Soner Uşaklı 5cc39e8546 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
# Conflicts:
#	package.json
#	src/views/admin/manage/ip-blacklist.tpl
8 years ago
Peter Jaszkowiak abffc29128 Use Benchpress (#5901)
* Use Benchpress

* Use Benchpress.compileParse

* Error for template load failure

* Use benchpressjs package

* Compile templates on demand

* Fix user settings page

* Fix admin search to exclude `.jst` files

* Fix 500-embed

So ajaxify can still show an error if the server goes down
8 years ago
Julian Lam cdd139b327 increment blacklist analytics on blacklist block 8 years ago
Julian Lam 00c25d47f9 blacklist should not use data.result anymore, just err is fine 8 years ago
Baris Usakli b2542c1e19 add missing return false 8 years ago
Julian Lam c71b7db646 remove messy regexes and a console.log 8 years ago
Julian Lam 5d2b3d3c39 remove dependency on ip-range-check and ip, use lower level ipaddr.js instead
re: #5893
8 years ago
Julian Lam 8346130cdc introduced new hook filter:blacklist.test 8 years ago
psychobunny 0e219a8c58 closes #5891 8 years ago
Barış Soner Uşaklı 74caf191f5 fix typo 8 years ago
Barış Soner Uşaklı ff88be91fa Merge remote-tracking branch 'refs/remotes/origin/master' into develop 8 years ago
Julian Lam 1159abf9ec fixes #5879 8 years ago
Baris Usakli bc6b1a8f56 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
# Conflicts:
#	public/src/admin/extend/plugins.js
8 years ago
Julian Lam 5fc6fe1c80 closes #5162 8 years ago
Baris Usakli e071f94173 test debugParams.js 8 years ago
Baris Usakli 875672522e Merge remote-tracking branch 'refs/remotes/origin/master' into develop
# Conflicts:
#	src/search.js
8 years ago
Barış Soner Uşaklı 911eb32e70 fix var names 8 years ago
Barış Soner Uşaklı f646e08a6e update tags/links for 1.5.4 8 years ago
Julian Lam f29b9f29f9 added missing setImmediate 8 years ago
Julian Lam c40b11aa6e updated site upload logic so that site logo is resized for email header, implemented site logo in email header 8 years ago
Baris Usakli 2d875a99cb fix data 8 years ago
Baris Usakli dc110e2e3f closes #5818 8 years ago
Barış Soner Uşaklı 091fec8d6f removed unnecessary code 8 years ago
Baris Usakli cf444755df closes #5729 8 years ago
Julian Lam 3e6a779dbc Merge remote-tracking branch 'origin/master' 8 years ago
Julian Lam 6728e9a5cc #5729 8 years ago
Barış Soner Uşaklı 14ea9a0dd6 Merge pull request #5716 from NodeBB/import-export-ref
Import export cleanup
8 years ago
Peter Jaszkowiak 8e5bcf6105 Fix #5727 8 years ago
Peter Jaszkowiak e71fb9ab24 Fix `node --inspect` 8 years ago
Peter Jaszkowiak 9a3b684228 Remove dependency, ignore package-lock.json 8 years ago
Peter Jaszkowiak b60dbe7d1e Unwrap meta modules 8 years ago
psychobunny c94365aefd closes #5721 8 years ago
Baris Usakli da8b1b605c #5723 8 years ago
Peter Jaszkowiak 3c2d4fe649 Switch from underscore to lodash 8 years ago
Barış Soner Uşaklı 890c2eff70 style changes 8 years ago
Peter Jaszkowiak 8901dad6f2 Revert "fix concat test on windows"
This reverts commit d1dd0cd6df.
8 years ago
Baris Usakli d1dd0cd6df fix concat test on windows 8 years ago
Peter Jaszkowiak 9ef2b5a003 Don't use uglify compress 8 years ago
Peter Jaszkowiak 53eced6be0 uglify-js@3, JS source maps 🍰 8 years ago
Julian Lam fc4f016932 Merge pull request #5689 from NodeBB/plugin-load-ref
Plugin load refactor
8 years ago
Peter Jaszkowiak 8ce35c3cc2 async.apply -_- 8 years ago
Barış Soner Uşaklı 2faf175739 refactor 8 years ago
Peter Jaszkowiak 3dd282b7b9 Load languages with other plugin data
- Added more tests
- Should speed up builds
- Allows for incremental builds in the future
8 years ago
Peter Jaszkowiak b8baac1aad async.apply 8 years ago
Peter Jaszkowiak cd1f0ddc79 Resolve merge conflicts 8 years ago
Peter Jaszkowiak 2a9cdb7be2 Add `--threads=#` option for setting max threads
Make grunt NODE_ENV development by default
8 years ago
Peter Jaszkowiak d988e8a50f Test minifier 8 years ago
Peter Jaszkowiak 4c1e25c8ce Link instead of copying files
Only mkdirp the necessary directories
8 years ago
Peter Jaszkowiak 9f5ce24993 Minify modules in a batch 8 years ago
Peter Jaszkowiak e8caee3c4c Restrict total threads
So machines with a small amount of cores build faster
8 years ago
Peter Jaszkowiak 90da6d889d Only load necessary plugin data
Fix tests to work in this case
Add more verbose messages to plugins/data
8 years ago
Peter Jaszkowiak b0645cc67d Plugin load refactor 8 years ago
Peter Jaszkowiak 7ccfb5cdc0 Build refactor
- Target aliases and bundles
- More concurrency
- Use `--series` to force series processing
- Minifier self-hosted threading
- meta/css delegates to minifier
8 years ago
Barış Soner Uşaklı 6049c46f15 meta dependecy tests 8 years ago
Barış Soner Uşaklı 66dee3452f more tests for admin uploads 8 years ago
Barış Soner Uşaklı 3a1eba2537 merge 8 years ago
Barış Soner Uşaklı 029e2ea8da 404 logging change
dont write to db on every 404
dont log 404 if route is empty
8 years ago
Barış Soner Uşaklı 1d4923a606 limit # of results returned 8 years ago
barisusakli 085d8c2f92 fix lint 8 years ago
Barış Soner Uşaklı 9d229ae960 fix path to log file if base_dir is undefined 8 years ago
barisusakli 33e8ecc1f4 closes #5404 8 years ago
Barış Soner Uşaklı 081578c7f4 Merge pull request #5616 from NodeBB/auto-lang
Automatically detect user language based on browser accepts header
8 years ago
Peter Jaszkowiak 413bb4736c Save language metadata on build to avoid readdirs later 8 years ago
Peter Jaszkowiak 30b47d39f3 Fix #5536 8 years ago
barisusakli 236758b712 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 8 years ago
Peter Jaszkowiak 2827db3309 Fix sounds playing through multiple tabs 8 years ago
Julian Lam d18cfced96 Merge remote-tracking branch 'origin/master' into develop 8 years ago
Peter Jaszkowiak a8add6477c Fix merge conflicts 8 years ago
Julian Lam a62a4e698f Merge pull request #5578 from NodeBB/utils-translator-require
Make utils and translator easier to require
8 years ago
Peter Jaszkowiak 484a800327 Merge branch master into develop 8 years ago
Peter Jaszkowiak 75d291183d Fix using nodebb in other CWDs 8 years ago
Peter Jaszkowiak 010473e5cc Merge branch 'master' into patch-pitaj 8 years ago
Peter Jaszkowiak 1ed571189c Make utils and translator easier to require
Move utils.walk to file.walk, backwards compatible
8 years ago
Peter Jaszkowiak b53d3254dd buzz is no longer used 8 years ago
Peter Jaszkowiak 2c418fd2af Use npm bootstrap 8 years ago
Peter Jaszkowiak 0ef30e91ba Use ace-builds npm package instead of vendor
ace can be referenced as an r.js module, reduces acp bundle size
8 years ago
Peter Jaszkowiak 17ff8a4151 Enable passing paths as module sources 8 years ago
pichalite 4c89497cc4 Closes #5521 8 years ago
Barış Soner Uşaklı 43f8678c7a update local config immediately 8 years ago
Julian Lam 7afe8a32f6 Merge branch 'master' into develop 8 years ago
Peter Jaszkowiak ff09d6e0dd Fix #5549, improve tpl compilation (#5551) 8 years ago
Julian Lam 69dd1e3aca Merge branch 'master' into develop 8 years ago
barisusakli 8d7283e6c7 dont minify if file ends with .min.js #5529 8 years ago
Julian Lam 793555a344 Merge branch 'master' into develop 8 years ago
RoiEX 186c1f40e9 Refactor Code 8 years ago
RoiEX 710377ceea Remove space 8 years ago
RoiEX 603d45fbfa Changed Serving Method 8 years ago
Julian Lam af2d9fb85b Merge branch 'master' into develop 8 years ago
RoiEX 4082ca40c1 Add last comma 8 years ago
RoiEX 0710c6488d Fix trailing commas 8 years ago
RoiEX eca150f392 Fix Tests 8 years ago
RoiEX f761191fca Add OSD 8 years ago
barisusakli e85e35cf0c closes #5497 8 years ago
barisusakli ea871384d8 remove fallbacks 8 years ago
barisusakli 3b8d14bf12 closes #5493 8 years ago
barisusakli 202bafa3e3 add images to bundle 8 years ago
Julian Lam 45c479a101 Merge branch 'master' into develop 8 years ago
barisusakli 8a0cf6c0ac more admin socket tests 8 years ago
Julian Lam 58cbf44143 Merge branch 'master' into develop 8 years ago
Peter Jaszkowiak 20d250bceb Upgrade script for new sounds system 8 years ago
Peter Jaszkowiak 007051c14c Fix #5476 8 years ago
Julian Lam ddea9f534e running eslint again 8 years ago
Julian Lam 72e77772db Merge branch 'master' into develop 8 years ago
Peter Jaszkowiak dd2b930824 Resolve merge conflicts, minify only `.js` files 8 years ago
pichalite 1d5b3cc73f ACP manage tags page UI changes 8 years ago
Julian Lam 672d7352bb Merge branch 'master' into develop 8 years ago
barisusakli 4cd4414d19 small change 8 years ago
Barış Soner Uşaklı 026c32f32b Merge pull request #5462 from NodeBB/minify-modules
Minify all module scripts in production
8 years ago