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
b7bf9b41
Commit
b7bf9b41
authored
Mar 03, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor Network class
parent
34742710
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
18 deletions
+15
-18
app/assets/javascripts/network/network.js
app/assets/javascripts/network/network.js
+14
-16
app/assets/javascripts/network/network_bundle.js
app/assets/javascripts/network/network_bundle.js
+1
-2
No files found.
app/assets/javascripts/network/network.js
View file @
b7bf9b41
...
...
@@ -2,20 +2,18 @@
import
BranchGraph
from
'
./branch_graph
'
;
(
function
()
{
this
.
Network
=
(
function
()
{
function
Network
(
opts
)
{
var
vph
;
$
(
"
#filter_ref
"
).
click
(
function
()
{
return
$
(
this
).
closest
(
'
form
'
).
submit
();
});
this
.
branch_graph
=
new
BranchGraph
(
$
(
"
.network-graph
"
),
opts
);
vph
=
$
(
window
).
height
()
-
250
;
$
(
'
.network-graph
'
).
css
({
'
height
'
:
vph
+
'
px
'
});
}
export
default
(
function
()
{
function
Network
(
opts
)
{
var
vph
;
$
(
"
#filter_ref
"
).
click
(
function
()
{
return
$
(
this
).
closest
(
'
form
'
).
submit
();
});
this
.
branch_graph
=
new
BranchGraph
(
$
(
"
.network-graph
"
),
opts
);
vph
=
$
(
window
).
height
()
-
250
;
$
(
'
.network-graph
'
).
css
({
'
height
'
:
vph
+
'
px
'
});
}
return
Network
;
})();
}).
call
(
window
);
return
Network
;
})();
app/assets/javascripts/network/network_bundle.js
View file @
b7bf9b41
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, quotes, no-var, vars-on-top, camelcase, comma-dangle, consistent-return, max-len */
/* global Network */
/* global ShortcutsNetwork */
require
(
'
./network
'
)
;
import
Network
from
'
./network
'
;
(
function
()
{
$
(
function
()
{
...
...
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