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
Klaus Wölfel
erp5
Commits
e1159379
Commit
e1159379
authored
May 15, 2017
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: add cribjs link in panel application
parent
19746a59
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
117 additions
and
26 deletions
+117
-26
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_html.html
...b_page_module/gadget_officejs_application_panel_html.html
+1
-0
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_html.xml
...eb_page_module/gadget_officejs_application_panel_html.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_js.js
...m/web_page_module/gadget_officejs_application_panel_js.js
+14
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_js.xml
.../web_page_module/gadget_officejs_application_panel_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_manager_panel_html.html
...e_module/gadget_officejs_bookmark_manager_panel_html.html
+1
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_manager_panel_html.xml
...ge_module/gadget_officejs_bookmark_manager_panel_html.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_html.html
...emplateItem/web_page_module/gadget_officejs_jio_html.html
+2
-0
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_html.xml
...TemplateItem/web_page_module/gadget_officejs_jio_html.xml
+3
-3
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
+89
-12
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_dav_configurator_js.xml
...e_module/gadget_officejs_page_jio_dav_configurator_js.xml
+1
-1
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_html.html
View file @
e1159379
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
<
li
><
a
href
=
"
#page=document_list
"
data
-
i18n
=
"
Document List
"
>
Document
List
<
/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&auto_repair=true
"
data
-
i18n
=
"
Synchronization
"
>
Synchronization
<
/a></
li
>
<
li
><
a
href
=
"
#page=sync&auto_repair=true
"
data
-
i18n
=
"
Synchronization
"
>
Synchronization
<
/a></
li
>
<
li
><
a
href
=
"
https://www.cribjs.com/#page=jio_crib_configurator&application_name={{app_name}}&communication_gadget={{location}}gadget_officejs_liberator.html
"
data
-
i18n
=
"
Edit Me
"
>
Edit
Me
<
/a></
li
>
<
/ul
>
<
/ul
>
<
/div
>
<
/div
>
</script>
</script>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_html.xml
View file @
e1159379
...
@@ -275,7 +275,7 @@
...
@@ -275,7 +275,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
6.64903.6566.48281
</string>
</value>
<value>
<string>
95
7.4910.31194.16179
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -293,7 +293,7 @@
...
@@ -293,7 +293,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1486
126948.54
</float>
<float>
1486
551848.79
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_js.js
View file @
e1159379
...
@@ -66,9 +66,20 @@
...
@@ -66,9 +66,20 @@
key
,
key
,
value
,
value
,
i
,
i
,
queue
=
gadget
.
translateHtml
(
panel_template_header
()
+
panel_template_body
({
"
location
"
:
window
.
location
.
origin
+
window
.
location
.
pathname
}));
queue
=
new
RSVP
.
Queue
()
.
push
(
function
()
{
queue
return
gadget
.
getSetting
(
"
application_title
"
,
""
);
})
.
push
(
function
(
application_name
)
{
return
gadget
.
translateHtml
(
panel_template_header
()
+
panel_template_body
(
{
"
location
"
:
window
.
location
.
origin
+
window
.
location
.
pathname
,
"
app_name
"
:
application_name
}
)
);
})
.
push
(
function
(
my_translated_or_plain_html
)
{
.
push
(
function
(
my_translated_or_plain_html
)
{
gadget
.
props
.
jelement
.
html
(
my_translated_or_plain_html
);
gadget
.
props
.
jelement
.
html
(
my_translated_or_plain_html
);
gadget
.
props
.
jelement
.
trigger
(
"
create
"
);
gadget
.
props
.
jelement
.
trigger
(
"
create
"
);
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_application_panel_js.xml
View file @
e1159379
...
@@ -266,7 +266,7 @@
...
@@ -266,7 +266,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
957.
598.45791.65518
</string>
</value>
<value>
<string>
957.
11997.57654.14353
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -284,7 +284,7 @@
...
@@ -284,7 +284,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
148
5868259.98
</float>
<float>
148
6556869.31
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_manager_panel_html.html
View file @
e1159379
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<
li
><
a
href
=
"
#page=bookmark_preference
"
data
-
i18n
=
"
Preferences
"
>
Preferences
<
/a></
li
>
<
li
><
a
href
=
"
#page=bookmark_preference
"
data
-
i18n
=
"
Preferences
"
>
Preferences
<
/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&auto_repair=true
"
data
-
i18n
=
"
Synchronize
"
>
Synchronize
<
/a></
li
>
<
li
><
a
href
=
"
#page=sync&auto_repair=true
"
data
-
i18n
=
"
Synchronize
"
>
Synchronize
<
/a></
li
>
<
li
><
a
href
=
"
https://www.cribjs.com/#page=jio_crib_configurator&application_name=
Bookmark Manager
&communication_gadget={{location}}gadget_officejs_liberator.html
"
data
-
i18n
=
"
Edit Me
"
>
Edit
Me
<
/a></
li
>
<
li
><
a
href
=
"
https://www.cribjs.com/#page=jio_crib_configurator&application_name=
{{app_name}}
&communication_gadget={{location}}gadget_officejs_liberator.html
"
data
-
i18n
=
"
Edit Me
"
>
Edit
Me
<
/a></
li
>
<
/ul
>
<
/ul
>
<
/div
>
<
/div
>
</script>
</script>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_manager_panel_html.xml
View file @
e1159379
...
@@ -275,7 +275,7 @@
...
@@ -275,7 +275,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
6.64903.6566.48281
</string>
</value>
<value>
<string>
95
7.575.7829.27238
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -293,7 +293,7 @@
...
@@ -293,7 +293,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
148
5866827.11
</float>
<float>
148
6556932.46
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_html.html
View file @
e1159379
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"jiodev.js"
type=
"text/javascript"
></script>
<script
src=
"jiodev.js"
type=
"text/javascript"
></script>
<script
src=
"jio_mappingstorage.js"
type=
"text/javascript"
></script>
<!-- custom script -->
<!-- custom script -->
<script
src=
"gadget_officejs_jio.js"
type=
"text/javascript"
></script>
<script
src=
"gadget_officejs_jio.js"
type=
"text/javascript"
></script>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_html.xml
View file @
e1159379
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
cedric.le.ninivin
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -238,7 +238,7 @@
...
@@ -238,7 +238,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
45.38462.10321.2167
</string>
</value>
<value>
<string>
9
56.64903.6566.48281
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -256,7 +256,7 @@
...
@@ -256,7 +256,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
41645344.7
</float>
<float>
14
86545131.79
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_dav_configurator_js.js
View file @
e1159379
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
"
use strict
"
;
"
use strict
"
;
function
setjIODAVConfiguration
(
gadget
)
{
function
setjIODAVConfiguration
(
gadget
)
{
var
dav_url
=
gadget
.
props
.
element
.
querySelector
(
"
input[name='dav_url']
"
).
value
;
return
gadget
.
getSetting
(
"
portal_type
"
)
return
gadget
.
getSetting
(
"
portal_type
"
)
.
push
(
function
(
portal_type
)
{
.
push
(
function
(
portal_type
)
{
var
old_date
=
new
Date
(),
var
old_date
=
new
Date
(),
...
@@ -30,25 +31,52 @@
...
@@ -30,25 +31,52 @@
check_remote_creation
:
true
,
check_remote_creation
:
true
,
check_remote_deletion
:
true
,
check_remote_deletion
:
true
,
local_sub_storage
:
{
local_sub_storage
:
{
type
:
"
query
"
,
type
:
"
mapping
"
,
attachment
:
{
'
data
'
:
{
get
:
{
uri_template
:
'
enclosure
'
},
put
:
{
uri_template
:
'
enclosure
'
}
}
},
sub_storage
:
{
sub_storage
:
{
type
:
"
uuid
"
,
type
:
"
query
"
,
sub_storage
:
{
sub_storage
:
{
type
:
"
indexeddb
"
,
type
:
"
uuid
"
,
database
:
"
officejs-dav
"
sub_storage
:
{
type
:
"
indexeddb
"
,
database
:
"
officejs-dav
"
}
}
}
}
}
},
},
remote_sub_storage
:
{
remote_sub_storage
:
{
type
:
"
query
"
,
type
:
"
mapping
"
,
attachment
:
{
'
data
'
:
{
get
:
{
uri_template
:
'
enclosure
'
},
put
:
{
uri_template
:
'
enclosure
'
}
}
},
sub_storage
:
{
sub_storage
:
{
type
:
"
drivetojiomapping
"
,
type
:
"
query
"
,
sub_storage
:
{
sub_storage
:
{
type
:
"
dav
"
,
type
:
"
drivetojiomapping
"
,
url
:
gadget
.
props
.
element
.
querySelector
(
"
input[name='dav_url']
"
).
value
,
sub_storage
:
{
basic_login
:
btoa
(
gadget
.
props
.
element
.
querySelector
(
"
input[name='dav_username']
"
).
value
type
:
"
mapping
"
,
+
'
:
'
+
gadget
.
props
.
element
.
querySelector
(
"
input[name='dav_password']
"
).
value
),
property
:
{
with_credentials
:
true
"
portal_type
"
:
[
"
switchPropertyValue
"
,
{
"
PDF
"
:
"
pdf
"
,
"
Web Page
"
:
"
txt
"
}
]
},
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
}
}
}
}
}
}
}
}
...
@@ -58,6 +86,9 @@
...
@@ -58,6 +86,9 @@
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
setSetting
(
'
jio_storage_name
'
,
"
DAV
"
);
return
gadget
.
setSetting
(
'
jio_storage_name
'
,
"
DAV
"
);
})
})
.
push
(
function
()
{
return
gadget
.
setGlobalSetting
(
'
dav_url
'
,
dav_url
);
})
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
setSetting
(
'
sync_reload
'
,
true
);
return
gadget
.
setSetting
(
'
sync_reload
'
,
true
);
})
})
...
@@ -92,6 +123,20 @@
...
@@ -92,6 +123,20 @@
.
declareAcquiredMethod
(
"
reload
"
,
"
reload
"
)
.
declareAcquiredMethod
(
"
reload
"
,
"
reload
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
setSetting
"
,
"
setSetting
"
)
.
declareAcquiredMethod
(
"
setSetting
"
,
"
setSetting
"
)
.
declareMethod
(
"
getGlobalSetting
"
,
function
(
key
)
{
var
gadget
=
this
;
return
gadget
.
getDeclaredGadget
(
"
global_setting_gadget
"
)
.
push
(
function
(
global_setting_gadget
)
{
return
global_setting_gadget
.
getSetting
(
key
);
});
})
.
declareMethod
(
"
setGlobalSetting
"
,
function
(
key
,
value
)
{
var
gadget
=
this
;
return
gadget
.
getDeclaredGadget
(
"
global_setting_gadget
"
)
.
push
(
function
(
global_setting_gadget
)
{
return
global_setting_gadget
.
setSetting
(
key
,
value
);
});
})
.
declareMethod
(
"
render
"
,
function
()
{
.
declareMethod
(
"
render
"
,
function
()
{
var
gadget
=
this
;
var
gadget
=
this
;
return
gadget
.
updateHeader
({
return
gadget
.
updateHeader
({
...
@@ -123,7 +168,39 @@
...
@@ -123,7 +168,39 @@
}
}
);
);
});
});
})
;
})
.
declareService
(
function
()
{
var
gadget
=
this
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
gadget
.
props
.
deferred
.
promise
;
})
.
push
(
function
()
{
return
gadget
.
getSetting
(
"
global_setting_gadget_url
"
);
})
.
push
(
function
(
global_setting_gadget_url
)
{
return
gadget
.
declareGadget
(
global_setting_gadget_url
,
{
scope
:
"
global_setting_gadget
"
,
sandbox
:
"
iframe
"
,
element
:
gadget
.
props
.
element
.
querySelector
(
"
.global_setting_gadget
"
)
}
);
})
.
push
(
function
(
global_setting_gadget
)
{
return
global_setting_gadget
.
getSetting
(
"
dav_url
"
);
})
.
push
(
function
(
dav_url
)
{
var
erp5_url_input
=
gadget
.
props
.
element
.
querySelector
(
"
input[name='dav_url']
"
);
erp5_url_input
.
value
=
dav_url
||
"
https://www.example.com
"
;
erp5_url_input
.
removeAttribute
(
"
disabled
"
);
erp5_url_input
.
parentNode
.
classList
.
remove
(
'
ui-state-disabled
'
);
erp5_url_input
.
focus
();
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
));
\ No newline at end of file
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_dav_configurator_js.xml
View file @
e1159379
...
@@ -256,7 +256,7 @@
...
@@ -256,7 +256,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1486
042968.05
</float>
<float>
1486
545798.09
</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