mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
trilium: 0.47.8 -> 0.48.6
This commit is contained in:
parent
3c69ccfb2f
commit
89139c6372
@ -1,5 +1,5 @@
|
|||||||
diff --git a/src/services/log.js b/src/services/log.js
|
diff --git a/src/services/log.js b/src/services/log.js
|
||||||
index 1345ce39..a9770516 100644
|
index 4f29994..1e89e0a 100644
|
||||||
--- a/src/services/log.js
|
--- a/src/services/log.js
|
||||||
+++ b/src/services/log.js
|
+++ b/src/services/log.js
|
||||||
@@ -1,14 +1,5 @@
|
@@ -1,14 +1,5 @@
|
||||||
@ -47,7 +47,7 @@ index 1345ce39..a9770516 100644
|
|||||||
- if (millisSinceMidnight >= DAY) {
|
- if (millisSinceMidnight >= DAY) {
|
||||||
- initLogFile();
|
- initLogFile();
|
||||||
-
|
-
|
||||||
- millisSinceMidnight =- DAY;
|
- millisSinceMidnight -= DAY;
|
||||||
- }
|
- }
|
||||||
-
|
-
|
||||||
- return millisSinceMidnight;
|
- return millisSinceMidnight;
|
||||||
@ -62,3 +62,42 @@ index 1345ce39..a9770516 100644
|
|||||||
-
|
-
|
||||||
console.log(str);
|
console.log(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -83,37 +36,6 @@ function request(req, res, timeMs, responseLength = "?") {
|
||||||
|
`${res.statusCode} ${req.method} ${req.url} with ${responseLength} bytes took ${timeMs}ms`);
|
||||||
|
}
|
||||||
|
|
||||||
|
-function pad(num) {
|
||||||
|
- num = Math.floor(num);
|
||||||
|
-
|
||||||
|
- return num < 10 ? ("0" + num) : num.toString();
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
-function padMilli(num) {
|
||||||
|
- if (num < 10) {
|
||||||
|
- return "00" + num;
|
||||||
|
- }
|
||||||
|
- else if (num < 100) {
|
||||||
|
- return "0" + num;
|
||||||
|
- }
|
||||||
|
- else {
|
||||||
|
- return num.toString();
|
||||||
|
- }
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
-function formatTime(millisSinceMidnight) {
|
||||||
|
- return pad(millisSinceMidnight / HOUR)
|
||||||
|
- + ":" + pad((millisSinceMidnight % HOUR) / MINUTE)
|
||||||
|
- + ":" + pad((millisSinceMidnight % MINUTE) / SECOND)
|
||||||
|
- + "." + padMilli(millisSinceMidnight % SECOND);
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
-function formatDate() {
|
||||||
|
- return pad(todaysMidnight.getFullYear())
|
||||||
|
- + "-" + pad(todaysMidnight.getMonth() + 1)
|
||||||
|
- + "-" + pad(todaysMidnight.getDate());
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
module.exports = {
|
||||||
|
info,
|
||||||
|
error,
|
||||||
|
@ -19,16 +19,16 @@ let
|
|||||||
maintainers = with maintainers; [ fliegendewurst ];
|
maintainers = with maintainers; [ fliegendewurst ];
|
||||||
};
|
};
|
||||||
|
|
||||||
version = "0.47.8";
|
version = "0.48.6";
|
||||||
|
|
||||||
desktopSource = {
|
desktopSource = {
|
||||||
url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-${version}.tar.xz";
|
url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-${version}.tar.xz";
|
||||||
sha256 = "1vnwjiv4bidw5xspcd7d7fn8dbhvgia9ws363fs5zs48c9k2hwwz";
|
sha256 = "1n7gm6mwzf5yyk8cpn70029p1iiv26bypyfi42sx14yyjvlny4rm";
|
||||||
};
|
};
|
||||||
|
|
||||||
serverSource = {
|
serverSource = {
|
||||||
url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-server-${version}.tar.xz";
|
url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-server-${version}.tar.xz";
|
||||||
sha256 = "1clgw0i3vbl8lrsjdjbn71yhim6356gm8h24831mnksb4sawhh7f";
|
sha256 = "0z7cbw11mqf2mfv6ixnczg2i4jcdpvryzl0521ai26gq42jyyy0r";
|
||||||
};
|
};
|
||||||
|
|
||||||
in {
|
in {
|
||||||
@ -44,8 +44,8 @@ in {
|
|||||||
# (they did special-case icon.png but we want the scalable svg)
|
# (they did special-case icon.png but we want the scalable svg)
|
||||||
# Use the version here to ensure we get any changes.
|
# Use the version here to ensure we get any changes.
|
||||||
trilium_svg = fetchurl {
|
trilium_svg = fetchurl {
|
||||||
url = "https://raw.githubusercontent.com/zadam/trilium/v${version}/images/trilium.svg";
|
url = "https://raw.githubusercontent.com/zadam/trilium/v${version}/images/icon.svg";
|
||||||
sha256 = "1rgj7pza20yndfp8n12k93jyprym02hqah36fkk2b3if3kcmwnfg";
|
sha256 = "0sz3piskdlx267whx8r6afrdadn25bf0zmxplj1599zqkf7w7n0x";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user