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
92624cd3
Commit
92624cd3
authored
Dec 07, 2018
by
Boris Kocherov
Committed by
Romain Courteaud
Feb 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_only_office] add gui for xmla settings
parent
c8fb3b4f
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
430 additions
and
52 deletions
+430
-52
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_appcache.xml
...m/web_page_module/gadget_ooffice_spreadsheet_appcache.xml
+13
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice.gadget.appcache.appcache
...kins/erp5_only_office/onlyoffice.gadget.appcache.appcache
+18
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
...tem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
+20
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/remote_settings.json.json
...ins/erp5_only_office/onlyoffice/remote_settings.json.json
+7
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/remote_settings.json.xml
...kins/erp5_only_office/onlyoffice/remote_settings.json.xml
+32
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/sdkjs/cell/model/FormulaObjects/cubeFunctions.xmla.js.js
.../sdkjs/cell/model/FormulaObjects/cubeFunctions.xmla.js.js
+50
-47
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/common/main/lib/view_folder/RenderJSDialog.js.js
...pps/apps/common/main/lib/view_folder/RenderJSDialog.js.js
+123
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/common/main/lib/view_folder/RenderJSDialog.js.xml
...ps/apps/common/main/lib/view_folder/RenderJSDialog.js.xml
+32
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/spreadsheeteditor/main/app/controller/LeftMenu.js.js
...apps/spreadsheeteditor/main/app/controller/LeftMenu.js.js
+49
-2
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
+2
-1
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
+13
-1
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/xmla_connection.json.json
...ins/erp5_only_office/onlyoffice/xmla_connection.json.json
+37
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/xmla_connection.json.xml
...kins/erp5_only_office/onlyoffice/xmla_connection.json.xml
+32
-0
bt5/erp5_only_office/bt/dependency_list
bt5/erp5_only_office/bt/dependency_list
+2
-1
No files found.
bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_appcache.xml
View file @
92624cd3
...
@@ -234,6 +234,16 @@ gadget_officejs_jio_spreadsheet_view.js\n
...
@@ -234,6 +234,16 @@ gadget_officejs_jio_spreadsheet_view.js\n
gadget_ooffice_spreadsheet.json\n
gadget_ooffice_spreadsheet.json\n
500px-Gnome-x-office-spreadsheet.svg.png\n
500px-Gnome-x-office-spreadsheet.svg.png\n
\n
\n
#jsonform\n
json-schema/schema4.json\n
json-schema/schema6.json\n
json-schema/schema7.json\n
jsonform.gadget.html\n
jsonform.gadget.js\n
jsonform/gadget_json_generated_form_child.html\n
jsonform/gadget_json_generated_form_child.js\n
jsonform/tv4.js\n
\n
#onlyoffice editor\n
#onlyoffice editor\n
jio.js\n
jio.js\n
zipfilestorage-with-jszip.js\n
zipfilestorage-with-jszip.js\n
...
@@ -241,6 +251,8 @@ onlyoffice.gadget.html\n
...
@@ -241,6 +251,8 @@ onlyoffice.gadget.html\n
onlyoffice.gadget.js\n
onlyoffice.gadget.js\n
onlyoffice.gadget.appcache\n
onlyoffice.gadget.appcache\n
#autogenerated for: erp5_onlyoffice_webapps\n
#autogenerated for: erp5_onlyoffice_webapps\n
onlyoffice/remote_settings.json\n
onlyoffice/xmla_connection.json\n
onlyoffice/web-apps/apps/common/Analytics.js\n
onlyoffice/web-apps/apps/common/Analytics.js\n
onlyoffice/web-apps/apps/common/Gateway.js\n
onlyoffice/web-apps/apps/common/Gateway.js\n
onlyoffice/web-apps/apps/common/IrregularStack.js\n
onlyoffice/web-apps/apps/common/IrregularStack.js\n
...
@@ -339,6 +351,7 @@ onlyoffice/web-apps/apps/common/main/lib/view_folder/Plugins.js\n
...
@@ -339,6 +351,7 @@ onlyoffice/web-apps/apps/common/main/lib/view_folder/Plugins.js\n
onlyoffice/web-apps/apps/common/main/lib/view_folder/RenameDialog.js\n
onlyoffice/web-apps/apps/common/main/lib/view_folder/RenameDialog.js\n
onlyoffice/web-apps/apps/common/main/lib/view_folder/ReviewChanges.js\n
onlyoffice/web-apps/apps/common/main/lib/view_folder/ReviewChanges.js\n
onlyoffice/web-apps/apps/common/main/lib/view_folder/SearchDialog.js\n
onlyoffice/web-apps/apps/common/main/lib/view_folder/SearchDialog.js\n
onlyoffice/web-apps/apps/common/main/lib/view_folder/RenderJSDialog.js\n
onlyoffice/web-apps/apps/css.js\n
onlyoffice/web-apps/apps/css.js\n
onlyoffice/web-apps/apps/documenteditor/main/app.js\n
onlyoffice/web-apps/apps/documenteditor/main/app.js\n
onlyoffice/web-apps/apps/documenteditor/main/app/collection/EquationGroups.js\n
onlyoffice/web-apps/apps/documenteditor/main/app/collection/EquationGroups.js\n
...
...
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice.gadget.appcache.appcache
View file @
92624cd3
...
@@ -4,7 +4,24 @@ rsvp.js
...
@@ -4,7 +4,24 @@ rsvp.js
renderjs.js
renderjs.js
jio.js
jio.js
jiodev.js
jiodev.js
#jsonform
gadget_erp5_global.js
gadget_html5_select.html
gadget_html5_select.js
json-schema/schema4.json
json-schema/schema6.json
json-schema/schema7.json
jsonform.gadget.html
jsonform.gadget.js
jsonform/gadget_json_generated_form_child.html
jsonform/gadget_json_generated_form_child.js
jsonform/tv4.js
#autogenerated for: erp5_onlyoffice_webapps
#autogenerated for: erp5_onlyoffice_webapps
onlyoffice/remote_settings.json
onlyoffice/xmla_connection.json
onlyoffice/web-apps/apps/common/Analytics.js
onlyoffice/web-apps/apps/common/Analytics.js
onlyoffice/web-apps/apps/common/Gateway.js
onlyoffice/web-apps/apps/common/Gateway.js
onlyoffice/web-apps/apps/common/IrregularStack.js
onlyoffice/web-apps/apps/common/IrregularStack.js
...
@@ -103,6 +120,7 @@ onlyoffice/web-apps/apps/common/main/lib/view_folder/Plugins.js
...
@@ -103,6 +120,7 @@ onlyoffice/web-apps/apps/common/main/lib/view_folder/Plugins.js
onlyoffice/web-apps/apps/common/main/lib/view_folder/RenameDialog.js
onlyoffice/web-apps/apps/common/main/lib/view_folder/RenameDialog.js
onlyoffice/web-apps/apps/common/main/lib/view_folder/ReviewChanges.js
onlyoffice/web-apps/apps/common/main/lib/view_folder/ReviewChanges.js
onlyoffice/web-apps/apps/common/main/lib/view_folder/SearchDialog.js
onlyoffice/web-apps/apps/common/main/lib/view_folder/SearchDialog.js
onlyoffice/web-apps/apps/common/main/lib/view_folder/RenderJSDialog.js
onlyoffice/web-apps/apps/css.js
onlyoffice/web-apps/apps/css.js
onlyoffice/web-apps/apps/documenteditor/main/app.js
onlyoffice/web-apps/apps/documenteditor/main/app.js
onlyoffice/web-apps/apps/documenteditor/main/app/collection/EquationGroups.js
onlyoffice/web-apps/apps/documenteditor/main/app/collection/EquationGroups.js
...
...
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
View file @
92624cd3
...
@@ -69,6 +69,7 @@ DocsAPI.DocEditor.version = function () {
...
@@ -69,6 +69,7 @@ DocsAPI.DocEditor.version = function () {
.
declareAcquiredMethod
(
"
triggerSubmit
"
,
"
triggerSubmit
"
)
.
declareAcquiredMethod
(
"
triggerSubmit
"
,
"
triggerSubmit
"
)
.
declareAcquiredMethod
(
"
triggerMaximize
"
,
"
triggerMaximize
"
)
.
declareAcquiredMethod
(
"
triggerMaximize
"
,
"
triggerMaximize
"
)
.
declareAcquiredMethod
(
'
getSetting
'
,
'
getSetting
'
)
.
declareAcquiredMethod
(
'
getSetting
'
,
'
getSetting
'
)
.
declareAcquiredMethod
(
'
notifyChange
'
,
'
notifyChange
'
)
.
declareMethod
(
"
jio_getAttachment
"
,
function
(
docId
,
attId
,
opt
)
{
.
declareMethod
(
"
jio_getAttachment
"
,
function
(
docId
,
attId
,
opt
)
{
var
g
=
this
,
var
g
=
this
,
queue
;
queue
;
...
@@ -168,6 +169,25 @@ DocsAPI.DocEditor.version = function () {
...
@@ -168,6 +169,25 @@ DocsAPI.DocEditor.version = function () {
}
}
return
queue
;
return
queue
;
})
})
.
allowPublicAcquisition
(
"
notifyChange
"
,
function
(
arr
,
scope
)
{
var
gadget
=
this
;
if
(
scope
===
"
remote_settings
"
)
{
return
this
.
getDeclaredGadget
(
scope
)
.
push
(
function
(
g
)
{
return
g
.
getContent
();
})
.
push
(
function
(
data
)
{
return
gadget
.
jio_putAttachment
(
'
/
'
,
'
remote_settings.json
'
,
data
);
})
.
push
(
function
()
{
return
gadget
.
notifyChange
();
})
.
push
(
undefined
,
function
(
e
)
{
console
.
error
(
e
);
});
}
})
// methods emulating Gateway used for connection with ooffice begin.
// methods emulating Gateway used for connection with ooffice begin.
.
declareMethod
(
'
appReady
'
,
function
()
{
.
declareMethod
(
'
appReady
'
,
function
()
{
...
...
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/remote_settings.json.json
0 → 100644
View file @
92624cd3
{
"$schema"
:
"http://json-schema.org/draft-07/schema"
,
"title"
:
"remote XMLA connections"
,
"additionalProperties"
:
{
"$ref"
:
"xmla_connection.json"
}
}
\ No newline at end of file
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/remote_settings.json.xml
0 → 100644
View file @
92624cd3
<?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>
remote_settings.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/sdkjs/cell/model/FormulaObjects/cubeFunctions.xmla.js.js
View file @
92624cd3
...
@@ -116,15 +116,17 @@
...
@@ -116,15 +116,17 @@
}
}
function
discover_hierarchies
(
connection
)
{
function
discover_hierarchies
(
connection
)
{
var
settings
=
getProperties
(
connection
),
return
getProperties
(
connection
)
prop
=
settings
.
prop
;
.
push
(
function
(
settings
)
{
prop
.
restrictions
=
{
var
prop
=
settings
.
prop
;
// 'CATALOG_NAME': 'FoodMart',
prop
.
restrictions
=
{
// 'HIERARCHY_NAME': hierarchy_name,
// 'CATALOG_NAME': 'FoodMart',
// 'HIERARCHY_UNIQUE_NAME': hierarchy_name,
// 'HIERARCHY_NAME': hierarchy_name,
'
CUBE_NAME
'
:
settings
[
"
cube
"
]
// 'HIERARCHY_UNIQUE_NAME': hierarchy_name,
};
'
CUBE_NAME
'
:
settings
[
"
cube
"
]
return
xmla_request_retry
(
"
discoverMDHierarchies
"
,
prop
)
};
return
xmla_request_retry
(
"
discoverMDHierarchies
"
,
prop
);
})
.
push
(
function
(
response
)
{
.
push
(
function
(
response
)
{
var
hierarchies
=
{},
var
hierarchies
=
{},
hierarchy
,
hierarchy
,
...
@@ -168,36 +170,32 @@
...
@@ -168,36 +170,32 @@
});
});
}
}
function
getProperties
(
connection
)
{
function
getProperties
(
connection
)
{
var
connections
=
{
return
Common
.
Gateway
.
jio_getAttachment
(
'
/
'
,
'
remote_settings.json
'
,
{
format
:
'
json
'
})
"
xmla
"
:
{
.
push
(
undefined
,
function
(
e
)
{
"
prop
"
:
{
if
(
e
.
status_code
===
404
)
{
"
url
"
:
"
https://d1.erp5.ru/saiku/xmla
"
,
return
{};
"
properties
"
:
{
}
"
DataSourceInfo
"
:
"
FoodMart
"
,
throw
e
;
"
Catalog
"
:
"
FoodMart
"
})
}
.
push
(
function
(
value
)
{
},
var
c
;
"
cube
"
:
"
Sales
"
if
(
!
value
.
hasOwnProperty
(
connection
))
{
},
throw
"
connection not exist
"
;
"
olapy
"
:
{
}
"
prop
"
:
{
c
=
value
[
connection
];
"
url
"
:
"
https://d1.erp5.ru/olapy/xmla
"
,
return
{
"
properties
"
:
{
prop
:
{
"
DataSourceInfo
"
:
"
-
"
,
url
:
c
.
url
,
"
Catalog
"
:
"
sales
"
properties
:
{
}
DataSourceInfo
:
c
.
properties
.
DataSourceInfo
,
},
Catalog
:
c
.
properties
.
Catalog
"
cube
"
:
"
Sales
"
}
}
},
};
cube
:
c
.
properties
.
Cube
connection
=
connections
[
connection
];
};
if
(
!
connection
)
{
});
throw
"
connection not exist
"
;
}
}
connection
=
JSON
.
parse
(
JSON
.
stringify
(
connection
));
return
connection
;
}
function
getScheme
(
connection
)
{
function
getScheme
(
connection
)
{
var
scheme
=
cubeScheme
[
connection
],
var
scheme
=
cubeScheme
[
connection
],
...
@@ -324,16 +322,22 @@
...
@@ -324,16 +322,22 @@
scheme
;
scheme
;
if
(
!
execution_scheme
.
execute
)
{
if
(
!
execution_scheme
.
execute
)
{
execution_scheme
.
execute
=
RSVP
.
defer
();
execution_scheme
.
execute
=
RSVP
.
defer
();
return
getScheme
(
connection
)
return
RSVP
.
Queue
()
.
push
(
function
(
s
)
{
.
push
(
function
()
{
var
settings
=
getProperties
(
connection
),
return
RSVP
.
all
([
getScheme
(
connection
),
getProperties
(
connection
)
]);
})
.
push
(
function
(
arr
)
{
var
settings
=
arr
[
1
],
prop
=
settings
.
prop
,
prop
=
settings
.
prop
,
hierarchies
=
execution_scheme
.
hierarchies
,
hierarchies
=
execution_scheme
.
hierarchies
,
hierarchy
,
hierarchy
,
mdx
=
[],
mdx
=
[],
tuple_str
,
tuple_str
,
all_member
;
all_member
;
scheme
=
s
;
scheme
=
arr
[
0
]
;
for
(
hierarchy
in
hierarchies
)
{
for
(
hierarchy
in
hierarchies
)
{
tuple_str
=
hierarchies
[
hierarchy
].
join
(
"
,
"
);
tuple_str
=
hierarchies
[
hierarchy
].
join
(
"
,
"
);
all_member
=
scheme
.
hierarchies
[
hierarchy
][
"
all_member
"
];
all_member
=
scheme
.
hierarchies
[
hierarchy
][
"
all_member
"
];
...
@@ -410,10 +414,9 @@
...
@@ -410,10 +414,9 @@
}
}
function
discover_members
(
connection
,
opt
)
{
function
discover_members
(
connection
,
opt
)
{
return
new
RSVP
.
Queue
()
return
getProperties
(
connection
)
.
push
(
function
()
{
.
push
(
function
(
settings
)
{
var
settings
=
getProperties
(
connection
),
var
prop
=
settings
.
prop
,
prop
=
settings
.
prop
,
cached_member
,
cached_member
,
scheme
=
getExecutionScheme
(
connection
);
scheme
=
getExecutionScheme
(
connection
);
prop
.
restrictions
=
{
prop
.
restrictions
=
{
...
...
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/common/main/lib/view_folder/RenderJSDialog.js.js
0 → 100644
View file @
92624cd3
define
([
'
common/main/lib/component/Window
'
,
'
common/main/lib/component/LoadMask
'
],
function
()
{
'
use strict
'
;
Common
.
Views
.
RenderJSDialog
=
Common
.
UI
.
Window
.
extend
(
_
.
extend
({
initialize
:
function
(
options
)
{
var
_options
=
{};
_
.
extend
(
_options
,
{
title
:
this
.
textTitle
,
width
:
1024
,
height
:
621
,
header
:
true
},
options
);
this
.
template
=
[
'
<div id="<%= scope %>"></div>
'
].
join
(
''
);
_options
.
tpl
=
_
.
template
(
this
.
template
)(
_options
);
Common
.
UI
.
Window
.
prototype
.
initialize
.
call
(
this
,
_options
);
},
render
:
function
()
{
var
q
,
me
=
this
,
element
;
Common
.
UI
.
Window
.
prototype
.
render
.
call
(
this
);
element
=
document
.
getElementById
(
this
.
options
.
scope
);
this
.
$window
.
find
(
'
> .body
'
).
css
({
height
:
'
auto
'
,
overflow
:
'
hidden
'
});
// this.loadMask = new Common.UI.LoadMask({owner: $(element)});
// this.loadMask.setTitle(this.textLoading);
// this.loadMask.show();
if
(
!
me
.
gadget
)
{
q
=
Common
.
Gateway
.
declareGadget
(
this
.
options
.
gadget_url
,
{
scope
:
this
.
options
.
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
=
"
585px
"
;
iframe
.
setAttribute
(
"
frameBorder
"
,
"
0
"
);
// iframe.style = "border: none;";
// iframe.align = "top";
// iframe.scrolling = "no";
// this._eventfunc = function(msg) {
// me._onWindowMessage(msg);
// };
// this._bindWindowEvents.call(this);
//
// this.on('close', function(obj){
// me._unbindWindowEvents();
// });
});
}
else
{
q
=
RSVP
.
Queue
();
}
return
q
.
push
(
function
()
{
return
me
.
gadget
.
render
(
me
.
options
.
gadget_render_opt
);
})
.
push
(
undefined
,
function
()
{
// XXX
return
;
})
.
push
(
function
()
{
me
.
_onLoad
();
});
},
_bindWindowEvents
:
function
()
{
if
(
window
.
addEventListener
)
{
window
.
addEventListener
(
"
message
"
,
this
.
_eventfunc
,
false
);
}
else
if
(
window
.
attachEvent
)
{
window
.
attachEvent
(
"
onmessage
"
,
this
.
_eventfunc
);
}
},
_unbindWindowEvents
:
function
()
{
if
(
window
.
removeEventListener
)
{
window
.
removeEventListener
(
"
message
"
,
this
.
_eventfunc
);
}
else
if
(
window
.
detachEvent
)
{
window
.
detachEvent
(
"
onmessage
"
,
this
.
_eventfunc
);
}
},
_onWindowMessage
:
function
(
msg
)
{
// TODO: check message origin
if
(
msg
&&
window
.
JSON
)
{
try
{
this
.
_onMessage
.
call
(
this
,
window
.
JSON
.
parse
(
msg
.
data
));
}
catch
(
e
)
{}
}
},
_onMessage
:
function
(
msg
)
{
if
(
msg
&&
msg
.
file
!==
undefined
)
{
Common
.
NotificationCenter
.
trigger
(
'
window:close
'
,
this
);
var
me
=
this
;
setTimeout
(
function
()
{
if
(
!
_
.
isEmpty
(
msg
.
file
)
)
{
me
.
trigger
(
'
mailmergerecepients
'
,
me
,
msg
.
file
);
}
},
50
);
}
},
_onLoad
:
function
()
{
if
(
this
.
loadMask
)
this
.
loadMask
.
hide
();
},
textTitle
:
'
Select Data Source
'
,
textLoading
:
'
Loading
'
},
Common
.
Views
.
RenderJSDialog
||
{}));
});
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/common/main/lib/view_folder/RenderJSDialog.js.xml
0 → 100644
View file @
92624cd3
<?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>
RenderJSDialog.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/controller/LeftMenu.js.js
View file @
92624cd3
...
@@ -34,7 +34,8 @@ define([
...
@@ -34,7 +34,8 @@ define([
'
core
'
,
'
core
'
,
'
common/main/lib/util/Shortcuts
'
,
'
common/main/lib/util/Shortcuts
'
,
'
spreadsheeteditor/main/app/view/LeftMenu
'
,
'
spreadsheeteditor/main/app/view/LeftMenu
'
,
'
spreadsheeteditor/main/app/view/FileMenu
'
'
spreadsheeteditor/main/app/view/FileMenu
'
,
'
common/main/lib/view/RenderJSDialog
'
],
function
()
{
],
function
()
{
'
use strict
'
;
'
use strict
'
;
...
@@ -88,6 +89,7 @@ define([
...
@@ -88,6 +89,7 @@ define([
onLaunch
:
function
()
{
onLaunch
:
function
()
{
this
.
leftMenu
=
this
.
createView
(
'
LeftMenu
'
).
render
();
this
.
leftMenu
=
this
.
createView
(
'
LeftMenu
'
).
render
();
this
.
leftMenu
.
btnSearch
.
on
(
'
toggle
'
,
_
.
bind
(
this
.
onMenuSearch
,
this
));
this
.
leftMenu
.
btnSearch
.
on
(
'
toggle
'
,
_
.
bind
(
this
.
onMenuSearch
,
this
));
this
.
leftMenu
.
btnRemote
.
on
(
'
toggle
'
,
_
.
bind
(
this
.
onRemote
,
this
));
Common
.
util
.
Shortcuts
.
delegateShortcuts
({
Common
.
util
.
Shortcuts
.
delegateShortcuts
({
shortcuts
:
{
shortcuts
:
{
...
@@ -476,6 +478,51 @@ define([
...
@@ -476,6 +478,51 @@ define([
this
.
showSearchDlg
(
show
);
this
.
showSearchDlg
(
show
);
},
},
onRemote
:
function
(
obj
,
show
)
{
var
queue
,
me
=
this
;
if
(
!
this
.
dlgRemote
)
{
queue
=
Common
.
Gateway
.
jio_getAttachment
(
'
/
'
,
'
remote_settings.json
'
,
{
format
:
'
json
'
})
.
push
(
undefined
,
function
(
e
)
{
if
(
e
.
status_code
===
404
)
{
return
{};
}
throw
e
;
})
.
push
(
function
(
value
)
{
me
.
dlgRemote
=
new
Common
.
Views
.
RenderJSDialog
({
toolclose
:
"
hide
"
,
gadget_url
:
"
jsonform.gadget.html
"
,
scope
:
"
remote_settings
"
,
gadget_render_opt
:
{
schema_url
:
"
onlyoffice/remote_settings.json
"
,
value
:
value
}
});
me
.
dlgRemote
.
on
(
"
hide
"
,
_
.
bind
(
function
()
{
this
.
leftMenu
.
btnRemote
.
toggle
(
false
,
true
);
},
me
));
});
}
else
{
queue
=
RSVP
.
Queue
();
}
queue
.
push
(
function
()
{
if
(
show
)
{
if
(
me
.
dlgRemote
.
isVisible
())
{
me
.
dlgRemote
.
focus
();
}
else
{
me
.
dlgRemote
.
show
();
}
me
.
api
.
asc_closeCellEditor
();
}
})
.
push
(
undefined
,
function
(
e
)
{
console
.
error
(
e
);
});
},
onSearchDlgHide
:
function
()
{
onSearchDlgHide
:
function
()
{
this
.
leftMenu
.
btnSearch
.
toggle
(
false
,
true
);
this
.
leftMenu
.
btnSearch
.
toggle
(
false
,
true
);
$
(
this
.
leftMenu
.
btnSearch
.
el
).
blur
();
$
(
this
.
leftMenu
.
btnSearch
.
el
).
blur
();
...
@@ -716,4 +763,4 @@ define([
...
@@ -716,4 +763,4 @@ define([
textSearch
:
'
Search
'
,
textSearch
:
'
Search
'
,
textLookin
:
'
Look in
'
textLookin
:
'
Look in
'
},
SSE
.
Controllers
.
LeftMenu
||
{}));
},
SSE
.
Controllers
.
LeftMenu
||
{}));
});
});
\ No newline at end of file
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/spreadsheeteditor/main/app/template/LeftMenu.template.html
View file @
92624cd3
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
<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>
<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 **/ -->
<!-- /** 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-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-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>
<button
id=
"left-btn-about"
class=
"btn btn-category"
content-target=
""
><span
class=
"btn-icon img-toolbarmenu btn-menu-about"
>
</span></button>
</div>
</div>
...
@@ -17,4 +18,4 @@
...
@@ -17,4 +18,4 @@
<!-- /** coauthoring end **/ -->
<!-- /** coauthoring end **/ -->
<div
id=
"left-panel-plugins"
class=
""
style=
"display: none; height: 100%;"
/>
<div
id=
"left-panel-plugins"
class=
""
style=
"display: none; height: 100%;"
/>
</div>
</div>
</div>
</div>
\ No newline at end of file
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/web-apps/apps/spreadsheeteditor/main/app/view_folder/LeftMenu.js.js
View file @
92624cd3
...
@@ -107,6 +107,14 @@ define([
...
@@ -107,6 +107,14 @@ define([
toggleGroup
:
'
leftMenuGroup
'
toggleGroup
:
'
leftMenuGroup
'
});
});
this
.
btnRemote
=
new
Common
.
UI
.
Button
({
action
:
'
remote
'
,
el
:
$
(
'
#left-btn-remote
'
,
this
.
el
),
hint
:
this
.
tipRemote
,
enableToggle
:
true
,
disabled
:
true
});
this
.
btnSupport
=
new
Common
.
UI
.
Button
({
this
.
btnSupport
=
new
Common
.
UI
.
Button
({
action
:
'
support
'
,
action
:
'
support
'
,
el
:
$
(
'
#left-btn-support
'
,
this
.
el
),
el
:
$
(
'
#left-btn-support
'
,
this
.
el
),
...
@@ -150,6 +158,7 @@ define([
...
@@ -150,6 +158,7 @@ define([
this
.
btnPlugins
.
on
(
'
click
'
,
_
.
bind
(
this
.
onBtnMenuClick
,
this
));
this
.
btnPlugins
.
on
(
'
click
'
,
_
.
bind
(
this
.
onBtnMenuClick
,
this
));
this
.
btnSearch
.
on
(
'
click
'
,
_
.
bind
(
this
.
onBtnMenuClick
,
this
));
this
.
btnSearch
.
on
(
'
click
'
,
_
.
bind
(
this
.
onBtnMenuClick
,
this
));
this
.
btnRemote
.
on
(
'
toggle
'
,
_
.
bind
(
this
.
onBtnMenuClick
,
this
));
this
.
btnAbout
.
on
(
'
toggle
'
,
_
.
bind
(
this
.
onBtnMenuToggle
,
this
));
this
.
btnAbout
.
on
(
'
toggle
'
,
_
.
bind
(
this
.
onBtnMenuToggle
,
this
));
this
.
btnFile
.
on
(
'
toggle
'
,
_
.
bind
(
this
.
onBtnMenuToggle
,
this
));
this
.
btnFile
.
on
(
'
toggle
'
,
_
.
bind
(
this
.
onBtnMenuToggle
,
this
));
...
@@ -187,7 +196,8 @@ define([
...
@@ -187,7 +196,8 @@ define([
this
.
btnFile
.
toggle
(
false
);
this
.
btnFile
.
toggle
(
false
);
this
.
btnAbout
.
toggle
(
false
);
this
.
btnAbout
.
toggle
(
false
);
if
(
btn
.
options
.
action
==
'
search
'
)
{
if
(
btn
.
options
.
action
==
'
search
'
||
btn
.
options
.
action
==
'
remote
'
)
{
}
else
{
}
else
{
if
(
btn
.
pressed
)
{
if
(
btn
.
pressed
)
{
if
(
!
(
this
.
$el
.
width
()
>
SCALE_MIN
))
{
if
(
!
(
this
.
$el
.
width
()
>
SCALE_MIN
))
{
...
@@ -289,6 +299,7 @@ define([
...
@@ -289,6 +299,7 @@ define([
disableMenu
:
function
(
menu
,
disable
)
{
disableMenu
:
function
(
menu
,
disable
)
{
this
.
btnFile
.
setDisabled
(
false
);
this
.
btnFile
.
setDisabled
(
false
);
this
.
btnAbout
.
setDisabled
(
false
);
this
.
btnAbout
.
setDisabled
(
false
);
this
.
btnRemote
.
setDisabled
(
false
);
this
.
btnSupport
.
setDisabled
(
false
);
this
.
btnSupport
.
setDisabled
(
false
);
this
.
btnSearch
.
setDisabled
(
false
);
this
.
btnSearch
.
setDisabled
(
false
);
/** coauthoring begin **/
/** coauthoring begin **/
...
@@ -369,6 +380,7 @@ define([
...
@@ -369,6 +380,7 @@ define([
tipChat
:
'
Chat
'
,
tipChat
:
'
Chat
'
,
/** coauthoring end **/
/** coauthoring end **/
tipAbout
:
'
About
'
,
tipAbout
:
'
About
'
,
tipRemote
:
'
Remote Connections Settings
'
,
tipSupport
:
'
Feedback & Support
'
,
tipSupport
:
'
Feedback & Support
'
,
tipFile
:
'
File
'
,
tipFile
:
'
File
'
,
tipSearch
:
'
Search
'
,
tipSearch
:
'
Search
'
,
...
...
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/xmla_connection.json.json
0 → 100644
View file @
92624cd3
{
"$schema"
:
"http://json-schema.org/draft-07/schema"
,
"title"
:
"XMLA connection"
,
"type"
:
"object"
,
"properties"
:
{
"url"
:
{
"uniqueItems"
:
true
,
"items"
:
{
"format"
:
"uri"
,
"minLength"
:
1
,
"type"
:
"string"
},
"minItems"
:
1
,
"type"
:
"array"
},
"properties"
:
{
"type"
:
"object"
,
"additionalProperties"
:
false
,
"required"
:
[
"Cube"
],
"properties"
:
{
"DataSourceInfo"
:
{
"type"
:
"string"
},
"Catalog"
:
{
"type"
:
"string"
},
"Cube"
:
{
"type"
:
"string"
}
}
},
"username"
:
{
"type"
:
"string"
},
"password"
:
{
"type"
:
"string"
}
},
"required"
:
[
"url"
],
"additionalProperties"
:
false
}
\ No newline at end of file
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/xmla_connection.json.xml
0 → 100644
View file @
92624cd3
<?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>
xmla_connection.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/bt/dependency_list
View file @
92624cd3
erp5_dms
erp5_dms
\ No newline at end of file
erp5_json_form
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