Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
23e13f5c
Commit
23e13f5c
authored
Apr 01, 2019
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_notebook: Remove custom_pyodide.js
parent
2ddf2d6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
64 deletions
+0
-64
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/custom_pyodide.js.js
...plateItem/portal_skins/erp5_notebook/custom_pyodide.js.js
+0
-36
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/custom_pyodide.js.xml
...lateItem/portal_skins/erp5_notebook/custom_pyodide.js.xml
+0
-28
No files found.
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/custom_pyodide.js.js
deleted
100644 → 0
View file @
2ddf2d6a
var
initPyodide
=
new
Promise
((
resolve
,
reject
)
=>
{
// Loading Pyodide
let
wasmURL
=
`pyodide.asm.wasm`
;
let
Module
=
{};
window
.
Module
=
Module
;
let
wasm_promise
=
WebAssembly
.
compileStreaming
(
fetch
(
wasmURL
));
Module
.
instantiateWasm
=
(
info
,
receiveInstance
)
=>
{
wasm_promise
.
then
(
module
=>
WebAssembly
.
instantiate
(
module
,
info
))
.
then
(
instance
=>
receiveInstance
(
instance
));
return
{};
};
var
postRunPromise
=
new
Promise
((
resolve
,
reject
)
=>
{
Module
.
postRun
=
()
=>
{
resolve
();
};
});
Promise
.
all
([
postRunPromise
,
]).
then
(()
=>
resolve
());
let
data_script
=
document
.
createElement
(
'
script
'
);
data_script
.
src
=
`pyodide.asm.data.js`
;
data_script
.
onload
=
(
event
)
=>
{
let
script
=
document
.
createElement
(
'
script
'
);
script
.
src
=
`pyodide.asm.js`
;
script
.
onload
=
()
=>
{
window
.
pyodide
=
pyodide
(
Module
);
};
document
.
head
.
appendChild
(
script
);
};
document
.
head
.
appendChild
(
data_script
);
});
initPyodide
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/custom_pyodide.js.xml
deleted
100644 → 0
View file @
2ddf2d6a
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
custom_pyodide.js
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
application/javascript
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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