-
Notifications
You must be signed in to change notification settings - Fork 4
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
6 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -13,12 +13,14 @@ | |
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
* Copyright (c) 2014-2018 (original work) Open Assessment Technologies SA; | ||
* Copyright (c) 2014-2019 (original work) Open Assessment Technologies SA; | ||
*/ | ||
|
||
/** | ||
* configure the extension bundles | ||
* @author Bertrand Chevrier <[email protected]> | ||
* | ||
* @param {Object} grunt - the grunt object (by convention) | ||
*/ | ||
module.exports = function(grunt) { | ||
'use strict'; | ||
|
@@ -31,7 +33,8 @@ module.exports = function(grunt) { | |
outputDir : 'loader', | ||
bundles : [{ | ||
name : 'taoGroups', | ||
default : true | ||
default : true, | ||
babel : true | ||
}] | ||
} | ||
} | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
* Copyright (c) 2017 (original work) Open Assessment Technologies SA; | ||
* Copyright (c) 2017-2019 (original work) Open Assessment Technologies SA; | ||
* | ||
* @author Alexander Zagovorichev <[email protected]> | ||
*/ | ||
|
@@ -44,17 +44,17 @@ define(['jquery', 'lodash', 'i18n', 'util/url', 'core/promise', 'core/request'], | |
* @param {String} [config.type] - Type of the instance | ||
* @return {*} | ||
*/ | ||
addInstance: function addInstance (config) { | ||
addInstance (config) { | ||
|
||
var _defaults = { | ||
const _defaults = { | ||
classUri: 'http_2_www_0_tao_0_lu_1_Ontologies_1_TAOGroup_0_rdf_3_Group', | ||
id: 'http://www.tao.lu/Ontologies/TAOGroup.rdf#Group', | ||
type: 'instance' | ||
}; | ||
|
||
config = _.defaults(config || {}, _defaults); | ||
|
||
return new Promise(function(resolve, reject){ | ||
return new Promise((resolve, reject) => { | ||
coreRequest({ | ||
url: urlUtil.route('addInstance', 'Groups', 'taoGroups'), | ||
method: 'POST', | ||
|
@@ -76,9 +76,9 @@ define(['jquery', 'lodash', 'i18n', 'util/url', 'core/promise', 'core/request'], | |
* @param uri | ||
* @return {*} | ||
*/ | ||
deleteGroup: function deleteGroup (uri) { | ||
deleteGroup (uri) { | ||
|
||
return new Promise(function(resolve, reject) { | ||
return new Promise((resolve, reject) => { | ||
|
||
if (!_.isString(uri) || _.isEmpty(uri)) { | ||
return reject(new TypeError(__('Group uri is not valid'))); | ||
|