mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-15 11:40:29 +03:00
Rework profile settings to show a preview and support more fields
This commit is contained in:
parent
7f40605bfe
commit
3c1aa0e699
9 changed files with 362 additions and 159 deletions
|
|
@ -3,7 +3,8 @@ import { MsgType } from 'matrix-js-sdk';
|
|||
|
||||
export const MATRIX_BLUR_HASH_PROPERTY_NAME = 'xyz.amorgan.blurhash';
|
||||
export const MATRIX_SPOILER_PROPERTY_NAME = 'page.codeberg.everypizza.msc4193.spoiler';
|
||||
export const MATRIX_SPOILER_REASON_PROPERTY_NAME = 'page.codeberg.everypizza.msc4193.spoiler.reason';
|
||||
export const MATRIX_SPOILER_REASON_PROPERTY_NAME =
|
||||
'page.codeberg.everypizza.msc4193.spoiler.reason';
|
||||
|
||||
export type IImageInfo = {
|
||||
w?: number;
|
||||
|
|
@ -88,3 +89,9 @@ export type ILocationContent = {
|
|||
geo_uri?: string;
|
||||
info?: IThumbnailContent;
|
||||
};
|
||||
|
||||
export type IProfileFieldsCapability = {
|
||||
enabled?: boolean;
|
||||
allowed?: string[];
|
||||
disallowed?: string[];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
export type WithRequiredProp<Type extends object, Key extends keyof Type> = Type & {
|
||||
[Property in Key]-?: Type[Property];
|
||||
};
|
||||
|
||||
// Represents a subset of T containing only the keys whose values extend V
|
||||
export type FilterByValues<T extends object, V> = {
|
||||
[Property in keyof T as T[Property] extends V ? Property : never]: T[Property];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue