2020-09-15 06:27:40 +02:00
|
|
|
/*
|
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// see settings.md for documentation on conventions
|
2023-04-28 09:46:33 +02:00
|
|
|
export const enum UIFeature {
|
2020-09-18 19:33:02 +02:00
|
|
|
AdvancedEncryption = "UIFeature.advancedEncryption",
|
2020-09-15 16:55:03 +02:00
|
|
|
URLPreviews = "UIFeature.urlPreviews",
|
2020-09-16 12:38:50 +02:00
|
|
|
Widgets = "UIFeature.widgets",
|
2023-04-28 09:46:33 +02:00
|
|
|
LocationSharing = "UIFeature.locationSharing",
|
2020-09-16 14:40:27 +02:00
|
|
|
Voip = "UIFeature.voip",
|
2020-09-16 11:59:14 +02:00
|
|
|
Feedback = "UIFeature.feedback",
|
2020-09-17 12:55:10 +02:00
|
|
|
Registration = "UIFeature.registration",
|
|
|
|
PasswordReset = "UIFeature.passwordReset",
|
|
|
|
Deactivate = "UIFeature.deactivate",
|
2020-09-16 17:06:17 +02:00
|
|
|
ShareQRCode = "UIFeature.shareQrCode",
|
|
|
|
ShareSocial = "UIFeature.shareSocial",
|
2020-09-16 15:45:34 +02:00
|
|
|
IdentityServer = "UIFeature.identityServer",
|
2020-09-17 14:25:18 +02:00
|
|
|
ThirdPartyID = "UIFeature.thirdPartyId",
|
2020-09-16 13:14:33 +02:00
|
|
|
AdvancedSettings = "UIFeature.advancedSettings",
|
2020-10-28 02:20:25 +01:00
|
|
|
RoomHistorySettings = "UIFeature.roomHistorySettings",
|
2022-01-31 12:54:14 +01:00
|
|
|
TimelineEnableRelativeDates = "UIFeature.timelineEnableRelativeDates",
|
2022-12-02 04:24:45 +01:00
|
|
|
BulkUnverifiedSessionsReminder = "UIFeature.BulkUnverifiedSessionsReminder",
|
2020-09-15 06:27:40 +02:00
|
|
|
}
|
2021-10-09 00:04:26 +02:00
|
|
|
|
|
|
|
export enum UIComponent {
|
2022-03-02 18:37:18 +01:00
|
|
|
/**
|
|
|
|
* Components that lead to a user being invited.
|
|
|
|
*/
|
2021-10-09 00:04:26 +02:00
|
|
|
InviteUsers = "UIComponent.sendInvites",
|
2022-03-02 18:37:18 +01: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-09 00:04:26 +02:00
|
|
|
CreateRooms = "UIComponent.roomCreation",
|
2022-03-02 18:37:18 +01: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 18:37:18 +01: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 10:06:43 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Component that lead to the user being able to search, dial, explore rooms
|
|
|
|
*/
|
|
|
|
FilterContainer = "UIComponent.filterContainer",
|
2023-06-09 14:33:54 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Components that lead the user to room options menu.
|
|
|
|
*/
|
|
|
|
RoomOptionsMenu = "UIComponent.roomOptionsMenu",
|
2021-10-09 00:04:26 +02:00
|
|
|
}
|