mirror of
https://github.com/flarum/framework.git
synced 2025-05-23 15:19:56 +08:00
Replace Ember app with Mithril app
This commit is contained in:
14
js/lib/models/activity.js
Normal file
14
js/lib/models/activity.js
Normal file
@ -0,0 +1,14 @@
|
||||
import Model from 'flarum/model';
|
||||
|
||||
class Activity extends Model {}
|
||||
|
||||
Activity.prototype.id = Model.prop('id');
|
||||
Activity.prototype.contentType = Model.prop('contentType');
|
||||
Activity.prototype.content = Model.prop('content');
|
||||
Activity.prototype.time = Model.prop('time', Model.date);
|
||||
|
||||
Activity.prototype.user = Model.one('user');
|
||||
Activity.prototype.sender = Model.one('sender');
|
||||
Activity.prototype.post = Model.one('post');
|
||||
|
||||
export default Activity;
|
Reference in New Issue
Block a user