From 9b932437fcd292832231a2b327ad8882a0419b5e Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Thu, 11 Jan 2024 20:58:15 +0100 Subject: [PATCH] refacto: revert to moment and fix to old version --- package-lock.json | 46 +++++++++++++++++++++--------- package.json | 2 +- src/components/Discover/Search.vue | 6 ++-- src/components/Feed/Episodes.vue | 6 ++-- src/store/player.js | 4 +-- 5 files changed, 42 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index 57f2186..f2cc7ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,9 +13,9 @@ "@nextcloud/dialogs": "^5.0.3", "@nextcloud/initial-state": "^2.1.0", "@nextcloud/l10n": "^2.2.0", + "@nextcloud/moment": "1.2.2", "@nextcloud/router": "^2.2.0", "@nextcloud/vue": "^8.4.0", - "date-fns": "^3.2.0", "vue": "^2", "vue-material-design-icons": "^5.2.0", "vue-router": "^3", @@ -3221,6 +3221,22 @@ "npm": "^9.0.0" } }, + "node_modules/@nextcloud/moment": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@nextcloud/moment/-/moment-1.2.2.tgz", + "integrity": "sha512-66jJJurd4JdqqlGIpqfxMWOvpG7i6dMibkNCPcpe8i+C+bGSFRMxMe74m1abehcaysj164is4juiT2ikVbZ4yg==", + "dependencies": { + "@nextcloud/l10n": "^2.2.0", + "core-js": "^3.21.1", + "jed": "^1.1.1", + "moment": "^2.29.2", + "node-gettext": "^3.0.0" + }, + "engines": { + "node": "^20.0.0", + "npm": "^9.0.0" + } + }, "node_modules/@nextcloud/paths": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/@nextcloud/paths/-/paths-2.1.0.tgz", @@ -6742,15 +6758,6 @@ "node": ">= 12" } }, - "node_modules/date-fns": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.2.0.tgz", - "integrity": "sha512-E4KWKavANzeuusPi0jUjpuI22SURAznGkx7eZV+4i6x2A+IZxAMcajgkvuDAU1bg40+xuhW1zRdVIIM/4khuIg==", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/kossnocorp" - } - }, "node_modules/date-format-parse": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/date-format-parse/-/date-format-parse-0.2.7.tgz", @@ -10504,6 +10511,11 @@ "node": ">=8" } }, + "node_modules/jed": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/jed/-/jed-1.1.1.tgz", + "integrity": "sha512-z35ZSEcXHxLW4yumw0dF6L464NT36vmx3wxJw8MDpraBcWuNVgUPZgPJKcu1HekNgwlMFNqol7i/IpSbjhqwqA==" + }, "node_modules/jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", @@ -13157,6 +13169,14 @@ "node": ">= 6" } }, + "node_modules/moment": { + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz", + "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", + "engines": { + "node": "*" + } + }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -15081,9 +15101,9 @@ "peer": true }, "node_modules/safe-regex-test": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.1.tgz", - "integrity": "sha512-Y5NejJTTliTyY4H7sipGqY+RX5P87i3F7c4Rcepy72nq+mNLhIsD0W4c7kEmduMDQCSqtPsXPlSTsFhh2LQv+g==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.2.tgz", + "integrity": "sha512-83S9w6eFq12BBIJYvjMux6/dkirb8+4zJRA9cxNBVb7Wq5fJBW+Xze48WqR8pxua7bDuAaaAxtVVd4Idjp1dBQ==", "dev": true, "peer": true, "dependencies": { diff --git a/package.json b/package.json index 6078b87..0276708 100644 --- a/package.json +++ b/package.json @@ -22,9 +22,9 @@ "@nextcloud/dialogs": "^5.0.3", "@nextcloud/initial-state": "^2.1.0", "@nextcloud/l10n": "^2.2.0", + "@nextcloud/moment": "1.2.2", "@nextcloud/router": "^2.2.0", "@nextcloud/vue": "^8.4.0", - "date-fns": "^3.2.0", "vue": "^2", "vue-material-design-icons": "^5.2.0", "vue-router": "^3", diff --git a/src/components/Discover/Search.vue b/src/components/Discover/Search.vue index 5fd2027..997423d 100644 --- a/src/components/Discover/Search.vue +++ b/src/components/Discover/Search.vue @@ -4,7 +4,7 @@