Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
5ac76edb
Commit
5ac76edb
authored
Apr 20, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved activity bar view constant into constants file
parent
2e7389ab
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
7 deletions
+9
-7
app/assets/javascripts/ide/components/activity_bar.vue
app/assets/javascripts/ide/components/activity_bar.vue
+1
-1
app/assets/javascripts/ide/constants.js
app/assets/javascripts/ide/constants.js
+5
-0
app/assets/javascripts/ide/stores/state.js
app/assets/javascripts/ide/stores/state.js
+1
-4
spec/javascripts/ide/components/activity_bar_spec.js
spec/javascripts/ide/components/activity_bar_spec.js
+1
-1
spec/javascripts/ide/components/ide_side_bar_spec.js
spec/javascripts/ide/components/ide_side_bar_spec.js
+1
-1
No files found.
app/assets/javascripts/ide/components/activity_bar.vue
View file @
5ac76edb
<
script
>
import
{
mapActions
,
mapGetters
,
mapState
}
from
'
vuex
'
;
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
import
{
ActivityBarViews
}
from
'
../
stores/state
'
;
import
{
ActivityBarViews
}
from
'
../
constants
'
;
export
default
{
components
:
{
...
...
app/assets/javascripts/ide/constants.js
View file @
5ac76edb
// Fuzzy file finder
export
const
MAX_TITLE_LENGTH
=
50
;
export
const
MAX_BODY_LENGTH
=
72
;
export
const
ActivityBarViews
=
{
edit
:
'
ide-tree
'
,
commit
:
'
commit-section
'
,
};
app/assets/javascripts/ide/stores/state.js
View file @
5ac76edb
export
const
ActivityBarViews
=
{
edit
:
'
ide-tree
'
,
commit
:
'
commit-section
'
,
};
import
{
ActivityBarViews
}
from
'
../constants
'
;
export
default
()
=>
({
currentProjectId
:
''
,
...
...
spec/javascripts/ide/components/activity_bar_spec.js
View file @
5ac76edb
import
Vue
from
'
vue
'
;
import
store
from
'
~/ide/stores
'
;
import
{
ActivityBarViews
}
from
'
~/ide/
stores/state
'
;
import
{
ActivityBarViews
}
from
'
~/ide/
constants
'
;
import
ActivityBar
from
'
~/ide/components/activity_bar.vue
'
;
import
{
createComponentWithStore
}
from
'
../../helpers/vue_mount_component_helper
'
;
import
{
resetStore
}
from
'
../helpers
'
;
...
...
spec/javascripts/ide/components/ide_side_bar_spec.js
View file @
5ac76edb
import
Vue
from
'
vue
'
;
import
store
from
'
~/ide/stores
'
;
import
ideSidebar
from
'
~/ide/components/ide_side_bar.vue
'
;
import
{
ActivityBarViews
}
from
'
~/ide/
stores/state
'
;
import
{
ActivityBarViews
}
from
'
~/ide/
constants
'
;
import
{
createComponentWithStore
}
from
'
spec/helpers/vue_mount_component_helper
'
;
import
{
resetStore
}
from
'
../helpers
'
;
import
{
projectData
}
from
'
../mock_data
'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment