(feat): improved mobile notifications
(feat): add lint rules (feat): improve markdown inline code box
This commit is contained in:
parent
336b9464c9
commit
4a841de073
35 changed files with 777 additions and 287 deletions
|
|
@ -143,25 +143,7 @@ export type Contacts = z.infer<typeof authPayload.shape.Contacts>;
|
|||
export type Communities = z.infer<typeof authPayload.shape.Communities>;
|
||||
export type Calls = z.infer<typeof authPayload.shape.Calls>;
|
||||
|
||||
type Base16Palette = Record<
|
||||
| "base00"
|
||||
| "base01"
|
||||
| "base02"
|
||||
| "base03"
|
||||
| "base04"
|
||||
| "base05"
|
||||
| "base06"
|
||||
| "base07"
|
||||
| "base08"
|
||||
| "base09"
|
||||
| "base0A"
|
||||
| "base0B"
|
||||
| "base0C"
|
||||
| "base0D"
|
||||
| "base0E"
|
||||
| "base0F",
|
||||
string
|
||||
>;
|
||||
|
||||
|
||||
// MTP
|
||||
const user = z.object({
|
||||
|
|
@ -472,7 +454,25 @@ export interface Storage extends SettingsStorageDefaults {
|
|||
call_mute_range_start: number;
|
||||
call_mute_range_end: number;
|
||||
theme_color: string;
|
||||
theme_palette: Base16Palette | null;
|
||||
theme_palette: Record<
|
||||
| "base00"
|
||||
| "base01"
|
||||
| "base02"
|
||||
| "base03"
|
||||
| "base04"
|
||||
| "base05"
|
||||
| "base06"
|
||||
| "base07"
|
||||
| "base08"
|
||||
| "base09"
|
||||
| "base0A"
|
||||
| "base0B"
|
||||
| "base0C"
|
||||
| "base0D"
|
||||
| "base0E"
|
||||
| "base0F",
|
||||
string
|
||||
> | null;
|
||||
theme_primary_color: string;
|
||||
theme_polarity: "dark" | "light" | "system";
|
||||
theme_tint: "soft" | "hard" | "extreme";
|
||||
|
|
|
|||
|
|
@ -22,7 +22,11 @@ export type DesktopScreenShareCapabilities = {
|
|||
hasReliableSystemAudio: boolean;
|
||||
};
|
||||
|
||||
type ElectronDesktopApi = {
|
||||
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
tensaminDesktop?: {
|
||||
media?: {
|
||||
getScreenShareCapabilities?: () => Promise<DesktopScreenShareCapabilities>;
|
||||
listScreenShareSources?: () => Promise<DesktopScreenShareSource[]>;
|
||||
|
|
@ -53,10 +57,6 @@ type ElectronDesktopApi = {
|
|||
clear?: () => Promise<void>;
|
||||
};
|
||||
};
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
tensaminDesktop?: ElectronDesktopApi;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
type StringKeyOf<T> = Extract<keyof T, string>;
|
||||
|
||||
type SettingDefinition = {
|
||||
display: string;
|
||||
type: string;
|
||||
default?: unknown;
|
||||
};
|
||||
|
||||
|
||||
export type SettingsSchema = Record<
|
||||
string,
|
||||
Record<string, Record<string, SettingDefinition>>
|
||||
Record<string, Record<string, {
|
||||
display: string;
|
||||
type: string;
|
||||
default?: unknown;
|
||||
}>>
|
||||
>;
|
||||
|
||||
const settings = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue