2020-09-15 04:27:40 +00: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 07:46:33 +00:00
|
|
|
export const enum UIFeature {
|
2020-09-18 17:33:02 +00:00
|
|
|
AdvancedEncryption = "UIFeature.advancedEncryption",
|
2020-09-15 14:55:03 +00:00
|
|
|
URLPreviews = "UIFeature.urlPreviews",
|
2020-09-16 10:38:50 +00:00
|
|
|
Widgets = "UIFeature.widgets",
|
2023-04-28 07:46:33 +00:00
|
|
|
LocationSharing = "UIFeature.locationSharing",
|
2020-09-16 12:40:27 +00:00
|
|
|
Voip = "UIFeature.voip",
|
2020-09-16 09:59:14 +00:00
|
|
|
Feedback = "UIFeature.feedback",
|
2020-09-17 10:55:10 +00:00
|
|
|
Registration = "UIFeature.registration",
|
|
|
|
PasswordReset = "UIFeature.passwordReset",
|
|
|
|
Deactivate = "UIFeature.deactivate",
|
2020-09-16 15:06:17 +00:00
|
|
|
ShareQRCode = "UIFeature.shareQrCode",
|
|
|
|
ShareSocial = "UIFeature.shareSocial",
|
2020-09-16 13:45:34 +00:00
|
|
|
IdentityServer = "UIFeature.identityServer",
|
2020-09-17 12:25:18 +00:00
|
|
|
ThirdPartyID = "UIFeature.thirdPartyId",
|
2020-09-16 11:14:33 +00:00
|
|
|
AdvancedSettings = "UIFeature.advancedSettings",
|
2020-10-28 01:20:25 +00:00
|
|
|
RoomHistorySettings = "UIFeature.roomHistorySettings",
|
2022-01-31 11:54:14 +00:00
|
|
|
TimelineEnableRelativeDates = "UIFeature.timelineEnableRelativeDates",
|
2022-12-02 03:24:45 +00:00
|
|
|
BulkUnverifiedSessionsReminder = "UIFeature.BulkUnverifiedSessionsReminder",
|
2020-09-15 04:27:40 +00:00
|
|
|
}
|
2021-10-08 22:04:26 +00:00
|
|
|
|
|
|
|
export enum UIComponent {
|
2022-03-02 17:37:18 +00:00
|
|
|
/**
|
|
|
|
* Components that lead to a user being invited.
|
|
|
|
*/
|
2021-10-08 22:04:26 +00:00
|
|
|
InviteUsers = "UIComponent.sendInvites",
|
2022-03-02 17:37:18 +00: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 22:04:26 +00:00
|
|
|
CreateRooms = "UIComponent.roomCreation",
|
2022-03-02 17:37:18 +00: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 16:21:40 +00:00
|
|
|
CreateSpaces = "UIComponent.spaceCreation",
|
2022-03-02 17:37:18 +00: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 09:06:43 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Component that lead to the user being able to search, dial, explore rooms
|
|
|
|
*/
|
|
|
|
FilterContainer = "UIComponent.filterContainer",
|
2021-10-08 22:04:26 +00:00
|
|
|
}
|