mirror of
https://github.com/flarum/framework.git
synced 2025-05-23 07:09:57 +08:00

- 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.
12 lines
340 B
JavaScript
12 lines
340 B
JavaScript
import Model from 'flarum/Model';
|
|
import mixin from 'flarum/utils/mixin';
|
|
|
|
export default class Activity extends mixin(Model, {
|
|
contentType: Model.attribute('contentType'),
|
|
content: Model.attribute('content'),
|
|
time: Model.attribute('time', Model.transformDate),
|
|
|
|
user: Model.hasOne('user'),
|
|
subject: Model.hasOne('subject')
|
|
}) {}
|