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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
erp5
Commits
674c2378
Commit
674c2378
authored
Oct 12, 2016
by
Hardik Juneja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: Add support for ERP5 as handshake option for webrtc page share
parent
09c9ae60
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
51 additions
and
40 deletions
+51
-40
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_web_page_view_js.js
...m/web_page_module/gadget_officejs_jio_web_page_view_js.js
+3
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_web_page_view_js.xml
.../web_page_module/gadget_officejs_jio_web_page_view_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_html.xml
...age_module/gadget_officejs_page_jio_configurator_html.xml
+3
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.js
...b_page_module/gadget_officejs_page_jio_configurator_js.js
+24
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.xml
..._page_module/gadget_officejs_page_jio_configurator_js.xml
+3
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_dav_configurator_js.xml
...e_module/gadget_officejs_page_jio_dav_configurator_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_share_configurator_js.js
...page_module/gadget_officejs_page_share_configurator_js.js
+12
-24
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_share_configurator_js.xml
...age_module/gadget_officejs_page_share_configurator_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_web_page_view_js.js
View file @
674c2378
...
...
@@ -35,7 +35,7 @@
gadget
.
props
.
webrtc_share_name
=
webrtc_share_name
;
return
gadget
.
getSetting
(
'
webrtc_share_description
'
)
})
.
push
(
function
(
webrtc_share_description
){
.
push
(
function
(
webrtc_share_description
)
{
if
(
window
.
location
.
hash
)
{
var
index
=
window
.
location
.
hash
.
indexOf
(
'
room=
'
),
type
;
...
...
@@ -54,9 +54,9 @@
}
);
})
.
push
(
function
(
g
){
.
push
(
function
(
g
)
{
var
config
;
if
(
gadget
.
props
.
webrtc_share_name
===
"
DAV
"
)
{
if
(
gadget
.
props
.
webrtc_share_name
===
"
DAV
"
||
gadget
.
props
.
webrtc_share_name
===
"
ERP5
"
)
{
type
=
"
jio
"
;
config
=
webrtc_share_description
.
remote_sub_storage
;
}
else
{
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_web_page_view_js.xml
View file @
674c2378
...
...
@@ -228,7 +228,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.
15487.18741.41096
</string>
</value>
<value>
<string>
954.
35924.33648.64204
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>
147
5137884.03
</float>
<float>
147
6277769.81
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_html.xml
View file @
674c2378
...
...
@@ -220,7 +220,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
cedric.le.ninivin
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
47.12629.17894.55808
</string>
</value>
<value>
<string>
9
53.32434.36327.35225
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
14
48032104.14
</float>
<float>
14
75239510.96
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.js
View file @
674c2378
...
...
@@ -78,6 +78,23 @@
});
}
function
setWebrtcShareConfiguration
(
gadget
)
{
var
configuration
=
{
remote_sub_storage
:
{
type
:
"
erp5
"
,
url
:
(
new
URI
(
"
hateoas
"
))
.
absoluteTo
(
location
.
href
)
.
toString
(),
default_view_reference
:
"
view
"
}
};
return
gadget
.
setSetting
(
'
webrtc_share_description
'
,
configuration
)
.
push
(
function
()
{
return
gadget
.
setSetting
(
'
webrtc_share_name
'
,
"
ERP5
"
);
})
}
function
setDAVConfiguration
(
gadget
)
{
return
gadget
.
redirect
({
page
:
'
jio_dav_configurator
'
});
}
...
...
@@ -104,9 +121,15 @@
return
gadget
.
updateHeader
({
title
:
"
Storage Configuration
"
}).
push
(
function
()
{
return
gadget
.
getSetting
(
"
webrtc_share_name
"
)
}).
push
(
function
(
setting
)
{
if
(
!
setting
)
{
return
setWebrtcShareConfiguration
(
gadget
);
}
}).
push
(
function
(
setting
)
{
return
RSVP
.
all
([
gadget
.
getSetting
(
'
jio_storage_name
'
),
gadget
.
getSetting
(
'
application_title
'
)
gadget
.
getSetting
(
'
application_title
'
)
,
]);
}).
push
(
function
(
setting_list
)
{
switch
(
setting_list
[
0
])
{
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.xml
View file @
674c2378
...
...
@@ -216,7 +216,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
cedric.le.ninivin
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -230,7 +230,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
47.12629.17894.55808
</string>
</value>
<value>
<string>
9
54.35989.13930.10461
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>
14
47936126.33
</float>
<float>
14
76281593.66
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_dav_configurator_js.xml
View file @
674c2378
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.
5849.14852.49954
</string>
</value>
<value>
<string>
954.
14434.12379.58060
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
147
4559647.83
</float>
<float>
147
5074692.17
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_share_configurator_js.js
View file @
674c2378
...
...
@@ -5,31 +5,19 @@
"
use strict
"
;
function
setERP5Configuration
(
gadget
)
{
return
gadget
.
getSetting
(
"
portal_type
"
)
.
push
(
function
(
portal_type
)
{
var
configuration
=
{
local_sub_storage
:
{
type
:
"
query
"
,
sub_storage
:
{
type
:
"
uuid
"
,
sub_storage
:
{
type
:
"
indexeddb
"
,
database
:
"
officejs-erp5
"
}
}
},
remote_sub_storage
:
{
type
:
"
erp5
"
,
url
:
(
new
URI
(
"
hateoas
"
))
.
absoluteTo
(
location
.
href
)
.
toString
(),
default_view_reference
:
"
jio_
view
"
default_view_reference
:
"
view
"
}
};
return
gadget
.
setSetting
(
'
jio_storage_description
'
,
configuration
);
}
)
return
gadget
.
setSetting
(
'
webrtc_share_description
'
,
configuration
)
.
push
(
function
()
{
return
gadget
.
setSetting
(
'
jio_storag
e_name
'
,
"
ERP5
"
);
return
gadget
.
setSetting
(
'
webrtc_shar
e_name
'
,
"
ERP5
"
);
})
.
push
(
function
()
{
return
gadget
.
reload
();
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_share_configurator_js.xml
View file @
674c2378
...
...
@@ -230,7 +230,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.
15508.28746.25412
</string>
</value>
<value>
<string>
954.
35964.26780.28620
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>
147
5139184.89
</float>
<float>
147
6280104.88
</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