Commit fe9ea50c authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_officejs_eci_directory: get data from lab.nexedi.com

parent 499bb8d4
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<!--li class="ui-last-child"><a href="{{logout_href}}" class="ui-btn ui-btn-icon-left ui-icon-power-off" data-i18n="Logout" accesskey="o">Logout</a></li --> <!--li class="ui-last-child"><a href="{{logout_href}}" class="ui-btn ui-btn-icon-left ui-icon-power-off" data-i18n="Logout" accesskey="o">Logout</a></li -->
</ul> </ul>
<br/> <br/>
<p class="ui-custom-content">Contribute on: <br/><a href="https://github.com/Fonds-de-Dotation-du-Libre/european-cloud-industry">European Cloud Industry (on Github)</a></p> <p class="ui-custom-content">Contribute on: <br/><a href="https://lab.nexedi.com/Fonds-de-Dotation-du-Libre/european-cloud-industry">European Cloud Industry (on lab.nexedi.com)</a></p>
<p class="ui-custom-content">Made possible by:</p> <p class="ui-custom-content">Made possible by:</p>
<footer class="top"> <footer class="top">
<img src="image_module/eci_fdl_logo_png" /> <img src="image_module/eci_fdl_logo_png" />
......
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1002.3467.37510.45909</string> </value> <value> <string>1002.64046.736.19814</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>1659701478.13</float> <float>1663252733.58</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -7,18 +7,19 @@ ...@@ -7,18 +7,19 @@
function populatePublisherStorage() { function populatePublisherStorage() {
var resource_url = "https://lab.nexedi.com/Fonds-de-Dotation-du-Libre/european-cloud-industry/";
return new RSVP.Queue() return new RSVP.Queue()
.push(function () { .push(function () {
return jIO.util.ajax({"type": "GET", "url": "https://api.github.com/repos/Fonds-de-Dotation-du-Libre/european-cloud-industry/contents/?ref=master"}); return jIO.util.ajax({"type": "GET", "url": resource_url + "files/master?format=json"});
}) })
.push(function (data) { .push(function (data) {
var data_list = JSON.parse( var data_list = JSON.parse(
data.target.response || data.target.responseText data.target.response || data.target.responseText
); );
var result_list = data_list.map(function (entry) { var result_list = data_list.map(function (entry) {
if (entry.path.endsWith(".json")) { if (entry.split('/')[0].endsWith(".json")) {
return { return {
id: entry.download_url id: resource_url + "raw/master/" + entry
}; };
} }
}).filter(Boolean); }).filter(Boolean);
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1000.39241.7774.50346</string> </value> <value> <string>1002.63971.53385.5990</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1653987272.65</float> <float>1663248807.91</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -15,7 +15,9 @@ ...@@ -15,7 +15,9 @@
</head> </head>
<body> <body>
<h2>The comprehensive index of cloud and telecommunication technologies made in Europe</h2> <h2>The comprehensive index of cloud and telecommunication technologies made in Europe</h2>
<div class="map_container" style="height:50vh;"></div> <div class="map_container" style="height:50vh;">
<div class="ui-icon-spinner ui-btn-icon-notext first-loader"></div>
</div>
<section class="ui-responsive ui-masonry-container"> <section class="ui-responsive ui-masonry-container">
<ul class="grid-items"> <ul class="grid-items">
<li class="solution-container"></li> <li class="solution-container"></li>
......
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1002.4726.26181.16366</string> </value> <value> <string>1002.64042.4327.44544</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>1663056654.78</float> <float>1663252474.79</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment