From 869f48deb19c7187c920550631f7f323668d043a Mon Sep 17 00:00:00 2001 From: dartcafe Date: Fri, 11 Oct 2024 00:54:45 +0200 Subject: [PATCH] fix and lint Signed-off-by: dartcafe --- lib/Model/Settings/AppSettings.php | 1 - src/components/Shares/SharePublicAdd.vue | 18 +----------------- src/components/User/UserSearch.vue | 2 +- 3 files changed, 2 insertions(+), 19 deletions(-) diff --git a/lib/Model/Settings/AppSettings.php b/lib/Model/Settings/AppSettings.php index 610ab767d..3f145dca8 100644 --- a/lib/Model/Settings/AppSettings.php +++ b/lib/Model/Settings/AppSettings.php @@ -12,7 +12,6 @@ use OCA\Polls\AppConstants; use OCA\Polls\Model\Group\Group; use OCA\Polls\UserSession; -// use OCP\AppFramework\Services\IAppConfig; use OCP\IAppConfig; class AppSettings implements JsonSerializable { diff --git a/src/components/Shares/SharePublicAdd.vue b/src/components/Shares/SharePublicAdd.vue index 652853c20..67ada84a5 100644 --- a/src/components/Shares/SharePublicAdd.vue +++ b/src/components/Shares/SharePublicAdd.vue @@ -13,7 +13,7 @@ import PlusIcon from 'vue-material-design-icons/Plus.vue' import UserItem from '../User/UserItem.vue' - import { User, UserType, VirtualUserItemType } from '../../Types/index.ts' + import { VirtualUserItemType } from '../../Types/index.ts' import { useSharesStore } from '../../stores/shares.ts' const sharesStore = useSharesStore() @@ -23,22 +23,6 @@ type: VirtualUserItemType.AddPublicLink, } - const user: User = { - id: '', - displayName: '', - emailAddress: '', - isNoUser: false, - type: UserType.None, - subName: null, - subtitle: null, - desc: null, - organisation: null, - languageCode: null, - localeCode: null, - timeZone: null, - categories: null, - } - async function addPublicShare() { try { await sharesStore.addPublicShare() diff --git a/src/components/User/UserSearch.vue b/src/components/User/UserSearch.vue index e2885afc9..b8a5f9af6 100644 --- a/src/components/User/UserSearch.vue +++ b/src/components/User/UserSearch.vue @@ -14,7 +14,7 @@ import { AppSettingsAPI } from '../../Api/index.js' import { Logger } from '../../helpers/index.ts' import { useSharesStore } from '../../stores/shares.ts' -import { User } from '../../Types/index.ts' + import { User } from '../../Types/index.ts' const sharesStore = useSharesStore() const users = ref([])