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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
6787022e
Commit
6787022e
authored
Mar 30, 2019
by
Boris Kocherov
Committed by
Romain Courteaud
Apr 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_only_office] initial add olap_wizard
parent
dd532779
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
819 additions
and
22 deletions
+819
-22
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
...tem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
+3
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.html.html
...l_skins/erp5_only_office/onlyoffice/olap_wizard.html.html
+27
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.html.xml
...al_skins/erp5_only_office/onlyoffice/olap_wizard.html.xml
+32
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.js.js
...ortal_skins/erp5_only_office/onlyoffice/olap_wizard.js.js
+514
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.js.xml
...rtal_skins/erp5_only_office/onlyoffice/olap_wizard.js.xml
+32
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.json.json
...l_skins/erp5_only_office/onlyoffice/olap_wizard.json.json
+28
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.json.xml
...al_skins/erp5_only_office/onlyoffice/olap_wizard.json.xml
+32
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/common/main/lib/view_folder/RenderJSPanel.js.js
...apps/apps/common/main/lib/view_folder/RenderJSPanel.js.js
+70
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/common/main/lib/view_folder/RenderJSPanel.js.xml
...pps/apps/common/main/lib/view_folder/RenderJSPanel.js.xml
+32
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/spreadsheeteditor/main/app/template/LeftMenu.template.html
...preadsheeteditor/main/app/template/LeftMenu.template.html
+23
-21
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/spreadsheeteditor/main/app/view_folder/LeftMenu.js.js
...pps/spreadsheeteditor/main/app/view_folder/LeftMenu.js.js
+26
-1
No files found.
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
View file @
6787022e
...
...
@@ -187,6 +187,9 @@ DocsAPI.DocEditor.version = function () {
});
}
})
.
allowPublicAcquisition
(
"
getRemoteSettings
"
,
function
()
{
return
this
.
jio_getAttachment
(
'
/
'
,
'
remote_settings.json
'
,
{
format
:
'
json
'
});
})
// methods emulating Gateway used for connection with ooffice begin.
.
declareMethod
(
'
appReady
'
,
function
()
{
...
...
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.html.html
0 → 100644
View file @
6787022e
<!doctype html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
OLAP Query editor
</title>
<link
rel=
"stylesheet"
href=
"../gadget_erp5_nojqm.css"
>
<script
src=
"../rsvp.js"
></script>
<script
src=
"../renderjs.js"
></script>
<script
src=
"../jio.js"
></script>
<script
src=
"web-apps/vendor/xmla4js/Xmla-compiled.js"
></script>
<script
src=
"olap_wizard.js"
></script>
</head>
<body>
<div
data-role=
"page"
>
<div
role=
"main"
class=
"ui-content gadget-content"
>
<div
data-gadget-url=
"../jsonform.gadget.html"
data-gadget-scope=
"olap_wizard"
data-gadget-sandbox=
"public"
></div>
</div>
</div>
</body>
</html>
\ No newline at end of file
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.html.xml
0 → 100644
View file @
6787022e
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Cacheable__manager_id
</string>
</key>
<value>
<string>
http_cache
</string>
</value>
</item>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
olap_wizard.html
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</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>
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.js.js
0 → 100644
View file @
6787022e
This diff is collapsed.
Click to expand it.
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.js.xml
0 → 100644
View file @
6787022e
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Cacheable__manager_id
</string>
</key>
<value>
<string>
http_cache
</string>
</value>
</item>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
olap_wizard.js
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/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>
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.json.json
0 → 100644
View file @
6787022e
{
"$schema"
:
"http://json-schema.org/draft-07/schema"
,
"title"
:
"OLAP Query parameters"
,
"type"
:
"object"
,
"definitions"
:
{
"choice"
:
{
"type"
:
"array"
,
"uniqueItems"
:
true
,
"items"
:
{
"$ref"
:
"urn:jio:choice.json"
}
}
},
"properties"
:
{
"connection_name"
:
{
"$ref"
:
"urn:jio:remote_connections.json"
},
"columns"
:
{
"title"
:
"columns"
,
"$ref"
:
"#/definitions/choice"
},
"rows"
:
{
"title"
:
"rows"
,
"$ref"
:
"#/definitions/choice"
}
},
"additionalProperties"
:
false
}
\ No newline at end of file
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.json.xml
0 → 100644
View file @
6787022e
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Cacheable__manager_id
</string>
</key>
<value>
<string>
http_cache
</string>
</value>
</item>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
olap_wizard.json
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
application/json
</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>
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/common/main/lib/view_folder/RenderJSPanel.js.js
0 → 100644
View file @
6787022e
/**
* User: Julia.Radzhabova
* Date: 17.05.16
* Time: 15:38
*/
if
(
Common
===
undefined
)
var
Common
=
{};
Common
.
Views
=
Common
.
Views
||
{};
define
([
'
common/main/lib/util/utils
'
,
'
common/main/lib/component/BaseView
'
,
'
common/main/lib/component/Layout
'
,
'
common/main/lib/component/Window
'
],
function
(
template
)
{
'
use strict
'
;
Common
.
Views
.
RenderJSPanel
=
Common
.
UI
.
BaseView
.
extend
(
_
.
extend
({
initialize
:
function
(
options
)
{
_
.
extend
(
this
,
options
);
Common
.
UI
.
BaseView
.
prototype
.
initialize
.
call
(
this
,
arguments
);
},
render
:
function
()
{
var
me
=
this
,
element
=
me
.
$el
[
0
],
q
=
RSVP
.
Queue
();
if
(
!
me
.
gadget
)
{
q
=
Common
.
Gateway
.
declareGadget
(
this
.
gadget_url
,
{
scope
:
this
.
scope
,
element
:
element
,
sandbox
:
"
iframe
"
})
.
push
(
function
(
sub_gadget
)
{
me
.
gadget
=
sub_gadget
;
var
iframe
=
sub_gadget
.
element
.
querySelector
(
"
iframe
"
);
iframe
.
width
=
'
100%
'
;
iframe
.
height
=
(
Common
.
Utils
.
innerHeight
()
-
80
)
+
'
px
'
;
iframe
.
setAttribute
(
"
frameBorder
"
,
"
0
"
);
});
}
else
{
q
=
RSVP
.
Queue
();
}
return
q
.
push
(
function
()
{
return
me
.
gadget
.
render
(
me
.
gadget_render_opt
);
})
.
push
(
function
()
{
return
me
;
})
.
push
(
undefined
,
function
(
e
)
{
console
.
error
(
e
);
});
},
show
:
function
()
{
Common
.
UI
.
BaseView
.
prototype
.
show
.
call
(
this
,
arguments
);
this
.
fireEvent
(
'
show
'
,
this
);
},
hide
:
function
()
{
Common
.
UI
.
BaseView
.
prototype
.
hide
.
call
(
this
,
arguments
);
this
.
fireEvent
(
'
hide
'
,
this
);
}
},
Common
.
Views
.
RenderJSPanel
||
{}));
});
\ No newline at end of file
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/common/main/lib/view_folder/RenderJSPanel.js.xml
0 → 100644
View file @
6787022e
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Cacheable__manager_id
</string>
</key>
<value>
<string>
http_cache
</string>
</value>
</item>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
RenderJSPanel.js
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/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>
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/spreadsheeteditor/main/app/template/LeftMenu.template.html
View file @
6787022e
<div
id=
"view-left-menu"
class=
"tool-menu left"
>
<div
class=
"tool-menu-btns"
>
<button
id=
"left-btn-file"
class=
"btn btn-category"
content-target=
"left-panel-file"
><span
class=
"btn-icon img-toolbarmenu btn-menu-file"
>
</span></button>
<button
id=
"left-btn-search"
class=
"btn btn-category"
content-target=
""
><span
class=
"btn-icon img-toolbarmenu btn-menu-search"
>
</span></button>
<!-- /** coauthoring begin **/ -->
<button
id=
"left-btn-comments"
class=
"btn btn-category"
content-target=
"left-panel-comments"
><span
class=
"btn-icon img-toolbarmenu btn-menu-comments"
>
</span></button>
<button
id=
"left-btn-chat"
class=
"btn btn-category"
content-target=
"left-panel-chat"
><span
class=
"btn-icon img-toolbarmenu btn-menu-chat"
>
</span></button>
<!-- /** coauthoring end **/ -->
<button
id=
"left-btn-plugins"
class=
"btn btn-category"
content-target=
""
><span
class=
"btn-icon img-toolbarmenu btn-menu-plugin"
>
</span></button>
<button
id=
"left-btn-remote"
class=
"btn btn-category"
content-target=
""
><span
class=
"btn-icon img-toolbarmenu btn-settings"
>
</span></button>
<button
id=
"left-btn-support"
class=
"btn btn-category"
content-target=
""
><span
class=
"btn-icon img-toolbarmenu btn-menu-support"
>
</span></button>
<button
id=
"left-btn-about"
class=
"btn btn-category"
content-target=
""
><span
class=
"btn-icon img-toolbarmenu btn-menu-about"
>
</span></button>
</div>
<div
class=
"left-panel"
style=
""
>
<!-- /** coauthoring begin **/ -->
<div
id=
"left-panel-comments"
class=
""
style=
"display: none;"
/>
<div
id=
"left-panel-chat"
class=
""
style=
"display: none;"
/>
<!-- /** coauthoring end **/ -->
<div
id=
"left-panel-plugins"
class=
""
style=
"display: none; height: 100%;"
/>
</div>
</div>
<div
id=
"view-left-menu"
class=
"tool-menu left"
>
<div
class=
"tool-menu-btns"
>
<button
id=
"left-btn-file"
class=
"btn btn-category"
content-target=
"left-panel-file"
><span
class=
"btn-icon img-toolbarmenu btn-menu-file"
>
</span></button>
<button
id=
"left-btn-search"
class=
"btn btn-category"
content-target=
""
><span
class=
"btn-icon img-toolbarmenu btn-menu-search"
>
</span></button>
<!-- /** coauthoring begin **/ -->
<button
id=
"left-btn-comments"
class=
"btn btn-category"
content-target=
"left-panel-comments"
><span
class=
"btn-icon img-toolbarmenu btn-menu-comments"
>
</span></button>
<button
id=
"left-btn-chat"
class=
"btn btn-category"
content-target=
"left-panel-chat"
><span
class=
"btn-icon img-toolbarmenu btn-menu-chat"
>
</span></button>
<!-- /** coauthoring end **/ -->
<button
id=
"left-btn-plugins"
class=
"btn btn-category"
content-target=
""
><span
class=
"btn-icon img-toolbarmenu btn-menu-plugin"
>
</span></button>
<button
id=
"left-btn-remote"
class=
"btn btn-category"
content-target=
""
><span
class=
"btn-icon img-toolbarmenu btn-settings"
>
</span></button>
<button
id=
"left-btn-xmlawizard"
class=
"btn btn-category"
content-target=
"left-panel-xmlawizard"
><span
class=
"btn-icon img-toolbarmenu btn-menu-table"
>
</span></button>
<button
id=
"left-btn-support"
class=
"btn btn-category"
content-target=
""
><span
class=
"btn-icon img-toolbarmenu btn-menu-support"
>
</span></button>
<button
id=
"left-btn-about"
class=
"btn btn-category"
content-target=
""
><span
class=
"btn-icon img-toolbarmenu btn-menu-about"
>
</span></button>
</div>
<div
class=
"left-panel"
style=
""
>
<!-- /** coauthoring begin **/ -->
<div
id=
"left-panel-comments"
class=
""
style=
"display: none;"
/>
<div
id=
"left-panel-chat"
class=
""
style=
"display: none;"
/>
<!-- /** coauthoring end **/ -->
<div
id=
"left-panel-xmlawizard"
class=
""
style=
"display: none; height: 100%;"
/>
<div
id=
"left-panel-plugins"
class=
""
style=
"display: none; height: 100%;"
/>
</div>
</div>
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/spreadsheeteditor/main/app/view_folder/LeftMenu.js.js
View file @
6787022e
...
...
@@ -42,6 +42,7 @@ define([
'
common/main/lib/view/Chat
'
,
/** coauthoring end **/
'
common/main/lib/view/SearchDialog
'
,
'
common/main/lib/view/RenderJSPanel
'
,
'
common/main/lib/view/Plugins
'
,
'
spreadsheeteditor/main/app/view/FileMenu
'
],
function
(
menuTemplate
,
$
,
_
,
Backbone
)
{
...
...
@@ -63,6 +64,7 @@ define([
'
click #left-btn-chat
'
:
_
.
bind
(
this
.
onCoauthOptions
,
this
),
/** coauthoring end **/
'
click #left-btn-plugins
'
:
_
.
bind
(
this
.
onCoauthOptions
,
this
),
'
click #left-btn-xmlawizard
'
:
_
.
bind
(
this
.
onCoauthOptions
,
this
),
'
click #left-btn-support
'
:
function
()
{
var
config
=
this
.
mode
.
customization
;
config
&&
!!
config
.
feedback
&&
!!
config
.
feedback
.
url
?
...
...
@@ -77,7 +79,8 @@ define([
},
render
:
function
()
{
var
el
=
$
(
this
.
el
);
var
el
=
$
(
this
.
el
),
me
=
this
;
el
.
html
(
this
.
template
({
}));
...
...
@@ -157,6 +160,26 @@ define([
this
.
btnPlugins
.
hide
();
this
.
btnPlugins
.
on
(
'
click
'
,
_
.
bind
(
this
.
onBtnMenuClick
,
this
));
this
.
btnXmlaWizard
=
new
Common
.
UI
.
Button
({
el
:
$
(
'
#left-btn-xmlawizard
'
,
this
.
el
),
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
leftMenuGroup
'
});
this
.
btnXmlaWizard
.
on
(
'
click
'
,
_
.
bind
(
this
.
onBtnMenuClick
,
this
));
this
.
btnXmlaWizard
.
on
(
'
toggle
'
,
_
.
bind
(
this
.
onBtnMenuToggle
,
this
));
(
new
Common
.
Views
.
RenderJSPanel
({
el
:
$
(
'
#left-panel-xmlawizard
'
),
scope
:
"
xmlawizard
"
,
gadget_url
:
"
onlyoffice/olap_wizard.html
"
})).
render
()
.
push
(
function
(
z
)
{
me
.
btnXmlaWizard
.
panel
=
z
;
})
.
push
(
undefined
,
function
(
e
)
{
console
.
error
(
e
);
});
this
.
btnSearch
.
on
(
'
click
'
,
_
.
bind
(
this
.
onBtnMenuClick
,
this
));
this
.
btnRemote
.
on
(
'
toggle
'
,
_
.
bind
(
this
.
onBtnMenuClick
,
this
));
this
.
btnAbout
.
on
(
'
toggle
'
,
_
.
bind
(
this
.
onBtnMenuToggle
,
this
));
...
...
@@ -267,6 +290,7 @@ define([
close
:
function
(
menu
)
{
this
.
btnFile
.
toggle
(
false
);
this
.
btnAbout
.
toggle
(
false
);
this
.
btnXmlaWizard
.
toggle
(
false
);
this
.
$el
.
width
(
SCALE_MIN
);
/** coauthoring begin **/
if
(
this
.
mode
.
canCoAuthoring
)
{
...
...
@@ -300,6 +324,7 @@ define([
this
.
btnFile
.
setDisabled
(
false
);
this
.
btnAbout
.
setDisabled
(
false
);
this
.
btnRemote
.
setDisabled
(
false
);
this
.
btnXmlaWizard
.
setDisabled
(
false
);
this
.
btnSupport
.
setDisabled
(
false
);
this
.
btnSearch
.
setDisabled
(
false
);
/** coauthoring begin **/
...
...
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