From 86e71c9356f2fc4182499079334b74dddb5b42f5 Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Wed, 14 Aug 2024 09:51:58 -0400 Subject: [PATCH 1/2] chore(deps): bump `@nextcloud/auth` version Signed-off-by: Elizabeth Danzberger --- package-lock.json | 20 +++++++++++--------- package.json | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0865880755..7790f542d2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "8.5.0-beta.1", "license": "AGPL-3.0-or-later", "dependencies": { - "@nextcloud/auth": "^2.3.0", + "@nextcloud/auth": "^2.4.0", "@nextcloud/axios": "^2.5.0", "@nextcloud/capabilities": "^1.2.0", "@nextcloud/dialogs": "^5.3.5", @@ -2961,11 +2961,12 @@ "integrity": "sha512-KPnNOtm5i2pMabqZxpUz7iQf+mfrYZyKCZ8QNz85czgEt7cuHcGorWfdzUMWYA0SD+a6Hn4FmJ+YhzzzjkTZrQ==" }, "node_modules/@nextcloud/auth": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@nextcloud/auth/-/auth-2.3.0.tgz", - "integrity": "sha512-PCkRJbML9sXvBENY43vTIERIZJFk2azu08IK6zYOnOZ7cFkD1QlFJtdTCZTImQLg01IXhIm0j0ExEdatHoqz7g==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@nextcloud/auth/-/auth-2.4.0.tgz", + "integrity": "sha512-T5OFltKd0O9Hfj47VrzE7TVjCwqOMHH9JLyjjLUR3pu2MaTY9WL6AjL79sHbFTXUaIkftZgJKu12lHYmqXnL2Q==", "dependencies": { - "@nextcloud/event-bus": "^3.2.0" + "@nextcloud/browser-storage": "^0.4.0", + "@nextcloud/event-bus": "^3.3.1" }, "engines": { "node": "^20.0.0", @@ -21330,11 +21331,12 @@ "integrity": "sha512-KPnNOtm5i2pMabqZxpUz7iQf+mfrYZyKCZ8QNz85czgEt7cuHcGorWfdzUMWYA0SD+a6Hn4FmJ+YhzzzjkTZrQ==" }, "@nextcloud/auth": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@nextcloud/auth/-/auth-2.3.0.tgz", - "integrity": "sha512-PCkRJbML9sXvBENY43vTIERIZJFk2azu08IK6zYOnOZ7cFkD1QlFJtdTCZTImQLg01IXhIm0j0ExEdatHoqz7g==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@nextcloud/auth/-/auth-2.4.0.tgz", + "integrity": "sha512-T5OFltKd0O9Hfj47VrzE7TVjCwqOMHH9JLyjjLUR3pu2MaTY9WL6AjL79sHbFTXUaIkftZgJKu12lHYmqXnL2Q==", "requires": { - "@nextcloud/event-bus": "^3.2.0" + "@nextcloud/browser-storage": "^0.4.0", + "@nextcloud/event-bus": "^3.3.1" } }, "@nextcloud/axios": { diff --git a/package.json b/package.json index 616e6facda..4f9372d924 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "test:coverage": "NODE_ENV=test jest --coverage" }, "dependencies": { - "@nextcloud/auth": "^2.3.0", + "@nextcloud/auth": "^2.4.0", "@nextcloud/axios": "^2.5.0", "@nextcloud/capabilities": "^1.2.0", "@nextcloud/dialogs": "^5.3.5", From 5db786681b658615f2781b56df54e0026409e277 Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Wed, 14 Aug 2024 11:58:09 -0400 Subject: [PATCH 2/2] feat(auth): use `@nextcloud/auth` to set/get guest name Signed-off-by: Elizabeth Danzberger --- src/components/GuestNamePicker.vue | 6 ++--- src/helpers/guestName.js | 36 +++++++++++------------------- src/view/Office.vue | 9 +++----- 3 files changed, 19 insertions(+), 32 deletions(-) diff --git a/src/components/GuestNamePicker.vue b/src/components/GuestNamePicker.vue index 3fb7441fd4..7a32bc8aed 100644 --- a/src/components/GuestNamePicker.vue +++ b/src/components/GuestNamePicker.vue @@ -43,10 +43,10 @@