forked from haiwen/seahub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
485 changed files
with
50,051 additions
and
9,536 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
media/assets/scripts/app/collections/activities.77ea3149773c.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
define([ | ||
'underscore', | ||
'backbone', | ||
'common', | ||
'app/models/activity' | ||
], function(_, Backbone, Common, Activity) { | ||
'use strict'; | ||
|
||
var ActivityCollection = Backbone.Collection.extend({ | ||
model: Activity, | ||
url: function () { | ||
return Common.getUrl({name: 'events'}); | ||
} | ||
}); | ||
|
||
return ActivityCollection; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
define([ | ||
'underscore', | ||
'backbone', | ||
'common', | ||
'app/models/activity' | ||
], function(_, Backbone, Common, Activity) { | ||
'use strict'; | ||
|
||
var ActivityCollection = Backbone.Collection.extend({ | ||
model: Activity, | ||
url: function () { | ||
return Common.getUrl({name: 'events'}); | ||
} | ||
}); | ||
|
||
return ActivityCollection; | ||
}); |
17 changes: 17 additions & 0 deletions
17
media/assets/scripts/app/collections/devices.ce46433dc2f6.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
define([ | ||
'underscore', | ||
'backbone', | ||
'common', | ||
'app/models/device' | ||
], function(_, Backbone, Common, Device) { | ||
'use strict'; | ||
|
||
var DevicesCollection = Backbone.Collection.extend({ | ||
model: Device, | ||
url: function () { | ||
return Common.getUrl({name: 'devices'}); | ||
} | ||
}); | ||
|
||
return DevicesCollection; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
define([ | ||
'underscore', | ||
'backbone', | ||
'common', | ||
'app/models/device' | ||
], function(_, Backbone, Common, Device) { | ||
'use strict'; | ||
|
||
var DevicesCollection = Backbone.Collection.extend({ | ||
model: Device, | ||
url: function () { | ||
return Common.getUrl({name: 'devices'}); | ||
} | ||
}); | ||
|
||
return DevicesCollection; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
media/assets/scripts/app/collections/group-discussions.44e990cae2b8.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
define([ | ||
'underscore', | ||
'backbone', | ||
'common', | ||
'app/models/group-discussion' | ||
], function(_, Backbone, Common, GroupDiscussion) { | ||
'use strict'; | ||
|
||
var GroupDiscussions = Backbone.Collection.extend({ | ||
model: GroupDiscussion, | ||
|
||
setGroupId: function(group_id) { | ||
this.group_id = group_id; | ||
}, | ||
|
||
url: function() { | ||
return Common.getUrl({name: 'group_discussions', group_id: this.group_id}); | ||
}, | ||
|
||
parse: function(data) { | ||
this.current_page = data.current_page; | ||
this.page_num = data.page_num; | ||
|
||
return data.msgs; | ||
} | ||
|
||
}); | ||
|
||
return GroupDiscussions; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
define([ | ||
'underscore', | ||
'backbone', | ||
'common', | ||
'app/models/group-discussion' | ||
], function(_, Backbone, Common, GroupDiscussion) { | ||
'use strict'; | ||
|
||
var GroupDiscussions = Backbone.Collection.extend({ | ||
model: GroupDiscussion, | ||
|
||
setGroupId: function(group_id) { | ||
this.group_id = group_id; | ||
}, | ||
|
||
url: function() { | ||
return Common.getUrl({name: 'group_discussions', group_id: this.group_id}); | ||
}, | ||
|
||
parse: function(data) { | ||
this.current_page = data.current_page; | ||
this.page_num = data.page_num; | ||
|
||
return data.msgs; | ||
} | ||
|
||
}); | ||
|
||
return GroupDiscussions; | ||
}); |
19 changes: 19 additions & 0 deletions
19
media/assets/scripts/app/collections/group-members.043343107764.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
define([ | ||
'underscore', | ||
'backbone', | ||
'common' | ||
], function(_, Backbone, Common) { | ||
'use strict'; | ||
|
||
var GroupMemberCollection = Backbone.Collection.extend({ | ||
setGroupId: function(group_id) { | ||
this.group_id = group_id; | ||
}, | ||
|
||
url: function() { | ||
return Common.getUrl({name: 'group_members', group_id: this.group_id}); | ||
} | ||
}); | ||
|
||
return GroupMemberCollection; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
define([ | ||
'underscore', | ||
'backbone', | ||
'common' | ||
], function(_, Backbone, Common) { | ||
'use strict'; | ||
|
||
var GroupMemberCollection = Backbone.Collection.extend({ | ||
setGroupId: function(group_id) { | ||
this.group_id = group_id; | ||
}, | ||
|
||
url: function() { | ||
return Common.getUrl({name: 'group_members', group_id: this.group_id}); | ||
} | ||
}); | ||
|
||
return GroupMemberCollection; | ||
}); |
21 changes: 21 additions & 0 deletions
21
media/assets/scripts/app/collections/groups.b2bc7f1951b4.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
define([ | ||
'underscore', | ||
'backbone', | ||
'common', | ||
'app/models/group' | ||
], function(_, Backbone, Common, Group) { | ||
'use strict'; | ||
|
||
var GroupCollection = Backbone.Collection.extend({ | ||
model: Group, | ||
comparator: function(a, b) { | ||
return Common.compareTwoWord(a.get('name'), b.get('name')); | ||
}, | ||
|
||
url: function() { | ||
return Common.getUrl({name: 'groups'}); | ||
} | ||
}); | ||
|
||
return GroupCollection; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
define([ | ||
'underscore', | ||
'backbone', | ||
'common', | ||
'app/models/group' | ||
], function(_, Backbone, Common, Group) { | ||
'use strict'; | ||
|
||
var GroupCollection = Backbone.Collection.extend({ | ||
model: Group, | ||
comparator: function(a, b) { | ||
return Common.compareTwoWord(a.get('name'), b.get('name')); | ||
}, | ||
|
||
url: function() { | ||
return Common.getUrl({name: 'groups'}); | ||
} | ||
}); | ||
|
||
return GroupCollection; | ||
}); |
17 changes: 17 additions & 0 deletions
17
media/assets/scripts/app/collections/invitations.8a8ca0052bc9.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
define([ | ||
'underscore', | ||
'backbone', | ||
'common', | ||
'app/models/invitation' | ||
], function(_, Backbone, Common, Invitation) { | ||
'use strict'; | ||
|
||
var Invitations = Backbone.Collection.extend({ | ||
model: Invitation, | ||
url: function() { | ||
return Common.getUrl({name: 'invitations'}); | ||
} | ||
}); | ||
|
||
return Invitations; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
define([ | ||
'underscore', | ||
'backbone', | ||
'common', | ||
'app/models/invitation' | ||
], function(_, Backbone, Common, Invitation) { | ||
'use strict'; | ||
|
||
var Invitations = Backbone.Collection.extend({ | ||
model: Invitation, | ||
url: function() { | ||
return Common.getUrl({name: 'invitations'}); | ||
} | ||
}); | ||
|
||
return Invitations; | ||
}); |
10 changes: 7 additions & 3 deletions
10
...app/collections/pub-repos.722da6d5cd43.js → ...app/collections/pub-repos.56fb5a44d957.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.