tiro-notes 0.40.73 → 0.40.75
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/cli.js +5 -4
- package/client/asset-manifest.json +5 -5
- package/client/index.html +1 -1
- package/client/static/js/{12.959fde15.chunk.js → 12.d1606402.chunk.js} +2 -2
- package/client/static/js/main.714f8804.chunk.js +1 -0
- package/package.json +1 -1
- package/client/static/js/main.b8d998e3.chunk.js +0 -1
- /package/client/static/js/{12.959fde15.chunk.js.LICENSE.txt → 12.d1606402.chunk.js.LICENSE.txt} +0 -0
package/cli.js
CHANGED
|
@@ -28,7 +28,7 @@ ARGS:
|
|
|
28
28
|
|
|
29
29
|
--tunnel/-t : [require autossh] uses autossh to "publish" the app on the web, requires a server you can access with ssh and autossh installed on that device. (ex:npx tiro-notes@latest -t REMOTE_USER@REMOTE_URL:REMOTE_PORT)
|
|
30
30
|
|
|
31
|
-
--backup/-b : [require tar] will incrementally backup changes in archives like tiro.0.xz.tar, tiro.1.xz.tar... every day in a specific folder. You can then execute commands after that process in a post backup script (useful for syncing these archives to clouds, think rsync, rclone etc.)
|
|
31
|
+
--backup/-b : [t/n/now/force/f] [require tar] will incrementally backup changes in archives like tiro.0.xz.tar, tiro.1.xz.tar... every day in a specific folder. You can then execute commands after that process in a post backup script (useful for syncing these archives to clouds, think rsync, rclone etc.)
|
|
32
32
|
--backup-folder : modify backup folder destination. (default: "your/path/to/tiro/data_folder"+_backup
|
|
33
33
|
--backup-post-script : modify script to be executed after a backup finishes. Should be a ".txt" file with your OS commands. (default: "your/path/to/tiro/data_folder"+_backup/post_backup_script.txt
|
|
34
34
|
|
|
@@ -81,7 +81,7 @@ function getCliArgs () {
|
|
|
81
81
|
if (argName === 'v' || argName === 'verbose') argsObj.verbose = parseInt(argVal)
|
|
82
82
|
|
|
83
83
|
if (argName === 'b' || argName === 'backup') argsObj.backup.enabled = true
|
|
84
|
-
if (argName === 'b' || argName === 'backup') argsObj.backup.now = (argVal === "now" || argVal === "n") ? true : false
|
|
84
|
+
if (argName === 'b' || argName === 'backup') argsObj.backup.now = (argVal === "now" || argVal === "n" || argVal === "force" || argVal === "f") ? true : false
|
|
85
85
|
if (argName === 'backup-location') argsObj.backup.location = argVal
|
|
86
86
|
if (argName === 'backup-post-script') argsObj.backup.scriptLocation = argVal
|
|
87
87
|
|
|
@@ -153,7 +153,8 @@ const startBackupScript = async (argsObj, dataFolder) => {
|
|
|
153
153
|
let replaceTimestampCli = () => `echo ${now()} > '${timestampFile}'`
|
|
154
154
|
|
|
155
155
|
// START INTERVAL
|
|
156
|
-
const timeInterval = 1000 * 60 * 60 // one hour
|
|
156
|
+
// const timeInterval = 1000 * 60 * 60 // one hour
|
|
157
|
+
const timeInterval = 1000 * 60 * 10 // one hour
|
|
157
158
|
const backupInterval = 1000 * 60 * 60 * 24 // one day
|
|
158
159
|
|
|
159
160
|
const tarExec = process.platform === "darwin" ? "gtar" : "tar"
|
|
@@ -188,7 +189,7 @@ const startBackupScript = async (argsObj, dataFolder) => {
|
|
|
188
189
|
|
|
189
190
|
console.log (debugObj);
|
|
190
191
|
} else {
|
|
191
|
-
console.log(`[BACKUP] time has no come... still waiting for ${diffMin} mins
|
|
192
|
+
console.log(`[BACKUP] time has no come... still waiting for ${diffMin} mins < 0 AND being between 1am-5am ${{isBetween1am5am}}`);
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
195
|
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"static/js/7.b287e363.chunk.js": "/static/js/7.b287e363.chunk.js",
|
|
11
11
|
"static/js/8.69f0b623.chunk.js": "/static/js/8.69f0b623.chunk.js",
|
|
12
12
|
"static/js/9.0e8bfbdf.chunk.js": "/static/js/9.0e8bfbdf.chunk.js",
|
|
13
|
-
"main.js": "/static/js/main.
|
|
13
|
+
"main.js": "/static/js/main.714f8804.chunk.js",
|
|
14
14
|
"runtime-main.js": "/static/js/runtime-main.c984e732.js",
|
|
15
15
|
"static/css/12.87b9cce9.chunk.css": "/static/css/12.87b9cce9.chunk.css",
|
|
16
|
-
"static/js/12.
|
|
16
|
+
"static/js/12.d1606402.chunk.js": "/static/js/12.d1606402.chunk.js",
|
|
17
17
|
"static/js/13.a1ba053a.chunk.js": "/static/js/13.a1ba053a.chunk.js",
|
|
18
18
|
"static/js/14.6de82bb5.chunk.js": "/static/js/14.6de82bb5.chunk.js",
|
|
19
19
|
"static/js/15.abaa005a.chunk.js": "/static/js/15.abaa005a.chunk.js",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"static/js/109.a7d01e72.chunk.js": "/static/js/109.a7d01e72.chunk.js",
|
|
114
114
|
"static/js/110.a9636caf.chunk.js": "/static/js/110.a9636caf.chunk.js",
|
|
115
115
|
"index.html": "/index.html",
|
|
116
|
-
"static/js/12.
|
|
116
|
+
"static/js/12.d1606402.chunk.js.LICENSE.txt": "/static/js/12.d1606402.chunk.js.LICENSE.txt",
|
|
117
117
|
"static/media/book-solid.87f5b737.svg": "/static/media/book-solid.87f5b737.svg",
|
|
118
118
|
"static/media/compact-disc-solid.55b6e50c.svg": "/static/media/compact-disc-solid.55b6e50c.svg",
|
|
119
119
|
"static/media/deco-bg-map.7ca9103b.png": "/static/media/deco-bg-map.7ca9103b.png",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"entrypoints": [
|
|
138
138
|
"static/js/runtime-main.c984e732.js",
|
|
139
139
|
"static/css/12.87b9cce9.chunk.css",
|
|
140
|
-
"static/js/12.
|
|
141
|
-
"static/js/main.
|
|
140
|
+
"static/js/12.d1606402.chunk.js",
|
|
141
|
+
"static/js/main.714f8804.chunk.js"
|
|
142
142
|
]
|
|
143
143
|
}
|
package/client/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><meta name="theme-color" content="#000000"/><title>Tiro</title><link href="/static/css/12.87b9cce9.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var f,c,o=t[0],d=t[1],b=t[2],i=0,l=[];i<o.length;i++)c=o[i],Object.prototype.hasOwnProperty.call(a,c)&&a[c]&&l.push(a[c][0]),a[c]=0;for(f in d)Object.prototype.hasOwnProperty.call(d,f)&&(e[f]=d[f]);for(u&&u(t);l.length;)l.shift()();return n.push.apply(n,b||[]),r()}function r(){for(var e,t=0;t<n.length;t++){for(var r=n[t],f=!0,o=1;o<r.length;o++){var d=r[o];0!==a[d]&&(f=!1)}f&&(n.splice(t--,1),e=c(c.s=r[0]))}return e}var f={},a={11:0},n=[];function c(t){if(f[t])return f[t].exports;var r=f[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,c),r.l=!0,r.exports}c.e=function(e){var t=[],r=a[e];if(0!==r)if(r)t.push(r[2]);else{var f=new Promise((function(t,f){r=a[e]=[t,f]}));t.push(r[2]=f);var n,o=document.createElement("script");o.charset="utf-8",o.timeout=120,c.nc&&o.setAttribute("nonce",c.nc),o.src=function(e){return c.p+"static/js/"+({}[e]||e)+"."+{0:"79d5aece",1:"f249b7c7",2:"20f6704e",3:"4f82b93d",4:"e6e869f0",5:"b9497157",6:"7001118f",7:"b287e363",8:"69f0b623",9:"0e8bfbdf",13:"a1ba053a",14:"6de82bb5",15:"abaa005a",16:"c7bf49c7",17:"8ecd2ae4",18:"6d741fa7",19:"72fe6168",20:"395f7960",21:"d99fe94e",22:"c1965a13",23:"823d79b9",24:"71a050ab",25:"963fa00f",26:"5bf19013",27:"78eccab7",28:"67e3a942",29:"25994158",30:"31fed549",31:"53ee960a",32:"58e6ffc1",33:"ba50e02b",34:"96315640",35:"47ca9962",36:"aed80b27",37:"b14f2953",38:"b4377d03",39:"a15d0f3e",40:"8bbd1d56",41:"7fa5f958",42:"4788c0ef",43:"878cbb3f",44:"4c8fd3cb",45:"19ab018c",46:"a4f8d365",47:"89fe4630",48:"051d6213",49:"c0ec6437",50:"921f8c3d",51:"537237cd",52:"5f015364",53:"b3228169",54:"8f7c04ad",55:"178cf71d",56:"443103c6",57:"ab5e8825",58:"777089ce",59:"1bf7928f",60:"68f58d5c",61:"6584b982",62:"c137e8d3",63:"9258ae4e",64:"63813224",65:"847fbb86",66:"6170eb02",67:"961dc952",68:"5acd07e9",69:"dd620728",70:"487d7ca3",71:"5847c673",72:"d5483a7e",73:"ad89963d",74:"10d4ff2e",75:"d8d2134d",76:"3dd71071",77:"2fb3fe8d",78:"b21d905f",79:"d3fb11a7",80:"002ae18c",81:"79d7ca3a",82:"b1e28bf6",83:"e9d21351",84:"f26f5b1e",85:"767afb5f",86:"f9d1460e",87:"51f354a4",88:"7681c452",89:"0e2c8914",90:"fa8b8b54",91:"d4be219f",92:"65436d1d",93:"1379a208",94:"cfdd2c0c",95:"8ce4b1fb",96:"cf35cbef",97:"e091b6da",98:"c550313d",99:"f5b42686",100:"4c668d6e",101:"b34c36da",102:"14f5f988",103:"cca9f518",104:"795052c2",105:"0dea319d",106:"f7d603b2",107:"64f7a900",108:"431b977b",109:"a7d01e72",110:"a9636caf"}[e]+".chunk.js"}(e);var d=new Error;n=function(t){o.onerror=o.onload=null,clearTimeout(b);var r=a[e];if(0!==r){if(r){var f=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+f+": "+n+")",d.name="ChunkLoadError",d.type=f,d.request=n,r[1](d)}a[e]=void 0}};var b=setTimeout((function(){n({type:"timeout",target:o})}),12e4);o.onerror=o.onload=n,document.head.appendChild(o)}return Promise.all(t)},c.m=e,c.c=f,c.d=function(e,t,r){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(c.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var f in e)c.d(r,f,function(t){return e[t]}.bind(null,f));return r},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/",c.oe=function(e){throw console.error(e),e};var o=this["webpackJsonptiro-notes-client"]=this["webpackJsonptiro-notes-client"]||[],d=o.push.bind(o);o.push=t,o=o.slice();for(var b=0;b<o.length;b++)t(o[b]);var u=d;r()}([])</script><script src="/static/js/12.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><meta name="theme-color" content="#000000"/><title>Tiro</title><link href="/static/css/12.87b9cce9.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var f,c,o=t[0],d=t[1],b=t[2],i=0,l=[];i<o.length;i++)c=o[i],Object.prototype.hasOwnProperty.call(a,c)&&a[c]&&l.push(a[c][0]),a[c]=0;for(f in d)Object.prototype.hasOwnProperty.call(d,f)&&(e[f]=d[f]);for(u&&u(t);l.length;)l.shift()();return n.push.apply(n,b||[]),r()}function r(){for(var e,t=0;t<n.length;t++){for(var r=n[t],f=!0,o=1;o<r.length;o++){var d=r[o];0!==a[d]&&(f=!1)}f&&(n.splice(t--,1),e=c(c.s=r[0]))}return e}var f={},a={11:0},n=[];function c(t){if(f[t])return f[t].exports;var r=f[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,c),r.l=!0,r.exports}c.e=function(e){var t=[],r=a[e];if(0!==r)if(r)t.push(r[2]);else{var f=new Promise((function(t,f){r=a[e]=[t,f]}));t.push(r[2]=f);var n,o=document.createElement("script");o.charset="utf-8",o.timeout=120,c.nc&&o.setAttribute("nonce",c.nc),o.src=function(e){return c.p+"static/js/"+({}[e]||e)+"."+{0:"79d5aece",1:"f249b7c7",2:"20f6704e",3:"4f82b93d",4:"e6e869f0",5:"b9497157",6:"7001118f",7:"b287e363",8:"69f0b623",9:"0e8bfbdf",13:"a1ba053a",14:"6de82bb5",15:"abaa005a",16:"c7bf49c7",17:"8ecd2ae4",18:"6d741fa7",19:"72fe6168",20:"395f7960",21:"d99fe94e",22:"c1965a13",23:"823d79b9",24:"71a050ab",25:"963fa00f",26:"5bf19013",27:"78eccab7",28:"67e3a942",29:"25994158",30:"31fed549",31:"53ee960a",32:"58e6ffc1",33:"ba50e02b",34:"96315640",35:"47ca9962",36:"aed80b27",37:"b14f2953",38:"b4377d03",39:"a15d0f3e",40:"8bbd1d56",41:"7fa5f958",42:"4788c0ef",43:"878cbb3f",44:"4c8fd3cb",45:"19ab018c",46:"a4f8d365",47:"89fe4630",48:"051d6213",49:"c0ec6437",50:"921f8c3d",51:"537237cd",52:"5f015364",53:"b3228169",54:"8f7c04ad",55:"178cf71d",56:"443103c6",57:"ab5e8825",58:"777089ce",59:"1bf7928f",60:"68f58d5c",61:"6584b982",62:"c137e8d3",63:"9258ae4e",64:"63813224",65:"847fbb86",66:"6170eb02",67:"961dc952",68:"5acd07e9",69:"dd620728",70:"487d7ca3",71:"5847c673",72:"d5483a7e",73:"ad89963d",74:"10d4ff2e",75:"d8d2134d",76:"3dd71071",77:"2fb3fe8d",78:"b21d905f",79:"d3fb11a7",80:"002ae18c",81:"79d7ca3a",82:"b1e28bf6",83:"e9d21351",84:"f26f5b1e",85:"767afb5f",86:"f9d1460e",87:"51f354a4",88:"7681c452",89:"0e2c8914",90:"fa8b8b54",91:"d4be219f",92:"65436d1d",93:"1379a208",94:"cfdd2c0c",95:"8ce4b1fb",96:"cf35cbef",97:"e091b6da",98:"c550313d",99:"f5b42686",100:"4c668d6e",101:"b34c36da",102:"14f5f988",103:"cca9f518",104:"795052c2",105:"0dea319d",106:"f7d603b2",107:"64f7a900",108:"431b977b",109:"a7d01e72",110:"a9636caf"}[e]+".chunk.js"}(e);var d=new Error;n=function(t){o.onerror=o.onload=null,clearTimeout(b);var r=a[e];if(0!==r){if(r){var f=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+f+": "+n+")",d.name="ChunkLoadError",d.type=f,d.request=n,r[1](d)}a[e]=void 0}};var b=setTimeout((function(){n({type:"timeout",target:o})}),12e4);o.onerror=o.onload=n,document.head.appendChild(o)}return Promise.all(t)},c.m=e,c.c=f,c.d=function(e,t,r){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(c.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var f in e)c.d(r,f,function(t){return e[t]}.bind(null,f));return r},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/",c.oe=function(e){throw console.error(e),e};var o=this["webpackJsonptiro-notes-client"]=this["webpackJsonptiro-notes-client"]||[],d=o.push.bind(o);o.push=t,o=o.slice();for(var b=0;b<o.length;b++)t(o[b]);var u=d;r()}([])</script><script src="/static/js/12.d1606402.chunk.js"></script><script src="/static/js/main.714f8804.chunk.js"></script></body><style>body>iframe{display:none!important}</style><script>setTimeout(()=>{console.info("[DEV NOTICE] Live Reload Has Been Disabled"),window.webpackHotUpdate=()=>{}},1e3);{var WS=window.WebSocket;function DevWebSocket(e){return"ws://localhost:3000/sockjs-node"===e?(console.info("[DEV NOTICE] Live Reload Has Been Disabled"),{}):new WS(e)}window.WebSocket=DevWebSocket}</script></html>
|