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
3550d09f
Commit
3550d09f
authored
Jan 30, 2012
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add panel for pools
parent
b263f59c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
108 additions
and
3 deletions
+108
-3
Makefile
www/manager/Makefile
+4
-1
StateProvider.js
www/manager/StateProvider.js
+2
-0
Workspace.js
www/manager/Workspace.js
+2
-1
ConfigPanel.js
www/manager/panel/ConfigPanel.js
+0
-1
Config.js
www/manager/pool/Config.js
+33
-0
StatusView.js
www/manager/pool/StatusView.js
+31
-0
Summary.js
www/manager/pool/Summary.js
+36
-0
No files found.
www/manager/Makefile
View file @
3550d09f
...
...
@@ -103,9 +103,12 @@ JSSRC= \
openvz/Options.js
\
openvz/Network.js
\
openvz/DNS.js
\
openvz/BeanCounterGrid.js
\
openvz/BeanCounterGrid.js
\
openvz/Config.js
\
openvz/CreateWizard.js
\
pool/StatusView.js
\
pool/Summary.js
\
pool/Config.js
\
storage/ContentView.js
\
storage/StatusView.js
\
storage/Summary.js
\
...
...
www/manager/StateProvider.js
View file @
3550d09f
...
...
@@ -40,6 +40,7 @@ Ext.define('PVE.StateProvider', {
[
'
ltab
'
,
'
tasks
'
],
[
'
nodetab
'
,
''
],
[
'
storagetab
'
,
''
],
[
'
pooltab
'
,
''
],
[
'
kvmtab
'
,
''
],
[
'
ovztab
'
,
''
],
[
'
dctab
'
,
''
]
...
...
@@ -48,6 +49,7 @@ Ext.define('PVE.StateProvider', {
hprefix
:
'
v1
'
,
compDict
:
{
pool
:
26
,
syslog
:
25
,
ubc
:
24
,
initlog
:
23
,
...
...
www/manager/Workspace.js
View file @
3550d09f
...
...
@@ -245,7 +245,8 @@ Ext.define('PVE.StdWorkspace', {
node
:
'
PVE.node.Config
'
,
qemu
:
'
PVE.qemu.Config
'
,
openvz
:
'
PVE.openvz.Config
'
,
storage
:
'
PVE.storage.Browser
'
storage
:
'
PVE.storage.Browser
'
,
pool
:
'
pvePoolConfig
'
};
if
(
selected
.
length
>
0
)
{
...
...
www/manager/panel/ConfigPanel.js
View file @
3550d09f
...
...
@@ -92,7 +92,6 @@ Ext.define('PVE.panel.Config', {
var
statechange
=
function
(
sp
,
key
,
state
)
{
if
(
stateid
&&
key
===
stateid
)
{
console
.
log
(
"
scanhge
"
);
var
atab
=
tab
.
getActiveTab
().
itemId
;
var
ntab
=
state
.
value
||
items
[
0
].
itemId
;
if
(
state
&&
ntab
&&
(
atab
!=
ntab
))
{
...
...
www/manager/pool/Config.js
0 → 100644
View file @
3550d09f
Ext
.
define
(
'
PVE.pool.Config
'
,
{
extend
:
'
PVE.panel.Config
'
,
alias
:
'
widget.pvePoolConfig
'
,
initComponent
:
function
()
{
var
me
=
this
;
var
pool
=
me
.
pveSelNode
.
data
.
pool
;
if
(
!
pool
)
{
throw
"
no pool specified
"
;
}
Ext
.
apply
(
me
,
{
title
:
Ext
.
String
.
format
(
gettext
(
"
Resource Pool
"
)
+
'
:
'
+
pool
),
hstateid
:
'
pooltab
'
,
items
:
[
{
title
:
gettext
(
'
Summary
'
),
xtype
:
'
pvePoolSummary
'
,
itemId
:
'
summary
'
},
{
xtype
:
'
pveACLView
'
,
title
:
gettext
(
'
Permissions
'
),
itemId
:
'
permissions
'
,
path
:
'
/pool/
'
+
pool
}
]
});
me
.
callParent
();
}
});
www/manager/pool/StatusView.js
0 → 100644
View file @
3550d09f
Ext
.
define
(
'
PVE.pool.StatusView
'
,
{
extend
:
'
PVE.grid.ObjectGrid
'
,
alias
:
[
'
widget.pvePoolStatusView
'
],
initComponent
:
function
()
{
var
me
=
this
;
var
pool
=
me
.
pveSelNode
.
data
.
pool
;
if
(
!
pool
)
{
throw
"
no pool specified
"
;
}
var
rows
=
{
comment
:
{
header
:
gettext
(
'
Comment
'
),
required
:
true
}
};
Ext
.
applyIf
(
me
,
{
title
:
gettext
(
'
Status
'
),
url
:
"
/api2/json/pools/
"
+
pool
,
cwidth1
:
150
,
interval
:
30000
,
//height: 195,
rows
:
rows
});
me
.
callParent
();
}
});
www/manager/pool/Summary.js
0 → 100644
View file @
3550d09f
Ext
.
define
(
'
PVE.pool.Summary
'
,
{
extend
:
'
Ext.panel.Panel
'
,
alias
:
'
widget.pvePoolSummary
'
,
initComponent
:
function
()
{
var
me
=
this
;
var
pool
=
me
.
pveSelNode
.
data
.
pool
;
if
(
!
pool
)
{
throw
"
no pool specified
"
;
}
var
statusview
=
Ext
.
create
(
'
PVE.pool.StatusView
'
,
{
pveSelNode
:
me
.
pveSelNode
,
style
:
'
padding-top:0px
'
});
var
rstore
=
statusview
.
rstore
;
Ext
.
apply
(
me
,
{
autoScroll
:
true
,
bodyStyle
:
'
padding:10px
'
,
defaults
:
{
style
:
'
padding-top:10px
'
,
width
:
800
},
items
:
[
statusview
]
});
me
.
on
(
'
show
'
,
rstore
.
startUpdate
);
me
.
on
(
'
hide
'
,
rstore
.
stopUpdate
);
me
.
on
(
'
destroy
'
,
rstore
.
stopUpdate
);
me
.
callParent
();
}
});
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