1
0
mirror of https://github.com/flarum/core.git synced 2025-08-30 19:40:02 +02:00

Perform general repo maintenance (#37)

* Perform general repo maintenance

- Bump deps
- Add Prettier
- Add `flarum-tsconfig` for typings support

* Move webpack config to devDeps

* Use organisation Prettier

* Add setup for https://github.com/flarum/flarum-tsconfig/pull/2
This commit is contained in:
David Wheatley
2021-07-31 12:50:35 +01:00
committed by GitHub
parent fd14cb2472
commit 0cb36b90c3
6 changed files with 4760 additions and 2577 deletions

View File

@@ -1,11 +1,12 @@
import app from 'flarum/app';
app.initializers.add('flarum-suspend', () => {
app.extensionData
.for('flarum-suspend')
.registerPermission({
app.extensionData.for('flarum-suspend').registerPermission(
{
icon: 'fas fa-ban',
label: app.translator.trans('flarum-suspend.admin.permissions.suspend_users_label'),
permission: 'user.suspend'
}, 'moderate');
permission: 'user.suspend',
},
'moderate'
);
});