Commit d5f6337b authored by Roque's avatar Roque

erp5_officejs: pdf viewer about page

parent 589b5f61
......@@ -25,6 +25,7 @@
<script data-renderjs-configuration="document_module_dict" type="text/x-renderjs-configuration">{"front_page": 1, "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": "PDFs", "hide_listbox_buttons": 1, "blob_type": "", "blob_create_object_url": 0}</script>
<script data-renderjs-configuration="pdf_dict" type="text/x-renderjs-configuration"> {"front_page": 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": "PDF", "hide_listbox_buttons": 1, "blob_type": "application/pdf", "blob_create_object_url": 1}</script>
<script data-renderjs-configuration="erp5_attachment_synchro" type="text/x-renderjs-configuration">/{+id}/Base_downloadWithCors</script>
<script data-renderjs-configuration="about_page" type="text/x-renderjs-configuration">ojs_pdf_viewer_about</script>
<script data-renderjs-configuration="dropbox_app_key" type="text/x-renderjs-configuration">9g8nrxvhjgd5c6c</script>
<div data-gadget-url="gadget_erp5_router.html" data-gadget-scope="erp5_router"></div>
</body>
......
......@@ -296,7 +296,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>984.44540.291.22579</string> </value>
<value> <string>999.57642.21478.16725</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -314,7 +314,7 @@
</tuple>
<state>
<tuple>
<float>1594320074.1</float>
<float>1658331596.65</float>
<string>UTC</string>
</tuple>
</state>
......
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gadget OfficeJS PDF Viewer About</title>
<script src="rsvp.js"></script>
<script src="renderjs.js"></script>
<script src="gadget_erp5_page_ojs_pdf_viewer_about.js"></script>
<link rel="stylesheet" href="gadget_erp5_page_ojs_about.css">
</head>
<body>
<div class="about-page">
<h1>OfficeJS PDF Viewer</h1>
<p style="margin-bottom: 10px;">OfficeJS PDF Viewer 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. PDF Viewer 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 PDF Viewer itself is based on <a href="https://mozilla.github.io/pdf.js/">PDFjs</a> software. The source code of <b>PDFjs</b> can be found <a href="https://github.com/mozilla/pdf.js" target="_blank">here</a>.</p>
<h1>Licence</h1>
<p>OfficeJS PDF Viewer 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_jio_pdf_view.js",
"gadget_officejs_pdf_viewer.json",
"pdf_viewer_app_logo.svg",
"gadget_erp5_page_ojs_pdf_viewer_about.html",
"gadget_erp5_page_ojs_pdf_viewer_about.js",
"gadget_erp5_page_ojs_about.css",
#pdf_js
"pdf_js/pdfjs.gadget.html",
......
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