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
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
Mikolaï Krol
erp5
Commits
36d170b6
Commit
36d170b6
authored
May 25, 2016
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: Text Editor Application use generic gadget when not viewing document
parent
27ef7772
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
838 additions
and
156 deletions
+838
-156
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_appcache.xml
...TemplateItem/web_page_module/gadget_officejs_appcache.xml
+20
-12
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_html.html
...b_page_module/gadget_officejs_application_panel_html.html
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_html.xml
...eb_page_module/gadget_officejs_application_panel_html.xml
+44
-7
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_js.js
...m/web_page_module/gadget_officejs_application_panel_js.js
+27
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_js.xml
.../web_page_module/gadget_officejs_application_panel_js.xml
+41
-6
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_add_document_html.html
...b_page_module/gadget_officejs_page_add_document_html.html
+1
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_add_document_html.xml
...eb_page_module/gadget_officejs_page_add_document_html.xml
+41
-6
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_add_document_js.js
...m/web_page_module/gadget_officejs_page_add_document_js.js
+18
-6
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_add_document_js.xml
.../web_page_module/gadget_officejs_page_add_document_js.xml
+41
-6
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_document_list_html.html
..._page_module/gadget_officejs_page_document_list_html.html
+1
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_document_list_html.xml
...b_page_module/gadget_officejs_page_document_list_html.xml
+41
-6
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_document_list_js.js
.../web_page_module/gadget_officejs_page_document_list_js.js
+15
-6
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_document_list_js.xml
...web_page_module/gadget_officejs_page_document_list_js.xml
+41
-6
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.js
...b_page_module/gadget_officejs_page_jio_configurator_js.js
+44
-41
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_dav_configurator_js.js
...ge_module/gadget_officejs_page_jio_dav_configurator_js.js
+49
-42
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.js
...TemplateItem/web_page_module/gadget_officejs_router_js.js
+25
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_text_editor_router_html.html
..._page_module/gadget_officejs_text_editor_router_html.html
+22
-0
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_text_editor_router_html.xml
...b_page_module/gadget_officejs_text_editor_router_html.xml
+359
-0
bt5/erp5_officejs/PathTemplateItem/web_site_module/officejs_text_editor.xml
...PathTemplateItem/web_site_module/officejs_text_editor.xml
+6
-6
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_appcache.xml
View file @
36d170b6
...
@@ -63,6 +63,14 @@
...
@@ -63,6 +63,14 @@
</tuple>
</tuple>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
contributor/person_module/1
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
content_md5
</string>
</key>
<key>
<string>
content_md5
</string>
</key>
<value>
<value>
...
@@ -130,17 +138,15 @@ renderjs.js\n
...
@@ -130,17 +138,15 @@ renderjs.js\n
rsvp.js\n
rsvp.js\n
gadget_officejs_header.html\n
gadget_officejs_header.html\n
gadget_officejs_jio.html\n
gadget_officejs_jio.html\n
gadget_officejs_jio_web_page_view.html\n
gadget_officejs_page_add_document.html\n
gadget_officejs_page_add_text_document.html\n
gadget_officejs_page_jio_configurator.html\n
gadget_officejs_page_jio_configurator.html\n
gadget_officejs_page_jio_dav_configurator.html\n
gadget_officejs_page_jio_dav_configurator.html\n
gadget_officejs_page_login.html\n
gadget_officejs_page_login.html\n
gadget_officejs_page_logout.html\n
gadget_officejs_page_logout.html\n
gadget_officejs_page_share_webrtc_jio.html\n
gadget_officejs_page_share_webrtc_jio.html\n
gadget_officejs_page_sync.html\n
gadget_officejs_page_sync.html\n
gadget_officejs_page_text_editor_list.html\n
gadget_officejs_page_document_list.html\n
gadget_officejs_router.html\n
gadget_officejs_application_panel.html\n
gadget_officejs_text_editor_application_panel.html\n
gadget_translation.html\n
gadget_translation.html\n
gadget_officejs_webrtc_jio.html\n
gadget_officejs_webrtc_jio.html\n
gadget_officejs_widget_listbox.html\n
gadget_officejs_widget_listbox.html\n
...
@@ -148,23 +154,25 @@ gadget_erp5_editor_panel.html\n
...
@@ -148,23 +154,25 @@ gadget_erp5_editor_panel.html\n
gadget_erp5_editor_panel.js\n
gadget_erp5_editor_panel.js\n
gadget_officejs_header.js\n
gadget_officejs_header.js\n
gadget_officejs_jio.js\n
gadget_officejs_jio.js\n
gadget_officejs_jio_web_page_view.js\n
gadget_officejs_page_add_document.js\n
gadget_officejs_page_add_text_document.js\n
gadget_officejs_page_jio_configurator.js\n
gadget_officejs_page_jio_configurator.js\n
gadget_officejs_page_jio_dav_configurator.js\n
gadget_officejs_page_jio_dav_configurator.js\n
gadget_officejs_page_login.js\n
gadget_officejs_page_login.js\n
gadget_officejs_page_logout.js\n
gadget_officejs_page_logout.js\n
gadget_officejs_page_share_webrtc_jio.js\n
gadget_officejs_page_share_webrtc_jio.js\n
gadget_officejs_page_sync.js\n
gadget_officejs_page_sync.js\n
gadget_officejs_page_
text_editor
_list.js\n
gadget_officejs_page_
document
_list.js\n
gadget_officejs_router.js\n
gadget_officejs_router.js\n
gadget_officejs_
text_editor_
application_panel.js\n
gadget_officejs_application_panel.js\n
gadget_translation.js\n
gadget_translation.js\n
gadget_translation_data.js\n
gadget_translation_data.js\n
gadget_officejs_webrtc_jio.js\n
gadget_officejs_webrtc_jio.js\n
gadget_officejs_widget_listbox.js\n
gadget_officejs_widget_listbox.js\n
erp5_launcher.js\n
erp5_launcher.js\n
erp5_launcher.html\n
erp5_launcher.html\n
gadget_officejs_text_editor_router.html\n
gadget_officejs_jio_web_page_view.html\n
gadget_officejs_jio_web_page_view.js\n
rjsunsafe/gadget_ckeditor.js\n
rjsunsafe/gadget_ckeditor.js\n
rjsunsafe/gadget_ckeditor.html\n
rjsunsafe/gadget_ckeditor.html\n
NETWORK:\n
NETWORK:\n
...
@@ -285,7 +293,7 @@ NETWORK:\n
...
@@ -285,7 +293,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
supercedriclen
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -299,7 +307,7 @@ NETWORK:\n
...
@@ -299,7 +307,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
49.23979.35291.18500
</string>
</value>
<value>
<string>
9
51.28225.30234.4522
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -317,7 +325,7 @@ NETWORK:\n
...
@@ -317,7 +325,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
56912025.89
</float>
<float>
14
64192136.06
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_
text_editor_
application_panel_html.html
→
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_html.html
View file @
36d170b6
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<script
id=
"panel-template-body"
type=
"text/x-handlebars-template"
>
<script
id=
"panel-template-body"
type=
"text/x-handlebars-template"
>
<
div
class
=
"
ui-content
"
>
<
div
class
=
"
ui-content
"
>
<
ul
data
-
role
=
"
listview
"
class
=
"
ui-listview
"
>
<
ul
data
-
role
=
"
listview
"
class
=
"
ui-listview
"
>
<
li
><
a
href
=
"
#page=
text_editor_list
"
data
-
i18n
=
"
Text Documents
"
>
Text
Documents
<
/a></
li
>
<
li
><
a
href
=
"
#page=
document_list
"
data
-
i18n
=
"
Document List
"
>
Document
List
<
/a></
li
>
<
li
><
a
href
=
"
#page=jio_configurator
"
data
-
i18n
=
"
Storage Configuration
"
>
Storage
Configuration
<
/a></
li
>
<
li
><
a
href
=
"
#page=jio_configurator
"
data
-
i18n
=
"
Storage Configuration
"
>
Storage
Configuration
<
/a></
li
>
<
li
><
a
href
=
"
#page=sync
"
data
-
i18n
=
"
Synchronization
"
>
Synchronization
<
/a></
li
>
<
li
><
a
href
=
"
#page=sync
"
data
-
i18n
=
"
Synchronization
"
>
Synchronization
<
/a></
li
>
<
li
class
=
"
ui-last-child
"
><
a
href
=
"
#page=logout
"
data
-
i18n
=
"
Logout
"
>
Logout
<
/a></
li
>
<
li
class
=
"
ui-last-child
"
><
a
href
=
"
#page=logout
"
data
-
i18n
=
"
Logout
"
>
Logout
<
/a></
li
>
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
</script>
</script>
<!-- custom script -->
<!-- custom script -->
<script
src=
"gadget_officejs_
text_editor_
application_panel.js"
type=
"text/javascript"
></script>
<script
src=
"gadget_officejs_application_panel.js"
type=
"text/javascript"
></script>
</head>
</head>
<body>
<body>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_
text_editor_
application_panel_html.xml
→
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_html.xml
View file @
36d170b6
...
@@ -63,6 +63,14 @@
...
@@ -63,6 +63,14 @@
</tuple>
</tuple>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
contributor/person_module/1
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
content_md5
</string>
</key>
<key>
<string>
content_md5
</string>
</key>
<value>
<value>
...
@@ -73,22 +81,51 @@
...
@@ -73,22 +81,51 @@
<key>
<string>
content_type
</string>
</key>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
<value>
<string>
text/html
</string>
</value>
</item>
</item>
<item>
<key>
<string>
creators
</string>
</key>
<value>
<tuple>
<string>
cedric.le.ninivin
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
default_reference
</string>
</key>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_officejs_
text_editor_
application_panel.html
</string>
</value>
<value>
<string>
gadget_officejs_application_panel.html
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<string>
Jio access
</string>
</value>
<value>
<none/>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_officejs_
text_editor_
application_panel_html
</string>
</value>
<value>
<string>
gadget_officejs_application_panel_html
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
language
</string>
</key>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
<value>
<string>
en
</string>
</value>
</item>
</item>
<item>
<key>
<string>
modification_date
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1455284352.46
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<item>
<key>
<string>
portal_type
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Page
</string>
</value>
<value>
<string>
Web Page
</string>
</value>
...
@@ -101,7 +138,7 @@
...
@@ -101,7 +138,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
Text Editor
Application Panel Gadget
</string>
</value>
<value>
<string>
OfficeJS
Application Panel Gadget
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
version
</string>
</key>
<key>
<string>
version
</string>
</key>
...
@@ -218,7 +255,7 @@
...
@@ -218,7 +255,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
cedric.le.ninivi
n
</string>
</value>
<value>
<string>
supercedricle
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -232,7 +269,7 @@
...
@@ -232,7 +269,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
47.12629.17894.5580
8
</string>
</value>
<value>
<string>
9
51.28216.64976.6336
8
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -250,7 +287,7 @@
...
@@ -250,7 +287,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
48034490.12
</float>
<float>
14
64191586.4
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_
text_editor_
application_panel_js.js
→
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_js.js
View file @
36d170b6
...
@@ -50,6 +50,10 @@
...
@@ -50,6 +50,10 @@
});
});
})
})
.
declareAcquiredMethod
(
'
getSetting
'
,
'
getSetting
'
)
.
declareAcquiredMethod
(
'
setSetting
'
,
'
setSetting
'
)
.
declareMethod
(
'
toggle
'
,
function
()
{
.
declareMethod
(
'
toggle
'
,
function
()
{
this
.
props
.
jelement
.
panel
(
"
toggle
"
);
this
.
props
.
jelement
.
panel
(
"
toggle
"
);
})
})
...
@@ -59,7 +63,29 @@
...
@@ -59,7 +63,29 @@
})
})
.
declareMethod
(
'
render
'
,
function
()
{
.
declareMethod
(
'
render
'
,
function
()
{
return
;
// Extract configuration parameters stored in HTML
// XXX Will work only if top gadget...
var
gadget
=
this
,
element_list
=
gadget
.
props
.
element
.
querySelectorAll
(
"
[data-renderjs-configuration]
"
),
len
=
element_list
.
length
,
key
,
value
,
i
,
queue
=
new
RSVP
.
Queue
();
function
push
(
a
,
b
)
{
queue
.
push
(
function
()
{
return
gadget
.
setSetting
(
a
,
b
);
});
}
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
key
=
element_list
[
i
].
getAttribute
(
'
data-renderjs-configuration
'
);
value
=
element_list
[
i
].
textContent
;
push
(
key
,
value
);
}
return
queue
;
})
})
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_
text_editor_
application_panel_js.xml
→
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_js.xml
View file @
36d170b6
...
@@ -63,15 +63,31 @@
...
@@ -63,15 +63,31 @@
</tuple>
</tuple>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
contributor/person_module/1
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
content_md5
</string>
</key>
<key>
<string>
content_md5
</string>
</key>
<value>
<value>
<none/>
<none/>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
creators
</string>
</key>
<value>
<tuple>
<string>
cedric.le.ninivin
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
default_reference
</string>
</key>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_officejs_
text_editor_
application_panel.js
</string>
</value>
<value>
<string>
gadget_officejs_application_panel.js
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
...
@@ -81,12 +97,31 @@
...
@@ -81,12 +97,31 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_officejs_
text_editor_
application_panel_js
</string>
</value>
<value>
<string>
gadget_officejs_application_panel_js
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
language
</string>
</key>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
<value>
<string>
en
</string>
</value>
</item>
</item>
<item>
<key>
<string>
modification_date
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1455284352.49
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<item>
<key>
<string>
portal_type
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Script
</string>
</value>
<value>
<string>
Web Script
</string>
</value>
...
@@ -99,7 +134,7 @@
...
@@ -99,7 +134,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
Text Editor
Application Panel Gadget JS
</string>
</value>
<value>
<string>
OfficeJS
Application Panel Gadget JS
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
version
</string>
</key>
<key>
<string>
version
</string>
</key>
...
@@ -216,7 +251,7 @@
...
@@ -216,7 +251,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
supercedriclen
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -230,7 +265,7 @@
...
@@ -230,7 +265,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
46.4378.53544.28347
</string>
</value>
<value>
<string>
9
51.28200.51773.38570
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +283,7 @@
...
@@ -248,7 +283,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
46730020.92
</float>
<float>
14
64190613.09
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_add_
text_
document_html.html
→
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_add_document_html.html
View file @
36d170b6
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<script
src=
"rsvp.js"
></script>
<script
src=
"rsvp.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"handlebars.js"
></script>
<script
src=
"handlebars.js"
></script>
<script
src=
"gadget_officejs_page_add_
text_
document.js"
></script>
<script
src=
"gadget_officejs_page_add_document.js"
></script>
</head>
</head>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_add_
text_
document_html.xml
→
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_add_document_html.xml
View file @
36d170b6
...
@@ -63,6 +63,14 @@
...
@@ -63,6 +63,14 @@
</tuple>
</tuple>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
contributor/person_module/1
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
content_md5
</string>
</key>
<key>
<string>
content_md5
</string>
</key>
<value>
<value>
...
@@ -73,9 +81,17 @@
...
@@ -73,9 +81,17 @@
<key>
<string>
content_type
</string>
</key>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
<value>
<string>
text/html
</string>
</value>
</item>
</item>
<item>
<key>
<string>
creators
</string>
</key>
<value>
<tuple>
<string>
cedric.le.ninivin
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
default_reference
</string>
</key>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_officejs_page_add_
text_
document.html
</string>
</value>
<value>
<string>
gadget_officejs_page_add_document.html
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
...
@@ -85,7 +101,7 @@
...
@@ -85,7 +101,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_officejs_page_add_
text_
document_html
</string>
</value>
<value>
<string>
gadget_officejs_page_add_document_html
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
language
</string>
</key>
<key>
<string>
language
</string>
</key>
...
@@ -93,6 +109,25 @@
...
@@ -93,6 +109,25 @@
<none/>
<none/>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
modification_date
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1455284351.46
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<item>
<key>
<string>
portal_type
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Page
</string>
</value>
<value>
<string>
Web Page
</string>
</value>
...
@@ -105,7 +140,7 @@
...
@@ -105,7 +140,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
OfficeJS Add
Text
Document
</string>
</value>
<value>
<string>
OfficeJS Add Document
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
version
</string>
</key>
<key>
<string>
version
</string>
</key>
...
@@ -224,7 +259,7 @@
...
@@ -224,7 +259,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
cedric.le.ninivi
n
</string>
</value>
<value>
<string>
supercedricle
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -238,7 +273,7 @@
...
@@ -238,7 +273,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
45.18366.40175.43093
</string>
</value>
<value>
<string>
9
51.28177.1205.52650
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -256,7 +291,7 @@
...
@@ -256,7 +291,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
40439606.24
</float>
<float>
14
64189188.67
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_add_
text_
document_js.js
→
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_add_document_js.js
View file @
36d170b6
...
@@ -18,14 +18,26 @@
...
@@ -18,14 +18,26 @@
.
declareAcquiredMethod
(
"
post
"
,
"
jio_post
"
)
.
declareAcquiredMethod
(
"
post
"
,
"
jio_post
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
'
getSetting
'
,
'
getSetting
'
)
.
declareMethod
(
"
render
"
,
function
(
options
)
{
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
;
var
gadget
=
this
;
gadget
.
props
.
options
=
options
;
gadget
.
props
.
options
=
options
;
return
new
RSVP
.
Queue
()
return
gadget
.
updateHeader
({
.
push
(
function
()
{
title
:
"
New Web Page
"
return
RSVP
.
all
([
})
gadget
.
getSetting
(
"
portal_type
"
),
gadget
.
getSetting
(
"
document_title
"
),
gadget
.
getSetting
(
"
parent_relative_url
"
)
]);
}).
push
(
function
(
answer_list
)
{
gadget
.
props
.
portal_type
=
answer_list
[
0
];
gadget
.
props
.
document_title
=
answer_list
[
1
];
gadget
.
props
.
parent_relative_url
=
answer_list
[
2
];
return
gadget
.
updateHeader
({
title
:
"
New
"
+
gadget
.
props
.
document_title
});
})
.
push
(
function
()
{
.
push
(
function
()
{
gadget
.
props
.
deferred
.
resolve
();
gadget
.
props
.
deferred
.
resolve
();
});
});
...
@@ -41,8 +53,8 @@
...
@@ -41,8 +53,8 @@
.
push
(
function
()
{
.
push
(
function
()
{
var
doc
=
{
var
doc
=
{
// XXX Hardcoded
// XXX Hardcoded
parent_relative_url
:
"
web_page_module
"
,
parent_relative_url
:
gadget
.
props
.
parent_relative_url
,
portal_type
:
"
Web Page
"
portal_type
:
gadget
.
props
.
portal_type
};
};
return
gadget
.
post
(
doc
);
return
gadget
.
post
(
doc
);
})
})
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_add_
text_
document_js.xml
→
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_add_document_js.xml
View file @
36d170b6
...
@@ -63,15 +63,31 @@
...
@@ -63,15 +63,31 @@
</tuple>
</tuple>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
contributor/person_module/1
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
content_md5
</string>
</key>
<key>
<string>
content_md5
</string>
</key>
<value>
<value>
<none/>
<none/>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
creators
</string>
</key>
<value>
<tuple>
<string>
cedric.le.ninivin
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
default_reference
</string>
</key>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_officejs_page_add_
text_
document.js
</string>
</value>
<value>
<string>
gadget_officejs_page_add_document.js
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
...
@@ -81,7 +97,7 @@
...
@@ -81,7 +97,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_officejs_page_add_
text_
document_js
</string>
</value>
<value>
<string>
gadget_officejs_page_add_document_js
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
language
</string>
</key>
<key>
<string>
language
</string>
</key>
...
@@ -89,6 +105,25 @@
...
@@ -89,6 +105,25 @@
<none/>
<none/>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
modification_date
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1455284351.49
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<item>
<key>
<string>
portal_type
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Script
</string>
</value>
<value>
<string>
Web Script
</string>
</value>
...
@@ -101,7 +136,7 @@
...
@@ -101,7 +136,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
OfficeJS Add
Text
Document JS
</string>
</value>
<value>
<string>
OfficeJS Add Document JS
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
version
</string>
</key>
<key>
<string>
version
</string>
</key>
...
@@ -220,7 +255,7 @@
...
@@ -220,7 +255,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
cedric.le.ninivi
n
</string>
</value>
<value>
<string>
supercedricle
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -234,7 +269,7 @@
...
@@ -234,7 +269,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
45.34038.48545.63795
</string>
</value>
<value>
<string>
9
51.28187.42881.35293
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -252,7 +287,7 @@
...
@@ -252,7 +287,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
43093586.17
</float>
<float>
14
64189839.22
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_
text_editor
_list_html.html
→
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_
document
_list_html.html
View file @
36d170b6
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<script
src=
"rsvp.js"
></script>
<script
src=
"rsvp.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"gadget_officejs_page_
text_editor
_list.js"
></script>
<script
src=
"gadget_officejs_page_
document
_list.js"
></script>
</head>
</head>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_
text_editor
_list_html.xml
→
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_
document
_list_html.xml
View file @
36d170b6
...
@@ -63,6 +63,14 @@
...
@@ -63,6 +63,14 @@
</tuple>
</tuple>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
contributor/person_module/1
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
content_md5
</string>
</key>
<key>
<string>
content_md5
</string>
</key>
<value>
<value>
...
@@ -73,9 +81,17 @@
...
@@ -73,9 +81,17 @@
<key>
<string>
content_type
</string>
</key>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
<value>
<string>
text/html
</string>
</value>
</item>
</item>
<item>
<key>
<string>
creators
</string>
</key>
<value>
<tuple>
<string>
cedric.le.ninivin
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
default_reference
</string>
</key>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_officejs_page_
text_editor
_list.html
</string>
</value>
<value>
<string>
gadget_officejs_page_
document
_list.html
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
...
@@ -85,7 +101,7 @@
...
@@ -85,7 +101,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_officejs_page_
text_editor
_list_html
</string>
</value>
<value>
<string>
gadget_officejs_page_
document
_list_html
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
language
</string>
</key>
<key>
<string>
language
</string>
</key>
...
@@ -93,6 +109,25 @@
...
@@ -93,6 +109,25 @@
<none/>
<none/>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
modification_date
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1455284352.14
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<item>
<key>
<string>
portal_type
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Page
</string>
</value>
<value>
<string>
Web Page
</string>
</value>
...
@@ -105,7 +140,7 @@
...
@@ -105,7 +140,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
OfficeJS
Text Editor
List
</string>
</value>
<value>
<string>
OfficeJS
Document
List
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
version
</string>
</key>
<key>
<string>
version
</string>
</key>
...
@@ -224,7 +259,7 @@
...
@@ -224,7 +259,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
cedric.le.ninivi
n
</string>
</value>
<value>
<string>
supercedricle
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -238,7 +273,7 @@
...
@@ -238,7 +273,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
45.18323.23284.1450
</string>
</value>
<value>
<string>
9
51.28165.23904.20428
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -256,7 +291,7 @@
...
@@ -256,7 +291,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
40439735.4
8
</float>
<float>
14
64188540.
8
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_
text_editor
_list_js.js
→
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_
document
_list_js.js
View file @
36d170b6
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
.
declareAcquiredMethod
(
"
translate
"
,
"
translate
"
)
.
declareAcquiredMethod
(
"
translate
"
,
"
translate
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
'
getSetting
'
,
'
getSetting
'
)
.
declareAcquiredMethod
(
"
jio_allDocs
"
,
"
jio_allDocs
"
)
.
declareAcquiredMethod
(
"
jio_allDocs
"
,
"
jio_allDocs
"
)
.
allowPublicAcquisition
(
"
jio_allDocs
"
,
function
(
param_list
)
{
.
allowPublicAcquisition
(
"
jio_allDocs
"
,
function
(
param_list
)
{
var
gadget
=
this
;
var
gadget
=
this
;
...
@@ -60,11 +61,19 @@
...
@@ -60,11 +61,19 @@
var
gadget
=
this
;
var
gadget
=
this
;
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
getUrlFor
({
page
:
"
add_text_document
"
});
return
RSVP
.
all
([
gadget
.
getSetting
(
"
portal_type
"
),
gadget
.
getSetting
(
"
document_title_plural
"
)
]);
})
.
push
(
function
(
answer_list
)
{
gadget
.
props
.
portal_type
=
answer_list
[
0
];
gadget
.
props
.
document_title_plural
=
answer_list
[
1
];
return
gadget
.
getUrlFor
({
page
:
"
add_document
"
});
})
})
.
push
(
function
(
url
)
{
.
push
(
function
(
url
)
{
return
gadget
.
updateHeader
({
return
gadget
.
updateHeader
({
title
:
"
Text Documents
"
,
title
:
gadget
.
props
.
document_title_plural
,
add_url
:
url
add_url
:
url
});
});
})
})
...
@@ -73,7 +82,7 @@
...
@@ -73,7 +82,7 @@
})
})
.
push
(
function
(
listbox
)
{
.
push
(
function
(
listbox
)
{
return
listbox
.
render
({
return
listbox
.
render
({
search_page
:
'
text_editor
_list
'
,
search_page
:
'
document
_list
'
,
search
:
options
.
search
,
search
:
options
.
search
,
column_list
:
[{
column_list
:
[{
select
:
'
title
'
,
select
:
'
title
'
,
...
@@ -95,11 +104,11 @@
...
@@ -95,11 +104,11 @@
title
:
'
Modification Date
'
title
:
'
Modification Date
'
}],
}],
query
:
{
query
:
{
query
:
'
portal_type:("
Web Page
")
'
,
query
:
'
portal_type:("
'
+
gadget
.
props
.
portal_type
+
'
")
'
,
select_list
:
[
'
title
'
,
'
reference
'
,
'
language
'
,
select_list
:
[
'
title
'
,
'
reference
'
,
'
language
'
,
'
description
'
,
'
version
'
,
'
modification_date
'
],
'
description
'
,
'
version
'
,
'
modification_date
'
],
limit
:
[
0
,
30
]
limit
:
[
0
,
30
]
,
//sort_on: [["
date", "descending"]]
sort_on
:
[[
"
modification_
date
"
,
"
descending
"
]]
}
}
});
});
});
});
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_
text_editor
_list_js.xml
→
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_
document
_list_js.xml
View file @
36d170b6
...
@@ -63,15 +63,31 @@
...
@@ -63,15 +63,31 @@
</tuple>
</tuple>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
contributor/person_module/1
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
content_md5
</string>
</key>
<key>
<string>
content_md5
</string>
</key>
<value>
<value>
<none/>
<none/>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
creators
</string>
</key>
<value>
<tuple>
<string>
cedric.le.ninivin
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
default_reference
</string>
</key>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_officejs_page_
text_editor
_list.js
</string>
</value>
<value>
<string>
gadget_officejs_page_
document
_list.js
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
...
@@ -81,7 +97,7 @@
...
@@ -81,7 +97,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_officejs_page_
text_editor
_list_js
</string>
</value>
<value>
<string>
gadget_officejs_page_
document
_list_js
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
language
</string>
</key>
<key>
<string>
language
</string>
</key>
...
@@ -89,6 +105,25 @@
...
@@ -89,6 +105,25 @@
<none/>
<none/>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
modification_date
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1455284352.18
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<item>
<key>
<string>
portal_type
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Script
</string>
</value>
<value>
<string>
Web Script
</string>
</value>
...
@@ -101,7 +136,7 @@
...
@@ -101,7 +136,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
OfficeJS
Text Editor
List JS
</string>
</value>
<value>
<string>
OfficeJS
Document
List JS
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
version
</string>
</key>
<key>
<string>
version
</string>
</key>
...
@@ -214,7 +249,7 @@
...
@@ -214,7 +249,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
cedric.le.ninivi
n
</string>
</value>
<value>
<string>
supercedricle
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -228,7 +263,7 @@
...
@@ -228,7 +263,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
45.58608.35906.7321
</string>
</value>
<value>
<string>
9
51.28163.54980.41130
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -246,7 +281,7 @@
...
@@ -246,7 +281,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
42858189.31
</float>
<float>
14
64188897.32
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.js
View file @
36d170b6
...
@@ -5,48 +5,51 @@
...
@@ -5,48 +5,51 @@
"
use strict
"
;
"
use strict
"
;
function
setERP5Configuration
(
gadget
)
{
function
setERP5Configuration
(
gadget
)
{
var
old_date
=
new
Date
(),
return
gadget
.
getSetting
(
"
portal_type
"
)
configuration
=
{};
.
push
(
function
(
portal_type
)
{
// We are looking for documents modified in the past 3 month
var
old_date
=
new
Date
(),
old_date
=
new
Date
(
old_date
.
getFullYear
(),
old_date
.
getMonth
()
-
3
);
configuration
=
{};
configuration
=
{
// We are looking for documents modified in the past 3 month
type
:
"
replicate
"
,
old_date
=
new
Date
(
old_date
.
getFullYear
(),
old_date
.
getMonth
()
-
3
);
// XXX This drop the signature lists...
configuration
=
{
query
:
{
type
:
"
replicate
"
,
query
:
'
portal_type:"Web Page"
'
// XXX This drop the signature lists...
// XX Synchonizing the whole module is too much, here is a way to start quietly
query
:
{
// Supsended until modification_date is handled for synchronization
query
:
'
portal_type:
'
+
portal_type
+
'
AND modification_date:>="
'
// XX Synchonizing the whole module is too much, here is a way to start quietly
+
old_date
.
toISOString
()
+
'
"
'
,
// Supsended until modification_date is handled for synchronization
limit
:
[
0
,
1234567890
]
+
'
AND modification_date:>="
'
},
+
old_date
.
toISOString
()
+
'
"
'
,
use_remote_post
:
true
,
limit
:
[
0
,
1234567890
]
conflict_handling
:
1
,
},
check_local_modification
:
true
,
use_remote_post
:
true
,
check_local_creation
:
true
,
conflict_handling
:
1
,
check_local_deletion
:
false
,
check_local_modification
:
true
,
check_remote_modification
:
true
,
check_local_creation
:
true
,
check_remote_creation
:
true
,
check_local_deletion
:
false
,
check_remote_deletion
:
true
,
check_remote_modification
:
true
,
local_sub_storage
:
{
check_remote_creation
:
true
,
type
:
"
query
"
,
check_remote_deletion
:
true
,
sub_storage
:
{
local_sub_storage
:
{
type
:
"
uuid
"
,
type
:
"
query
"
,
sub_storage
:
{
sub_storage
:
{
type
:
"
indexeddb
"
,
type
:
"
uuid
"
,
database
:
"
officejs-erp5
"
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
"
}
}
}
};
},
return
gadget
.
setSetting
(
'
jio_storage_description
'
,
configuration
);
remote_sub_storage
:
{
})
type
:
"
erp5
"
,
url
:
(
new
URI
(
"
hateoas
"
))
.
absoluteTo
(
location
.
href
)
.
toString
(),
default_view_reference
:
"
jio_view
"
}
};
return
gadget
.
setSetting
(
'
jio_storage_description
'
,
configuration
)
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
setSetting
(
'
jio_storage_name
'
,
"
ERP5
"
);
return
gadget
.
setSetting
(
'
jio_storage_name
'
,
"
ERP5
"
);
})
})
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_dav_configurator_js.js
View file @
36d170b6
...
@@ -5,49 +5,56 @@
...
@@ -5,49 +5,56 @@
"
use strict
"
;
"
use strict
"
;
function
setjIODAVConfiguration
(
gadget
)
{
function
setjIODAVConfiguration
(
gadget
)
{
var
configuration
=
{
return
gadget
.
getSetting
(
"
portal_type
"
)
type
:
"
replicate
"
,
.
push
(
function
(
portal_type
)
{
// XXX This drop the signature lists...
var
old_date
=
new
Date
(),
query
:
{
configuration
=
{};
query
:
'
portal_type:"Web Page"
'
,
// We are looking for documents modified in the past 3 month
// XX Synchonizing the whole module is too much, here is a way to start quietly
old_date
=
new
Date
(
old_date
.
getFullYear
(),
old_date
.
getMonth
()
-
3
);
//+ 'AND local_roles: ("Owner") '
configuration
=
{
//+ 'AND validation_state: ("draft", "released_alive", "shared_alive", "published_alive") ',
type
:
"
replicate
"
,
limit
:
[
0
,
1234567890
]
// XXX This drop the signature lists...
},
query
:
{
use_remote_post
:
false
,
query
:
'
portal_type:"
'
+
portal_type
+
'
"
'
,
conflict_handling
:
2
,
// XX Synchonizing the whole module is too much, here is a way to start quietly
check_local_modification
:
true
,
//+ 'AND local_roles: ("Owner") '
check_local_creation
:
true
,
//+ 'AND validation_state: ("draft", "released_alive", "shared_alive", "published_alive") ',
check_local_deletion
:
true
,
limit
:
[
0
,
1234567890
]
check_remote_modification
:
true
,
},
check_remote_creation
:
true
,
use_remote_post
:
false
,
check_remote_deletion
:
true
,
conflict_handling
:
2
,
local_sub_storage
:
{
check_local_modification
:
true
,
type
:
"
query
"
,
check_local_creation
:
true
,
sub_storage
:
{
check_local_deletion
:
true
,
type
:
"
uuid
"
,
check_remote_modification
:
true
,
sub_storage
:
{
check_remote_creation
:
true
,
type
:
"
indexeddb
"
,
check_remote_deletion
:
true
,
database
:
"
officejs-dav
"
local_sub_storage
:
{
}
type
:
"
query
"
,
}
sub_storage
:
{
},
type
:
"
uuid
"
,
remote_sub_storage
:
{
sub_storage
:
{
type
:
"
query
"
,
type
:
"
indexeddb
"
,
sub_storage
:
{
database
:
"
officejs-dav
"
type
:
"
drivetojiomapping
"
,
}
sub_storage
:
{
}
type
:
"
dav
"
,
},
url
:
gadget
.
props
.
element
.
querySelector
(
"
input[name='dav_url']
"
).
value
,
remote_sub_storage
:
{
basic_login
:
btoa
(
gadget
.
props
.
element
.
querySelector
(
"
input[name='dav_username']
"
).
value
type
:
"
query
"
,
+
'
:
'
+
gadget
.
props
.
element
.
querySelector
(
"
input[name='dav_password']
"
).
value
),
sub_storage
:
{
with_credentials
:
true
type
:
"
drivetojiomapping
"
,
sub_storage
:
{
type
:
"
dav
"
,
url
:
gadget
.
props
.
element
.
querySelector
(
"
input[name='dav_url']
"
).
value
,
basic_login
:
btoa
(
gadget
.
props
.
element
.
querySelector
(
"
input[name='dav_username']
"
).
value
+
'
:
'
+
gadget
.
props
.
element
.
querySelector
(
"
input[name='dav_password']
"
).
value
),
with_credentials
:
true
}
}
}
}
}
};
}
return
gadget
.
setSetting
(
'
jio_storage_description
'
,
configuration
);
};
})
return
gadget
.
setSetting
(
'
jio_storage_description
'
,
configuration
)
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
setSetting
(
'
jio_storage_name
'
,
"
DAV
"
);
return
gadget
.
setSetting
(
'
jio_storage_name
'
,
"
DAV
"
);
})
})
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.js
View file @
36d170b6
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
var
gadget_klass
=
rJS
(
window
),
var
gadget_klass
=
rJS
(
window
),
MAIN_PAGE_PREFIX
=
"
gadget_officejs_
"
,
MAIN_PAGE_PREFIX
=
"
gadget_officejs_
"
,
DEFAULT_PAGE
=
"
text_editor
_list
"
,
DEFAULT_PAGE
=
"
document
_list
"
,
REDIRECT_TIMEOUT
=
5000
;
REDIRECT_TIMEOUT
=
5000
;
function
listenHashChange
(
gadget
)
{
function
listenHashChange
(
gadget
)
{
...
@@ -52,6 +52,10 @@
...
@@ -52,6 +52,10 @@
gadget
.
props
=
{
gadget
.
props
=
{
start_deferred
:
RSVP
.
defer
()
start_deferred
:
RSVP
.
defer
()
};
};
return
gadget
.
getElement
()
.
push
(
function
(
element
)
{
gadget
.
props
.
element
=
element
;
});
})
})
.
declareMethod
(
"
getCommandUrlFor
"
,
function
(
options
)
{
.
declareMethod
(
"
getCommandUrlFor
"
,
function
(
options
)
{
...
@@ -127,6 +131,26 @@
...
@@ -127,6 +131,26 @@
.
declareAcquiredMethod
(
'
jio_get
'
,
'
jio_get
'
)
.
declareAcquiredMethod
(
'
jio_get
'
,
'
jio_get
'
)
.
declareAcquiredMethod
(
'
renderApplication
'
,
'
renderApplication
'
)
.
declareAcquiredMethod
(
'
renderApplication
'
,
'
renderApplication
'
)
.
declareMethod
(
'
start
'
,
function
()
{
.
declareMethod
(
'
start
'
,
function
()
{
var
gadget
=
this
,
element_list
=
gadget
.
props
.
element
.
querySelectorAll
(
"
[data-renderjs-configuration]
"
),
len
=
element_list
.
length
,
key
,
value
,
i
,
queue
=
new
RSVP
.
Queue
();
function
push
(
a
,
b
)
{
queue
.
push
(
function
()
{
return
gadget
.
setSetting
(
a
,
b
);
});
}
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
key
=
element_list
[
i
].
getAttribute
(
'
data-renderjs-configuration
'
);
value
=
element_list
[
i
].
textContent
;
push
(
key
,
value
);
}
this
.
props
.
start_deferred
.
resolve
();
this
.
props
.
start_deferred
.
resolve
();
})
})
.
declareService
(
function
()
{
.
declareService
(
function
()
{
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_text_editor_router_html.html
0 → 100644
View file @
36d170b6
<!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 Router Gadget
</title>
<!-- renderjs -->
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<!-- custom script -->
<script
src=
"gadget_officejs_router.js"
type=
"text/javascript"
></script>
</head>
<body>
<script
data-renderjs-configuration=
"portal_type"
type=
"text/x-renderjs-configuration"
>
Web
Page
</script>
<script
data-renderjs-configuration=
"parent_relative_url"
type=
"text/x-renderjs-configuration"
>
web_page_module
</script>
<script
data-renderjs-configuration=
"document_title"
type=
"text/x-renderjs-configuration"
>
Text
Document
</script>
<script
data-renderjs-configuration=
"document_title_plural"
type=
"text/x-renderjs-configuration"
>
Text
Documents
</script>
</body>
</html>
\ No newline at end of file
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_text_editor_router_html.xml
0 → 100644
View file @
36d170b6
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Page"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
contributor/person_module/1
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
creators
</string>
</key>
<value>
<tuple>
<string>
cedric.le.ninivin
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_officejs_text_editor_router.html
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_officejs_text_editor_router_html
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
modification_date
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1455284352.21
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Page
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
OfficeJS Text Editor router Gadget
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
001
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
document_publication_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
edit_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
processing_status_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAU=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
supercedriclen
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1464191881.47
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
edit
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
supercedriclen
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
951.28215.25943.30651
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
<value>
<string>
current
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1464191685.95
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
detect_converted_file
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
supercedriclen
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
error_message
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
external_processing_state
</string>
</key>
<value>
<string>
converted
</string>
</value>
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
0.0.0.0
</string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1464191429.37
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_officejs/PathTemplateItem/web_site_module/officejs_text_editor.xml
View file @
36d170b6
...
@@ -437,11 +437,11 @@
...
@@ -437,11 +437,11 @@
</item>
</item>
<item>
<item>
<key>
<string>
configuration_panel_gadget_url
</string>
</key>
<key>
<string>
configuration_panel_gadget_url
</string>
</key>
<value>
<string>
gadget_officejs_
text_editor_
application_panel.html
</string>
</value>
<value>
<string>
gadget_officejs_application_panel.html
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
configuration_router_gadget_url
</string>
</key>
<key>
<string>
configuration_router_gadget_url
</string>
</key>
<value>
<string>
gadget_officejs_router.html
</string>
</value>
<value>
<string>
gadget_officejs_
text_editor_
router.html
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
configuration_translation_gadget_url
</string>
</key>
<key>
<string>
configuration_translation_gadget_url
</string>
</key>
...
@@ -481,7 +481,7 @@
...
@@ -481,7 +481,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
layout_configuration_form_id
</string>
</key>
<key>
<string>
layout_configuration_form_id
</string>
</key>
<value>
<string>
WebSection_view
Hateoas
Preference
</string>
</value>
<value>
<string>
WebSection_view
RenderJS
Preference
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
portal_type
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
...
@@ -722,7 +722,7 @@
...
@@ -722,7 +722,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
cedric.le.ninivi
n
</string>
</value>
<value>
<string>
supercedricle
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -736,7 +736,7 @@
...
@@ -736,7 +736,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
0.31827.25865.2385
9
</string>
</value>
<value>
<string>
95
1.28218.17096.453
9
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -754,7 +754,7 @@
...
@@ -754,7 +754,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
146
0563397.66
</float>
<float>
146
4191710.27
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</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