pinokiod 3.19.13 → 3.19.15

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/kernel/bin/cli.js CHANGED
@@ -7,7 +7,9 @@ class CLI {
7
7
  }
8
8
  async installed(req, ondata) {
9
9
  console.log("Check CLI installed")
10
- if (this.kernel.which('pinokio')) {
10
+ let p = this.kernel.which("pinokio")
11
+ console.log({ p })
12
+ if (p) {
11
13
  let res = await this.kernel.exec({
12
14
  message: "pinokio version terminal"
13
15
  }, ondata)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.19.13",
3
+ "version": "3.19.15",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -1501,7 +1501,8 @@ class Server {
1501
1501
 
1502
1502
  if (meta) {
1503
1503
  items = running.concat(notRunning)
1504
- res.render("index2", {
1504
+ console.log("INDEX2")
1505
+ res.render("index3", {
1505
1506
  current_urls,
1506
1507
  portal: this.portal,
1507
1508
  install: this.install,
@@ -2776,6 +2777,14 @@ class Server {
2776
2777
  this.app.use(express.urlencoded({ extended: true }));
2777
2778
  this.app.use(cookieParser());
2778
2779
  this.app.use(session({secret: "secret" }))
2780
+ this.app.use((req, res, next) => {
2781
+ const originalRedirect = res.redirect;
2782
+ res.redirect = function (url) {
2783
+ console.log(`Redirect triggered: ${req.method} ${req.originalUrl} -> ${url}`);
2784
+ return originalRedirect.call(this, url);
2785
+ };
2786
+ next();
2787
+ });
2779
2788
 
2780
2789
 
2781
2790
  //let home = this.kernel.homedir
@@ -0,0 +1,5 @@
1
+ <html>
2
+ <body>
3
+ <h1>Index3</h1>
4
+ </body>
5
+ </html>