Commit a93c1349 authored by Phil Hughes's avatar Phil Hughes

fixed IDE conflicts

parent d7c5ec12
<script> <script>
<<<<<<< HEAD
import projectAvatarImage from '~/vue_shared/components/project_avatar/image.vue';
import branchesTree from './ide_project_branches_tree.vue';
import externalLinks from './ide_external_links.vue';
export default {
components: {
branchesTree,
externalLinks,
projectAvatarImage,
=======
import ProjectAvatarImage from '~/vue_shared/components/project_avatar/image.vue'; import ProjectAvatarImage from '~/vue_shared/components/project_avatar/image.vue';
import Identicon from '../../vue_shared/components/identicon.vue'; import Identicon from '../../vue_shared/components/identicon.vue';
import BranchesTree from './ide_project_branches_tree.vue'; import BranchesTree from './ide_project_branches_tree.vue';
...@@ -21,7 +10,6 @@ export default { ...@@ -21,7 +10,6 @@ export default {
ExternalLinks, ExternalLinks,
ProjectAvatarImage, ProjectAvatarImage,
Identicon, Identicon,
>>>>>>> upstream/master
}, },
props: { props: {
project: { project: {
...@@ -39,14 +27,10 @@ export default { ...@@ -39,14 +27,10 @@ export default {
:title="project.name" :title="project.name"
:href="project.web_url" :href="project.web_url"
> >
<<<<<<< HEAD
<div class="avatar-container s40 project-avatar">
=======
<div <div
v-if="project.avatar_url" v-if="project.avatar_url"
class="avatar-container s40 project-avatar" class="avatar-container s40 project-avatar"
> >
>>>>>>> upstream/master
<project-avatar-image <project-avatar-image
class="avatar-container project-avatar" class="avatar-container project-avatar"
:link-href="project.path" :link-href="project.path"
...@@ -55,15 +39,12 @@ export default { ...@@ -55,15 +39,12 @@ export default {
:img-size="40" :img-size="40"
/> />
</div> </div>
<<<<<<< HEAD
=======
<identicon <identicon
v-else v-else
size-class="s40" size-class="s40"
:entity-id="project.id" :entity-id="project.id"
:entity-name="project.name" :entity-name="project.name"
/> />
>>>>>>> upstream/master
<div class="sidebar-context-title"> <div class="sidebar-context-title">
{{ project.name }} {{ project.name }}
</div> </div>
......
...@@ -43,10 +43,7 @@ export default { ...@@ -43,10 +43,7 @@ export default {
'file-open': this.isBlob && this.file.opened, 'file-open': this.isBlob && this.file.opened,
'file-active': this.isBlob && this.file.active, 'file-active': this.isBlob && this.file.active,
folder: this.isTree, folder: this.isTree,
<<<<<<< HEAD
=======
'is-open': this.file.opened, 'is-open': this.file.opened,
>>>>>>> upstream/master
}; };
}, },
}, },
......
...@@ -54,43 +54,6 @@ const router = new VueRouter({ ...@@ -54,43 +54,6 @@ const router = new VueRouter({
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
if (to.params.namespace && to.params.project) { if (to.params.namespace && to.params.project) {
<<<<<<< HEAD
store.dispatch('getProjectData', {
namespace: to.params.namespace,
projectId: to.params.project,
})
.then(() => {
const fullProjectId = `${to.params.namespace}/${to.params.project}`;
if (to.params.branch) {
store.dispatch('getBranchData', {
projectId: fullProjectId,
branchId: to.params.branch,
});
store.dispatch('getFiles', {
projectId: fullProjectId,
branchId: to.params.branch,
})
.then(() => {
if (to.params[0]) {
const treeEntry = store.state.entries[to.params[0]];
if (treeEntry) {
store.dispatch('handleTreeEntryAction', treeEntry);
}
}
})
.catch((e) => {
flash('Error while loading the branch files. Please try again.', 'alert', document, null, false, true);
throw e;
});
}
})
.catch((e) => {
flash('Error while loading the project data. Please try again.', 'alert', document, null, false, true);
throw e;
});
=======
store store
.dispatch('getProjectData', { .dispatch('getProjectData', {
namespace: to.params.namespace, namespace: to.params.namespace,
...@@ -146,7 +109,6 @@ router.beforeEach((to, from, next) => { ...@@ -146,7 +109,6 @@ router.beforeEach((to, from, next) => {
); );
throw e; throw e;
}); });
>>>>>>> upstream/master
} }
next(); next();
......
<<<<<<< HEAD
import {
decorateData,
sortTree,
} from '../utils';
self.addEventListener('message', (e) => {
const { data, projectId, branchId, tempFile = false, content = '', base64 = false } = e.data;
=======
import { decorateData, sortTree } from '../utils'; import { decorateData, sortTree } from '../utils';
self.addEventListener('message', e => { self.addEventListener('message', e => {
...@@ -18,7 +9,6 @@ self.addEventListener('message', e => { ...@@ -18,7 +9,6 @@ self.addEventListener('message', e => {
content = '', content = '',
base64 = false, base64 = false,
} = e.data; } = e.data;
>>>>>>> upstream/master
const treeList = []; const treeList = [];
let file; let file;
...@@ -29,13 +19,9 @@ self.addEventListener('message', e => { ...@@ -29,13 +19,9 @@ self.addEventListener('message', e => {
if (pathSplit.length > 0) { if (pathSplit.length > 0) {
pathSplit.reduce((pathAcc, folderName) => { pathSplit.reduce((pathAcc, folderName) => {
const parentFolder = acc[pathAcc[pathAcc.length - 1]]; const parentFolder = acc[pathAcc[pathAcc.length - 1]];
<<<<<<< HEAD
const folderPath = `${(parentFolder ? `${parentFolder.path}/` : '')}${folderName}`;
=======
const folderPath = `${ const folderPath = `${
parentFolder ? `${parentFolder.path}/` : '' parentFolder ? `${parentFolder.path}/` : ''
}${folderName}`; }${folderName}`;
>>>>>>> upstream/master
const foundEntry = acc[folderPath]; const foundEntry = acc[folderPath];
if (!foundEntry) { if (!foundEntry) {
...@@ -45,17 +31,11 @@ self.addEventListener('message', e => { ...@@ -45,17 +31,11 @@ self.addEventListener('message', e => {
id: folderPath, id: folderPath,
name: folderName, name: folderName,
path: folderPath, path: folderPath,
<<<<<<< HEAD
url: `/${projectId}/tree/${branchId}/${folderPath}`,
type: 'tree',
parentTreeUrl: parentFolder ? parentFolder.url : `/${projectId}/tree/${branchId}/`,
=======
url: `/${projectId}/tree/${branchId}/${folderPath}/`, url: `/${projectId}/tree/${branchId}/${folderPath}/`,
type: 'tree', type: 'tree',
parentTreeUrl: parentFolder parentTreeUrl: parentFolder
? parentFolder.url ? parentFolder.url
: `/${projectId}/tree/${branchId}/`, : `/${projectId}/tree/${branchId}/`,
>>>>>>> upstream/master
tempFile, tempFile,
changed: tempFile, changed: tempFile,
opened: tempFile, opened: tempFile,
...@@ -90,13 +70,9 @@ self.addEventListener('message', e => { ...@@ -90,13 +70,9 @@ self.addEventListener('message', e => {
path, path,
url: `/${projectId}/blob/${branchId}/${path}`, url: `/${projectId}/blob/${branchId}/${path}`,
type: 'blob', type: 'blob',
<<<<<<< HEAD
parentTreeUrl: fileFolder ? fileFolder.url : `/${projectId}/blob/${branchId}`,
=======
parentTreeUrl: fileFolder parentTreeUrl: fileFolder
? fileFolder.url ? fileFolder.url
: `/${projectId}/blob/${branchId}`, : `/${projectId}/blob/${branchId}`,
>>>>>>> upstream/master
tempFile, tempFile,
changed: tempFile, changed: tempFile,
content, content,
......
...@@ -79,11 +79,7 @@ ...@@ -79,11 +79,7 @@
= render 'projects/find_file_link' = render 'projects/find_file_link'
= succeed " " do = succeed " " do
<<<<<<< HEAD
= link_to ide_edit_path(@project, @id), class: 'btn btn-default' do
=======
= link_to ide_edit_path(@project, @id, ""), class: 'btn btn-default' do = link_to ide_edit_path(@project, @id, ""), class: 'btn btn-default' do
>>>>>>> upstream/master
= _('Web IDE') = _('Web IDE')
= render 'projects/buttons/download', project: @project, ref: @ref = render 'projects/buttons/download', project: @project, ref: @ref
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment