pinokiod 3.40.0 → 3.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.40.0",
3
+ "version": "3.41.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -3996,11 +3996,13 @@ class Server {
3996
3996
  })
3997
3997
  }
3998
3998
 
3999
- if (peers.length === 0) {
4000
- console.log("network not yet ready")
4001
- res.redirect("/")
4002
- return
4003
- }
3999
+ console.log("Info", this.kernel.peer.info)
4000
+
4001
+ // if (peers.length === 0) {
4002
+ // console.log("network not yet ready")
4003
+ // res.redirect("/")
4004
+ // return
4005
+ // }
4004
4006
 
4005
4007
 
4006
4008
  let live_proxies = this.kernel.api.proxies["/proxy"]
@@ -4066,8 +4068,11 @@ class Server {
4066
4068
 
4067
4069
 
4068
4070
  let current_urls = await this.current_urls(req.originalUrl.slice(1))
4069
- let current_peer = this.kernel.peer.info[this.kernel.peer.host]
4070
- let host = current_peer.host
4071
+ let current_peer = this.kernel.peer.info ? this.kernel.peer.info[this.kernel.peer.host] : null
4072
+ let host = null
4073
+ if (current_peer) {
4074
+ host = current_peer.host
4075
+ }
4071
4076
  let peer = current_peer
4072
4077
 
4073
4078
  let processes = []
@@ -4095,7 +4100,7 @@ class Server {
4095
4100
 
4096
4101
 
4097
4102
  let list = this.getPeers()
4098
- let installed = this.kernel.peer.info[host].installed
4103
+ let installed = this.kernel.peer.info && this.kernel.peer.info[host] ? this.kernel.peer.info[host].installed : []
4099
4104
  res.render("network", {
4100
4105
 
4101
4106
  host,
@@ -871,6 +871,11 @@ aside .selected {
871
871
  opacity: 1;
872
872
  }
873
873
  */
874
+ .loader {
875
+ padding: 50px;
876
+ text-align: center;
877
+ font-size: 40px;
878
+ }
874
879
  .submenu .tab {
875
880
  padding: 0;
876
881
  }
@@ -1066,6 +1071,11 @@ body.dark .net {
1066
1071
  </div>
1067
1072
  </h3>
1068
1073
  </div>
1074
+ <% if (requirements_pending) { %>
1075
+ <div class='loader'>
1076
+ <i class="fa-solid fa-circle-notch fa-spin"></i>
1077
+ </div>
1078
+ <% } %>
1069
1079
  <% processes.forEach((item, index) => { %>
1070
1080
  <div class='line align-top' data-index="<%=index%>" data-name="<%=item.name%>" data-title="<%=item.name%>" data-description="<%=item.internal_router.join(' ')%> <%=item.port%>">
1071
1081
  <h3>