Commit e345b0ad authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: add WIP access page on panel

parent 89e29aa0
<!DOCTYPE html>
<html>
<!--
data-i18n=List All Report
data-i18n=Contribute File
data-i18n=New
-->
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<title>SlapOS master Access</title>
<link rel="http://www.renderjs.org/rel/interface" href="interface_page.html">
<!-- renderjs -->
<script src="rsvp.js" type="text/javascript"></script>
<script src="renderjs.js" type="text/javascript"></script>
<script src="slapos_master_panel_access.js" type="text/javascript"></script>
</head>
<body>
<div data-gadget-url="gadget_erp5_page_access.html"
data-gadget-scope="access" />
</body>
</html>
/*jslint indent: 2, maxerr: 3, maxlen: 80 */
/*global window, rJS, RSVP */
(function (window, rJS, RSVP) {
"use strict";
rJS(window)
.declareAcquiredMethod("getTranslationDict", "getTranslationDict")
.declareMethod('triggerSubmit', function () {
var argument_list = arguments;
return this.getDeclaredGadget('access')
.push(function (access_gadget) {
return access_gadget.triggerSubmit.call(access_gadget, argument_list);
});
})
.declareMethod('render', function (options) {
return new RSVP.Queue(RSVP.hash({
access_gadget: this.getDeclaredGadget('access'),
translation_dict: this.getTranslationDict([
'Projects',
'Instance Trees',
'Servers'
])
}))
.push(function (result_dict) {
return result_dict.access_gadget.render(options, [{
title: result_dict.translation_dict.Projects,
jio_key: 'project_module',
erp5_action: 'view'
}, {
title: result_dict.translation_dict['Instance Trees'],
jio_key: 'instance_tree_module',
erp5_action: 'view'
}, {
title: result_dict.translation_dict.Servers,
jio_key: 'compute_node_module',
erp5_action: 'view'
}]);
});
});
}(window, rJS, RSVP));
......@@ -375,7 +375,7 @@
</item>
<item>
<key> <string>configuration_frontpage_gadget_url</string> </key>
<value> <string>worklist</string> </value>
<value> <string>slapos_master_panel_access</string> </value>
</item>
<item>
<key> <string>configuration_hateoas_url</string> </key>
......@@ -413,7 +413,9 @@
</item>
<item>
<key> <string>configuration_service_worker_url</string> </key>
<value> <string>gadget_erp5_serviceworker.js</string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>configuration_translation_gadget_url</string> </key>
......@@ -692,7 +694,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1002.15001.5527.15633</string> </value>
<value> <string>1002.20537.42710.26641</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -710,7 +712,7 @@
</tuple>
<state>
<tuple>
<float>1660309990.8</float>
<float>1660642388.77</float>
<string>UTC</string>
</tuple>
</state>
......
web_site_module/slapos_master_panel
web_page_module/slapos_master_panel_access_*
\ No newline at end of file
web_site_module/slapos_master_panel
web_page_module/slapos_master_panel_access_*
\ No newline at end of file
web_page_module/slapos_master_panel_access_*
web_site_module/slapos_master_panel
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment