Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Imldeployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Imldeployment
Commits
222fc094
"git@git-repo.iml.unibe.ch:iml-open-source/imldeployment.git" did not exist on "6795376b8d33ea58233793ed5187153790953642"
Commit
222fc094
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
fix size of top output
parent
cf20f42d
No related branches found
No related tags found
1 merge request
!62
V2.0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public_html/deployment/js/functions.js
+6
-4
6 additions, 4 deletions
public_html/deployment/js/functions.js
public_html/deployment/plugins/shellcmd/top/config.json
+1
-1
1 addition, 1 deletion
public_html/deployment/plugins/shellcmd/top/config.json
with
7 additions
and
5 deletions
public_html/deployment/js/functions.js
+
6
−
4
View file @
222fc094
...
...
@@ -58,6 +58,7 @@ function wb_getdefaults(sId, aOverrides) {
if
(
_aReturn
[
'
y
'
]
<
_aReturn
[
'
top
'
]){
_aReturn
[
'
y
'
]
=
_aReturn
[
'
top
'
];
}
// console.log(_aReturn);
return
_aReturn
;
}
/**
...
...
@@ -147,7 +148,6 @@ function showIdAsModalMessage(sId, sTitle) {
width
:
700
,
height
:
500
,
// take content from existing div
// mount: oWrapper
// mount: document.getElementById(sId).cloneNode(true),
...
...
@@ -174,6 +174,8 @@ function toggleShellWindow(sId, oLink) {
aWinBoxes
[
sId
].
close
();
}
else
{
var
oWrapper
=
document
.
getElementById
(
sId
);
var
iDefaultWidth
=
200
;
var
iDefaultHeight
=
200
;
var
aOptions
=
wb_getdefaults
(
sId
,
{
title
:
oLink
.
innerText
,
id
:
'
winbox-
'
+
sId
,
...
...
@@ -182,8 +184,8 @@ function toggleShellWindow(sId, oLink) {
// position + size
x
:
"
center
"
,
y
:
"
center
"
,
width
:
10
,
height
:
10
,
width
:
iDefaultWidth
,
height
:
iDefaultHeight
,
// take content from existing div
mount
:
oWrapper
,
...
...
@@ -200,7 +202,7 @@ function toggleShellWindow(sId, oLink) {
if
(
oLink
)
{
$
(
oLink
).
addClass
(
'
active
'
);
}
if
(
aOptions
[
'
width
'
]
==
10
){
if
(
aOptions
[
'
width
'
]
==
iDefaultWidth
){
window
.
setTimeout
(
"
aWinBoxes['
"
+
sId
+
"
'].resize(
"
+
(
oWrapper
.
clientWidth
+
25
)
+
"
,
"
+
(
oWrapper
.
clientHeight
+
150
)
+
"
).move('center', 'center')
"
,
10
);
}
}
...
...
This diff is collapsed.
Click to expand it.
public_html/deployment/plugins/shellcmd/top/config.json
+
1
−
1
View file @
222fc094
...
...
@@ -2,6 +2,6 @@
"command"
:
"top -b -n 1 | head -20"
,
"icon"
:
"fa-solid fa-arrow-up-wide-short"
,
"interval"
:
5000
,
"window-cols"
:
5
0
,
"window-cols"
:
6
0
,
"window-lines"
:
30
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment