2020-09-14 22:27:40 -06:00
|
|
|
/*
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2020-09-14 22:27:40 -06:00
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
2024-09-09 14:57:16 +01:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2020-09-14 22:27:40 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// see settings.md for documentation on conventions
|
2023-04-28 08:46:33 +01:00
|
|
|
export const enum UIFeature {
|
2020-09-18 11:33:02 -06:00
|
|
|
AdvancedEncryption = "UIFeature.advancedEncryption",
|
2020-09-15 08:55:03 -06:00
|
|
|
URLPreviews = "UIFeature.urlPreviews",
|
2020-09-16 11:38:50 +01:00
|
|
|
Widgets = "UIFeature.widgets",
|
2023-04-28 08:46:33 +01:00
|
|
|
LocationSharing = "UIFeature.locationSharing",
|
2020-09-16 13:40:27 +01:00
|
|
|
Voip = "UIFeature.voip",
|
2020-09-16 10:59:14 +01:00
|
|
|
Feedback = "UIFeature.feedback",
|
2020-09-17 11:55:10 +01:00
|
|
|
Registration = "UIFeature.registration",
|
|
|
|
|
PasswordReset = "UIFeature.passwordReset",
|
|
|
|
|
Deactivate = "UIFeature.deactivate",
|
2020-09-16 16:06:17 +01:00
|
|
|
ShareQRCode = "UIFeature.shareQrCode",
|
|
|
|
|
ShareSocial = "UIFeature.shareSocial",
|
2020-09-16 14:45:34 +01:00
|
|
|
IdentityServer = "UIFeature.identityServer",
|
2020-09-17 13:25:18 +01:00
|
|
|
ThirdPartyID = "UIFeature.thirdPartyId",
|
2020-09-16 12:14:33 +01:00
|
|
|
AdvancedSettings = "UIFeature.advancedSettings",
|
2020-10-27 19:20:25 -06:00
|
|
|
RoomHistorySettings = "UIFeature.roomHistorySettings",
|
2022-01-31 12:54:14 +01:00
|
|
|
TimelineEnableRelativeDates = "UIFeature.timelineEnableRelativeDates",
|
2022-12-02 16:24:45 +13:00
|
|
|
BulkUnverifiedSessionsReminder = "UIFeature.BulkUnverifiedSessionsReminder",
|
2020-09-14 22:27:40 -06:00
|
|
|
}
|
2021-10-08 16:04:26 -06:00
|
|
|
|
|
|
|
|
export enum UIComponent {
|
2022-03-02 10:37:18 -07:00
|
|
|
/**
|
|
|
|
|
* Components that lead to a user being invited.
|
|
|
|
|
*/
|
2021-10-08 16:04:26 -06:00
|
|
|
InviteUsers = "UIComponent.sendInvites",
|
2022-03-02 10:37:18 -07:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Components that lead to a room being created that aren't already
|
|
|
|
|
* guarded by some other condition (ie: "only if you can edit this
|
|
|
|
|
* space" is *not* guarded by this component, but "start DM" is).
|
|
|
|
|
*/
|
2021-10-08 16:04:26 -06:00
|
|
|
CreateRooms = "UIComponent.roomCreation",
|
2022-03-02 10:37:18 -07:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Components that lead to a Space being created that aren't already
|
|
|
|
|
* guarded by some other condition (ie: "only if you can add subspaces"
|
|
|
|
|
* is *not* guarded by this component, but "create new space" is).
|
|
|
|
|
*/
|
2022-02-09 17:21:40 +01:00
|
|
|
CreateSpaces = "UIComponent.spaceCreation",
|
2022-03-02 10:37:18 -07:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Components that lead to the public room directory.
|
|
|
|
|
*/
|
|
|
|
|
ExploreRooms = "UIComponent.exploreRooms",
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Components that lead to the user being able to easily add widgets
|
|
|
|
|
* and integrations to the room, such as from the room information card.
|
|
|
|
|
*/
|
|
|
|
|
AddIntegrations = "UIComponent.addIntegrations",
|
2023-03-21 12:06:43 +03:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Component that lead to the user being able to search, dial, explore rooms
|
|
|
|
|
*/
|
|
|
|
|
FilterContainer = "UIComponent.filterContainer",
|
2023-06-09 15:33:54 +03:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Components that lead the user to room options menu.
|
|
|
|
|
*/
|
|
|
|
|
RoomOptionsMenu = "UIComponent.roomOptionsMenu",
|
2021-10-08 16:04:26 -06:00
|
|
|
}
|