mirror of
https://github.com/flarum/core.git
synced 2025-07-18 07:11:17 +02:00
Massive JavaScript cleanup
- Use JSX for templates - Docblock/comment everything - Mostly passes ESLint (still some work to do) - Lots of renaming, refactoring, etc. CSS hasn't been updated yet.
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import Model from 'flarum/model';
|
||||
import Model from 'flarum/Model';
|
||||
import mixin from 'flarum/utils/mixin';
|
||||
|
||||
class Group extends Model {}
|
||||
|
||||
Group.prototype.nameSingular = Model.attribute('nameSingular');
|
||||
Group.prototype.namePlural = Model.attribute('namePlural');
|
||||
Group.prototype.color = Model.attribute('color');
|
||||
Group.prototype.icon = Model.attribute('icon');
|
||||
class Group extends mixin(Model, {
|
||||
nameSingular: Model.attribute('nameSingular'),
|
||||
namePlural: Model.attribute('namePlural'),
|
||||
color: Model.attribute('color'),
|
||||
icon: Model.attribute('icon')
|
||||
}) {}
|
||||
|
||||
Group.ADMINISTRATOR_ID = 1;
|
||||
Group.GUEST_ID = 2;
|
||||
|
Reference in New Issue
Block a user