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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
erp5
Commits
d7d32573
Commit
d7d32573
authored
Feb 23, 2017
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: gadget_officejs_onlyoffice_landing.* moved to erp5_officejs_ooffice
parent
94cbd2b2
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
806 deletions
+0
-806
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_html.html
..._page_module/gadget_officejs_onlyoffice_landing_html.html
+0
-21
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_html.xml
...b_page_module/gadget_officejs_onlyoffice_landing_html.xml
+0
-334
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_js.js
.../web_page_module/gadget_officejs_onlyoffice_landing_js.js
+0
-119
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_js.xml
...web_page_module/gadget_officejs_onlyoffice_landing_js.xml
+0
-332
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_html.html
deleted
100644 → 0
View file @
94cbd2b2
<!doctype html>
<html>
<head>
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no"
/>
<title>
OfficeJS Spreadsheet Loader Gadget
</title>
<!-- renderjs -->
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"jiodev.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<!-- custom script -->
<script
src=
"gadget_officejs_onlyoffice_landing.js"
type=
"text/javascript"
></script>
</head>
<body>
<script
data-renderjs-configuration=
"child-gadget"
type=
"text/x-renderjs-configuration"
>
ooffice
/
gadget_ooffice
.
html
</script>
</body>
</html>
\ No newline at end of file
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_html.xml
deleted
100644 → 0
View file @
94cbd2b2
This diff is collapsed.
Click to expand it.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_js.js
deleted
100644 → 0
View file @
94cbd2b2
/*global window, rJS, jIO, URI, location, console, document, RSVP, loopEventListener, navigator, XMLHttpRequest, ProgressEvent*/
/*jslint nomen: true, indent: 2*/
(
function
(
window
,
rJS
,
jIO
)
{
"
use strict
"
;
function
this_func_link
(
name
)
{
return
function
(
opt
)
{
return
this
[
name
].
apply
(
this
,
opt
);
};
}
var
gadget_klass
=
rJS
(
window
),
SCOPE
=
"
main
"
,
SETTING_STORAGE
=
jIO
.
createJIO
({
type
:
"
indexeddb
"
,
database
:
"
setting
"
});
gadget_klass
.
ready
(
function
(
gadget
)
{
gadget
.
props
=
{};
return
gadget
.
getElement
()
.
push
(
function
(
element
)
{
var
element_list
=
element
.
querySelectorAll
(
"
[data-renderjs-configuration]
"
),
len
=
element_list
.
length
,
key
,
value
,
i
;
gadget
.
props
.
element
=
element
;
gadget
.
props
.
configuration
=
{};
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
key
=
element_list
[
i
].
getAttribute
(
'
data-renderjs-configuration
'
);
value
=
element_list
[
i
].
textContent
;
gadget
.
props
.
configuration
[
key
]
=
value
;
}
})
.
push
(
function
()
{
// Resources are now ready
// Modify base to provides same base as gadget
var
base
=
document
.
createElement
(
'
base
'
),
child_gadget_url
=
gadget
.
props
.
configuration
[
"
child-gadget
"
];
base
.
href
=
new
URI
(
child_gadget_url
+
'
/../
'
).
normalize
()
.
toString
();
document
.
head
.
appendChild
(
base
);
return
gadget
.
declareGadget
(
child_gadget_url
,
{
scope
:
SCOPE
}
);
})
.
push
(
function
(
child_gadget
)
{
return
child_gadget
.
getElement
();
})
.
push
(
function
(
child_element
)
{
gadget
.
props
.
element
.
appendChild
(
child_element
);
});
})
.
declareMethod
(
'
getSetting
'
,
function
(
key
,
default_value
)
{
var
from_html
=
this
.
props
.
configuration
[
key
];
if
(
from_html
)
{
return
from_html
;
}
return
SETTING_STORAGE
.
get
(
"
setting
"
)
.
push
(
function
(
doc
)
{
return
doc
[
key
]
||
default_value
;
},
function
(
error
)
{
if
(
error
.
status_code
===
404
)
{
return
default_value
;
}
throw
error
;
});
})
.
allowPublicAcquisition
(
'
getSetting
'
,
this_func_link
(
'
getSetting
'
))
.
declareMethod
(
'
setSetting
'
,
function
(
key
,
value
)
{
return
SETTING_STORAGE
.
get
(
"
setting
"
)
.
push
(
undefined
,
function
(
error
)
{
if
(
error
.
status_code
===
404
)
{
return
{};
}
throw
error
;
})
.
push
(
function
(
doc
)
{
doc
[
key
]
=
value
;
return
SETTING_STORAGE
.
put
(
'
setting
'
,
doc
);
});
})
.
allowPublicAcquisition
(
'
setSetting
'
,
this_func_link
(
'
setSetting
'
))
.
declareAcquiredMethod
(
"
triggerSubmit
"
,
"
triggerSubmit
"
)
.
allowPublicAcquisition
(
'
triggerSubmit
'
,
this_func_link
(
'
triggerMaximize
'
))
.
declareAcquiredMethod
(
"
triggerMaximize
"
,
"
triggerMaximize
"
)
.
allowPublicAcquisition
(
'
triggerMaximize
'
,
this_func_link
(
'
triggerMaximize
'
))
.
declareAcquiredMethod
(
"
setFillStyle
"
,
"
setFillStyle
"
)
.
allowPublicAcquisition
(
'
setFillStyle
'
,
this_func_link
(
'
setFillStyle
'
))
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
gadget
=
this
;
return
RSVP
.
Queue
()
.
push
(
function
()
{
return
gadget
.
getDeclaredGadget
(
SCOPE
);
})
.
push
(
function
(
child_gadget
)
{
return
child_gadget
.
render
(
options
);
});
})
.
declareMethod
(
'
getContent
'
,
function
()
{
var
gadget
=
this
;
return
RSVP
.
Queue
()
.
push
(
function
()
{
return
gadget
.
getDeclaredGadget
(
SCOPE
);
})
.
push
(
function
(
child_gadget
)
{
return
child_gadget
.
getContent
();
});
});
}(
window
,
rJS
,
jIO
));
\ No newline at end of file
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_js.xml
deleted
100644 → 0
View file @
94cbd2b2
This diff is collapsed.
Click to expand it.
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