Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): bump @nextcloud/sharing from 0.2.3 to ^0.2.3 #4120

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@nextcloud/moment": "^1.3.1",
"@nextcloud/paths": "^2.2.1",
"@nextcloud/router": "^3.0.1",
"@nextcloud/sharing": "^0.2.2",
"@nextcloud/sharing": "^0.2.3",
"@nextcloud/vue": "^8.18.0",
"@shortcm/qr-image": "^9.0.4",
"@vueuse/core": "^11.0.3",
Expand Down
4 changes: 2 additions & 2 deletions src/models/constants.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { Type } from '@nextcloud/sharing';
import { ShareType } from '@nextcloud/sharing';
export type DefaultGroup = string;
export type DefaultChart = string;
export type CircleConfig = number;
Expand Down Expand Up @@ -32,7 +32,7 @@ export declare const PUBLIC_CIRCLE_CONFIG: {
export declare const CIRCLES_MEMBER_GROUPING: {
id: string;
label: string;
share: Type;
share: ShareType;
type: number;
}[];
export declare const SHARES_TYPES_MEMBER_MAP: {};
Expand Down
28 changes: 14 additions & 14 deletions src/models/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// <reference types="@nextcloud/typings" />

import { translate as t } from '@nextcloud/l10n'
import { Type } from '@nextcloud/sharing'
import { ShareType } from '@nextcloud/sharing'

export type DefaultGroup = string
export type DefaultChart = string
Expand Down Expand Up @@ -115,47 +115,47 @@ export const PUBLIC_CIRCLE_CONFIG = {
// sorting of the members list
export const CIRCLES_MEMBER_GROUPING = [
{
id: `picker-${Type.SHARE_TYPE_USER}`,
id: `picker-${ShareType.User}`,
label: t('contacts', 'users'),
share: Type.SHARE_TYPE_USER,
share: ShareType.User,
type: MEMBER_TYPE_USER,
},
{
id: `picker-${Type.SHARE_TYPE_GROUP}`,
id: `picker-${ShareType.Group}`,
label: t('contacts', 'groups'),
share: Type.SHARE_TYPE_GROUP,
share: ShareType.Group,
type: MEMBER_TYPE_GROUP,
},
// TODO: implement federated
// {
// id: `picker-${Type.SHARE_TYPE_REMOTE}`,
// id: `picker-${ShareType.Remote}`,
// label: t('contacts', 'federated users'),
// share: Type.SHARE_TYPE_REMOTE,
// share: ShareType.Remote,
// type: MEMBER_TYPE_USER
// },
// {
// id: `picker-${Type.SHARE_TYPE_REMOTE_GROUP}`,
// id: `picker-${ShareType.RemoteGroup}`,
// label: t('contacts', 'federated groups'),
// share: Type.SHARE_TYPE_REMOTE_GROUP,
// share: ShareType.RemoteGroup,
// type: MEMBER_TYPE_GROUP
// },
{
id: `picker-${Type.SHARE_TYPE_CIRCLE}`,
id: `picker-${ShareType.Team}`,
label: t('contacts', 'teams'),
share: Type.SHARE_TYPE_CIRCLE,
share: ShareType.Team,
type: MEMBER_TYPE_CIRCLE,
},
{
id: `picker-${Type.SHARE_TYPE_EMAIL}`,
id: `picker-${ShareType.Email}`,
label: t('contacts', 'email addresses'),
share: Type.SHARE_TYPE_EMAIL,
share: ShareType.Email,
type: MEMBER_TYPE_MAIL,
},
// TODO: implement SHARE_TYPE_CONTACT
{
id: 'picker-contact',
label: t('contacts', 'teams'),
share: Type.SHARE_TYPE_EMAIL,
share: ShareType.Email,
type: MEMBER_TYPE_CONTACT,
},
]
Expand Down
Loading