diff options
author | Phil Hughes <me@iamphill.com> | 2018-03-01 14:25:13 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-03-02 08:42:02 +0000 |
commit | 4927cb75e6ab82500b3d055f35ea621483c224fe (patch) | |
tree | 5f6aab32e6e666ea34fcf67ae6a474802c747a0c /app/assets/javascripts/ide/services | |
parent | f29dbaf55cc0c8a4b80c153454a2f7e22fd7a827 (diff) | |
download | gitlab-ce-4927cb75e6ab82500b3d055f35ea621483c224fe.tar.gz |
Remove IDE from CE
Diffstat (limited to 'app/assets/javascripts/ide/services')
-rw-r--r-- | app/assets/javascripts/ide/services/index.js | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/app/assets/javascripts/ide/services/index.js b/app/assets/javascripts/ide/services/index.js deleted file mode 100644 index 1fb24e93f2e..00000000000 --- a/app/assets/javascripts/ide/services/index.js +++ /dev/null @@ -1,47 +0,0 @@ -import Vue from 'vue'; -import VueResource from 'vue-resource'; -import Api from '../../api'; - -Vue.use(VueResource); - -export default { - getTreeData(endpoint) { - return Vue.http.get(endpoint, { params: { format: 'json' } }); - }, - getFileData(endpoint) { - return Vue.http.get(endpoint, { params: { format: 'json' } }); - }, - getRawFileData(file) { - if (file.tempFile) { - return Promise.resolve(file.content); - } - - if (file.raw) { - return Promise.resolve(file.raw); - } - - return Vue.http.get(file.rawPath, { params: { format: 'json' } }) - .then(res => res.text()); - }, - getProjectData(namespace, project) { - return Api.project(`${namespace}/${project}`); - }, - getBranchData(projectId, currentBranchId) { - return Api.branchSingle(projectId, currentBranchId); - }, - createBranch(projectId, payload) { - const url = Api.buildUrl(Api.createBranchPath).replace(':id', projectId); - - return Vue.http.post(url, payload); - }, - commit(projectId, payload) { - return Api.commitMultiple(projectId, payload); - }, - getTreeLastCommit(endpoint) { - return Vue.http.get(endpoint, { - params: { - format: 'json', - }, - }); - }, -}; |