Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
545fc36d
Commit
545fc36d
authored
Mar 09, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start moving index to /distribution
parent
c783290d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
99 additions
and
85 deletions
+99
-85
debomatic-webui/public/javascripts/main.js
debomatic-webui/public/javascripts/main.js
+39
-34
debomatic-webui/views/index.ejs
debomatic-webui/views/index.ejs
+36
-50
debomatic-webui/views/layout.ejs
debomatic-webui/views/layout.ejs
+24
-1
No files found.
debomatic-webui/public/javascripts/main.js
View file @
545fc36d
var
socket
=
io
.
connect
(
'
//localhost:3000
'
);
var
old_data
=
Utils
.
from_hash_to_data
()
socket
.
on
(
'
distributions
'
,
function
(
distributions
)
{
Page_Distrubion
.
navbar
.
update
(
distributions
)
});
socket
.
on
(
'
distribution_packages
'
,
function
(
data
){
Page_Distrubion
.
packages
.
set
(
data
)
})
if
(
window
.
location
.
pathname
==
'
/
'
)
{
socket
.
on
(
'
package_file_list
'
,
function
(
data
){
Page_Distrubion
.
files
.
set
(
data
)
})
var
old_data
=
Utils
.
from_hash_to_data
()
socket
.
on
(
'
file
'
,
function
(
data
)
{
Page_Distrubion
.
file
.
set
(
data
)
})
socket
.
on
(
'
distributions
'
,
function
(
distributions
)
{
Page_Distrubion
.
navbar
.
update
(
distributions
)
});
socket
.
on
(
'
file_newcontent
'
,
function
(
data
)
{
Page_Distrubion
.
file
.
append
(
data
)
})
socket
.
on
(
'
distribution_packages
'
,
function
(
data
)
{
Page_Distrubion
.
packages
.
set
(
data
)
})
socket
.
on
(
'
error
'
,
function
()
{
console
.
error
(
arguments
)
});
socket
.
on
(
'
package_file_list
'
,
function
(
data
){
Page_Distrubion
.
files
.
set
(
data
)
})
socket
.
on
(
'
file
'
,
function
(
data
)
{
Page_Distrubion
.
file
.
set
(
data
)
})
socket
.
on
(
'
file_newcontent
'
,
function
(
data
)
{
Page_Distrubion
.
file
.
append
(
data
)
})
$
(
window
).
on
(
'
hashchange
'
,
function
()
{
data
=
Utils
.
from_hash_to_data
()
Page_Distrubion
.
update
(
data
,
old_data
)
old_data
=
data
});
$
(
window
).
on
(
'
load
'
,
function
(){
Page_Distrubion
.
update
(
old_data
)
$
(
window
).
scroll
(
function
()
{
var
offset
=
$
(
"
#file
"
).
offset
();
if
(
$
(
window
).
scrollTop
()
>
offset
.
top
+
220
)
{
$
(
"
#sticky
"
).
stop
().
addClass
(
'
fixed
'
);
}
else
{
$
(
"
#sticky
"
).
stop
().
removeClass
(
'
fixed
'
);
}
$
(
window
).
on
(
'
hashchange
'
,
function
()
{
data
=
Utils
.
from_hash_to_data
()
Page_Distrubion
.
update
(
data
,
old_data
)
old_data
=
data
});
});
$
(
window
).
on
(
'
load
'
,
function
(){
Page_Distrubion
.
update
(
old_data
)
$
(
window
).
scroll
(
function
()
{
var
offset
=
$
(
"
#file
"
).
offset
();
if
(
$
(
window
).
scrollTop
()
>
offset
.
top
+
220
)
{
$
(
"
#sticky
"
).
stop
().
addClass
(
'
fixed
'
);
}
else
{
$
(
"
#sticky
"
).
stop
().
removeClass
(
'
fixed
'
);
}
});
});
}
socket
.
on
(
'
error
'
,
function
()
{
console
.
error
(
arguments
)
});
debomatic-webui/views/index.ejs
View file @
545fc36d
<div class="container-fluid">
<header >
<h1><%= title %></h1>
<p class="lead"><%= description %></p>
</header>
<nav>
<ol class="breadcrumb">
</ol>
</nav>
<nav id="distributions" class="navbar navbar-inverse" role="navigation">
<div class="navbar-header">
<span class="navbar-brand" href="#">Distrbutions</span>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav"></ul>
</div>
</nav>
<nav>
<ol class="breadcrumb">
</ol>
</nav>
<article class="row">
<aside class="col-md-3">
<nav id="packages">
<h2>Packages</h2>
<article class="row">
<aside class="col-md-3">
<nav id="packages">
<h2>Packages</h2>
<ul class="nav nav-pills nav-stacked"></ul>
</nav>
<div id="sticky" >
<section id="files">
<h3 class="title">Files</h3>
<nav id="logs">
<ul class="nav nav-pills nav-stacked"></ul>
</nav>
<div id="sticky" >
<section id="files">
<h3 class="title">Files</h3>
<nav id="logs">
<ul class="nav nav-pills nav-stacked"></ul>
</nav>
<nav id="archives">
<h4>Archives</h4>
<ul></ul>
</nav>
<nav id="debs">
<h4>Debs</h4>
<ul></ul>
</nav>
</section>
</div>
<nav id="archives">
<h4>Archives</h4>
<ul></ul>
</nav>
<nav id="debs">
<h4>Debs</h4>
<ul></ul>
</nav>
</section>
</div>
</aside>
</aside>
<section class="col-md-9">
<header>
<h1 id="title"></h1>
</header>
<div id="file">
<pre></pre>
</div>
</section>
</article>
<section class="col-md-9">
<header>
<h1 id="title"></h1>
</header>
<div id="file">
<pre></pre>
</div>
</section>
</article>
<footer><%= footer %></footer>
</div>
debomatic-webui/views/layout.ejs
View file @
545fc36d
...
...
@@ -16,6 +16,29 @@
<script
src=
'/javascripts/main.js'
></script>
</head>
<body>
<
%
-
body
%
>
<div
class=
"container-fluid"
>
<header
>
<h1><
%=
title
%
></h1>
<p
class=
"lead"
><
%=
description
%
></p>
</header>
<nav
id=
"distributions"
class=
"navbar navbar-inverse"
role=
"navigation"
>
<div
class=
"navbar-header"
>
<span
class=
"navbar-brand"
href=
"#"
>
Distrbutions
</span>
</div>
<div
class=
"collapse navbar-collapse"
>
<ul
class=
"nav navbar-nav"
></ul>
</div>
</nav>
<
%
-
body
%
>
<footer>
<
%=
footer
%
>
</footer>
</div>
<!-- .container-fluild -->
</body>
</html>
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