Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
6637257e
Commit
6637257e
authored
Dec 20, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated gadgets API
parent
9f6a9077
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
8 deletions
+83
-8
data/computer_status.json
data/computer_status.json
+2
-1
data/servers.json
data/servers.json
+6
-0
data/software.json
data/software.json
+8
-0
data/software_status.json
data/software_status.json
+67
-7
No files found.
data/computer_status.json
View file @
6637257e
...
...
@@ -2,8 +2,9 @@
"portal_type_source"
:
"Computer"
,
"portal_type_title"
:
"computer"
,
"portal_type_fields"
:
"computer_fieldlist"
,
"initial_query"
:
{
"include_docs"
:
true
,
"limit"
:[
0
,
1
]},
"form"
:
true
,
"id"
:
"computer_
new
"
,
"id"
:
"computer_
status
"
,
"property_dict"
:
{
"dynamic_children"
:
[
0
],
"requires_authentication"
:
true
,
...
...
data/servers.json
View file @
6637257e
...
...
@@ -32,6 +32,12 @@
"type"
:
"fieldlist"
,
"id"
:
"computer_status"
,
"href"
:
"computer_status"
},
{
"generate"
:
"gadget"
,
"type"
:
"listbox"
,
"id"
:
"software_status"
,
"href"
:
"software_status"
}
],
"new"
:
[
...
...
data/software.json
View file @
6637257e
...
...
@@ -33,6 +33,14 @@
"id"
:
"release_overview"
,
"href"
:
"release_overview"
}
],
"add"
:
[
{
"generate"
:
"gadget"
,
"type"
:
"listgrid"
,
"id"
:
"subscription_overview"
,
"href"
:
"subscription_overview"
}
]
}
},
{
...
...
data/software_status.json
View file @
6637257e
{
"portal_type_source"
:
"Software Installation"
,
"portal_type_title"
:
"installation"
,
"portal_type_fields"
:
"
subscrip
tion_fieldlist"
,
"portal_type_fields"
:
"
installa
tion_fieldlist"
,
"form"
:
true
,
"id"
:
"
computer_n
ew"
,
"id"
:
"
installation_overvi
ew"
,
"property_dict"
:
{
"dynamic_children"
:
[
0
],
"requires_authentication"
:
true
,
"depends_on"
:
"login_state"
,
"wrap_gadget"
:
2
,
"submit_to"
:
"#servers::__id__"
"layout"
:
{
"header"
:
[
[
{
"column"
:
"installation_image"
,
"show"
:
true
,
"priority"
:
4
},
{
"column"
:
"installation_title"
,
"show"
:
true
,
"priority"
:
5
},
{
"column"
:
"installation_version"
,
"show"
:
true
,
"priority"
:
2
},
{
"custom"
:
true
,
"text"
:
"Status"
,
"text_i18n"
:
"global_dict.common_dict.status"
,
"show"
:
true
,
"priority"
:
5
},
{
"column"
:
"installation_usage"
,
"show"
:
true
,
"priority"
:
3
}
]
],
"body"
:
[
{
"column"
:
"installation_image"
,
"show"
:
true
,
"priority"
:
4
},
{
"column"
:
"installation_title"
,
"show"
:
true
,
"priority"
:
5
},
{
"column"
:
"installation_version"
,
"show"
:
true
,
"priority"
:
2
},
{
"custom"
:
true
,
"show"
:
true
,
"priority"
:
5
,
"status"
:
true
},
{
"custom"
:
"installation_usage"
,
"show"
:
true
,
"priority"
:
3
}
],
"footer"
:
[]
},
"feature_dict"
:
{
"linkable"
:
true
,
"link_identifier"
:
"installation_id"
}
},
"children"
:
[],
"placeholder_dict"
:
{
"children"
:
[{
"generate"
:
"widget"
,
"type"
:
"table"
,
"class_list"
:
"table-stroke ui-responsive"
,
"property_dict"
:
{
"mode"
:
"columntoggle"
,
"toggle_popup"
:
false
,
"wrap"
:
"both"
,
"top_grid"
:
1
,
"bottom_grid"
:
1
},
"children"
:
[{
"generate"
:
"widget"
,
"type"
:
"controlgroup"
,
"class_list"
:
"center inline"
,
"property_dict"
:
{},
"children"
:
[
{
"type"
:
"a"
,
"direct"
:
{
"href"
:
"#software::add"
,
"className"
:
"ui-btn-slapos-black"
},
"attributes"
:
{
"data-i18n"
:
"page_dict.servers.add_software"
},
"logic"
:
{
"text"
:
"Install Software"
}}
]
}]
}],
"placeholder_dict"
:
{
"no_auth"
:
{
"text"
:
"Requires authorization."
,
"text_i18n"
:
"validation_dict.requires_auth"
,
...
...
@@ -43,6 +83,26 @@
]
}
]
},
"no_items"
:
{
"text"
:
"No Software installed."
,
"text_i18n"
:
"page_dict.servers.no_software"
,
"children"
:
[
{
"generate"
:
"widget"
,
"type"
:
"controlgroup"
,
"property_dict"
:
{
"direction"
:
"horizontal"
},
"children"
:
[{
"type"
:
"a"
,
"direct"
:
{
"className"
:
"translate ui-btn-slapos-black"
,
"href"
:
"#software"
},
"attributes"
:
{
"data-i18n"
:
"page_dict.servers.add_software"
},
"logic"
:
{
"text"
:
"Add Software"
}
}
]
}
]
}
}
}
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