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
febcd1a9
Commit
febcd1a9
authored
Mar 09, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved index page to distribution page
parent
545fc36d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
64 additions
and
55 deletions
+64
-55
debomatic-webui/app.js
debomatic-webui/app.js
+1
-0
debomatic-webui/public/javascripts/main.js
debomatic-webui/public/javascripts/main.js
+8
-5
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+0
-9
debomatic-webui/routes/distribution.js
debomatic-webui/routes/distribution.js
+10
-0
debomatic-webui/routes/index.js
debomatic-webui/routes/index.js
+4
-0
debomatic-webui/views/distribution.ejs
debomatic-webui/views/distribution.ejs
+41
-0
debomatic-webui/views/index.ejs
debomatic-webui/views/index.ejs
+0
-41
No files found.
debomatic-webui/app.js
View file @
febcd1a9
...
@@ -39,6 +39,7 @@ var io = require('socket.io').listen(app);
...
@@ -39,6 +39,7 @@ var io = require('socket.io').listen(app);
// Routes
// Routes
app
.
get
(
'
/
'
,
routes
.
index
);
app
.
get
(
'
/
'
,
routes
.
index
);
app
.
get
(
'
/distribution
'
,
routes
.
distribution
)
function
watch_path_onsocket
(
event_name
,
socket
,
data
,
watch_path
,
updater
)
{
function
watch_path_onsocket
(
event_name
,
socket
,
data
,
watch_path
,
updater
)
{
name
=
"
watcher-
"
+
event_name
name
=
"
watcher-
"
+
event_name
...
...
debomatic-webui/public/javascripts/main.js
View file @
febcd1a9
var
socket
=
io
.
connect
(
'
//localhost:3000
'
);
var
socket
=
io
.
connect
(
'
//localhost:3000
'
);
// update distributions
socket
.
on
(
'
distributions
'
,
function
(
distributions
)
{
$
(
'
#distributions ul
'
).
html
(
''
);
distributions
.
forEach
(
function
(
name
){
$
(
'
#distributions ul
'
).
append
(
'
<li id="distribution-
'
+
name
+
'
"><a href="/distribution#
'
+
name
+
'
">
'
+
name
+
'
</li>
'
);
});
});
if
(
window
.
location
.
pathname
==
'
/
'
)
{
if
(
window
.
location
.
pathname
==
'
/
distribution
'
)
{
var
old_data
=
Utils
.
from_hash_to_data
()
var
old_data
=
Utils
.
from_hash_to_data
()
socket
.
on
(
'
distributions
'
,
function
(
distributions
)
{
Page_Distrubion
.
navbar
.
update
(
distributions
)
});
socket
.
on
(
'
distribution_packages
'
,
function
(
data
){
socket
.
on
(
'
distribution_packages
'
,
function
(
data
){
Page_Distrubion
.
packages
.
set
(
data
)
Page_Distrubion
.
packages
.
set
(
data
)
})
})
...
...
debomatic-webui/public/javascripts/page_distribution.js
View file @
febcd1a9
...
@@ -139,15 +139,6 @@ var Page_Distrubion = {
...
@@ -139,15 +139,6 @@ var Page_Distrubion = {
}
}
},
},
navbar
:
{
update
:
function
(
distributions
)
{
$
(
'
#distributions ul
'
).
html
(
''
);
distributions
.
forEach
(
function
(
name
){
$
(
'
#distributions ul
'
).
append
(
'
<li id="distribution-
'
+
name
+
'
"><a href="#
'
+
name
+
'
">
'
+
name
+
'
</li>
'
);
});
},
},
select
:
function
(
data
)
{
select
:
function
(
data
)
{
if
(
!
data
)
if
(
!
data
)
data
=
Utils
.
from_hash_to_data
()
data
=
Utils
.
from_hash_to_data
()
...
...
debomatic-webui/routes/distribution.js
0 → 100644
View file @
febcd1a9
/*
* GET home page.
*/
var
config
=
require
(
'
../config.js
'
)
exports
.
index
=
function
(
req
,
res
){
res
.
render
(
'
index
'
,
config
.
web
)
};
debomatic-webui/routes/index.js
View file @
febcd1a9
...
@@ -8,3 +8,7 @@ var config = require('../config.js')
...
@@ -8,3 +8,7 @@ var config = require('../config.js')
exports
.
index
=
function
(
req
,
res
){
exports
.
index
=
function
(
req
,
res
){
res
.
render
(
'
index
'
,
config
.
web
)
res
.
render
(
'
index
'
,
config
.
web
)
};
};
exports
.
distribution
=
function
(
req
,
res
)
{
res
.
render
(
'
distribution
'
,
config
.
web
)
}
debomatic-webui/views/distribution.ejs
0 → 100644
View file @
febcd1a9
<nav>
<ol class="breadcrumb">
</ol>
</nav>
<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>
<nav id="archives">
<h4>Archives</h4>
<ul></ul>
</nav>
<nav id="debs">
<h4>Debs</h4>
<ul></ul>
</nav>
</section>
</div>
</aside>
<section class="col-md-9">
<header>
<h1 id="title"></h1>
</header>
<div id="file">
<pre></pre>
</div>
</section>
</article>
debomatic-webui/views/index.ejs
View file @
febcd1a9
<nav>
<ol class="breadcrumb">
</ol>
</nav>
<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>
<nav id="archives">
<h4>Archives</h4>
<ul></ul>
</nav>
<nav id="debs">
<h4>Debs</h4>
<ul></ul>
</nav>
</section>
</div>
</aside>
<section class="col-md-9">
<header>
<h1 id="title"></h1>
</header>
<div id="file">
<pre></pre>
</div>
</section>
</article>
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