mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-24 19:19:21 +00:00
Create service interruptions view model
This commit is contained in:
7
knip.ts
7
knip.ts
@@ -20,7 +20,12 @@ export default {
|
|||||||
// This is a shell built-in.
|
// This is a shell built-in.
|
||||||
"printf",
|
"printf",
|
||||||
],
|
],
|
||||||
ignoreFiles: ["scripts/.pnpmfile.cjs"],
|
ignoreFiles: [
|
||||||
|
"scripts/.pnpmfile.cjs",
|
||||||
|
// Deliberately added prior to any component or business logic
|
||||||
|
// implementation
|
||||||
|
"src/state/ServiceInterruptionsViewModel.ts",
|
||||||
|
],
|
||||||
ignoreDependencies: [
|
ignoreDependencies: [
|
||||||
// Used in CSS
|
// Used in CSS
|
||||||
"normalize.css",
|
"normalize.css",
|
||||||
|
|||||||
27
src/state/ServiceInterruptionsViewModel.ts
Normal file
27
src/state/ServiceInterruptionsViewModel.ts
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2026 Element Creations Ltd.
|
||||||
|
|
||||||
|
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||||
|
Please see LICENSE in the repository root for full details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type Service =
|
||||||
|
| { name: "encryption-keys" }
|
||||||
|
| { name: "reactions" }
|
||||||
|
| { name: "screen-sharing" }
|
||||||
|
| { name: "local-media" }
|
||||||
|
| {
|
||||||
|
name: "remote-media";
|
||||||
|
/**
|
||||||
|
* The number of users affected, for the purpose of pluralising the
|
||||||
|
* strings.
|
||||||
|
*/
|
||||||
|
count: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export interface ServiceInterruptionsViewModel {
|
||||||
|
/**
|
||||||
|
* A non-empty array of services which are temporarily unavailable.
|
||||||
|
*/
|
||||||
|
unavailable: Service[];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user