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
1d479022
Commit
1d479022
authored
Mar 14, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added error view on distribution page - renamed variable events in _e
parent
9bf75233
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
9 deletions
+34
-9
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+25
-9
debomatic-webui/public/stylesheets/style.css
debomatic-webui/public/stylesheets/style.css
+4
-0
debomatic-webui/views/distribution.ejs
debomatic-webui/views/distribution.ejs
+5
-0
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
1d479022
...
...
@@ -32,7 +32,7 @@ function Page_Distrubion(socket)
*/
var
socket
=
socket
var
events
=
config
.
events
.
client
var
_e
=
config
.
events
.
client
var
view
=
Utils
.
from_hash_to_view
()
var
sidebarOffset
=
0
var
new_lines
=
[]
...
...
@@ -91,7 +91,7 @@ function Page_Distrubion(socket)
if
(
Utils
.
check_view_distribution
(
view
))
{
var
query_data
=
{}
query_data
.
distribution
=
view
.
distribution
socket
.
emit
(
events
.
distribution_packages
.
get
,
query_data
)
socket
.
emit
(
_e
.
distribution_packages
.
get
,
query_data
)
}
},
select
:
function
()
{
...
...
@@ -181,7 +181,7 @@ function Page_Distrubion(socket)
var
query_data
=
{}
query_data
.
distribution
=
view
.
distribution
query_data
.
package
=
view
.
package
socket
.
emit
(
events
.
package_files_list
.
get
,
query_data
)
socket
.
emit
(
_e
.
package_files_list
.
get
,
query_data
)
}
},
select
:
function
()
{
...
...
@@ -226,7 +226,7 @@ function Page_Distrubion(socket)
query_data
.
package
=
view
.
package
query_data
.
file
=
view
.
file
query_data
.
file
.
content
=
null
socket
.
emit
(
events
.
file
.
get
,
query_data
)
socket
.
emit
(
_e
.
file
.
get
,
query_data
)
}
}
}
...
...
@@ -316,6 +316,17 @@ function Page_Distrubion(socket)
}
}
var
error
=
{
set
:
function
(
socket_error
)
{
$
(
"
#error span
"
).
html
(
socket_error
)
$
(
"
#error
"
).
fadeIn
(
100
)
},
clean
:
function
()
{
$
(
"
#error
"
).
hide
()
$
(
"
#error span
"
).
html
(
''
)
},
}
var
select
=
function
()
{
unselect
()
if
(
Utils
.
check_view_distribution
(
view
))
{
...
...
@@ -370,6 +381,7 @@ function Page_Distrubion(socket)
{
// new file view
file
.
get
()
}
error
.
clean
()
update
.
view
(
view
)
},
view
:
function
()
{
...
...
@@ -390,11 +402,15 @@ function Page_Distrubion(socket)
this
.
start
=
function
()
{
socket
.
on
(
events
.
distribution_packages
.
set
,
function
(
socket_data
){
socket
.
on
(
config
.
events
.
error
,
function
(
socket_error
)
{
error
.
set
(
socket_error
)
})
socket
.
on
(
_e
.
distribution_packages
.
set
,
function
(
socket_data
){
packages
.
set
(
socket_data
)
})
socket
.
on
(
events
.
distribution_packages
.
status
,
function
(
socket_data
){
socket
.
on
(
_e
.
distribution_packages
.
status
,
function
(
socket_data
){
packages
.
set_status
(
socket_data
)
sticky
.
set_status
(
socket_data
)
})
...
...
@@ -404,15 +420,15 @@ function Page_Distrubion(socket)
sticky
.
set_status
(
socket_data
)
})
socket
.
on
(
events
.
package_files_list
.
set
,
function
(
socket_data
){
socket
.
on
(
_e
.
package_files_list
.
set
,
function
(
socket_data
){
files
.
set
(
socket_data
)
})
socket
.
on
(
events
.
file
.
set
,
function
(
socket_data
)
{
socket
.
on
(
_e
.
file
.
set
,
function
(
socket_data
)
{
file
.
set
(
socket_data
)
})
socket
.
on
(
events
.
file_newcontent
,
function
(
socket_data
)
{
socket
.
on
(
_e
.
file_newcontent
,
function
(
socket_data
)
{
new_lines
.
push
(
socket_data
.
file
.
new_content
)
})
...
...
debomatic-webui/public/stylesheets/style.css
View file @
1d479022
...
...
@@ -3,6 +3,10 @@
cursor
:
pointer
;
}
#error
{
display
:
none
;
}
aside
.nav-pills
li
{
line-height
:
10px
;
}
...
...
debomatic-webui/views/distribution.ejs
View file @
1d479022
...
...
@@ -3,6 +3,11 @@
</ol>
</nav>
<div id="error" class="alert alert-danger alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<strong>Oh snap!</strong> <span></span>
</div>
<article class="row">
<aside id="sidebar" class="col-md-3">
<nav id="packages">
...
...
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