Thomas Lynch
d68a32b831
Add some additional improved permission.js tests, and null check rather than !Metadata in permission handleBody (because else 0 would be true)
2 years ago
Thomas Lynch
571380e243
remove applying inheritance on setting, match editstaff/editaccount
2 years ago
Thomas Lynch
75471381db
Merge branch 'develop' into feature/396-localisation
2 years ago
Thomas Lynch
473eb94d39
Update permission.test.js to correctly expect() the .every rather than in the every callback, else it would only check the first one
2 years ago
Thomas Lynch
f0b1ce6f63
eslint fix
2 years ago
Thomas Lynch
0d078db10d
Merge branch 'develop' into feature/396-localisation
2 years ago
Thomas Lynch
a6706cd6d3
version bump, update CHANGELOG & package*.json
2 years ago
Thomas Lynch
cebf2fe4a9
Convert uploadbanners to new schema checker along with other asset handlers, and fix max flag assets check
2 years ago
Thomas Lynch
3374d70572
fix gulpfile race condition on deleting static lang folder
2 years ago
Thomas Lynch
2aa5d1afbe
make frontend translation fallback to keys if missing
2 years ago
Thomas Lynch
c553a60936
disable retarded i18n option
2 years ago
Thomas Lynch
2d48f4110b
pluralisation and %s for numebr substitute, with simple conversion code for frontend
2 years ago
Thomas Lynch
5db3bedb4d
translate postform
2 years ago
Thomas Lynch
4efa40a7b4
Merge branch 'develop' into feature/396-localisation
2 years ago
Thomas Lynch
fba680f40c
permissions metadata change, allow blocking editing/disable checkbox
2 years ago
Thomas Lynch
e8bed661e8
language to boardDefaults
2 years ago
Thomas Lynch
eb74588258
Merge branch 'develop' into feature/396-localisation
2 years ago
Thomas Lynch
277745a5ca
Fix the completely fucked up "my permission", the board equivalent, and staff permissions page since a recent permission update. Upside is it now considers the "parent" thing, which is nice.
2 years ago
Thomas Lynch
634305e22b
Merge branch 'develop' into feature/396-localisation
2 years ago
Thomas Lynch
a4927c86a1
Convert addflags and addassets to schema formhandler, was still on old form handling code
2 years ago
Thomas Lynch
612e7d0f3a
Add language set middleware to a bunch of routes, and make some minor middleware ordering changes to supprot
...
Add example translations in server.js, a controller for form submission, and in a middleware (file middleware in this case)
2 years ago
Thomas Lynch
7c9f6257f8
Add setQueryLanguage mw, Make bypass_minimal language aware, TODO make form submissions know language and redirect to blockbypass for board with language query string
2 years ago
Thomas Lynch
21a181d3fa
Add some more simple translations, translate (You)'s and Settings button as proof of concept of translation in JS and CSS
2 years ago
Thomas Lynch
a019006e20
For the 100th time, make it "work"
2 years ago
Thomas Lynch
670119148c
Make languages on frontend included individually as a language .js file. Fix issue with lib/build/render.js page. I **think** this is good now.
2 years ago
Thomas Lynch
5bf792649b
Try getting languages into the frontend (still want a better way to only include single language packs and only a subset of keys)
2 years ago
Thomas Lynch
a360f09929
Bugfix changeboardsettings language
2 years ago
Thomas Lynch
224b141920
Change setting locale in render locals in build locals, remove test header
2 years ago
Thomas Lynch
5e3b935664
fix language setting and test translation on globalmanagenav
2 years ago
Thomas Lynch
4c3ba53cc1
Set language global and after boards.exists
2 years ago
Thomas Lynch
e4dd53427e
Add language setting to global settings and board settings
2 years ago
Thomas Lynch
eb8ba712f6
Add __ local to app locals
2 years ago
Thomas Lynch
5e7cc919c2
Add __ locale to render lib and gulpfile rendering
2 years ago
Thomas Lynch
679d095d98
Start on localisation ref #396
2 years ago
Thomas Lynch
52c9e1521d
edit menu option only in mod/manage view
2 years ago
Thomas Lynch
beb3986448
Show in title param what parent permission is needed in the frontend.
2 years ago
Thomas Lynch
7a3095594f
Change permissions metadata to be keyed by the permission bits
...
Refactor form handling for permissions in editrole/editaccount, make mush shorter and more maintainable
2 years ago
Thomas Lynch
5a7368a0a4
Add a new property to permissions metadata and reflect on frontend inability for users without that "parent" permission to edit roles/accounts to have some permissions e.g. root, edit roles, edit accs
...
Put the metadata into permissions.js (also TODO: key the metadata by bits instead? i.e [Permisions.whatever]: {})
2 years ago
Thomas Lynch
4b396393da
Hungover af bruh
2 years ago
Thomas Lynch
649326df5a
update CHANGELOG
2 years ago
Thomas Lynch
d639460bb3
Bugfix editing from actions form redirecting always to OP instead of post
2 years ago
Thomas Lynch
ad84d6e03a
Merge branch 'fix-reporting' into 'master'
...
Fix post reporting for not logged-in users
See merge request fatchan/jschan!277
2 years ago
some random guy
88b5542908
fix post reporting for not logged-in users
...
That check is only relevant when we try to move a post.
2 years ago
Thomas Lynch
5f99ca5062
Improve 0.11.0 migration
...
add simple regex for handling ipv4/6 instead of assuming all ipv4
actually append 4/6 to existing cloaks
set type 0 on all bans/posts before applying correct types to ensure all have at least some ip type
2 years ago
Thomas Lynch
78cf3bde5a
update CHANGELOG
2 years ago
Thomas Lynch
49e9ed2c28
update dependencies
2 years ago
Thomas Lynch
fa6d94d63b
npm audit fix
2 years ago
Thomas Lynch
f2b7a3be13
add some tests for cross board moving
...
update edit ban duration action "edit_duration" instead of "edit"
edit a role in setup for allowing anons to bypass captcha
add captcha 000000 to changepassword in setup
add some more pages/jsons to the pages.js test file
2 years ago
Thomas Lynch
bc53bc1e4a
Allow roles from globalmanage to be fetched as json
2 years ago
Thomas Lynch
b0db6553a7
modview will show full email form instead of abiding by "sage only email" which now correctly only applies to anons
2 years ago