Commit b8d694cb authored by Roque's avatar Roque

erp5_officejs: codemirror about page

parent d5f6337b
......@@ -25,6 +25,7 @@
<script data-renderjs-configuration="web_page_module_dict" type="text/x-renderjs-configuration">{"front_page": 1, "upload_button": 0, "download_button": 0, "editable": 0, "hide_add_button": 0, "jump_button": 0, "fast_input_button": 0, "export_button": 0, "filter_action": 1, "panel_action": 1, "previous_next_button": 0, "history_previous_link": 0, "title": "JS Scripts", "hide_listbox_buttons": 1, "blob_type": "", "blob_create_object_url": 0}</script>
<script data-renderjs-configuration="web_script_dict" type="text/x-renderjs-configuration"> {"front_page": 0, "upload_button": 0, "download_button": 0, "editable": 1, "hide_add_button": 0, "jump_button": 0, "fast_input_button": 0, "export_button": 0, "filter_action": 0, "panel_action": 1, "previous_next_button": 1, "history_previous_link": 1, "title": "JS Script", "hide_listbox_buttons": 1, "blob_type": "", "blob_create_object_url": 0}</script>
<script data-renderjs-configuration="erp5_attachment_synchro" type="text/x-renderjs-configuration"></script>
<script data-renderjs-configuration="about_page" type="text/x-renderjs-configuration">ojs_codemirror_editor_about</script>
<script data-renderjs-configuration="dropbox_app_key" type="text/x-renderjs-configuration">xztne380tmhy7xu</script>
<div data-gadget-url="gadget_erp5_router.html" data-gadget-scope="erp5_router"></div>
<script data-renderjs-configuration="content_type" type="text/x-renderjs-configuration">application/javascript</script>
......
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gadget OfficeJS JS Scripts Editor About</title>
<script src="rsvp.js"></script>
<script src="renderjs.js"></script>
<script src="gadget_erp5_page_ojs_codemirror_editor_about.js"></script>
<link rel="stylesheet" href="gadget_erp5_page_ojs_about.css">
</head>
<body>
<div class="about-page">
<h1>OfficeJS JS Scripts Editor</h1>
<p style="margin-bottom: 10px;">OfficeJS JS Scripts Editor app is a progressive web application developed with <a href="https://renderjs.nexedi.com/">renderJS</a> and <a href="https://jio.nexedi.com">jIO</a> under the premises of <b>privacy</b> and <b>availability</b>, meaning users are free to choose their storage, can work offline and synchronize their work easily. JS Scripts editor application is developed, maintained and used by <a href="https://www.nexedi.com/">Nexedi</a>, and its code can be found <a href="https://lab.nexedi.com/nexedi/erp5/tree/master/bt5/erp5_officejs" target="_blank">here</a>.</p>
<p></p>
<p>The editor itself is based on <a href="https://codemirror.net/">Codemirror</a> software. The source code of <b>Codemirror</b> can be found <a href="https://github.com/codemirror/dev/" target="_blank">here</a>.</p>
<h1>Licence</h1>
<p>OfficeJS JS Scripts Editor is <a href="http://www.fsf.org/">Free Software</a>, licensed under the terms of the <a href="https://www.gnu.org/licenses/gpl-2.0.html">GNU GPL v3 (or later)</a>. For details, please see <a href="https://www.nexedi.com/licensing">Nexedi licensing</a>.</p>
</div>
</body>
</html>
\ No newline at end of file
/*global window, rJS, RSVP, jIO */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(function (window, rJS, RSVP, jIO) {
"use strict";
rJS(window)
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
.declareAcquiredMethod("getUrlFor", "getUrlFor")
.declareAcquiredMethod("updateHeader", "updateHeader")
.declareAcquiredMethod("getSetting", "getSetting")
.declareAcquiredMethod("jio_get", "jio_get")
.declareAcquiredMethod("jio_getAttachment", "jio_getAttachment")
.declareAcquiredMethod("notifySubmitting", "notifySubmitting")
.declareAcquiredMethod("notifySubmitted", "notifySubmitted")
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.declareMethod("render", function (options) {
var gadget = this;
return new RSVP.Queue()
//TODO: get history previous link?
/*.push(function () {
return RSVP.all([
gadget.getUrlFor({command: 'display'})
]);
})*/
.push(function (url_list) {
return gadget.updateHeader({
page_title: "About Page"
});
});
});
}(window, rJS, RSVP, jIO));
\ No newline at end of file
......@@ -6,6 +6,9 @@ url_list = [
"gadget_officejs_codemirror_router.html",
"gadget_officejs_jio_web_script_view.html",
"gadget_officejs_jio_web_script_view.js",
"gadget_erp5_page_ojs_codemirror_editor_about.html",
"gadget_erp5_page_ojs_codemirror_editor_about.js",
"gadget_erp5_page_ojs_about.css",
]
return url_list
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