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
13af9a0b
Commit
13af9a0b
authored
Mar 08, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update config debomatic variables
parent
9f520661
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
11 deletions
+16
-11
debomatic-webui/app.js
debomatic-webui/app.js
+4
-4
debomatic-webui/config.js
debomatic-webui/config.js
+7
-2
debomatic-webui/send.js
debomatic-webui/send.js
+4
-4
debomatic-webui/utils.js
debomatic-webui/utils.js
+1
-1
No files found.
debomatic-webui/app.js
View file @
13af9a0b
...
...
@@ -23,8 +23,8 @@ app.configure(function(){
app
.
use
(
require
(
'
stylus
'
).
middleware
({
src
:
__dirname
+
'
/public
'
}));
app
.
use
(
app
.
router
);
app
.
use
(
express
.
static
(
__dirname
+
'
/public
'
));
app
.
use
(
config
.
debomatic
_webpath
,
express
.
directory
(
config
.
debomatic_
path
));
app
.
use
(
config
.
debomatic
_webpath
,
express
.
static
(
config
.
debomatic_
path
));
app
.
use
(
config
.
debomatic
.
webpath
,
express
.
directory
(
config
.
debomatic
.
path
));
app
.
use
(
config
.
debomatic
.
webpath
,
express
.
static
(
config
.
debomatic
.
path
));
});
app
.
configure
(
'
development
'
,
function
(){
...
...
@@ -80,7 +80,7 @@ io.sockets.on('connection', function(socket) {
socket
.
on
(
'
get_distribution_packages
'
,
function
(
data
)
{
if
(
!
utils
.
check_data_distribution
(
data
))
return
distribution_path
=
path
.
join
(
config
.
debomatic
_
path
,
data
.
distribution
.
name
,
'
pool
'
)
distribution_path
=
path
.
join
(
config
.
debomatic
.
path
,
data
.
distribution
.
name
,
'
pool
'
)
watch_path_onsocket
(
'
get_distribution_packages
'
,
socket
,
data
,
distribution_path
,
send
.
distribution_packages
)
send
.
distribution_packages
(
socket
,
data
);
})
...
...
@@ -107,7 +107,7 @@ io.sockets.on('disconnect', function(socket){
});
fs
.
watch
(
config
.
debomatic
_
path
,
{
persistent
:
true
},
function
(
event
,
fileName
)
{
fs
.
watch
(
config
.
debomatic
.
path
,
{
persistent
:
true
},
function
(
event
,
fileName
)
{
send
.
distributions
(
io
.
sockets
);
});
...
...
debomatic-webui/config.js
View file @
13af9a0b
var
config
=
{}
config
.
debomatic_path
=
'
/srv/debomatic-amd64
'
config
.
debomatic_webpath
=
'
/debomatic
'
config
.
debomatic
=
{}
config
.
debomatic
.
path
=
'
/srv/debomatic-amd64
'
config
.
debomatic
.
webpath
=
'
/debomatic
'
config
.
host
=
'
localhost
'
config
.
port
=
3000
config
.
web
=
{}
config
.
web
.
title
=
"
deb-o-matic web.ui
"
config
.
web
.
description
=
"
This is a web interface for debomatic
"
module
.
exports
=
config
debomatic-webui/send.js
View file @
13af9a0b
...
...
@@ -35,7 +35,7 @@ function __get_files_list_from_package(data, callback) {
data
.
package
.
archives
=
[]
files
.
forEach
(
function
(
f
)
{
file
=
{}
file
.
path
=
path
.
join
(
package_path
,
f
).
replace
(
config
.
debomatic
_path
,
config
.
debomatic_
webpath
)
file
.
path
=
path
.
join
(
package_path
,
f
).
replace
(
config
.
debomatic
.
path
,
config
.
debomatic
.
webpath
)
file
.
orig_name
=
f
file
.
name
=
f
.
split
(
'
_
'
)[
0
]
file
.
label
=
f
.
replace
(
file
.
name
+
'
_
'
,
''
)
...
...
@@ -89,10 +89,10 @@ function __send_file (socket, data) {
});
}
debomatic_
sender
=
{
sender
=
{
distributions
:
function
(
socket
)
{
__get_files_list
(
config
.
debomatic
_
path
,
true
,
function
(
distros
){
__get_files_list
(
config
.
debomatic
.
path
,
true
,
function
(
distros
){
socket
.
emit
(
'
distributions
'
,
distros
);
});
},
...
...
@@ -114,4 +114,4 @@ debomatic_sender = {
}
}
module
.
exports
=
debomatic_
sender
module
.
exports
=
sender
debomatic-webui/utils.js
View file @
13af9a0b
...
...
@@ -14,7 +14,7 @@ function __check_data_file(data) {
}
function
__get_distribution_pool_path
(
data
)
{
return
path
.
join
(
config
.
debomatic
_
path
,
data
.
distribution
.
name
,
'
pool
'
)
return
path
.
join
(
config
.
debomatic
.
path
,
data
.
distribution
.
name
,
'
pool
'
)
}
function
__get_package_path
(
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