Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vivek
erp5
Commits
b2867b37
Commit
b2867b37
authored
Sep 04, 2015
by
Vivek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated data transfer methods of gadgets
parent
12f12b2d
Changes
17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
1032 additions
and
228 deletions
+1032
-228
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/editor_interface_html.xml
...athTemplateItem/web_page_module/editor_interface_html.xml
+10
-8
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/editor_test_gadget_js.xml
...athTemplateItem/web_page_module/editor_test_gadget_js.xml
+3
-3
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_bootstrap3_wysiwyg_html.xml
..._page_module/interface_gadget_bootstrap3_wysiwyg_html.xml
+13
-11
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_bootstrap3_wysiwyg_js.xml
...eb_page_module/interface_gadget_bootstrap3_wysiwyg_js.xml
+10
-8
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_chartistjs_html.xml
...Item/web_page_module/interface_gadget_chartistjs_html.xml
+10
-8
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_chartistjs_js.xml
...teItem/web_page_module/interface_gadget_chartistjs_js.xml
+55
-21
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_chartjs_html.xml
...ateItem/web_page_module/interface_gadget_chartjs_html.xml
+10
-8
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_chartjs_js.xml
...plateItem/web_page_module/interface_gadget_chartjs_js.xml
+53
-18
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_ckeditor_html.xml
...teItem/web_page_module/interface_gadget_ckeditor_html.xml
+354
-0
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_ckeditor_js.xml
...lateItem/web_page_module/interface_gadget_ckeditor_js.xml
+375
-0
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_handsontable_html.xml
...em/web_page_module/interface_gadget_handsontable_html.xml
+10
-8
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_handsontable_js.xml
...Item/web_page_module/interface_gadget_handsontable_js.xml
+15
-13
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_interfaces_js.xml
...teItem/web_page_module/interface_gadget_interfaces_js.xml
+44
-70
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_slickgrid_html.xml
...eItem/web_page_module/interface_gadget_slickgrid_html.xml
+10
-8
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_slickgrid_js.xml
...ateItem/web_page_module/interface_gadget_slickgrid_js.xml
+30
-18
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_tinymce_html.xml
...ateItem/web_page_module/interface_gadget_tinymce_html.xml
+14
-12
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_tinymce_js.xml
...plateItem/web_page_module/interface_gadget_tinymce_js.xml
+16
-14
No files found.
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/editor_interface_html.xml
View file @
b2867b37
...
...
@@ -10,8 +10,11 @@
<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>
...
...
@@ -24,7 +27,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -44,7 +46,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -52,8 +53,11 @@
<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>
...
...
@@ -202,13 +206,11 @@
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
zope
1
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -230,7 +232,7 @@
</tuple>
<state>
<tuple>
<float>
14412
84333.1
</float>
<float>
14412
90714.22
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
@@ -239,7 +241,7 @@
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
draft
</string>
</value>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
...
...
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/editor_test_gadget_js.xml
View file @
b2867b37
...
...
@@ -106,7 +106,7 @@
(function (window, document, rJS, promiseEventListener) {\n
"use strict";\n
\n
var DEFAULT_GADGET_URL = "interface_bootstrap3_wysiwyg.html";\n
var DEFAULT_GADGET_URL = "interface_
gadget_
bootstrap3_wysiwyg.html";\n
\n
function declareSubGadget(gadget, sub_gadget_url) {\n
return gadget.declareGadget(sub_gadget_url, {\n
...
...
@@ -442,7 +442,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
945.
2278.56594.14933
</string>
</value>
<value>
<string>
945.
33605.45148.55005
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -460,7 +460,7 @@
</tuple>
<state>
<tuple>
<float>
1441
290071.66
</float>
<float>
1441
354709.61
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_bootstrap3_wysiwyg_html.xml
View file @
b2867b37
...
...
@@ -10,8 +10,11 @@
<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>
...
...
@@ -24,7 +27,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -44,7 +46,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -52,8 +53,11 @@
<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>
...
...
@@ -111,7 +115,7 @@
\n
<link
rel=
"stylesheet"
type=
"text/css"
href=
"bootstrap3-wysiwyg/components/bootstrap/dist/css/bootstrap.min.css"
></link>
\n
<link
rel=
"stylesheet"
type=
"text/css"
href=
"bootstrap3-wysiwyg/components/bootstrap/dist/css/bootstrap-theme.min.css"
></link>
\n
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
bootstrap3-wysiwyg/components/components-font-awesome
/css/font-awesome.min.css"
></link>
\n
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0
/css/font-awesome.min.css"
></link>
\n
<link
rel=
"stylesheet"
type=
"text/css"
href=
"bootstrap3-wysiwyg/dist/bootstrap3-wysihtml5.min.css"
></link>
\n
\n
<link
rel=
"http://www.renderjs.org/rel/interface"
href=
"editor_interface.html"
></link>
\n
...
...
@@ -194,13 +198,11 @@
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
zope
1
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -222,7 +224,7 @@
</tuple>
<state>
<tuple>
<float>
14412
88320.46
</float>
<float>
14412
90710.99
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
@@ -231,7 +233,7 @@
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
draft
</string>
</value>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
...
...
@@ -267,7 +269,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
945.325
33.54258.52497
</string>
</value>
<value>
<string>
945.325
51.55719.62702
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -285,7 +287,7 @@
</tuple>
<state>
<tuple>
<float>
14412
89733.13
</float>
<float>
14412
91473.24
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_bootstrap3_wysiwyg_js.xml
View file @
b2867b37
...
...
@@ -10,8 +10,11 @@
<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>
...
...
@@ -24,7 +27,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -44,7 +46,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -52,8 +53,11 @@
<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>
...
...
@@ -213,13 +217,11 @@
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
zope
1
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -241,7 +243,7 @@
</tuple>
<state>
<tuple>
<float>
14412
88449.98
</float>
<float>
14412
90714.85
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
@@ -250,7 +252,7 @@
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
draft
</string>
</value>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
...
...
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_chartistjs_html.xml
View file @
b2867b37
...
...
@@ -10,8 +10,11 @@
<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>
...
...
@@ -24,7 +27,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -44,7 +46,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -52,8 +53,11 @@
<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>
...
...
@@ -187,13 +191,11 @@
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
zope
1
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -215,7 +217,7 @@
</tuple>
<state>
<tuple>
<float>
14412
88062.55
</float>
<float>
14412
90712.16
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
@@ -224,7 +226,7 @@
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
draft
</string>
</value>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
...
...
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_chartistjs_js.xml
View file @
b2867b37
...
...
@@ -10,8 +10,11 @@
<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>
...
...
@@ -24,7 +27,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -44,7 +46,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -52,8 +53,11 @@
<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>
...
...
@@ -95,35 +99,65 @@
</item>
<item>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
/*jslint indent: 2 */\n
/*global window, jQuery, rJS*/\n
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*jslint indent: 2 */\n
/*global window, jQuery, rJS, RSVP, Chartist*/\n
"use strict";\n
\n
(function (window, $, rJS) {\n
(function (window, $, rJS
, Chartist
) {\n
\n
rJS(window).\n
declareMethod(\'getContent\', function () {\n
return;\n
var data = this.props.data,\n
content = {},\n
i;\n
content.labels = data.labels;\n
content.datasets = [];\n
for(i = 0; i < data.series.length; i += 1) {\n
content.datasets.push(data.series[i]);\n
}\n
return content;\n
})\n
.declareMethod(\'setContent\', function (content) {\n
var data = {},\n
gadget = this,\n
i;\n
data.labels = content.labels;\n
data.series = [];\n
for(i = 0; i < content.datasets.length; i += 1) {\n
data.series.push(content.datasets[i]);\n
}\n
gadget.props.data = data;\n
new Chartist.Line(\'.ct-chart\', data);\n
return;\n
})\n
.declareMethod(\'clearContent\', function () {\n
return;\n
})\n
.declareMethod(\'initStateTransfer\', function () {\n
return;\n
var current_state = {},\n
gadget = this;\n
return RSVP.Queue()\n
.push(function(){\n
return gadget.getContent();\n
})\n
.push(function(content) {\n
current_state.content = content;\n
return current_state;\n
});\n
})\n
.declareMethod(\'finishStateTransfer\', function (current_state) {\n
return
;\n
})\n
return this.setContent(current_state.content)
;\n
})\n
.declareMethod(\'initSubGadget\', function () {\n
var data = {\n
labels: [\'Mon\', \'Tue\', \'Wed\', \'Thu\', \'Fri\'],\n
series: [[5, 2, 4, 2, 0],\n
[4, 3, 5, 1, 2]]\n
};\n
\n
},\n
gadget = this;\n
gadget.props.data = data; \n
new Chartist.Line(\'.ct-chart\', data);\n
})\n
.ready(function (g) {\n
...
...
@@ -131,8 +165,10 @@
\n
});\n
\n
}(window, jQuery, rJS));\n
</string>
</value>
}(window, jQuery, rJS, Chartist));\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
...
...
@@ -196,13 +232,11 @@
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
zope
1
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -224,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>
14412
88173.32
</float>
<float>
14412
90711.56
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
@@ -233,7 +267,7 @@
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
draft
</string>
</value>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
...
...
@@ -269,7 +303,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
945.3
2510.40481.5222
4
</string>
</value>
<value>
<string>
945.3
3714.48637.1027
4
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -287,7 +321,7 @@
</tuple>
<state>
<tuple>
<float>
1441
288240.24
</float>
<float>
1441
361996.21
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_chartjs_html.xml
View file @
b2867b37
...
...
@@ -10,8 +10,11 @@
<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>
...
...
@@ -24,7 +27,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -44,7 +46,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -52,8 +53,11 @@
<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>
...
...
@@ -186,13 +190,11 @@
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
zope
1
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -214,7 +216,7 @@
</tuple>
<state>
<tuple>
<float>
14412
87059.8
</float>
<float>
14412
90721.23
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
@@ -223,7 +225,7 @@
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
draft
</string>
</value>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
...
...
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_chartjs_js.xml
View file @
b2867b37
...
...
@@ -10,8 +10,11 @@
<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>
...
...
@@ -24,7 +27,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -44,7 +46,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -52,8 +53,11 @@
<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>
...
...
@@ -95,27 +99,58 @@
</item>
<item>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
/*jslint indent: 2 */\n
/*global window, jQuery, rJS*/\n
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*jslint indent: 2 */\n
/*global window, jQuery, rJS, RSVP, Chart*/\n
"use strict";\n
\n
(function (window, $, rJS) {\n
(function (window, $, rJS
, Chart
) {\n
\n
rJS(window).\n
declareMethod(\'getContent\', function () {\n
return;\n
var data = this.props.data,\n
content = {},\n
i;\n
content.labels = data.labels;\n
content.datasets = [];\n
for(i = 0; i < data.datasets.length; i += 1) {\n
content.datasets.push(data.datasets[i].data);\n
}\n
return content;\n
})\n
.declareMethod(\'setContent\', function (content) {\n
var data = {},\n
gadget = this,\n
i;\n
data.labels = content.labels;\n
data.datasets = [];\n
for(i = 0; i < content.datasets.length; i += 1) {\n
data.datasets.push({data:content.datasets[i]});\n
}\n
gadget.props.data = data;\n
gadget.props.line_chart = new Chart(gadget.props.ctx).Line(data, {\n
datasetFill : false\n
});\n
return;\n
})\n
.declareMethod(\'clearContent\', function () {\n
return;\n
})\n
.declareMethod(\'initStateTransfer\', function () {\n
return;\n
var current_state = {},\n
gadget = this;\n
return RSVP.Queue()\n
.push(function(){\n
return gadget.getContent();\n
})\n
.push(function(content) {\n
current_state.content = content;\n
return current_state;\n
});\n
})\n
.declareMethod(\'finishStateTransfer\', function (current_state) {\n
return
;\n
return this.setContent(current_state.content)
;\n
})\n
.declareMethod(\'initSubGadget\', function () {\n
var gadget = this,\n
...
...
@@ -146,8 +181,10 @@
\n
});\n
\n
}(window, jQuery, rJS));\n
</string>
</value>
}(window, jQuery, rJS, Chart));\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
...
...
@@ -211,13 +248,11 @@
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
zope
1
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -239,7 +274,7 @@
</tuple>
<state>
<tuple>
<float>
14412
87138.91
</float>
<float>
14412
90712.74
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
@@ -248,7 +283,7 @@
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
draft
</string>
</value>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
...
...
@@ -284,7 +319,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
945.3
2492.63348.33638
</string>
</value>
<value>
<string>
945.3
3781.46058.13073
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -302,7 +337,7 @@
</tuple>
<state>
<tuple>
<float>
1441
287270.16
</float>
<float>
1441
364931.54
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_ckeditor_html.xml
0 → 100644
View file @
b2867b37
This diff is collapsed.
Click to expand it.
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_ckeditor_js.xml
0 → 100644
View file @
b2867b37
This diff is collapsed.
Click to expand it.
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_handsontable_html.xml
View file @
b2867b37
...
...
@@ -10,8 +10,11 @@
<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>
...
...
@@ -24,7 +27,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -44,7 +46,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -52,8 +53,11 @@
<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>
...
...
@@ -187,13 +191,11 @@
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
zope
1
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -215,7 +217,7 @@
</tuple>
<state>
<tuple>
<float>
14412
86847.7
</float>
<float>
14412
90715.82
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
@@ -224,7 +226,7 @@
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
draft
</string>
</value>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
...
...
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_handsontable_js.xml
View file @
b2867b37
...
...
@@ -10,8 +10,11 @@
<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>
...
...
@@ -24,7 +27,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -44,7 +46,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -52,8 +53,11 @@
<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>
...
...
@@ -98,10 +102,10 @@
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*jslint indent: 2 */\n
/*global window, jQuery, rJS*/\n
/*global window, jQuery, rJS
, RSVP, Handsontable
*/\n
"use strict";\n
\n
(function (window, $, rJS) {\n
(function (window, $, rJS
, RSVP, Handsontable
) {\n
\n
rJS(window)\n
.declareMethod(\'getContent\', function () {\n
...
...
@@ -187,7 +191,7 @@
g.props = {};\n
});\n
\n
}(window, jQuery, rJS));\n
}(window, jQuery, rJS
, RSVP, Handsontable
));\n
]]>
</string>
</value>
...
...
@@ -254,13 +258,11 @@
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
zope
1
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -282,7 +284,7 @@
</tuple>
<state>
<tuple>
<float>
14412
86936.94
</float>
<float>
14412
90718.38
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
@@ -291,7 +293,7 @@
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
draft
</string>
</value>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
...
...
@@ -327,7 +329,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
945.32
489.35286.56200
</string>
</value>
<value>
<string>
945.32
551.63779.17083
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -345,7 +347,7 @@
</tuple>
<state>
<tuple>
<float>
14412
87012.33
</float>
<float>
14412
93672.51
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_interfaces_js.xml
View file @
b2867b37
...
...
@@ -151,8 +151,6 @@
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
(function (window, rJS, jQuery, RSVP, DOMParser) {\n
"use strict";\n
\n
var VERIFY_GADGET_SCOPE = "verify_gadget";\n
\n
function verifyInterfaceDefinition(interface_url) {\n
//to verify if interface definition follows the correct template.\n
...
...
@@ -310,8 +308,8 @@
return new RSVP.Queue()\n
.push(function () {\n
return interface_gadget.declareGadget(gadget_url, {\n
scope: gadget_url
,\n
element: interface_gadget.__element
\n
// sandbox: \'iframe\'
,\n
scope: gadget_url
\n
});\n
})\n
.push(function () {\n
...
...
@@ -369,12 +367,12 @@
dt_count = 0,\n
dl_count = 1,\n
i;\n
interface_data.name = doc.getElementsByTagName(\'h1\')[0].inner
Text
;\n
interface_data.description = doc.getElementsByTagName(\'h3\')[0].inner
Text
;\n
interface_data.name = doc.getElementsByTagName(\'h1\')[0].inner
HTML
;\n
interface_data.description = doc.getElementsByTagName(\'h3\')[0].inner
HTML
;\n
for (i = 0; i
< method_len
;
i
+=
1)
{\n
var
method =
{\n
name:
dt_list[dt_count].inner
Text
,\n
description:
dd_list[dt_count].inner
Text
,\n
name:
dt_list[dt_count].inner
HTML
,\n
description:
dd_list[dt_count].inner
HTML
,\n
argument_list:
[]\n
},\n
argument_len =
dl_list[dl_count].getElementsByTagName(\'dt\').length,\n
...
...
@@ -383,8 +381,8 @@
dl_count
+=
1;\n
for
(
j =
0;
j
<
argument_len;
j
+=
1)
{\n
var
argument_item =
{\n
name:
dt_list[dt_count].inner
Text
,\n
description:
dd_list[dt_count].inner
Text
,\n
name:
dt_list[dt_count].inner
HTML
,\n
description:
dd_list[dt_count].inner
HTML
,\n
required:
dt_list[dt_count].getAttribute("data-parameter-required")
===
"optional"
?
false:true,\n
type:
dt_list[dt_count].getAttribute("data-parameter-type")\n
};\n
...
...
@@ -404,20 +402,14 @@
});\n
})\n
\n
.declareMethod("verifyGadget
InterfaceImplementation",
function
(gadget_url
,
interface_url)
{\n
.declareMethod("verifyGadget
SingleInterfaceImplementation",
function
(verify_gadget
,
interface_url)
{\n
var
interface_gadget =
this,\n
absolute_interface_url;\n
return
RSVP.Queue()\n
.push(function
()
{\n
if(!gadget_url
||
!interface_url)
{\n
throw
new
Error("Invalid
Inputs");\n
}\n
return
interface_gadget.getVerifyGadget(gadget_url);\n
})\n
.push(function
(gadget)
{\n
return
RSVP.all([
\n
interface_gadget.getDeclaredGadgetInterfaceList(gadget),\n
interface_gadget.getAbsoluteURL(gadget,
interface_url)\n
interface_gadget.getDeclaredGadgetInterfaceList(
verify_
gadget),\n
interface_gadget.getAbsoluteURL(
verify_
gadget,
interface_url)\n
]);\n
})\n
.push(function
(interface_detail)
{\n
...
...
@@ -428,13 +420,10 @@
.push(function
()
{\n
return
verifyInterfaceDefinition(absolute_interface_url);\n
})\n
.push(function
()
{\n
return
interface_gadget.getDeclaredGadget(gadget_url);\n
})\n
.push(function
(gadget)
{\n
return
RSVP.all([\n
interface_gadget.getDefinedInterfaceMethodList(absolute_interface_url),\n
interface_gadget.getDeclaredGadgetMethodList(gadget)\n
interface_gadget.getDeclaredGadgetMethodList(
verify_
gadget)\n
]);\n
})\n
.push(function(method_list)
{\n
...
...
@@ -447,60 +436,44 @@
return
false;\n
});\n
})\n
\n
.declareMethod("verifyGadgetAllInterfaceImplementation",
function
(gadget_url)
{\n
var
interface_gadget =
this;\n
.declareMethod("verifyGadgetInterfaceImplementation",
function
(gadget_data,
interface_data)
{\n
var
interface_gadget =
this,\n
verify_gadget,\n
interface_list,\n
declared_gadget =
false;\n
return
RSVP.Queue()\n
.push(function
()
{\n
if(!gadget_url)
{\n
var
required_gadget;\n
if(!gadget_data)
{\n
throw
new
Error("Invalid
Input");\n
}
else
if(
gadget_data.constructor =
==
String)
{\n
required_gadget =
interface_gadget.getVerifyGadget(gadget_data);\n
declared_gadget =
true;\n
}
else
{\n
required_gadget =
gadget_data;\n
}\n
return
interface_gadget.getVerifyGadget(gadget_url)
;\n
return
required_gadget
;\n
})\n
.push(function
(gadget)
{\n
return
interface_gadget.getDeclaredGadgetInterfaceList(gadget);\n
})\n
.push(function
(declared_interface_list)
{\n
var
interface_url,\n
result_list =
[],\n
item;\n
for
(item
in
declared_interface_list)
{\n
interface_url =
declared_interface_list[item];\n
result_list.push(interface_gadget.verifyGadgetInterfaceImplementation(gadget_url,
interface_url));\n
.push(function
(required_gadget)
{\n
var
required_interface_list =
[];\n
verify_gadget =
required_gadget;\n
if(!interface_data)
{\n
required_interface_list =
interface_gadget.getDeclaredGadgetInterfaceList(verify_gadget);\n
}
else
if(
interface_data.constructor =
==
Array)
{\n
required_interface_list =
interface_data;\n
}
else
if(
interface_data.constructor =
==
String)
{\n
required_interface_list.push(interface_data);\n
}\n
return
RSVP.all(result_list)
;\n
return
required_interface_list
;\n
})\n
.push(function(result_list)
{\n
var
item;\n
for(item
in
result_list)
{\n
if
(!result_list[item])
{\n
throw
new
Error("Interface
Implementation
Failure.");\n
}\n
}\n
})\n
.push
(function()
{\n
return
true;\n
},
function(error)
{\n
return
false;\n
});\n
})\n
\n
.declareMethod("verifyGadgetInterfaceListImplementation",
function
(gadget_url,
interface_url_list)
{\n
var
interface_gadget =
this;\n
return
RSVP.Queue()\n
.push(function
()
{\n
if(!gadget_url)
{\n
throw
new
Error("Invalid
Input");\n
}\n
return
interface_gadget.getVerifyGadget(gadget_url);\n
})\n
.push(function
(gadget)
{\n
.push(function
(required_interface_list)
{\n
var
interface_url,\n
result_list =
[],\n
item;\n
for
(item
in
interface_url_list)
{\n
interface_url =
interface_url_list[item];\n
result_list.push(interface_gadget.verifyGadgetInterfaceImplementation(gadget_url,
interface_url));\n
interface_list =
required_interface_list;\n
for
(item
in
interface_list)
{\n
interface_url =
interface_list[item];\n
result_list.push(interface_gadget.verifyGadgetSingleInterfaceImplementation(verify_gadget,
interface_url));\n
}\n
return
RSVP.all(result_list);\n
})\n
...
...
@@ -519,7 +492,8 @@
});\n
});\n
\n
}(window,
rJS,
jQuery,
RSVP,
DOMParser));
}(window,
rJS,
jQuery,
RSVP,
DOMParser));\n
]]
></string>
</value>
</item>
...
...
@@ -656,7 +630,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
945.361
6.25517.61337
</string>
</value>
<value>
<string>
945.361
7.50497.56388
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -674,7 +648,7 @@
</tuple>
<state>
<tuple>
<float>
14
39554666.23
</float>
<float>
14
41292695.71
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_slickgrid_html.xml
View file @
b2867b37
...
...
@@ -10,8 +10,11 @@
<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>
...
...
@@ -24,7 +27,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -44,7 +46,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -52,8 +53,11 @@
<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>
...
...
@@ -200,13 +204,11 @@
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
zope
1
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -228,7 +230,7 @@
</tuple>
<state>
<tuple>
<float>
14412
86536.0
2
</float>
<float>
14412
90716.3
2
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
@@ -237,7 +239,7 @@
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
draft
</string>
</value>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
...
...
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_slickgrid_js.xml
View file @
b2867b37
...
...
@@ -10,8 +10,11 @@
<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>
...
...
@@ -24,7 +27,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -44,7 +46,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -52,8 +53,11 @@
<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>
...
...
@@ -98,18 +102,28 @@
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*jslint indent: 2 */\n
/*global window, jQuery, rJS*/\n
/*global window, jQuery, rJS
, Slick
*/\n
"use strict";\n
\n
(function (window, $, rJS) {\n
(function (window, $, rJS
, Slick
) {\n
\n
function requiredFieldValidator(value) {\n
if (value ==
null || value
== undefined || !value.length) {\n
if (value ==
= null || value =
== undefined || !value.length) {\n
return {valid: false, msg: "This is a required field"};\n
} else {\n
return {valid: true, msg: null};\n
}\n
}\n
function getNameFromNumber(num) {\n
var numeric = num % 26,\n
letter = String.fromCharCode(65 + numeric),\n
num2 = Math.floor(num / 26);\n
if (num2 >
0) {\n
return getNameFromNumber(num2 - 1) + letter;\n
} else {\n
return letter;\n
}\n
}\n
\n
rJS(window).\n
declareMethod(\'getContent\', function () {\n
...
...
@@ -140,7 +154,7 @@
columns.push({\n
title:
title,\n
id:
i\n
})\n
})
;
\n
column_index_dict[temp_columns[i].field]
=
grid.getColumnIndex(temp_columns[i].id);\n
}\n
for(
i =
0;
i
<
temp_data.length;
i
+=
1)
{\n
...
...
@@ -172,7 +186,7 @@
"id":
i,\n
"field":
i,\n
"editor":
Slick.Editors.Text
\n
})\n
})
;
\n
}\n
for(
i =
0;
i
<
content.length;
i
+=
1)
{\n
var
d =
(data[i]
=
{});\n
...
...
@@ -193,8 +207,8 @@
data =
[],\n
columns =
[],\n
k;\n
for(k =
1; k < 7
; k += 1) {\n
columns.push({id: k, name:
""
, field: k, editor: Slick.Editors.Text});\n
for(
k =
0;
k
<
100
;
k
+=
1)
{\n
columns.push({id:
k,
name:
getNameFromNumber(k)
,
field:
k,
editor:
Slick.Editors.Text});\n
}
\n
$(function
()
{\n
var
i,
j;\n
...
...
@@ -228,7 +242,7 @@
g.props =
{};\n
});\n
\n
}(window, jQuery, rJS));\n
}(window,
jQuery,
rJS
,
Slick
));\n
]]
></string>
</value>
...
...
@@ -295,13 +309,11 @@
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
zope
1
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -323,7 +335,7 @@
</tuple>
<state>
<tuple>
<float>
14412
86636.0
</float>
<float>
14412
90719.83
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
@@ -332,7 +344,7 @@
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
draft
</string>
</value>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
...
...
@@ -368,7 +380,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
945.3
2484.60257.63197
</string>
</value>
<value>
<string>
945.3
3860.24768.49083
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -386,7 +398,7 @@
</tuple>
<state>
<tuple>
<float>
1441
286734.84
</float>
<float>
1441
369486.01
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_tinymce_html.xml
View file @
b2867b37
...
...
@@ -10,8 +10,11 @@
<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>
...
...
@@ -24,7 +27,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -44,7 +46,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -52,8 +53,11 @@
<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>
...
...
@@ -111,10 +115,10 @@
\n
<link
rel=
"http://www.renderjs.org/rel/interface"
href=
"editor_interface.html"
></link>
\n
\n
<script
src=
"tinymce/js/tinymce/tinymce.js"
></script>
\n
<script
src=
"jquery.js"
></script>
\n
<script
src=
"rsvp"
></script>
\n
<script
src=
"rsvp
.js
"
></script>
\n
<script
src=
"renderjs.js"
></script>
\n
<script
src=
"tinymce/tinymce.min.js"
></script>
\n
<script
src=
"interface_gadget_tinymce.js"
type=
"text/javascript"
></script>
\n
</head>
\n
<body>
\n
...
...
@@ -189,13 +193,11 @@
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
zope
1
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -217,7 +219,7 @@
</tuple>
<state>
<tuple>
<float>
14412
86114.79
</float>
<float>
14412
90713.54
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
@@ -226,7 +228,7 @@
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
draft
</string>
</value>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
...
...
@@ -262,7 +264,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
945.3
2518.7195.50585
</string>
</value>
<value>
<string>
945.3
3600.34754.53230
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -280,7 +282,7 @@
</tuple>
<state>
<tuple>
<float>
1441
288747.31
</float>
<float>
1441
353714.75
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_editor_demo/PathTemplateItem/web_page_module/interface_gadget_tinymce_js.xml
View file @
b2867b37
...
...
@@ -10,8 +10,11 @@
<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>
...
...
@@ -24,7 +27,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -44,7 +46,6 @@
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
...
...
@@ -52,8 +53,11 @@
<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>
...
...
@@ -96,10 +100,10 @@
<item>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
/*jslint indent: 2 */\n
/*global window, jQuery, rJS*/\n
/*global window, jQuery, rJS
, RSVP
*/\n
"use strict";\n
\n
(function (window, $, rJS) {\n
(function (window, $, rJS
, RSVP
) {\n
\n
rJS(window).\n
declareMethod(\'getContent\', function () {\n
...
...
@@ -121,7 +125,7 @@
.push(function(content) {\n
current_state.content = content;\n
return current_state;\n
})\n
})
;
\n
})\n
.declareMethod(\'finishStateTransfer\', function (current_state) {\n
return this.setContent(current_state.content);\n
...
...
@@ -154,7 +158,7 @@
.ready(function (g) {\n
});\n
\n
}(window, jQuery, rJS));\n
}(window, jQuery, rJS
, RSVP
));\n
</string>
</value>
</item>
<item>
...
...
@@ -219,13 +223,11 @@
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<none/>
</value>
<value>
<string>
publish_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
zope
1
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -247,7 +249,7 @@
</tuple>
<state>
<tuple>
<float>
14412
86218.94
</float>
<float>
14412
90720.25
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
@@ -256,7 +258,7 @@
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
draft
</string>
</value>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
...
...
@@ -292,7 +294,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
945.3
2477.42506.456
53
</string>
</value>
<value>
<string>
945.3
3593.23703.314
53
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -310,7 +312,7 @@
</tuple>
<state>
<tuple>
<float>
1441
286322.82
</float>
<float>
1441
353720.28
</float>
<string>
GMT
</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