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
Sebastien Robin
erp5
Commits
8cd4d1b3
Commit
8cd4d1b3
authored
Oct 03, 2016
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
officejs task app: setup appcache for planning widget
parent
31b87a7c
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
776 additions
and
14 deletions
+776
-14
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_planning_html.html
...m/web_page_module/gadget_officejs_page_planning_html.html
+5
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_planning_js.js
...eItem/web_page_module/gadget_officejs_page_planning_js.js
+24
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_planning_widget_appcache.xml
..._page_module/gadget_officejs_planning_widget_appcache.xml
+345
-0
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_task_appcache.xml
...ateItem/web_page_module/gadget_officejs_task_appcache.xml
+6
-4
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_widget_planning_html.html
...web_page_module/gadget_officejs_widget_planning_html.html
+3
-4
bt5/erp5_officejs/PathTemplateItem/web_site_module/officejs_task_editor/planning.xml
...ateItem/web_site_module/officejs_task_editor/planning.xml
+393
-0
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_planning_html.html
View file @
8cd4d1b3
...
...
@@ -7,15 +7,17 @@
<title>
OfficeJS Planning
</title>
<script
src=
"rsvp.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"gadget_officejs_page_planning.js"
></script>
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"gadget_officejs_page_planning.js"
type=
"text/javascript"
></script>
</head>
<body>
<div
class=
"planning-error-message"
></div>
<div
class=
'document-content'
></div>
</body>
</html>
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_planning_js.js
View file @
8cd4d1b3
...
...
@@ -3,6 +3,7 @@
(
function
(
window
,
RSVP
,
rJS
)
{
"
use strict
"
;
var
PLANNING_WIDGET_GADGET_URL
=
"
planning/
"
;
rJS
(
window
)
.
ready
(
function
(
g
)
{
g
.
props
=
{};
...
...
@@ -96,7 +97,7 @@
})
.
push
(
function
()
{
return
gadget
.
declareGadget
(
"
gadget_officejs_widget_planning.html
"
,
PLANNING_WIDGET_GADGET_URL
,
{
scope
:
"
planning
"
,
sandbox
:
"
iframe
"
,
...
...
@@ -113,6 +114,9 @@
text_gadget
=
planning_gadget
;
return
planning_gadget
.
render
({
search_page
:
'
planning
'
,
mapping
:
{
title
:
'
title
'
,
start
:
'
start_date
'
,
stop
:
'
stop_date
'
},
column_list
:
[{
select
:
'
title
'
,
title
:
'
Title
'
...
...
@@ -136,13 +140,30 @@
query
:
'
portal_type:("
'
+
gadget
.
props
.
portal_type
+
'
")
'
,
select_list
:
[
'
title
'
,
'
reference
'
,
'
start_date
'
,
'
description
'
,
'
stop_date
'
,
'
modification_date
'
],
limit
:
[
0
,
30
],
sort_on
:
[[
"
modification_date
"
,
"
descending
"
]]
limit
:
[
0
,
30
]
}
});
})
.
push
(
function
()
{
return
text_gadget
.
getElement
();
})
.
fail
(
function
(
error
)
{
console
.
log
(
"
LOADing error, error
"
,
error
);
var
display_error_element
;
if
(
error
.
message
.
startsWith
(
"
Timeout
"
)
===
true
)
{
display_error_element
=
gadget
.
props
.
element
.
querySelector
(
"
.planning-error-message
"
);
display_error_element
.
innerHTML
=
'
<br/><p style="color: red"></p><br/><br/>
'
;
display_error_element
.
querySelector
(
'
p
'
).
textContent
=
"
TIMEOUT: The editor gadget is taking too long to load but is
"
+
"
currently being cached, please wait for the page to load
"
+
"
(check your browser loading icon) and then refresh.
"
;
}
else
{
throw
error
;
}
});
});
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_planning_widget_appcache.xml
0 → 100644
View file @
8cd4d1b3
This diff is collapsed.
Click to expand it.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_task_appcache.xml
View file @
8cd4d1b3
...
...
@@ -179,11 +179,13 @@ gadget_officejs_jio_web_page_view.html\n
gadget_officejs_jio_web_page_view.js\n
gadget_officejs_jio_web_illustration_view.html\n
gadget_officejs_jio_web_illustration_view.js\n
vis.js\n
vis.css
\n
gadget_officejs_widget_planning.html/
vis.js\n
planning/
\n
NETWORK:\n
*\n
\n
\n
\n
]]>
</string>
</value>
...
...
@@ -321,7 +323,7 @@ NETWORK:\n
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.
15732.8858.46950
</string>
</value>
<value>
<string>
954.
22799.4754.34713
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -339,7 +341,7 @@ NETWORK:\n
</tuple>
<state>
<tuple>
<float>
1475
152619.1
</float>
<float>
1475
503324.09
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_widget_planning_html.html
View file @
8cd4d1b3
<!DOCTYPE html>
<html>
<html
manifest=
"gadget_officejs_planning_widget.appcache"
>
<head>
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no"
/>
...
...
@@ -13,17 +13,16 @@
<!-- custom script -->
<script
src=
"gadget_officejs_widget_planning.js"
type=
"text/javascript"
></script>
<div
class=
"planning-widget"
></div>
<link
rel=
"stylesheet"
href=
"vis.css"
>
</head>
<body>
<div
class=
"custom-grid-wrap"
>
<div
class=
"custom-grid ui-corner-all ui-body-inherit ui-shadow ui-corner-all"
>
<div
class=
"ui-body-c ui-corner-all"
></div>
<div
class=
"ui-body-c ui-corner-all
planning-widget
"
></div>
</div>
</div>
</body>
</html>
bt5/erp5_officejs/PathTemplateItem/web_site_module/officejs_task_editor/planning.xml
0 → 100644
View file @
8cd4d1b3
This diff is collapsed.
Click to expand it.
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