Initial commit

This commit is contained in:
zhongjin
2020-06-15 10:58:47 +08:00
commit 4f1dfe7564
8590 changed files with 1516878 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
var UrlModel = require('dashboard/data/url-model');
/**
* URL for a map (derived vis).
*/
var OrganizationUrlModel = UrlModel.extend({
edit: function (user) {
if (!user) {
throw new Error('User is needed to create the url');
}
return this.urlToPath(user.get('username') + '/edit');
},
create: function () {
return this.urlToPath('new');
},
groups: function () {
return this.urlToPath('groups');
}
});
module.exports = OrganizationUrlModel;