Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
d1e65478
Commit
d1e65478
authored
May 27, 2015
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
copy dc/Log.js from manager to manager5
parent
f2e98160
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
90 additions
and
0 deletions
+90
-0
Log.js
www/manager5/dc/Log.js
+90
-0
No files found.
www/manager5/dc/Log.js
0 → 100644
View file @
d1e65478
Ext
.
define
(
'
PVE.dc.Log
'
,
{
extend
:
'
Ext.grid.GridPanel
'
,
alias
:
[
'
widget.pveClusterLog
'
],
initComponent
:
function
()
{
var
me
=
this
;
var
logstore
=
new
PVE
.
data
.
UpdateStore
({
storeid
:
'
pve-cluster-log
'
,
model
:
'
pve-cluster-log
'
,
proxy
:
{
type
:
'
pve
'
,
url
:
'
/api2/json/cluster/log
'
}
});
var
store
=
Ext
.
create
(
'
PVE.data.DiffStore
'
,
{
rstore
:
logstore
,
appendAtStart
:
true
});
Ext
.
apply
(
me
,
{
store
:
store
,
stateful
:
false
,
viewConfig
:
{
trackOver
:
false
,
stripeRows
:
false
,
// does not work with getRowClass()
getRowClass
:
function
(
record
,
index
)
{
var
pri
=
record
.
get
(
'
pri
'
);
if
(
pri
&&
pri
<=
3
)
{
return
"
x-form-invalid-field
"
;
}
}
},
sortableColumns
:
false
,
columns
:
[
{
header
:
gettext
(
"
Time
"
),
dataIndex
:
'
time
'
,
width
:
100
,
renderer
:
function
(
value
)
{
return
Ext
.
Date
.
format
(
value
,
"
M d H:i:s
"
);
}
},
{
header
:
gettext
(
"
Node
"
),
dataIndex
:
'
node
'
,
width
:
100
},
{
header
:
gettext
(
"
Service
"
),
dataIndex
:
'
tag
'
,
width
:
100
},
{
header
:
"
PID
"
,
dataIndex
:
'
pid
'
,
width
:
100
},
{
header
:
gettext
(
"
User name
"
),
dataIndex
:
'
user
'
,
width
:
150
},
{
header
:
gettext
(
"
Severity
"
),
dataIndex
:
'
pri
'
,
renderer
:
PVE
.
Utils
.
render_serverity
,
width
:
100
},
{
header
:
gettext
(
"
Message
"
),
dataIndex
:
'
msg
'
,
flex
:
1
}
],
listeners
:
{
show
:
logstore
.
startUpdate
,
hide
:
logstore
.
stopUpdate
,
destroy
:
logstore
.
stopUpdate
}
});
me
.
callParent
();
}
});
\ No newline at end of file
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