From 14cd1e9cbb1ea6265054185585a040b2de5ab946 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sat, 23 Dec 2023 23:56:29 +0100 Subject: [PATCH] Implement moment --- .gitea/workflows/repod.yml | 22 ++++++++--------- package-lock.json | 30 +++++++++++++++++++++++ package.json | 1 + src/components/Discover/Search.vue | 6 ++--- src/components/Feed/Episodes.vue | 7 +++--- src/store/player.js | 4 +-- src/utils/time.js | 39 ------------------------------ 7 files changed, 51 insertions(+), 58 deletions(-) diff --git a/.gitea/workflows/repod.yml b/.gitea/workflows/repod.yml index 58b8235..0b0b759 100644 --- a/.gitea/workflows/repod.yml +++ b/.gitea/workflows/repod.yml @@ -2,7 +2,17 @@ name: repod on: [push] jobs: - nextcloud: + xml: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: wget https://raw.githubusercontent.com/nextcloud/appstore/master/nextcloudappstore/api/v1/release/info.xsd + - uses: ChristophWurst/xmllint-action@v1 + with: + xml-file: ./appinfo/info.xml + xml-schema-file: ./info.xsd + + php: runs-on: ubuntu-latest container: nextcloud:26 steps: @@ -16,16 +26,6 @@ jobs: - run: composer run cs:check - run: composer run psalm:check - xml: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - run: wget https://raw.githubusercontent.com/nextcloud/appstore/master/nextcloudappstore/api/v1/release/info.xsd - - uses: ChristophWurst/xmllint-action@v1 - with: - xml-file: ./appinfo/info.xml - xml-schema-file: ./info.xsd - nodejs: runs-on: ubuntu-latest steps: diff --git a/package-lock.json b/package-lock.json index d38f2e5..5720f15 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "@nextcloud/axios": "^2.4.0", "@nextcloud/dialogs": "^5.0.3", "@nextcloud/l10n": "^2.2.0", + "@nextcloud/moment": "^1.2.2", "@nextcloud/router": "^2.2.0", "@nextcloud/vue": "8.3.0", "vue": "^2", @@ -3189,6 +3190,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", @@ -10204,6 +10221,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", @@ -12841,6 +12863,14 @@ "node": ">= 6" } }, + "node_modules/moment": { + "version": "2.29.4", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", + "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", + "engines": { + "node": "*" + } + }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", diff --git a/package.json b/package.json index 9f86fed..0b9d6bb 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@nextcloud/axios": "^2.4.0", "@nextcloud/dialogs": "^5.0.3", "@nextcloud/l10n": "^2.2.0", + "@nextcloud/moment": "^1.2.2", "@nextcloud/router": "^2.2.0", "@nextcloud/vue": "8.3.0", "vue": "^2", diff --git a/src/components/Discover/Search.vue b/src/components/Discover/Search.vue index e2dd4ea..0e03c22 100644 --- a/src/components/Discover/Search.vue +++ b/src/components/Discover/Search.vue @@ -4,7 +4,7 @@