Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-web-393
Commits
ab0526c0
Commit
ab0526c0
authored
Sep 09, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved up menus
parent
d1c2b55b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
7 deletions
+32
-7
debugfs.js
src/debugfs-webgui/debugfs.js
+23
-7
debugfs.php
src/debugfs-webgui/debugfs.php
+9
-0
No files found.
src/debugfs-webgui/debugfs.js
View file @
ab0526c0
/*
FILE NAME : debugfs.js
DESCRIPTION: dynamic debug frontend
REVISION: 1.00
AUTHOR: Oleg Dzhimiev <oleg@elphel.com>
LICENSE: AGPL, see http://www.gnu.org/licenses/agpl.txt
Copyright (C) 2016 Elphel, Inc.
*/
var
CUT_STRING_LIMIT
=
20
;
var
NLINES
=
30
;
...
...
@@ -102,6 +111,7 @@ function init(){
<tr>
\
<th style='display:none;' class='hidden_rows'>Show</th>
\
<th>File</th>
\
<th>Config</th>
\
</tr>
\
"
);
...
...
@@ -120,9 +130,11 @@ function init(){
//file walk
for
(
var
i
=
0
;
i
<
r
.
length
;
i
++
){
l
=
init_ui_file
(
r
[
i
],
i
);
content
=
init_ui_content
(
r
[
i
],
i
);
t
.
append
(
l
);
controls
=
init_ui_controls
(
r
[
i
],
i
);
t
.
append
(
l
).
append
(
controls
).
append
(
content
);
t
.
append
(
controls
);
content
=
init_ui_content
(
r
[
i
],
i
);
t
.
append
(
content
);
j
=
init_ui_dropdown
(
r
[
i
],
i
);
if
(
r
[
i
].
file
==
"drivers/elphel/framepars.c"
){
...
...
@@ -280,6 +292,7 @@ function init_ui_file(record,index){
<input id='cb_"
+
index
+
"' class='tp visibility_cb' type='checkbox' index='"
+
index
+
"' >
\
</td>
\
<td class='special filename' id='header_"
+
index
+
"' index='"
+
index
+
"' >"
+
record
.
file
+
"</td>
\
<td class='special' id='conf_"
+
index
+
"' index='"
+
index
+
"' ></td>
\
"
);
if
(
record
.
state
==
0
){
...
...
@@ -307,7 +320,7 @@ function init_ui_content(record,index){
content
.
append
(
$
(
"<td>"
).
addClass
(
"hidden_rows"
).
hide
()
).
append
(
$
(
"<td>"
,{
id
:
"content_td"
})
$
(
"<td>"
,{
id
:
"content_td"
,
colspan
:
"2"
})
);
return
content
;
...
...
@@ -328,7 +341,7 @@ function init_ui_controls(record,index){
controls
.
append
(
$
(
"<td>"
).
addClass
(
"hidden_rows"
).
hide
()
).
append
(
$
(
"<td>"
,{
id
:
"controls_td"
})
$
(
"<td>"
,{
id
:
"controls_td"
,
colspan
:
"2"
})
);
var
bc0
=
$
(
"<button>"
,{
...
...
@@ -381,7 +394,7 @@ function init_ui_controls(record,index){
});
});
var
pre_bc1
=
$
(
"<span>"
,{
title
:
"Current config name"
}).
html
(
"
config:
"
);
var
pre_bc1
=
$
(
"<span>"
,{
title
:
"Current config name"
}).
html
(
""
);
var
dc0_b
=
$
(
"<button>"
,{
class
:
"btn btn-default btn-sm btn-success dropdown-toggle"
,
...
...
@@ -452,7 +465,9 @@ function init_ui_controls(record,index){
var
dc0
=
$
(
"<div>"
,{
class
:
"btn-group"
,
role
:
"group"
}).
append
(
dc0_b
).
append
(
dc0_ul
);
controls
.
find
(
"#controls_td"
).
append
(
bc0
).
append
(
pre_bc1
).
append
(
dc0
);
controls
.
find
(
"#controls_td"
).
append
(
bc0
);
//.append(pre_bc1).append(dc0);
$
(
"#conf_"
+
index
).
append
(
pre_bc1
).
append
(
dc0
);
return
controls
;
}
...
...
@@ -499,7 +514,8 @@ function dropdown_add_list_item(record,index,j){
dropdown_select_config
(
index
,
confindex
);
});
$
(
"#controls_"
+
index
).
find
(
"ul"
).
append
(
lentry
);
//$("#controls_"+index).find("ul").append(lentry);
$
(
"#conf_"
+
index
).
find
(
"ul"
).
append
(
lentry
);
}
function
dropdown_select_config
(
index
,
config_index
){
...
...
src/debugfs-webgui/debugfs.php
View file @
ab0526c0
<?php
/*
FILE NAME : debugfs.php
DESCRIPTION: dynamic debug backend
REVISION: 1.00
AUTHOR: Oleg Dzhimiev <oleg@elphel.com>
LICENSE: AGPL, see http://www.gnu.org/licenses/agpl.txt
Copyright (C) 2016 Elphel, Inc.
*/
//globals
$config
=
"debugfs.json"
;
$tmp_config
=
"/tmp/
$config
"
;
...
...
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