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
328784ff
Commit
328784ff
authored
Jun 23, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not refer to file content as pre, just as an element having .content className
parent
0b76da6a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+8
-8
debomatic-webui/public/stylesheets/style.css
debomatic-webui/public/stylesheets/style.css
+2
-2
debomatic-webui/views/distribution.ejs
debomatic-webui/views/distribution.ejs
+1
-1
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
328784ff
...
@@ -361,7 +361,7 @@ function Page_Distrubion(socket) {
...
@@ -361,7 +361,7 @@ function Page_Distrubion(socket) {
var
file
=
{
var
file
=
{
set
:
function
(
socket_data
)
{
set
:
function
(
socket_data
)
{
var
new_content
=
Utils
.
escape_html
(
socket_data
.
file
.
content
);
var
new_content
=
Utils
.
escape_html
(
socket_data
.
file
.
content
);
var
file_content
=
$
(
'
#file
pre
'
);
var
file_content
=
$
(
'
#file
.content
'
);
view
.
file
=
Utils
.
clone
(
socket_data
.
file
);
view
.
file
=
Utils
.
clone
(
socket_data
.
file
);
file_content
.
html
(
new_content
);
file_content
.
html
(
new_content
);
file_content
.
show
();
file_content
.
show
();
...
@@ -369,11 +369,11 @@ function Page_Distrubion(socket) {
...
@@ -369,11 +369,11 @@ function Page_Distrubion(socket) {
file_content
.
scrollTop
(
file_content
[
0
].
scrollHeight
);
file_content
.
scrollTop
(
file_content
[
0
].
scrollHeight
);
},
},
clean
:
function
()
{
clean
:
function
()
{
$
(
'
#file
pre
'
).
html
(
''
);
$
(
'
#file
.content
'
).
html
(
''
);
$
(
'
#file
'
).
hide
();
$
(
'
#file
'
).
hide
();
},
},
append
:
function
(
new_content
)
{
append
:
function
(
new_content
)
{
var
file_content
=
$
(
'
#file
pre
'
);
var
file_content
=
$
(
'
#file
.content
'
);
new_content
=
Utils
.
escape_html
(
new_content
);
new_content
=
Utils
.
escape_html
(
new_content
);
if
(
!
current_file_in_preview
)
{
if
(
!
current_file_in_preview
)
{
file_content
.
append
(
new_content
);
file_content
.
append
(
new_content
);
...
@@ -407,7 +407,7 @@ function Page_Distrubion(socket) {
...
@@ -407,7 +407,7 @@ function Page_Distrubion(socket) {
query_data
.
file
.
content
=
null
;
query_data
.
file
.
content
=
null
;
query_data
.
file
.
force
=
force
;
query_data
.
file
.
force
=
force
;
// get a feedback to user while downloading file
// get a feedback to user while downloading file
$
(
'
#file
pre
'
).
html
(
'
Downloading file, please wait a while ...
'
);
$
(
'
#file
.content
'
).
html
(
'
Downloading file, please wait a while ...
'
);
$
(
'
#file
'
).
show
();
$
(
'
#file
'
).
show
();
debug_socket
(
'
emit
'
,
_e
.
file
,
query_data
);
debug_socket
(
'
emit
'
,
_e
.
file
,
query_data
);
socket
.
emit
(
_e
.
file
,
query_data
);
socket
.
emit
(
_e
.
file
,
query_data
);
...
@@ -419,9 +419,9 @@ function Page_Distrubion(socket) {
...
@@ -419,9 +419,9 @@ function Page_Distrubion(socket) {
}
}
debug
(
2
,
"
file set preview
"
,
preview
);
debug
(
2
,
"
file set preview
"
,
preview
);
current_file_in_preview
=
preview
;
current_file_in_preview
=
preview
;
var
file
=
$
(
'
#file
pre
'
);
var
file
=
$
(
'
#file
.content
'
);
if
(
preview
)
{
if
(
preview
)
{
$
(
'
#file
pre
'
).
addClass
(
'
preview
'
);
$
(
'
#file
.content
'
).
addClass
(
'
preview
'
);
var
height
=
(
config
.
file
.
num_lines
)
*
var
height
=
(
config
.
file
.
num_lines
)
*
parseInt
(
file
.
css
(
'
line-height
'
).
replace
(
/
[^
-
\d\.]
/g
,
''
))
+
parseInt
(
file
.
css
(
'
line-height
'
).
replace
(
/
[^
-
\d\.]
/g
,
''
))
+
parseInt
(
file
.
css
(
'
padding-top
'
).
replace
(
/
[^
-
\d\.]
/g
,
''
))
+
parseInt
(
file
.
css
(
'
padding-top
'
).
replace
(
/
[^
-
\d\.]
/g
,
''
))
+
...
@@ -590,9 +590,9 @@ function Page_Distrubion(socket) {
...
@@ -590,9 +590,9 @@ function Page_Distrubion(socket) {
$
(
'
#sticky-package
'
).
addClass
(
'
on-top
'
);
$
(
'
#sticky-package
'
).
addClass
(
'
on-top
'
);
}
}
if
(
!
config
.
preferences
.
file_background
)
{
if
(
!
config
.
preferences
.
file_background
)
{
$
(
'
#file
pre
'
).
addClass
(
'
no-background
'
);
$
(
'
#file
.content
'
).
addClass
(
'
no-background
'
);
}
}
$
(
'
#file
pre
'
).
css
(
'
font-size
'
,
config
.
preferences
.
file_fontsize
);
$
(
'
#file
.content
'
).
css
(
'
font-size
'
,
config
.
preferences
.
file_fontsize
);
};
};
var
select
=
function
()
{
var
select
=
function
()
{
...
...
debomatic-webui/public/stylesheets/style.css
View file @
328784ff
...
@@ -166,7 +166,7 @@ footer .info {
...
@@ -166,7 +166,7 @@ footer .info {
line-height
:
35px
;
line-height
:
35px
;
}
}
#file
pre
{
#file
.content
{
white-space
:
pre-wrap
;
white-space
:
pre-wrap
;
word-break
:
break-word
;
word-break
:
break-word
;
}
}
...
@@ -186,7 +186,7 @@ footer .info {
...
@@ -186,7 +186,7 @@ footer .info {
font-size
:
75%
;
font-size
:
75%
;
}
}
#file
pre
.preview
{
#file
.preview
{
overflow
:
hidden
;
overflow
:
hidden
;
}
}
...
...
debomatic-webui/views/distribution.ejs
View file @
328784ff
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
<div id="welcome"></div>
<div id="welcome"></div>
<div id="file">
<div id="file">
<div class="datestamp"></div>
<div class="datestamp"></div>
<pre></pre>
<pre
class="content"
></pre>
<div id="fileOffset"></div>
<div id="fileOffset"></div>
</div>
</div>
</section>
</section>
...
...
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