Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
65d9808c
Commit
65d9808c
authored
Oct 09, 2018
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Notebook Upload jsmd
/reviewed-on
nexedi/erp5!770
parent
578c1a32
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
11 deletions
+21
-11
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_notebook_router.html.html
...web_page_module/gadget_officejs_notebook_router.html.html
+1
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_notebook_router.html.xml
.../web_page_module/gadget_officejs_notebook_router.html.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_gadget_erp5_page_ojs_upload_js.js
...tem/web_page_module/ojs_gadget_erp5_page_ojs_upload_js.js
+16
-6
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_gadget_erp5_page_ojs_upload_js.xml
...em/web_page_module/ojs_gadget_erp5_page_ojs_upload_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_notebook_router.html.html
View file @
65d9808c
...
...
@@ -19,7 +19,7 @@
<script
data-renderjs-configuration=
"document_title_plural"
type=
"text/x-renderjs-configuration"
>
Notebooks
</script>
<script
data-renderjs-configuration=
"parent_relative_url"
type=
"text/x-renderjs-configuration"
>
notebook_module
</script>
<script
data-renderjs-configuration=
"erp5_attachment_synchro"
type=
"text/x-renderjs-configuration"
></script>
<script
data-renderjs-configuration=
"upload_dict"
type=
"text/x-renderjs-configuration"
>
{
"
txt
"
:
"
txt
"
}
</script>
<script
data-renderjs-configuration=
"upload_dict"
type=
"text/x-renderjs-configuration"
>
{
"
txt
"
:
"
txt
"
,
"
html
"
:
"
html
"
}
</script>
<script
data-renderjs-configuration=
"dropbox_app_key"
type=
"text/x-renderjs-configuration"
>
82
g9eir551nhovs
</script>
<div
data-gadget-url=
"gadget_erp5_router.html"
data-gadget-scope=
"erp5_router"
></div>
</body>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_notebook_router.html.xml
View file @
65d9808c
...
...
@@ -280,7 +280,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
970.
46890.21036.35140
</string>
</value>
<value>
<string>
970.
52955.27100.34065
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -298,7 +298,7 @@
</tuple>
<state>
<tuple>
<float>
15390
04524.37
</float>
<float>
15390
94329.81
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_gadget_erp5_page_ojs_upload_js.js
View file @
65d9808c
/*global window, rJS, RSVP, jIO */
/*global window, rJS, RSVP, jIO
, DOMParser
*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
,
RSVP
,
jIO
)
{
(
function
(
window
,
rJS
,
RSVP
,
jIO
,
DOMParser
)
{
"
use strict
"
;
rJS
(
window
)
...
...
@@ -35,11 +35,12 @@
]);
})
.
push
(
function
(
result
)
{
var
file_name_list
,
data
,
filename
,
queue
;
var
file_name_list
,
data
,
filename
,
queue
,
filetype
;
if
(
result
[
0
].
file
!==
undefined
)
{
file_name_list
=
result
[
0
].
file
.
file_name
.
split
(
'
.
'
);
if
(
file_name_list
[
file_name_list
.
length
-
1
]
in
window
.
JSON
.
parse
(
result
[
3
]))
{
filename
=
file_name_list
[
0
];
filetype
=
file_name_list
.
pop
();
if
(
filetype
in
window
.
JSON
.
parse
(
result
[
3
]))
{
filename
=
file_name_list
.
join
(
'
.
'
);
data
=
jIO
.
util
.
dataURItoBlob
(
result
[
0
].
file
.
url
);
queue
=
new
RSVP
.
Queue
()
.
push
(
function
()
{
...
...
@@ -49,6 +50,15 @@
return
evt
.
target
.
result
;
})
.
push
(
function
(
data_content
)
{
if
(
filetype
===
'
html
'
)
{
// In case the filetype is html, try looking for an elemnt
// with id `jsmd`, because iodide notebook saves the jsmd
// data in it.
var
parser
,
htmlDoc
;
parser
=
new
DOMParser
();
htmlDoc
=
parser
.
parseFromString
(
data_content
,
"
text/html
"
);
data_content
=
htmlDoc
.
getElementById
(
'
jsmd
'
).
textContent
;
}
return
gadget
.
jio_post
({
title
:
filename
,
portal_type
:
result
[
1
],
...
...
@@ -154,4 +164,4 @@
});
});
});
}(
window
,
rJS
,
RSVP
,
jIO
));
\ No newline at end of file
}(
window
,
rJS
,
RSVP
,
jIO
,
DOMParser
));
\ No newline at end of file
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_gadget_erp5_page_ojs_upload_js.xml
View file @
65d9808c
...
...
@@ -242,7 +242,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
970.5
3127.14817.13977
</string>
</value>
<value>
<string>
970.5
4532.18415.44100
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>
1539
074713.77
</float>
<float>
1539
165482.38
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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