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
Jérome Perrin
gitlab-ce
Commits
1f494bcd
Commit
1f494bcd
authored
Jul 19, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
export initRepo from repo/index for testing and reuse
parent
5e4b18ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
app/assets/javascripts/repo/index.js
app/assets/javascripts/repo/index.js
+6
-2
No files found.
app/assets/javascripts/repo/index.js
View file @
1f494bcd
...
...
@@ -10,7 +10,7 @@ import Service from './repo_service';
import
Store
from
'
./repo_store
'
;
import
Helper
from
'
./repo_helper
'
;
$
(()
=>
{
function
initRepo
()
{
const
ide
=
document
.
getElementById
(
'
ide
'
);
const
tabs
=
document
.
getElementById
(
'
tabs
'
);
const
sidebar
=
document
.
getElementById
(
'
sidebar
'
);
...
...
@@ -33,4 +33,8 @@ $(() => {
Store
.
binaryViewer
=
new
BinaryViewer
(
binaryViewer
);
Helper
.
getContent
();
});
}
$
(
initRepo
);
export
default
initRepo
;
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