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
Bryan Kaperick
erp5
Commits
eb00daaf
Commit
eb00daaf
authored
May 29, 2017
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs_afs_directory] JSLint
parent
25fa912f
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
357 additions
and
357 deletions
+357
-357
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_jio_js.js
...athTemplateItem/web_page_module/gadget_erp5_afs_jio_js.js
+84
-77
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_jio_js.xml
...thTemplateItem/web_page_module/gadget_erp5_afs_jio_js.xml
+3
-3
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_panel_js.js
...hTemplateItem/web_page_module/gadget_erp5_afs_panel_js.js
+4
-9
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_panel_js.xml
...TemplateItem/web_page_module/gadget_erp5_afs_panel_js.xml
+3
-3
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_router_js.js
...TemplateItem/web_page_module/gadget_erp5_afs_router_js.js
+3
-6
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_router_js.xml
...emplateItem/web_page_module/gadget_erp5_afs_router_js.xml
+2
-2
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_storage_js.js
...emplateItem/web_page_module/gadget_erp5_afs_storage_js.js
+6
-6
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_storage_js.xml
...mplateItem/web_page_module/gadget_erp5_afs_storage_js.xml
+2
-2
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_directory_js.js
...Item/web_page_module/gadget_erp5_page_afs_directory_js.js
+56
-55
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_directory_js.xml
...tem/web_page_module/gadget_erp5_page_afs_directory_js.xml
+2
-2
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_js.js
...Item/web_page_module/gadget_erp5_page_afs_publisher_js.js
+21
-22
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_js.xml
...tem/web_page_module/gadget_erp5_page_afs_publisher_js.xml
+3
-3
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_list_js.js
...web_page_module/gadget_erp5_page_afs_publisher_list_js.js
+36
-35
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_list_js.xml
...eb_page_module/gadget_erp5_page_afs_publisher_list_js.xml
+2
-2
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_software_js.js
...eItem/web_page_module/gadget_erp5_page_afs_software_js.js
+27
-28
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_software_js.xml
...Item/web_page_module/gadget_erp5_page_afs_software_js.xml
+3
-3
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_software_list_js.js
.../web_page_module/gadget_erp5_page_afs_software_list_js.js
+35
-33
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_software_list_js.xml
...web_page_module/gadget_erp5_page_afs_software_list_js.xml
+2
-2
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_success_case_js.js
...m/web_page_module/gadget_erp5_page_afs_success_case_js.js
+8
-9
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_success_case_js.xml
.../web_page_module/gadget_erp5_page_afs_success_case_js.xml
+2
-2
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_success_case_list_js.js
..._page_module/gadget_erp5_page_afs_success_case_list_js.js
+50
-50
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_success_case_list_js.xml
...page_module/gadget_erp5_page_afs_success_case_list_js.xml
+3
-3
No files found.
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_jio_js.js
View file @
eb00daaf
/*global window, rJS, RSVP,
UriTemplate, URI, Query, SimpleQuery, ComplexQuery,
/*global window, rJS, RSVP,
jIO, DOMParser */
/*jslint indent: 2, maxerr: 3, nomen: true, DOMParser */
(
function
(
window
,
rJS
,
RSVP
,
UriTemplate
,
URI
,
Query
,
SimpleQuery
,
ComplexQuery
,
jIO
,
DOMParser
)
{
/*jslint indent: 2, maxerr: 3, nomen: true */
(
function
(
window
,
rJS
,
RSVP
)
{
"
use strict
"
;
var
DIRTY_OLOH_LOOKUP_UNTIL_API_WORKS
=
{
...
...
@@ -34,7 +33,7 @@
// XXX... lord have mercy
function
mockupQueryParam
(
param
,
select_list
)
{
var
wild_param
=
param
.
replace
(
/
[
()
]
/g
,
"
%
"
).
replace
(
/ /g
,
''
),
var
wild_param
=
param
.
replace
(
/
[
()
]
/g
,
"
%
"
).
replace
(
/ /g
,
''
),
return_list
=
[],
len
,
i
;
...
...
@@ -52,12 +51,12 @@
i
;
for
(
i
=
0
,
len
=
query_param_list
.
length
;
i
<
len
;
i
+=
1
)
{
param
=
query_param_list
[
i
];
// search
if
(
param
.
split
(
"
:
"
).
length
!==
2
)
{
return
query
.
replace
(
param
,
mockupQueryParam
(
param
,
select_list
));
}
// hide rows
if
(
param
.
indexOf
(
"
catalog.uid
"
)
>
0
)
{
return
query
.
replace
(
"
catalog.
"
,
""
);
...
...
@@ -65,7 +64,7 @@
}
return
query
;
}
function
createDataSheets
(
gadget
)
{
gadget
.
jio_allDocs
=
gadget
.
state_parameter_dict
.
jio_storage
.
allDocs
;
gadget
.
jio_get
=
gadget
.
state_parameter_dict
.
jio_storage
.
get
;
...
...
@@ -77,26 +76,29 @@
// Make Publisher datasheets
/////////////////////////////////////////////////////////////////
.
push
(
function
(
data
)
{
var
uid
=
0
;
var
uid
=
0
,
publisher_id_list
,
promise_list
;
/*
function isReplicate(el) {
return (el.id.indexOf("_replicate_") < 0);
}
function
setPortalTypeOnPublisher
(
el
)
{
*/
function
setPortalTypeOnPublisher
(
el
)
{
return
gadget
.
jio_get
(
el
.
id
)
.
push
(
function
(
publisher_object
)
{
publisher_object
.
portal_type
=
"
publisher
"
;
//publisher_object.url = publisher_object.website;
publisher_object
.
uid
=
(
uid
++
).
toString
();
return
gadget
.
jio_put
(
publisher_object
.
uid
,
publisher_object
);
});
.
push
(
function
(
publisher_object
)
{
publisher_object
.
portal_type
=
"
publisher
"
;
//publisher_object.url = publisher_object.website;
uid
+=
1
;
publisher_object
.
uid
=
uid
.
toString
();
return
gadget
.
jio_put
(
publisher_object
.
uid
,
publisher_object
);
});
}
var
publisher_id_list
=
data
.
data
.
rows
,
promise_list
=
publisher_id_list
.
map
(
setPortalTypeOnPublisher
);
publisher_id_list
=
data
.
data
.
rows
;
promise_list
=
publisher_id_list
.
map
(
setPortalTypeOnPublisher
);
return
RSVP
.
all
(
promise_list
);
})
...
...
@@ -110,8 +112,7 @@
// Create Statistic Sheets
/////////////////////////////////////////////////////////////////
.
push
(
function
(
result_list
)
{
var
uid
=
1000
,
publisher_list
=
result_list
.
data
.
rows
,
var
publisher_list
=
result_list
.
data
.
rows
,
statistic_list
=
[],
i_len
=
publisher_list
.
length
,
i
;
...
...
@@ -120,13 +121,12 @@
// curl https://www.openhub.net/projects/{project_id}/analyses/latest.xml
function
createStatisticSheet
(
my_publisher_row
)
{
var
publisher
=
my_publisher_row
.
value
.
title
,
software_list
=
my_publisher_row
.
value
.
free_software_list
,
j_len
=
software_list
.
length
,
profile_url
,
software_analysis
,
software_analysis_list
=
[],
j
;
var
software_list
=
my_publisher_row
.
value
.
free_software_list
,
j_len
=
software_list
.
length
,
profile_url
,
software_analysis
,
software_analysis_list
=
[],
j
;
for
(
j
=
0
;
j
<
j_len
;
j
+=
1
)
{
profile_url
=
software_list
[
j
].
source_code_profile
;
...
...
@@ -149,9 +149,7 @@
return
RSVP
.
all
(
software_analysis_list
);
})
.
push
(
function
(
my_stat_list
)
{
var
parser
=
new
DOMParser
(),
line_total
=
0
,
xml
,
var
line_total
=
0
,
k_len
=
my_stat_list
.
length
,
k
;
for
(
k
=
0
;
k
<
k_len
;
k
+=
1
)
{
...
...
@@ -180,7 +178,7 @@
}
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
return
RSVP
.
all
(
statistic_list
);
})
.
push
(
function
()
{
...
...
@@ -191,30 +189,34 @@
// Make Software datasheets
/////////////////////////////////////////////////////////////////
.
push
(
function
(
publisher_list
)
{
var
uid
=
2000
;
function
saveSoftwareListFromPublisher
(
j
)
{
var
uid
=
2000
,
save_software_promise_list
,
publishers
,
promise_list
;
function
saveSoftwareListFromPublisher
(
j
)
{
var
publisher
=
j
.
value
.
title
,
software_list
=
j
.
value
.
free_software_list
,
website
=
j
.
value
.
website
;
function
saveSoftwareDocument
(
software
)
{
function
saveSoftwareDocument
(
software
)
{
software
.
portal_type
=
"
software
"
;
software
.
publisher
=
publisher
;
software
.
publisher_website
=
website
;
software
.
uid
=
(
uid
++
).
toString
();
uid
+=
1
;
software
.
uid
=
uid
.
toString
();
return
gadget
.
jio_put
(
software
.
uid
,
software
);
}
var
save_software_promise_list
=
software_list
.
map
(
saveSoftwareDocument
);
save_software_promise_list
=
software_list
.
map
(
saveSoftwareDocument
);
return
RSVP
.
all
(
save_software_promise_list
);
}
var
publishers
=
publisher_list
.
data
.
rows
,
promise_list
=
publishers
.
map
(
saveSoftwareListFromPublisher
);
publishers
=
publisher_list
.
data
.
rows
;
promise_list
=
publishers
.
map
(
saveSoftwareListFromPublisher
);
return
RSVP
.
all
(
promise_list
);
})
.
push
(
function
()
{
...
...
@@ -224,7 +226,7 @@
'
website
'
,
'
success_case_list
'
,
'
publisher
'
,
'
category_list
'
,
'
category_list
'
],
query
:
'
portal_type: "software"
'
});
...
...
@@ -233,50 +235,56 @@
// Make Success Case datasheets
/////////////////////////////////////////////////////////////////
.
push
(
function
(
software_list
)
{
var
uid
=
3000
;
function
saveSuccessCaseListFromSoftware
(
softwareObject
)
{
var
uid
=
3000
,
softwares
,
promise_list
;
function
saveSuccessCaseListFromSoftware
(
softwareObject
)
{
var
software
=
softwareObject
.
value
,
publisher
=
softwareObject
.
value
.
publisher
,
website
=
softwareObject
.
value
.
website
,
success_case_list
=
softwareObject
.
value
.
success_case_list
;
function
isValid
(
success_case
)
{
success_case_list
=
softwareObject
.
value
.
success_case_list
,
save_success_case_promise_list
;
function
isValid
(
success_case
)
{
return
(
success_case
!==
"
N/A
"
&&
success_case
.
title
!==
""
&&
success_case
.
title
!==
""
&&
success_case
.
title
!==
"
N/A
"
);
}
function
addProperties
(
success_case
)
{
function
addProperties
(
success_case
)
{
success_case
.
portal_type
=
"
success_case
"
;
success_case
.
software
=
software
.
title
;
success_case
.
software_website
=
software
.
website
;
success_case
.
publisher
=
publisher
;
success_case
.
publisher_website
=
website
;
success_case
.
category_list
=
software
.
category_list
;
success_case
.
uid
=
(
uid
++
).
toString
();
uid
+=
1
;
success_case
.
uid
=
uid
.
toString
();
return
gadget
.
jio_put
(
success_case
.
uid
,
success_case
);
}
var
save_success_case_promise_list
=
save_success_case_promise_list
=
success_case_list
.
filter
(
isValid
)
.
map
(
addProperties
);
return
RSVP
.
all
(
save_success_case_promise_list
);
}
var
softwares
=
software_list
.
data
.
rows
.
filter
(
function
(
sw
)
{
softwares
=
software_list
.
data
.
rows
.
filter
(
function
(
sw
)
{
return
(
sw
.
value
.
success_case_list
!==
"
N/A
"
);
}),
promise_list
=
softwares
.
map
(
saveSuccessCaseListFromSoftware
);
return
RSVP
.
all
(
promise_list
);
});
promise_list
=
softwares
.
map
(
saveSuccessCaseListFromSoftware
);
return
RSVP
.
all
(
promise_list
);
/*
})
.push(undefined, function (error) {
console.log(error);
*/
});
}
rJS
(
window
)
.
ready
(
function
(
gadget
)
{
...
...
@@ -294,7 +302,7 @@
.
declareMethod
(
'
createJio
'
,
function
()
{
var
gadget
=
this
;
return
new
RSVP
.
Queue
()
.
push
(
function
(
setting_list
)
{
.
push
(
function
()
{
return
gadget
.
state_parameter_dict
.
jio_storage
.
createJio
({
check_local_modification
:
false
,
check_local_creation
:
false
,
...
...
@@ -303,7 +311,7 @@
local_sub_storage
:
{
type
:
"
query
"
,
sub_storage
:
{
type
:
"
memory
"
,
type
:
"
memory
"
}
},
remote_sub_storage
:
{
...
...
@@ -312,14 +320,14 @@
type
:
"
publisher_storage
"
,
url
:
"
/
"
}
},
})
.
push
(
function
(
data
)
{
return
gadget
.
state_parameter_dict
.
jio_storage
.
repair
();
}
})
.
push
(
function
()
{
return
createDataSheets
(
gadget
);
});
.
push
(
function
()
{
return
gadget
.
state_parameter_dict
.
jio_storage
.
repair
();
})
.
push
(
function
()
{
return
createDataSheets
(
gadget
);
});
});
})
...
...
@@ -339,5 +347,4 @@
.
declareMethod
(
'
repair
'
,
function
()
{
return
this
.
state_parameter_dict
.
jio_storage
.
repair
();
});
}(
window
,
rJS
,
RSVP
,
UriTemplate
,
URI
,
Query
,
SimpleQuery
,
ComplexQuery
,
jIO
,
DOMParser
));
\ No newline at end of file
}(
window
,
rJS
,
RSVP
));
\ No newline at end of file
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_jio_js.xml
View file @
eb00daaf
...
...
@@ -214,7 +214,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
3
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -228,7 +228,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
959.
36864.12643.63829
</string>
</value>
<value>
<string>
959.
45138.33426.26555
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>
149
5564514.77
</float>
<float>
149
6059373.63
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_panel_js.js
View file @
eb00daaf
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*global
window, rJS, Handlebars, RSVP, loopEventListener
*/
(
function
(
window
,
rJS
,
Handlebars
,
RSVP
,
loopEventListener
)
{
/*global
document, window, rJS, Handlebars, RSVP, loopEventListener, Node
*/
(
function
(
document
,
window
,
rJS
,
Handlebars
,
RSVP
,
loopEventListener
,
Node
)
{
"
use strict
"
;
/////////////////////////////////////////////////////////////////
...
...
@@ -25,7 +25,7 @@
.
ready
(
function
(
g
)
{
g
.
props
=
{};
})
.
setState
({
visible
:
false
,
desktop
:
false
...
...
@@ -93,11 +93,6 @@
.
onStateChange
(
function
(
modification_dict
)
{
var
context
=
this
,
gadget
=
this
,
queue
=
new
RSVP
.
Queue
(),
tmp_element
;
if
(
modification_dict
.
hasOwnProperty
(
"
visible
"
))
{
if
(
this
.
state
.
visible
)
{
if
(
!
this
.
element
.
classList
.
contains
(
'
visible
'
))
{
...
...
@@ -154,7 +149,7 @@
}
},
true
,
false
);
}(
window
,
rJS
,
Handlebars
,
RSVP
,
loopEventListener
));
}(
document
,
window
,
rJS
,
Handlebars
,
RSVP
,
loopEventListener
,
Node
));
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_panel_js.xml
View file @
eb00daaf
...
...
@@ -214,7 +214,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
3
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -228,7 +228,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
959.
35236.20346.42359
</string>
</value>
<value>
<string>
959.
45016.12856.26658
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>
149
5466909.6
2
</float>
<float>
149
6052034.3
2
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_router_js.js
View file @
eb00daaf
/*jslint nomen: true, indent: 2, maxerr: 3 */
/*global window, rJS
, RSVP
*/
(
function
(
window
,
rJS
,
RSVP
)
{
/*global window, rJS */
(
function
(
window
,
rJS
)
{
"
use strict
"
;
rJS
(
window
)
...
...
@@ -69,8 +69,5 @@
return
router
.
redirect
.
apply
(
router
,
argument_list
);
});
});
}(
window
,
rJS
,
RSVP
));
\ No newline at end of file
}(
window
,
rJS
));
\ No newline at end of file
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_router_js.xml
View file @
eb00daaf
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
3.59443.50628.5881
1
</string>
</value>
<value>
<string>
95
9.45015.31491.2280
1
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
14
73843119.57
</float>
<float>
14
96052069.31
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_storage_js.js
View file @
eb00daaf
/*jslint
nomen: true
*/
/*jslint
indent: 2, nomen: true, maxlen: 120
*/
/*global jIO, RSVP, JSON */
(
function
(
jIO
,
RSVP
,
JSON
)
{
"
use strict
"
;
function
PublisherStorage
(
spec
)
{
// NOTE: requires Website Layout Configuration CSP modification
// => connect-src 'self' https://raw.githubusercontent.com https://api.github.com data:;
...
...
@@ -12,7 +12,7 @@
//https://api.github.com/repos/Nexedi/awesome-free-software/contents/?ref=master
//https://api.github.com/repos/Nexedi/awesome-free-software/contents/alfresco.json
//https://raw.githubusercontent.com/Nexedi/awesome-free-software/master/alfresco.json
this
.
_href
=
spec
.
href
||
'
https://api.github.com/repos/
'
;
this
.
_user
=
spec
.
user
||
'
Nexedi
'
;
this
.
_repo
=
spec
.
repo
||
'
awesome-free-software
'
;
...
...
@@ -41,7 +41,7 @@
return
(
name
===
"
list
"
);
};
PublisherStorage
.
prototype
.
buildQuery
=
function
(
options
)
{
PublisherStorage
.
prototype
.
buildQuery
=
function
()
{
var
url
=
this
.
_href
+
this
.
_user
+
'
/
'
+
this
.
_repo
+
'
/contents/?ref=master
'
;
return
new
RSVP
.
Queue
()
...
...
@@ -54,7 +54,7 @@
data_entry
,
len
,
i
;
for
(
i
=
0
,
len
=
data_list
.
length
;
i
<
len
;
i
+=
1
)
{
data_entry
=
data_list
[
i
];
if
(
data_entry
.
path
.
indexOf
(
"
.json
"
)
>
-
1
)
{
...
...
@@ -64,7 +64,7 @@
});
}
}
return
result_list
;
return
result_list
;
});
};
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_storage_js.xml
View file @
eb00daaf
...
...
@@ -228,7 +228,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
4.54677.7080.40823
</string>
</value>
<value>
<string>
95
9.45095.9318.10888
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>
14
77403595.09
</float>
<float>
14
96056764.06
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_directory_js.js
View file @
eb00daaf
...
...
@@ -34,7 +34,6 @@
console
.
log
(
error
);
});
})
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
jio_allDocs
"
,
"
jio_allDocs
"
)
...
...
@@ -55,66 +54,68 @@
page_title
:
'
Free Software Publisher Directory
'
})
]);
})
.
push
(
function
(
my_response_list
)
{
return
RSVP
.
all
([
gadget
.
jio_allDocs
({
select_list
:
[
'
category_list
'
],
query
:
'
portal_type:"software"
'
})
// my_response_list[0].render()
]);
})
.
push
(
function
(
my_response_list
)
{
var
softwares
=
my_response_list
[
0
].
data
.
rows
,
// get categories and flatten array of category arrays
categories
=
softwares
.
map
(
(
obj
)
=>
obj
.
value
.
category_list
)
.
reduce
(
(
cur
,
prev
)
=>
cur
.
concat
(
prev
)
),
})
.
push
(
function
()
{
return
RSVP
.
all
([
gadget
.
jio_allDocs
({
select_list
:
[
'
category_list
'
],
query
:
'
portal_type:"software"
'
})
// my_response_list[0].render()
]);
})
.
push
(
function
(
my_response_list
)
{
var
softwares
=
my_response_list
[
0
].
data
.
rows
,
obj
,
// remove duplicates (case sensitive!)
unique_categories
=
Array
.
from
(
new
Set
(
categories
)),
// get categories and flatten array of category arrays
categories
=
softwares
.
map
((
obj
)
=>
obj
.
value
.
category_list
)
.
reduce
((
cur
,
prev
)
=>
cur
.
concat
(
prev
)),
// kudos: https://davidwalsh.name/convert-html-stings-dom-nodes
banner
=
document
.
createRange
()
.
createContextualFragment
(
my_response_list
[
1
]
||
""
);
gadget
.
element
.
insertBefore
(
banner
,
masonry_container
);
// remove duplicates (case sensitive!)
unique_categories
=
Array
.
from
(
new
Set
(
categories
)),
// kudos: https://davidwalsh.name/convert-html-stings-dom-nodes
banner
=
document
.
createRange
()
.
createContextualFragment
(
my_response_list
[
1
]
||
""
);
return
RSVP
.
all
(
unique_categories
);
})
.
push
(
function
(
categories
)
{
var
softwares_by_category
=
categories
.
map
(
function
(
category
)
{
return
gadget
.
jio_allDocs
({
select_list
:
[
'
title
'
,
'
publisher
'
,
'
logo
'
],
query
:
'
category_list:"%
'
+
category
+
'
%" AND portal_type:"software"
'
})
.
push
(
function
(
softwares
)
{
softwares
.
data
.
rows
.
map
(
function
(
sw
)
{
// XXX hardcoded page and view
sw
.
value
.
href
=
"
#/
"
+
sw
.
id
+
"
?page=afs_software&view=view
"
;
gadget
.
element
.
insertBefore
(
banner
,
masonry_container
);
return
RSVP
.
all
(
unique_categories
);
})
.
push
(
function
(
categories
)
{
var
softwares_by_category
=
categories
.
map
(
function
(
category
)
{
return
gadget
.
jio_allDocs
({
select_list
:
[
'
title
'
,
'
publisher
'
,
'
logo
'
],
query
:
'
category_list:"%
'
+
category
+
'
%" AND portal_type:"software"
'
})
.
push
(
function
(
softwares
)
{
softwares
.
data
.
rows
.
map
(
function
(
sw
)
{
// XXX hardcoded page and view
sw
.
value
.
href
=
"
#/
"
+
sw
.
id
+
"
?page=afs_software&view=view
"
;
});
return
{
category
:
category
,
softwares
:
softwares
.
data
.
rows
};
});
return
{
category
:
category
,
softwares
:
softwares
.
data
.
rows
};
});
});
return
RSVP
.
all
(
softwares_by_category
);
})
.
push
(
function
(
result
)
{
var
content
;
return
RSVP
.
all
(
softwares_by_category
);
})
.
push
(
function
(
result
)
{
var
content
;
// reverse sort categories by number of softwares
result
.
sort
(
(
a
,
b
)
=>
b
.
softwares
.
length
-
a
.
softwares
.
length
);
content
=
template
(
result
);
masonry_container
.
innerHTML
=
content
;
});
// reverse sort categories by number of softwares
result
.
sort
(
(
a
,
b
)
=>
b
.
softwares
.
length
-
a
.
softwares
.
length
);
content
=
template
(
result
);
masonry_container
.
innerHTML
=
content
;
});
});
}(
window
,
rJS
,
RSVP
,
Handlebars
,
URI
,
document
));
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_directory_js.xml
View file @
eb00daaf
...
...
@@ -228,7 +228,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
959.4
4990.18794.59562
</string>
</value>
<value>
<string>
959.4
5141.9554.30549
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>
149605
0512.15
</float>
<float>
149605
9536.49
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_js.js
View file @
eb00daaf
/*globals window, RSVP, rJS, Handlebars, jIO*/
/*jslint indent: 2, nomen: true, maxlen:
8
0*/
/*jslint indent: 2, nomen: true, maxlen:
10
0*/
(
function
(
window
,
RSVP
,
rJS
,
Handlebars
,
jIO
)
{
"
use strict
"
;
var
PLACEHOLDER
=
"
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACWCAYAAACb3McZAAANRUlEQVR4Xu2dB1cbOReGBaGEEloCGEglYVPI7v7/37GFEBJS6SmUUG3CnncSnU+fMuMyHln3jl+d42MHezTSe/XkSiPpqufq6urKMFEBKpCqQA8BYcugAtkKEBC2DipQRwECwuZBBQgI2wAVyKcAPUg+3XhVlyhAQLrE0KxmPgUISD7deFWXKEBAusTQrGY+BQhIPt14VZcoQEC6xNCsZj4FCEg+3XhVlyhAQLrE0KxmPgUISD7deFWXKEBASmroz5+/mLOzs+C1m5ycMMPDw8HvE+sGBCSW8oHv++bNO3NwcBj4LsbcvXvbTE1NBr9PrBsQkFjKB74vASlGYAJSjI7iciEgxZiEgBSjo7hcCEgxJiEgxegoLhcCUoxJCEgxOorLhYAUYxICUoyO4nIhIMWYhIAUo6O4XAhIMSYhIMXoKC4XAlKMSQhIMTqKy4WAFGOSUgNyeXlpqtWq6cbQeBsbm+bbt+NiWkmdXDiTHlzi4m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lA+OqK9yC6mwNLr10BAqLdgix/UAUISFB5mbl2BQiIdguy/EEV+A9Em3PVuGWDlwAAAABJRU5ErkJggg==
"
,
var
gadget_klass
=
rJS
(
window
),
gadget_klass
=
rJS
(
window
),
templater
=
gadget_klass
.
__template_element
,
display_widget_table
=
Handlebars
.
compile
(
templater
.
getElementById
(
"
display-template
"
).
innerHTML
...
...
@@ -23,20 +23,20 @@
}
}
return
case_list
;
}
}
rJS
(
window
)
.
ready
(
function
(
g
)
{
g
.
props
=
{};
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
.
declareAcquiredMethod
(
'
updateHeader
'
,
'
updateHeader
'
)
.
declareAcquiredMethod
(
'
jio_get
'
,
'
jio_get
'
)
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
gadget
=
this
;
...
...
@@ -47,7 +47,8 @@
.
push
(
function
(
publisher
)
{
// https://en.wikipedia.org/api/rest_v1/
// only works in for english
var
wikipedia_api_url
=
'
https://en.wikipedia.org/api/rest_v1/page/summary/
'
,
var
wikipedia_api_url
=
'
https://en.wikipedia.org/api/rest_v1/page/summary/
'
,
wiki_list
=
[];
publisher
.
free_software_list
.
map
(
function
(
software
)
{
...
...
@@ -65,7 +66,7 @@
}
else
{
software
.
success_case_list
=
clean
(
software
.
success_case_list
);
}
if
(
software
.
wikipedia_url
==
"
N/A
"
)
{
if
(
software
.
wikipedia_url
==
=
"
N/A
"
)
{
delete
software
.
wikipedia_url
;
}
else
{
wiki_list
.
push
(
...
...
@@ -77,16 +78,14 @@
url
:
wikipedia_api_url
+
software
.
wikipedia_url
.
split
(
"
/
"
).
pop
()
});
})
.
push
(
function
(
my_content
)
{
var
response
=
my_content
.
target
.
respons
||
my_content
.
target
.
responseText
;
return
JSON
.
parse
(
response
).
extract
;
},
function
(
my_error
)
{
return
undefined
;
}
)
);
}
.
push
(
function
(
my_content
)
{
var
response
=
my_content
.
target
.
response
||
my_content
.
target
.
responseText
;
return
JSON
.
parse
(
response
).
extract
;
},
function
()
{
return
undefined
;
})
);
}
});
return
new
RSVP
.
Queue
()
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_js.xml
View file @
eb00daaf
...
...
@@ -214,7 +214,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
3
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -228,7 +228,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
4.58958.53154.13363
</string>
</value>
<value>
<string>
95
9.45146.21261.49186
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>
149
5468512.28
</float>
<float>
149
6059863.46
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_list_js.js
View file @
eb00daaf
/*globals window, RSVP, rJS*/
/*jslint indent: 2, nomen: true, maxlen: 80*/
(
function
(
window
,
RSVP
,
rJS
)
{
(
function
(
window
,
RSVP
,
rJS
)
{
"
use strict
"
;
rJS
(
window
)
.
ready
(
function
(
g
)
{
g
.
props
=
{};
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
.
declareAcquiredMethod
(
"
translate
"
,
"
translate
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
...
...
@@ -17,24 +17,25 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
jio_allDocs
"
,
"
jio_allDocs
"
)
.
allowPublicAcquisition
(
'
updateHeader
'
,
function
()
{
return
;
return
;
})
.
allowPublicAcquisition
(
'
getUrlParameter
'
,
function
(
argument_list
)
{
return
this
.
getUrlParameter
(
argument_list
)
return
this
.
getUrlParameter
(
argument_list
)
.
push
(
function
(
result
)
{
if
((
result
===
undefined
)
&&
(
argument_list
[
0
]
===
'
field_listbox_sort_list:json
'
))
{
if
((
result
===
undefined
)
&&
(
argument_list
[
0
]
===
'
field_listbox_sort_list:json
'
))
{
return
[[
'
title
'
,
'
ascending
'
]];
}
return
result
;
}
return
result
;
});
})
.
declareMethod
(
"
render
"
,
function
(
options
)
{
.
declareMethod
(
"
render
"
,
function
()
{
var
gadget
=
this
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
gadget
.
updateHeader
({
page_title
:
"
Publisher List
"
,
page_title
:
"
Publisher List
"
});
})
.
push
(
function
()
{
...
...
@@ -48,7 +49,7 @@
[
'
founded_year
'
,
'
Founded
'
],
[
'
presence
'
,
'
Presence
'
]
];
return
form_gadget
.
render
({
erp5_document
:
{
"
_embedded
"
:
{
"
_view
"
:
{
"
listbox
"
:
{
...
...
@@ -59,36 +60,36 @@
"
key
"
:
"
field_listbox
"
,
"
lines
"
:
20
,
"
list_method
"
:
"
portal_catalog
"
,
"
query
"
:
'
urn:jio:allDocs?query=
'
+
'
portal_type:
'
+
'
"publisher"
'
,
"
query
"
:
'
urn:jio:allDocs?query=
'
+
'
portal_type:
'
+
'
"publisher"
'
,
"
portal_type
"
:
[],
"
search_column_list
"
:
column_list
,
"
sort_column_list
"
:
column_list
,
"
sort_on
"
:
[
"
title
"
,
"
ascending
"
],
"
title
"
:
"
Documents
"
,
"
type
"
:
"
ListBox
"
}
}
}},
"
_links
"
:
{
"
type
"
:
{
// form_list display portal_type in header
name
:
""
"
_links
"
:
{
"
type
"
:
{
// form_list display portal_type in header
name
:
""
}
}
}
},
form_definition
:
{
group_list
:
[
[
"
bottom
"
,
[[
"
listbox
"
]]
],
[
"
hidden
"
,
[
"
listbox_modification_date
"
]
},
form_definition
:
{
group_list
:
[
[
"
bottom
"
,
[[
"
listbox
"
]]
],
[
"
hidden
"
,
[
"
listbox_modification_date
"
]
]
]
]
}
}
}
);
});
});
});
}(
window
,
RSVP
,
rJS
));
}(
window
,
RSVP
,
rJS
));
\ No newline at end of file
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_publisher_list_js.xml
View file @
eb00daaf
...
...
@@ -228,7 +228,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
3.40656.41521.35942
</string>
</value>
<value>
<string>
95
9.45150.63557.44714
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>
14
73843194.9
</float>
<float>
14
96060137.94
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_software_js.js
View file @
eb00daaf
/*globals window, RSVP, rJS, Handlebars, jIO*/
/*jslint indent: 2, nomen: true, maxlen:
8
0*/
/*jslint indent: 2, nomen: true, maxlen:
10
0*/
(
function
(
window
,
RSVP
,
rJS
,
Handlebars
,
jIO
)
{
"
use strict
"
;
var
PLACEHOLDER
=
"
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACWCAYAAACb3McZAAANRUlEQVR4Xu2dB1cbOReGBaGEEloCGEglYVPI7v7/37GFEBJS6SmUUG3CnncSnU+fMuMyHln3jl+d42MHezTSe/XkSiPpqufq6urKMFEBKpCqQA8BYcugAtkKEBC2DipQRwECwuZBBQgI2wAVyKcAPUg+3XhVlyhAQLrE0KxmPgUISD7deFWXKEBAusTQrGY+BQhIPt14VZcoQEC6xNCsZj4FCEg+3XhVlyhAQLrE0KxmPgUISD7deFWXKEBASmroz5+/mLOzs+C1m5ycMMPDw8HvE+sGBCSW8oHv++bNO3NwcBj4LsbcvXvbTE1NBr9PrBsQkFjKB74vASlGYAJSjI7iciEgxZiEgBSjo7hcCEgxJiEgxegoLhcCUoxJCEgxOorLhY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NDOzDqnAvW8SRowkuAQBUiWN8nyFkK4ztlsuu+yLFAsJK4isRYmpllFjAdxC+c3/kb/7r7mprPGfsNv9G8JtRQJSD1Ymv1Ogrgsw/8UyPIKkryFGg9Sr2Gxa6UbO+lA+OqK9yC6mwNLr10BAqLdgix/UAUISFB5mbl2BQiIdguy/EEV+A9Em3PVuGWDlwAAAABJRU5ErkJggg==
"
,
gadget_klass
=
rJS
(
window
),
templater
=
gadget_klass
.
__template_element
,
display_widget_table
=
Handlebars
.
compile
(
templater
.
getElementById
(
"
display-template
"
).
innerHTML
);
function
clean
(
case_list
,
software_website
,
software_title
,
publisher_website
,
publisher_title
)
{
var
emptry_string
=
""
,
i
,
...
...
@@ -34,14 +34,14 @@
.
ready
(
function
(
g
)
{
g
.
props
=
{};
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
.
declareAcquiredMethod
(
'
updateHeader
'
,
'
updateHeader
'
)
.
declareAcquiredMethod
(
'
jio_get
'
,
'
jio_get
'
)
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
gadget
=
this
;
...
...
@@ -50,15 +50,15 @@
return
gadget
.
jio_get
(
options
.
jio_key
);
})
.
push
(
function
(
software
)
{
// https://en.wikipedia.org/api/rest_v1/
// only works in for english
var
wikipedia_api_url
=
'
https://en.wikipedia.org/api/rest_v1/page/summary/
'
;
if
(
software
.
logo
===
"
N/A
"
||
software
.
logo
===
""
)
{
software
.
logo
=
PLACEHOLDER
;
}
if
(
software
.
commercial_support
==
"
N/A
"
)
{
if
(
software
.
commercial_support
==
=
"
N/A
"
)
{
delete
software
.
commercial_support
;
}
if
(
software
.
success_case_list
.
length
===
0
||
...
...
@@ -68,14 +68,14 @@
delete
software
.
success_case_list
;
}
else
{
software
.
success_case_list
=
clean
(
software
.
success_case_list
,
software
.
website
,
software
.
success_case_list
,
software
.
website
,
software
.
title
,
software
.
publisher_website
,
software
.
publisher
);
}
if
(
software
.
wikipedia_url
==
"
N/A
"
)
{
if
(
software
.
wikipedia_url
==
=
"
N/A
"
)
{
delete
software
.
wikipedia_url
;
return
software
;
}
...
...
@@ -88,22 +88,21 @@
url
:
wikipedia_api_url
+
software
.
wikipedia_url
.
split
(
"
/
"
).
pop
()
});
})
.
push
(
function
(
my_content
)
{
var
response
=
my_content
.
target
.
response
||
my_content
.
target
.
responseText
;
software
.
wikipedia_description
=
JSON
.
parse
(
response
).
extract
;
return
software
;
},
function
(
my_error
)
{
// console.log(my_error)
// 404 or not allowed, swallow
return
software
;
});
.
push
(
function
(
my_content
)
{
var
response
=
my_content
.
target
.
response
||
my_content
.
target
.
responseText
;
software
.
wikipedia_description
=
JSON
.
parse
(
response
).
extract
;
return
software
;
},
function
()
{
// console.log(my_error)
// 404 or not allowed, swallow
return
software
;
});
})
.
push
(
function
(
my_software
)
{
gadget
.
props
.
element
.
querySelector
(
"
.display-widget
"
)
.
innerHTML
=
display_widget_table
(
my_software
);
return
gadget
.
updateHeader
({
page_title
:
my_software
.
title
});
});
});
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_software_js.xml
View file @
eb00daaf
...
...
@@ -214,7 +214,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
3
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -228,7 +228,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
5.20627.16103.45619
</string>
</value>
<value>
<string>
95
9.45155.11639.33945
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>
149
5202159.3
7
</float>
<float>
149
6060365.2
7
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_software_list_js.js
View file @
eb00daaf
/*globals window, RSVP, rJS*/
/*jslint indent: 2, nomen: true, maxlen: 80*/
(
function
(
window
,
RSVP
,
rJS
)
{
(
function
(
window
,
RSVP
,
rJS
)
{
"
use strict
"
;
rJS
(
window
)
.
ready
(
function
(
g
)
{
g
.
props
=
{};
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
.
declareAcquiredMethod
(
"
translate
"
,
"
translate
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
...
...
@@ -17,24 +17,25 @@
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
jio_allDocs
"
,
"
jio_allDocs
"
)
.
allowPublicAcquisition
(
'
updateHeader
'
,
function
()
{
return
;
return
;
})
.
allowPublicAcquisition
(
'
getUrlParameter
'
,
function
(
argument_list
)
{
return
this
.
getUrlParameter
(
argument_list
)
return
this
.
getUrlParameter
(
argument_list
)
.
push
(
function
(
result
)
{
if
((
result
===
undefined
)
&&
(
argument_list
[
0
]
===
'
field_listbox_sort_list:json
'
))
{
if
((
result
===
undefined
)
&&
(
argument_list
[
0
]
===
'
field_listbox_sort_list:json
'
))
{
return
[[
'
title
'
,
'
ascending
'
]];
}
return
result
;
}
return
result
;
});
})
.
declareMethod
(
"
render
"
,
function
(
options
)
{
.
declareMethod
(
"
render
"
,
function
()
{
var
gadget
=
this
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
gadget
.
updateHeader
({
page_title
:
"
Software List
"
,
page_title
:
"
Software List
"
});
})
.
push
(
function
()
{
...
...
@@ -47,7 +48,7 @@
[
'
publisher
'
,
'
Publisher
'
],
[
'
category_list
'
,
'
Category
'
]
];
return
form_gadget
.
render
({
erp5_document
:
{
"
_embedded
"
:
{
"
_view
"
:
{
"
listbox
"
:
{
...
...
@@ -58,34 +59,35 @@
"
key
"
:
"
field_listbox
"
,
"
lines
"
:
20
,
"
list_method
"
:
"
portal_catalog
"
,
"
query
"
:
'
urn:jio:allDocs?query=
'
+
'
portal_type:
'
+
'
"software"
'
,
"
query
"
:
'
urn:jio:allDocs?query=
'
+
'
portal_type:
'
+
'
"software"
'
,
"
portal_type
"
:
[],
"
search_column_list
"
:
column_list
,
"
sort_column_list
"
:
column_list
,
"
title
"
:
"
Documents
"
,
"
type
"
:
"
ListBox
"
}
}
}},
"
_links
"
:
{
"
type
"
:
{
// form_list display portal_type in header
name
:
""
"
_links
"
:
{
"
type
"
:
{
// form_list display portal_type in header
name
:
""
}
}
}
},
form_definition
:
{
group_list
:
[
[
"
bottom
"
,
[[
"
listbox
"
]]
],
[
"
hidden
"
,
[
"
listbox_modification_date
"
]
},
form_definition
:
{
group_list
:
[
[
"
bottom
"
,
[[
"
listbox
"
]]
],
[
"
hidden
"
,
[
"
listbox_modification_date
"
]
]
]
]
}
}
}
);
});
});
});
}(
window
,
RSVP
,
rJS
));
}(
window
,
RSVP
,
rJS
));
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_software_list_js.xml
View file @
eb00daaf
...
...
@@ -228,7 +228,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
3.40675.35974.65450
</string>
</value>
<value>
<string>
95
9.45114.28192.42308
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>
14
73842742.9
</float>
<float>
14
96057919.27
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_success_case_js.js
View file @
eb00daaf
...
...
@@ -2,27 +2,26 @@
/*jslint indent: 2, nomen: true, maxlen: 80*/
(
function
(
window
,
RSVP
,
rJS
,
Handlebars
)
{
"
use strict
"
;
var
PLACEHOLDER
=
"
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACWCA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LPHXTbLhQBacJmrXSx3G5WvSdZHIs0IXzgn/gz6O7jXX8MkuY93CdcXT0GsY05a5DuQoHPdgDvzonwUW/g1p4z+3pzIGlexB2wu/MiBOTnIkS/m+XC4I5JfO9hl6D4a7ly2pWXFaBA2hos281yG7//FMv1HGlLUAooWq4sog3S3e6QCwg+uxODWZOFjRYv5lKDFxWiQDPdLPeRrg8HJwp/mqHeOizXW6R5DgJSSFsOkkkWIGmehEtNGpigESTu0yp39pxzIEHadqGZZo1FXFD8z1ysmGKCLEhcOFyPkQUH50IKbd+5M8sah6Qtbc9a8u4/Ls5dmDYvjDoGsWX3B9k+AD4c/vilTQ14eUAFXC+C2/hPptKgkQJHUt4rIf/tpj2JSgPFhcP/HNDOzDqnAvW8SRowkuAQBUiWN8nyFkK4ztlsuu+yLFAsJK4isRYmpllFjAdxC+c3/kb/7r7mprPGfsNv9G8JtRQJSD1Ymv1Ogrgsw/8UyPIKkryFGg9Sr2Gxa6UbO+lA+OqK9yC6mwNLr10BAqLdgix/UAUISFB5mbl2BQiIdguy/EEV+A9Em3PVuGWDlwAAAABJRU5ErkJggg==
"
,
gadget_klass
=
rJS
(
window
),
templater
=
gadget_klass
.
__template_element
,
display_widget_table
=
Handlebars
.
compile
(
templater
.
getElementById
(
"
display-template
"
).
innerHTML
);
rJS
(
window
)
.
ready
(
function
(
g
)
{
g
.
props
=
{};
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
.
declareAcquiredMethod
(
'
updateHeader
'
,
'
updateHeader
'
)
.
declareAcquiredMethod
(
'
jio_get
'
,
'
jio_get
'
)
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
gadget
=
this
;
return
new
RSVP
.
Queue
()
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_success_case_js.xml
View file @
eb00daaf
...
...
@@ -228,7 +228,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
4.58711.46291.45073
</string>
</value>
<value>
<string>
95
9.45116.37210.34542
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>
14
79291364.95
</float>
<float>
14
96058053.94
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_success_case_list_js.js
View file @
eb00daaf
...
...
@@ -6,9 +6,9 @@
.
ready
(
function
(
g
)
{
g
.
props
=
{};
return
g
.
getElement
()
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
.
push
(
function
(
element
)
{
g
.
props
.
element
=
element
;
});
})
.
declareAcquiredMethod
(
"
translate
"
,
"
translate
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
...
...
@@ -22,70 +22,70 @@
return
this
.
getUrlParameter
(
argument_list
)
.
push
(
function
(
result
)
{
if
((
result
===
undefined
)
&&
(
argument_list
[
0
]
===
'
field_listbox_sort_list:json
'
))
{
return
[[
'
title
'
,
'
ascending
'
]];
(
argument_list
[
0
]
===
'
field_listbox_sort_list:json
'
))
{
return
[[
'
title
'
,
'
ascending
'
]];
}
return
result
;
});
})
.
declareMethod
(
"
render
"
,
function
(
options
)
{
.
declareMethod
(
"
render
"
,
function
()
{
var
gadget
=
this
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
gadget
.
updateHeader
({
page_title
:
"
Success Story List
"
,
});
})
.
push
(
function
()
{
return
gadget
.
getDeclaredGadget
(
"
form_list
"
);
})
.
push
(
function
(
form_gadget
)
{
var
column_list
=
[
[
'
title
'
,
'
Title
'
],
[
'
software
'
,
'
Software
'
],
[
'
publisher
'
,
'
Publisher
'
],
[
'
industry
'
,
'
Industry
'
],
[
'
category_list
'
,
'
Software Categories
'
],
[
'
customer
'
,
'
Customer
'
],
[
'
country
'
,
'
Country
'
],
[
'
language
'
,
'
Language
'
]
];
return
form_gadget
.
render
({
erp5_document
:
{
"
_embedded
"
:
{
"
_view
"
:
{
"
listbox
"
:
{
"
column_list
"
:
column_list
,
"
show_anchor
"
:
0
,
"
default_params
"
:
{},
"
editable
"
:
1
,
"
editable_column_list
"
:
[],
"
key
"
:
"
field_listbox
"
,
"
lines
"
:
20
,
"
list_method
"
:
"
portal_catalog
"
,
"
query
"
:
'
urn:jio:allDocs?query=portal_type:"success_case"
'
,
"
portal_type
"
:
[],
"
search_column_list
"
:
column_list
,
"
sort_column_list
"
:
column_list
,
"
title
"
:
""
,
"
type
"
:
"
ListBox
"
}
}},
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
gadget
.
updateHeader
({
page_title
:
"
Success Story List
"
});
})
.
push
(
function
()
{
return
gadget
.
getDeclaredGadget
(
"
form_list
"
);
})
.
push
(
function
(
form_gadget
)
{
var
column_list
=
[
[
'
title
'
,
'
Title
'
],
[
'
software
'
,
'
Software
'
],
[
'
publisher
'
,
'
Publisher
'
],
[
'
industry
'
,
'
Industry
'
],
[
'
category_list
'
,
'
Software Categories
'
],
[
'
customer
'
,
'
Customer
'
],
[
'
country
'
,
'
Country
'
],
[
'
language
'
,
'
Language
'
]
];
return
form_gadget
.
render
({
erp5_document
:
{
"
_embedded
"
:
{
"
_view
"
:
{
"
listbox
"
:
{
"
column_list
"
:
column_list
,
"
show_anchor
"
:
0
,
"
default_params
"
:
{},
"
editable
"
:
1
,
"
editable_column_list
"
:
[],
"
key
"
:
"
field_listbox
"
,
"
lines
"
:
20
,
"
list_method
"
:
"
portal_catalog
"
,
"
query
"
:
'
urn:jio:allDocs?query=portal_type:"success_case"
'
,
"
portal_type
"
:
[],
"
search_column_list
"
:
column_list
,
"
sort_column_list
"
:
column_list
,
"
title
"
:
""
,
"
type
"
:
"
ListBox
"
}
}},
"
_links
"
:
{
"
type
"
:
{
// form_list display portal_type in header
name
:
""
}
}
},
},
form_definition
:
{
group_list
:
[[
"
bottom
"
,
[[
"
listbox
"
]]
],
[
"
hidden
"
,
[
"
listbox_modification_date
"
]]]
[
"
hidden
"
,
[
"
listbox_modification_date
"
]]]
}
});
});
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_page_afs_success_case_list_js.xml
View file @
eb00daaf
...
...
@@ -214,7 +214,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
3
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -228,7 +228,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
3.59497.55273.5171
</string>
</value>
<value>
<string>
95
9.45121.21336.33467
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>
149
5468000
.96
</float>
<float>
149
6058364
.96
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment