pinokiod 0.1.23 → 0.1.25

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": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -1300,6 +1300,7 @@ class Server {
1300
1300
  // robocoyp returns 1 when successful
1301
1301
  //mv_cmd = `start /wait (robocopy ${existing_home} ${new_home} /E /MOVE /NFL /NDL) ^& IF %ERRORLEVEL% LEQ 1 exit 0`
1302
1302
  mv_cmd = `start /wait robocopy ${existing_home} ${new_home} /E /MOVE /NFL /NDL`
1303
+ //mv_cmd = `start /wait robocopy ${existing_home} ${new_home} /E /MOVE /NFL`
1303
1304
  } else {
1304
1305
  mv_cmd = `mv ${existing_home} ${new_home}`
1305
1306
  }
@@ -1334,21 +1335,25 @@ class Server {
1334
1335
  // 2. Handle HOME
1335
1336
  if (config.home) {
1336
1337
  // set "new_home"
1337
- const basename = path.basename(config.home)
1338
1338
 
1339
- // check for invalid path
1340
- let isValidPath = (basename !== '' && basename !== config.home)
1341
- if (isValidPath) {
1339
+ // if the home is different from the existing home, go forward
1340
+ if (config.home !== home) {
1341
+ const basename = path.basename(config.home)
1342
+ // check for invalid path
1343
+ let isValidPath = (basename !== '' && basename !== config.home)
1344
+ if (!isValidPath) {
1345
+ throw new Error("Invalid path: " + config.home)
1346
+ }
1347
+
1348
+ // check if the destination already exists => throw error
1349
+ let exists = await fse.pathExists(config.home)
1350
+ if (exists) {
1351
+ throw new Error(`The path ${config.home} already exists. Please remove the folder and retry`)
1352
+ }
1353
+
1342
1354
  this.kernel.store.set("new_home", config.home)
1343
- } else {
1344
- throw new Error("Invalid path: " + config.home)
1345
1355
  }
1346
1356
 
1347
- // check if the destination already exists => throw error
1348
- let exists = await fse.pathExists(config.home)
1349
- if (exists) {
1350
- throw new Error(`The path ${config.home} already exists. Please remove the folder and retry`)
1351
- }
1352
1357
  }
1353
1358
 
1354
1359
  home = this.kernel.store.get("home")
@@ -19,6 +19,9 @@ aside {
19
19
  -webkit-app-region: no-drag !important;
20
20
  cursor: auto;
21
21
  }
22
+ header.grabbable {
23
+ padding: 32px 10px 0 !important;
24
+ }
22
25
  /*
23
26
  header {
24
27
  cursor: grab;