6Morpheus6 commited on
Commit
113d38c
1 Parent(s): 534a703

add reset and autostart

Browse files
Files changed (1) hide show
  1. pinokio.js +9 -0
pinokio.js CHANGED
@@ -7,6 +7,7 @@ module.exports = {
7
  let installing = await kernel.running(__dirname, "install.json")
8
  if (installing) {
9
  return [{
 
10
  icon: "fa-solid fa-plug",
11
  text: "Installing",
12
  href: "install.json",
@@ -21,6 +22,7 @@ module.exports = {
21
  icon: "fa-solid fa-spin fa-circle-notch",
22
  text: "Running"
23
  }, {
 
24
  icon: "fa-solid fa-rocket",
25
  text: "Open Web UI",
26
  href: session.url,
@@ -36,6 +38,7 @@ module.exports = {
36
  icon: "fa-solid fa-spin fa-circle-notch",
37
  text: "Running"
38
  }, {
 
39
  icon: 'fa-solid fa-terminal',
40
  text: "Terminal",
41
  href: "start.json",
@@ -44,14 +47,20 @@ module.exports = {
44
  }
45
  } else {
46
  return [{
 
47
  icon: "fa-solid fa-power-off",
48
  text: "Launch",
49
  href: "start.json",
50
  params: { fullscreen: true, run: true }
 
 
 
 
51
  }]
52
  }
53
  } else {
54
  return [{
 
55
  icon: "fa-solid fa-plug",
56
  text: "Install",
57
  href: "install.json",
 
7
  let installing = await kernel.running(__dirname, "install.json")
8
  if (installing) {
9
  return [{
10
+ default: true,
11
  icon: "fa-solid fa-plug",
12
  text: "Installing",
13
  href: "install.json",
 
22
  icon: "fa-solid fa-spin fa-circle-notch",
23
  text: "Running"
24
  }, {
25
+ default: true,
26
  icon: "fa-solid fa-rocket",
27
  text: "Open Web UI",
28
  href: session.url,
 
38
  icon: "fa-solid fa-spin fa-circle-notch",
39
  text: "Running"
40
  }, {
41
+ default: true,
42
  icon: 'fa-solid fa-terminal',
43
  text: "Terminal",
44
  href: "start.json",
 
47
  }
48
  } else {
49
  return [{
50
+ default: true,
51
  icon: "fa-solid fa-power-off",
52
  text: "Launch",
53
  href: "start.json",
54
  params: { fullscreen: true, run: true }
55
+ }, {
56
+ icon: "fa-regular fa-circle-xmark",
57
+ text: "Reset",
58
+ href: "reset.json",
59
  }]
60
  }
61
  } else {
62
  return [{
63
+ default: true,
64
  icon: "fa-solid fa-plug",
65
  text: "Install",
66
  href: "install.json",