34 Commits (e613f88b2969958bddc75bcbaa9825ff620bc002)

Author SHA1 Message Date
Barış Soner Uşaklı ec0c50d4e0 fix: #7041 6 years ago
Barış Soner Uşaklı 7a44424214 parse '123' to 123 if it has no default 6 years ago
Barış Soner Uşaklı d07e3e6d97 if not in defaults use string 6 years ago
Barış Soner Uşaklı 4fff5e9baf closes #6855 6 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
6 years ago
Julian Lam 2b95b13397 closes #6328 7 years ago
Barış Soner Uşaklı 3f2a1d3e8e check error first #6116 7 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
7 years ago
Barış Soner Uşaklı 845f01f297 dont set meta.config to null 7 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
Peter Jaszkowiak b60dbe7d1e Unwrap meta modules 8 years ago
Barış Soner Uşaklı 43f8678c7a update local config immediately 8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 8 years ago
Peter Jaszkowiak 277a7fb8b4 ESlint key-spacing, no-trailing-spaces 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
Peter Jaszkowiak f4147f7922 Generate cache buster on build 8 years ago
Peter Jaszkowiak b4b3be3d97 Cache bust translations, query param name 8 years ago
barisusakli 009da723c5 meta.configs tests 8 years ago
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule 8 years ago
barisusakli d4c512cb3f handle the case where the object is not set at all #5018 9 years ago
barisusakli 7269d45e84 closes #5018 9 years ago
barisusakli 8f408faf46 organize middlewares
removed app.locals.middleware
middlewares can be required anywhere, ie in controllers
9 years ago
boomzilla 52e4a37df8 When forking a topic, updates user bookmarks in the topic to keep the last read position (#4554)
from inadvertently being too far down the topic due to post indices decreasing because
some posts were moved to a new topic.
9 years ago
Julian Lam ceaa3a334d Squashed commit of the following:
commit 3a39e5e6bd3c357d78d8ec1dad6e3a64c18ee3ab
Author: Julian Lam <[email protected]>
Date:   Tue Nov 3 20:15:10 2015 -0500

    minor tweak

commit ed3c25ba8b431a2b730aae78a43cfa934521a5d4
Merge: d9cde96 d7a0adc
Author: Julian Lam <[email protected]>
Date:   Tue Nov 3 20:12:32 2015 -0500

    Merge branch 'master' of https://github.com/acardinale/NodeBB into acardinale-master

commit d7a0adc5c883c5fa3207f3adcd0661246221e7c9
Author: Andrea Cardinale <[email protected]>
Date:   Wed Sep 30 10:32:25 2015 +0200

    Get registry (if it's set) from config.json in suggest method (client-side)
9 years ago
Julian Lam 4f766ac7b5 Updated cache buster logic
Removed css and script busters in favour of a uuid/guid cache
buster that is generated when the app starts.

This change means that in the event your NodeBB crashes often,
users will not be able to rely on their browser cache to serve
an unchanged style/js file, but if that's the case, you've
got bigger problems anyway.

re: #3573
10 years ago
Fokke Zandbergen 1eee970ebb Allow NodeBB version to be set via config to package.json version can be incremented when needed. 10 years ago
barisusakli 936ea5f686 sync config changes over redis pubsub 10 years ago
barisusakli 80d7ae597b closes #2451 10 years ago
Julian Lam 52285239e9 fixed client-side so semver doesn't explode when nbbpm returns 'latest', fixed tests so they pass again, #2363 10 years ago
Julian Lam 19297e2d22 plugin installation takes a version now, and queries nbbpm, #2363
better error handling for #2363

upgrades now also call the suggestion route from nbbpm

upgrade button will show alert now if you try to upgrade past the suggested version, #2363
10 years ago
barisusakli 9c996e4b99 on config save update meta.config on all workers
also dont make 20 socket.emit calls for each setting field, everything
will be send in 1 socket call.
11 years ago
barisusakli c640e01969 show stack 11 years ago
barisusakli f288f80da6 meta.js refactor 11 years ago