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
96bea022
Commit
96bea022
authored
Mar 07, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handling get packages
parent
7dcaf7ac
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
debomatic-webui/app.js
debomatic-webui/app.js
+4
-5
debomatic-webui/views/layout.ejs
debomatic-webui/views/layout.ejs
+6
-1
No files found.
debomatic-webui/app.js
View file @
96bea022
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
var
express
=
require
(
'
express
'
)
var
express
=
require
(
'
express
'
)
,
routes
=
require
(
'
./routes
'
)
,
routes
=
require
(
'
./routes
'
)
,
config
=
require
(
'
./config.js
'
)
,
config
=
require
(
'
./config.js
'
)
,
send
=
require
(
'
./send.js
'
)
()
,
send
=
require
(
'
./send.js
'
)
,
fs
=
require
(
'
fs
'
)
,
fs
=
require
(
'
fs
'
)
var
app
=
module
.
exports
=
express
.
createServer
();
var
app
=
module
.
exports
=
express
.
createServer
();
...
@@ -36,10 +36,9 @@ var io = require('socket.io').listen(app);
...
@@ -36,10 +36,9 @@ var io = require('socket.io').listen(app);
app
.
get
(
'
/
'
,
routes
.
index
);
app
.
get
(
'
/
'
,
routes
.
index
);
io
.
sockets
.
on
(
'
connection
'
,
function
(
socket
)
{
io
.
sockets
.
on
(
'
connection
'
,
function
(
socket
)
{
send
.
distributions
(
io
.
sockets
);
send
.
distributions
(
socket
);
socket
.
on
(
'
get-distribution
'
,
function
(
from
,
distro
)
{
socket
.
on
(
'
get-packages
'
,
function
(
distro
)
{
console
.
log
(
from
+
"
"
+
distro
)
send
.
packages_list
(
socket
,
distro
);
send
.
distribution
(
from
,
distro
);
});
});
});
});
...
...
debomatic-webui/views/layout.ejs
View file @
96bea022
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
function
get_path
(
path
)
{
function
get_path
(
path
)
{
info
=
path
.
split
(
'
/
'
);
info
=
path
.
split
(
'
/
'
);
if
(
info
.
length
==
1
)
{
if
(
info
.
length
==
1
)
{
socket
.
emit
(
"
get-
distribution
"
,
path
);
socket
.
emit
(
"
get-
packages
"
,
path
);
}
}
}
}
var
socket
=
io
.
connect
(
'
//localhost:3000
'
);
var
socket
=
io
.
connect
(
'
//localhost:3000
'
);
...
@@ -21,6 +21,11 @@
...
@@ -21,6 +21,11 @@
});
});
});
});
socket
.
on
(
'
packages
'
,
function
(
packages
)
{
console
.
log
(
"
HHHH
"
);
console
.
log
(
packages
);
});
socket
.
on
(
'
error
'
,
function
()
{
console
.
error
(
arguments
)
});
socket
.
on
(
'
error
'
,
function
()
{
console
.
error
(
arguments
)
});
$
(
window
).
on
(
'
hashchange
'
,
function
()
{
$
(
window
).
on
(
'
hashchange
'
,
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